TODO: make display script properly

This commit is contained in:
vibikim 2021-02-06 12:46:32 +02:00
parent 80114f197b
commit 54be8a661d
4 changed files with 36 additions and 15 deletions

View file

@ -7,7 +7,7 @@ xsetroot -cursor_name left_ptr #fix background cursor being different
sxhkd &
~/.config/polybar/launch.sh &
nitrogen --restore
picom &
picom --experimental-backends &
dunst &
copyq &
nm-applet &
@ -28,13 +28,13 @@ if [ "`hostname`" = "beef-book" ]; then
else
bspc monitor "DP-4" -d 1 2 3 4 5 6 7 8 9
fi
elif [ -n "`polybar -m | grep "VGA-0"`" ]; then
if [ -n "`polybar -m | grep "LVDS-1-1"`" ]; then
bspc monitor "LVDS-1-1" -d 1 2 3 4 5 6 7
bspc monitor "VGA-0" -d 8 9
else
bspc monitor "VGA-0" -d 1 2 3 4 5 6 7 8 9
fi
#elif [ -n "`polybar -m | grep "VGA-0"`" ]; then
# if [ -n "`polybar -m | grep "LVDS-1-1"`" ]; then
# bspc monitor "LVDS-1-1" -d 1 2 3 4 5 6 7
# bspc monitor "VGA-0" -d 8 9
# else
# bspc monitor "VGA-0" -d 1 2 3 4 5 6 7 8 9
# fi
else
bspc monitor -d 1 2 3 4 5 6 7 8 9
#bspc monitor "DP-1" -d 1 2 3 4 5 6 7 8 9
@ -102,7 +102,9 @@ bspc rule -a Nitrogen state=floating
bspc rule -a Screenkey manage=off
bspc rule -a Navigator desktop='^1'
bspc rule -a discord desktop='^4'
bspc rule -a dosbox state=pseudo_tiled
bspc rule -a lightcord desktop='^4'
bspc rule -a Element desktop='^4'
bspc rule -a dosbox state=floating
bspc rule -a AlarmWindow state=floating
bspc rule -a pop-up state=floating
bspc rule -a setup state=floating

View file

@ -7,6 +7,6 @@ chosen=$(echo "$choices" | dmenu -i)
case "$chosen" in
arandr) arandr ;;
LVDS_off) xrandr --output LVDS-1-1 --off & ;;
dual) xrandr --output DP-4 --auto --output LVDS-1-1 --right-of DP-4 ;;
dual) xrandr --output DP-4 --auto --output VGA-1-1 --right-of DP-4 ;;
LVDS_on) xrandr --output LVDS-1-1 --auto ;;
esac

9
bspwm/toggleredshift.sh Executable file
View file

@ -0,0 +1,9 @@
#!/bin/sh
if [ -z "`pgrep -x redshift`" ]; then
redshift -l 44:26 &
notify-send Redshift "is now enabled"
else
notify-send Redshift "is now disabled"
pkill redshift
fi