moved to another computer yay
This commit is contained in:
parent
76da2959fe
commit
4eaffbfef4
3 changed files with 31 additions and 43 deletions
|
@ -19,7 +19,10 @@ numlockx on &
|
|||
###
|
||||
# MONITORS
|
||||
###
|
||||
if [ "`hostname`" = "beef-book" ]; then
|
||||
if [ "`hostname`" = "setsuna" ]; then
|
||||
bspc monitor "HDMI-A-1" -d 1 2 3 4 5 6 7
|
||||
bspc monitor "DVI-D-0" -d 8 9
|
||||
elif [ "`hostname`" = "beef-book" ]; then
|
||||
if [ -n "`polybar -m | grep "DP-1"`" ]; then
|
||||
# for docked desktop use: assign 2 workspaces to the second VGA monitor accordingly if it is connected
|
||||
if [ -n "`polybar -m | grep "VGA-0"`" ]; then
|
||||
|
|
|
@ -1,12 +1,31 @@
|
|||
#!/bin/dash
|
||||
|
||||
choices="arandr\nLVDS_off\nLVDS_on\ndual"
|
||||
if [ "`hostname`" = "freia" ]; then
|
||||
choices="arandr\nLVDS_off\nLVDS_on\ndual"
|
||||
chosen=$(echo "$choices" | dmenu -i)
|
||||
|
||||
chosen=$(echo "$choices" | dmenu -i)
|
||||
case "$chosen" in
|
||||
arandr) arandr ;;
|
||||
LVDS_off) xrandr --output LVDS-1-1 --off & ;;
|
||||
LVDS_on) xrandr --output LVDS-1-1 --auto ;;
|
||||
dual) xrandr --output VGA-0 --mode 1024x768 --pos 1920x312 --rotate normal --output LVDS-0 --off --output DP-0 --off --output DP-1 --off --output DP-2 --off --output DP-3 --off --output DP-4 --primary --mode 1920x1080 --pos 0x0 --rotate normal --output DP-5 --off --output LVDS-1-1 --off --output VGA-1-1 --off ;;
|
||||
esac
|
||||
elif [ "`hostname`" = "setsuna" ]; then
|
||||
choices="arandr\nsingle (hdmi)\ndual (hdmi+dvi)"
|
||||
chosen=$(echo "$choices" | dmenu -i)
|
||||
case "$chosen" in
|
||||
arandr) arandr ;;
|
||||
"single (hdmi)") xrandr --output HDMI-A-1 --auto --output DVI-D-0 --off ;;
|
||||
"dual (hdmi+dvi)") xrandr --output HDMI-A-1 --auto --output DVI-D-0 --auto --right-of HDMI-A-1 ;;
|
||||
esac
|
||||
else
|
||||
choices="arandr"
|
||||
chosen=$(echo "$choices" | dmenu -i)
|
||||
|
||||
case "$chosen" in
|
||||
arandr) arandr ;;
|
||||
LVDS_off) xrandr --output LVDS-1-1 --off & ;;
|
||||
LVDS_on) xrandr --output LVDS-1-1 --auto ;;
|
||||
dual) xrandr --output VGA-0 --mode 1024x768 --pos 1920x312 --rotate normal --output LVDS-0 --off --output DP-0 --off --output DP-1 --off --output DP-2 --off --output DP-3 --off --output DP-4 --primary --mode 1920x1080 --pos 0x0 --rotate normal --output DP-5 --off --output LVDS-1-1 --off --output VGA-1-1 --off ;;
|
||||
esac
|
||||
case "$chosen" in
|
||||
arandr) arandr ;;
|
||||
esac
|
||||
fi
|
||||
#choices="arandr\neDP_off\neDP_on\ndual"
|
||||
#eDP_on) xrandr --output eDP --off & ;;
|
||||
#eDP_off) xrandr --output eDP --auto ;;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue