update
This commit is contained in:
parent
81e61cefd5
commit
402fe51438
8
bspwmrc
8
bspwmrc
|
@ -12,10 +12,10 @@ if [ "$_hostname" = MachineOne ] ; then
|
|||
bspc monitor FULLV -d F1 F2 F3 F4
|
||||
bspc monitor FULLH -d F5 F6 F7 F8
|
||||
|
||||
bspc monitor VGA-1 -d 1 2 3 3a 3b 3c 3d 3e 3f 3g
|
||||
bspc monitor HDMI-1 -d 4 5 6 6a 6b 6c 6d 6e 6f 6g
|
||||
bspc monitor DVI-1 -d 7 8 9 9a 9b 9c 9d 9e 9f 9g
|
||||
bspc monitor DVI-I-1-1 -d 0 0a 0b 0c 0d 0e 0f 0g 0h 0i
|
||||
bspc monitor VGA-1 -d 1 2 3 4 5 6 7 8 9 0
|
||||
bspc monitor HDMI-1 -d KP_End KP_Down KP_Next KP_Next_a KP_Next_b KP_Next_c
|
||||
bspc monitor DVI-1 -d KP_Left KP_Begin KP_Right KP_Right_a KP_Right_b KP_Right_c
|
||||
bspc monitor DVI-I-1-1 -d KP_Add KP_Add_a KP_Add_b KP_Add_c
|
||||
|
||||
sxhkd -c ~/.config/sxhkd/sxhkdrc ~/.config/sxhkd/sxhkdrc.bspwm ~/.config/sxhkd/sxhkdrc.bspwm.machineone &
|
||||
elif [ "$_hostname" = MachineTwo ] ; then
|
||||
|
|
13
external.sh
13
external.sh
|
@ -9,6 +9,11 @@ title=$(xtitle "$wid")
|
|||
|
||||
# notify-send "$title" "$1 | $2 | $3 | $4"
|
||||
|
||||
#place floating windows
|
||||
#adapted from https://github.com/baskerville/bspwm/issues/263
|
||||
floats=$(bspc query -N -n .floating -d .focused | wc -l)
|
||||
xdotool windowmove --sync $wid $(( 50 + 50 * floats )) $(( 50 + 50 * floats ))
|
||||
|
||||
case "$title" in
|
||||
WM_FORCE_FLOATING)
|
||||
echo "state=floating"
|
||||
|
@ -20,3 +25,11 @@ case "$title" in
|
|||
echo "state=fullscreen"
|
||||
;;
|
||||
esac
|
||||
|
||||
# case $state in
|
||||
# floating)
|
||||
# if [ -z "$desktop" ] || [ "$desktop" = "$(bspc query -D -d --names)" ] && [ -z "$rectangle" ]; then
|
||||
# rule="${rule}$(centerfloat) center=false "
|
||||
# fi
|
||||
# ;;
|
||||
# esac
|
||||
|
|
|
@ -5,14 +5,13 @@ _ignore_desktop="$1"
|
|||
_focused_node_id="$(bspc query -N -n .focused)"
|
||||
bspc query -D -d .occupied | while read _desktop_id ; do
|
||||
_desktop_name="$(bspc query -D -d $_desktop_id --names)"
|
||||
echo ""
|
||||
|
||||
if [ "$_ignore_desktop" != "$_desktop_name" ] ; then
|
||||
bspc query -N -d "$_desktop_id" -n .window | while read _node_id ; do
|
||||
_node_id="$(bspc query -N -n $_node_id)"
|
||||
_title="$(xtitle $_node_id)"
|
||||
_wm_class="$(xprop -id $_node_id | grep WM_CLASS | cut -d\" -f2)"
|
||||
printf " %-6s %-15s " "$_desktop_name:" "$_wm_class"
|
||||
printf " %-6s %-15s " "$_desktop_name" "$_wm_class"
|
||||
if [ "$_focused_node_id" = "$_node_id" ] ; then
|
||||
printf "\033[0;31m"
|
||||
fi
|
||||
|
|
Loading…
Reference in New Issue