From c13102960fbeb3ae53c985a5240e5be5b73966ee Mon Sep 17 00:00:00 2001 From: Cheri Date: Sat, 6 Feb 2021 12:46:32 +0200 Subject: [PATCH] TODO: make display script properly --- bspwm/bspwmrc | 20 +++++++++++--------- bspwm/display.sh | 2 +- bspwm/toggleredshift.sh | 9 +++++++++ sxhkd/sxhkdrc | 20 +++++++++++++++----- 4 files changed, 36 insertions(+), 15 deletions(-) create mode 100755 bspwm/toggleredshift.sh diff --git a/bspwm/bspwmrc b/bspwm/bspwmrc index 18e0f65..df1d7ce 100755 --- a/bspwm/bspwmrc +++ b/bspwm/bspwmrc @@ -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 diff --git a/bspwm/display.sh b/bspwm/display.sh index 8b9c4e2..188a919 100755 --- a/bspwm/display.sh +++ b/bspwm/display.sh @@ -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 diff --git a/bspwm/toggleredshift.sh b/bspwm/toggleredshift.sh new file mode 100755 index 0000000..b71ecac --- /dev/null +++ b/bspwm/toggleredshift.sh @@ -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 diff --git a/sxhkd/sxhkdrc b/sxhkd/sxhkdrc index 02417f7..ba41f7d 100644 --- a/sxhkd/sxhkdrc +++ b/sxhkd/sxhkdrc @@ -21,9 +21,11 @@ super + shift + Return $TERMINAL -e lf super + shift + d - discord-canary + lightcord super + shift + v pavucontrol +super + shift + g + galculator super + shift + o $TERMINAL -e htop super + shift + Escape @@ -38,12 +40,20 @@ super + shift + e # ROFI run menu 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 super + alt + c sleep 1; xset dpms force off +# Toggle redshift +super + alt + s + ~/.config/bspwm/toggleredshift.sh + # dmenu display selector super + p ~/.config/bspwm/display.sh @@ -101,15 +111,15 @@ super + y bspc node newest.marked.local -n newest.!automatic.local # swap the current node and the biggest node -super + m - bspc node -s biggest +#super + m + #bspc node -s biggest # # state/flags # # 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} # set the node flags