implement the "extended desktop" metaphor for copernicus

This commit is contained in:
stupidcomputer 2024-10-21 22:20:46 -05:00
parent 67881fcad5
commit 9e8baced38
2 changed files with 24 additions and 35 deletions

View File

@ -44,7 +44,10 @@ super + {_,ctrl +,shift + }{h,j,k,l}
# change to or move a node to a desktop
super + {_,shift + } {1-9,0}
bspc {desktop -f,node -d} '{1-9,10}'
bspc {desktop -f,node -d} '0{1-9,0}'
super + space; {_,shift + } {1-9,0}
bspc {desktop -f,node -d} '1{1-9,0}'
# change a node to tiling, floating, or fullscreen
super + {t,f,s}

View File

@ -52,11 +52,11 @@ case "$(hostname)" in
"mainsail")
echo "mainsail"
xrandr --output VGA-1 --left-of HDMI-1
bspc monitor VGA-1 -d 1 3 5 7 9
bspc monitor HDMI-1 -d 2 4 6 8 0
bspc monitor VGA-1 -d 01 03 05 07 09
bspc monitor HDMI-1 -d 02 04 06 08 00
;;
"aristotle")
bspc monitor eDP-1 -d 1 2 3 4 5 6 7 8 9
bspc monitor eDP-1 -d 01 02 03 04 05 06 07 08 09
;;
"mlg")
case "$1" in
@ -65,19 +65,19 @@ case "$(hostname)" in
--output DP-0 --off \
--output DP-1-1 --primary --mode 1920x1080 --pos 0x352 --rotate normal --rate 180 \
--output DP-1-2 --mode 1920x1080 --pos 1920x352 --rotate normal --rate 180
bspc monitor DP-1-1 -d 1 3 5 7
bspc monitor DP-1-2 -d 2 4 6 8
bspc monitor DP-1-1 -d 01 03 05 07
bspc monitor DP-1-2 -d 02 04 06 08
;;
"solo")
bspc monitor DP-0 -d 1 2 3 4 5 6 7 8 9
bspc monitor DP-0 -d 01 02 03 04 05 06 07 08 09
;;
*)
xrandr \
--output DP-0 --off \
--output DP-1-2 --primary --mode 1920x1080 --pos 0x352 --rotate normal --rate 180 \
--output DP-1-1 --mode 1920x1080 --pos 1920x352 --rotate normal --rate 180
bspc monitor DP-1-2 -d 1 3 5 7
bspc monitor DP-1-1 -d 2 4 6 8
bspc monitor DP-1-2 -d 01 03 05 07
bspc monitor DP-1-1 -d 02 04 06 08
;;
esac
xinput set-prop 'INSTANT USB GAMING MOUSE ' 'libinput Accel Speed' -1
@ -122,8 +122,8 @@ case "$(hostname)" in
xrandr --output VGA-1 --primary --mode 1920x1080 --rotate normal \
--output HDMI-1 --mode 1920x1080 --rotate normal --right-of VGA-1 \
--output LVDS-1 --off
bspc monitor VGA-1 -d 1 3 5 7 9
bspc monitor HDMI-1 -d 2 4 6 8
bspc monitor VGA-1 -d 01 03 05 07 09
bspc monitor HDMI-1 -d 02 04 06 08
;;
*)
if
@ -137,31 +137,17 @@ case "$(hostname)" in
--output DP-1 --off \
--output HDMI-2 --off \
--output DP-2 --off
bspc monitor LVDS-1 -d 1 4 7
bspc monitor VGA-1 -d 2 5 8
bspc monitor HDMI-1 -d 3 6 9
bspc monitor LVDS-1 -d 01 04 07
bspc monitor VGA-1 -d 02 05 08
bspc monitor HDMI-1 -d 03 06 09
else
bspc monitor LVDS-1 -d 1 2 3 4 5 6 7 8 9
bspc monitor LVDS-1 -d 01 02 03 04 05 06 07 08 09
fi
;;
esac
;;
"copernicus")
case "$1" in
"tv")
xrandr --output HDMI-0 --off \
--output DP-0 --off \
--output DP-1 --off \
--output DP-2 --off \
--output DP-3 --off \
--output DP-4 --off \
--output DP-5 --off \
--output DP-1-1 --off \
--output HDMI-1-1 --off \
--output DP-1-2 --off \
--output HDMI-1-2 --primary --mode 1920x1080 --pos 0x0 --rotate normal
bspc monitor HDMI-1-2 -d 1 2 3 4 5 6 7 8 9
;;
*)
xinput set-prop 'INSTANT USB GAMING MOUSE ' 'libinput Accel Speed' -1
xrandr \
@ -176,11 +162,11 @@ case "$(hostname)" in
--output HDMI-1-1 --off \
--output HDMI-1-2 --mode 1920x1080 --pos 3840x485 --rotate normal \
--output DP-1-2 --mode 1920x1080 --pos 1920x0 --rotate normal
bspc monitor DP-0 -d 1 3 5
bspc monitor HDMI-0 -d 2 4 6
bspc monitor DP-2 -d 7
bspc monitor DP-1-2 -d 8
bspc monitor HDMI-1-2 -d 9
bspc monitor DP-0 -d 01 03 05 07 09
bspc monitor HDMI-0 -d 02 04 06 08 00
bspc monitor DP-2 -d 11 13 15 17 19
bspc monitor DP-1-2 -d 12 14 16 18
bspc monitor HDMI-1-2 -d 10
;;
esac
dunst & disown
@ -191,7 +177,7 @@ case "$(hostname)" in
sxhkd -c ~/.config/sxhkd/phone & disown
xrandr --output VNC-0 --mode 1920x1080
bspc monitor VNC-0 -d 1 2 3 4 5 6 7 8 9
bspc monitor VNC-0 -d 1 2 3 4 5 6 7 8 9 # the phone uses different desktop descriptors
feh --bg-fill ~/.local/share/pape.jpg
esac