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 & sxhkd &
~/.config/polybar/launch.sh & ~/.config/polybar/launch.sh &
nitrogen --restore nitrogen --restore
picom & picom --experimental-backends &
dunst & dunst &
copyq & copyq &
nm-applet & nm-applet &
@ -28,13 +28,13 @@ if [ "`hostname`" = "beef-book" ]; then
else else
bspc monitor "DP-4" -d 1 2 3 4 5 6 7 8 9 bspc monitor "DP-4" -d 1 2 3 4 5 6 7 8 9
fi fi
elif [ -n "`polybar -m | grep "VGA-0"`" ]; then #elif [ -n "`polybar -m | grep "VGA-0"`" ]; then
if [ -n "`polybar -m | grep "LVDS-1-1"`" ]; 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 "LVDS-1-1" -d 1 2 3 4 5 6 7
bspc monitor "VGA-0" -d 8 9 # bspc monitor "VGA-0" -d 8 9
else # else
bspc monitor "VGA-0" -d 1 2 3 4 5 6 7 8 9 # bspc monitor "VGA-0" -d 1 2 3 4 5 6 7 8 9
fi # fi
else else
bspc monitor -d 1 2 3 4 5 6 7 8 9 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 #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 Screenkey manage=off
bspc rule -a Navigator desktop='^1' bspc rule -a Navigator desktop='^1'
bspc rule -a discord desktop='^4' 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 AlarmWindow state=floating
bspc rule -a pop-up state=floating bspc rule -a pop-up state=floating
bspc rule -a setup state=floating bspc rule -a setup state=floating

View file

@ -7,6 +7,6 @@ chosen=$(echo "$choices" | dmenu -i)
case "$chosen" in case "$chosen" in
arandr) arandr ;; arandr) arandr ;;
LVDS_off) xrandr --output LVDS-1-1 --off & ;; 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 ;; LVDS_on) xrandr --output LVDS-1-1 --auto ;;
esac 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

View file

@ -21,9 +21,11 @@ super + shift + Return
$TERMINAL -e lf $TERMINAL -e lf
super + shift + d super + shift + d
discord-canary lightcord
super + shift + v super + shift + v
pavucontrol pavucontrol
super + shift + g
galculator
super + shift + o super + shift + o
$TERMINAL -e htop $TERMINAL -e htop
super + shift + Escape super + shift + Escape
@ -38,12 +40,20 @@ super + shift + e
# ROFI run menu # ROFI run menu
super + d super + d
rofi -show run ~/.config/rofi/launchers/colorful/launcher.sh
#rofi -show run
# kaomoji picker lol
super + ctrl + k
dmenukaomoji
# Turn off all diplays # Turn off all diplays
super + alt + c super + alt + c
sleep 1; xset dpms force off sleep 1; xset dpms force off
# Toggle redshift
super + alt + s
~/.config/bspwm/toggleredshift.sh
# dmenu display selector # dmenu display selector
super + p super + p
~/.config/bspwm/display.sh ~/.config/bspwm/display.sh
@ -101,15 +111,15 @@ super + y
bspc node newest.marked.local -n newest.!automatic.local bspc node newest.marked.local -n newest.!automatic.local
# swap the current node and the biggest node # swap the current node and the biggest node
super + m #super + m
bspc node -s biggest #bspc node -s biggest
# #
# state/flags # state/flags
# #
# set the window state # set the window state
super + {t,alt + t,s,alt + f} super + {t,alt + t,s,m}
bspc node -t {tiled,pseudo_tiled,floating,fullscreen} bspc node -t {tiled,pseudo_tiled,floating,fullscreen}
# set the node flags # set the node flags