diff --git a/.config/sxhkd/sxhkdrc b/.config/sxhkd/sxhkdrc index 940dcf6..3c8bb65 100644 --- a/.config/sxhkd/sxhkdrc +++ b/.config/sxhkd/sxhkdrc @@ -53,3 +53,6 @@ super + {t,f,s} # x230t specific -- activate the tablet menu XF86RotateWindows tabletmenu + +shift + Insert + special_ins diff --git a/builds/statusbar/statusbar/statusbar.py b/builds/statusbar/statusbar/statusbar.py index 8c74ede..bbb7c69 100644 --- a/builds/statusbar/statusbar/statusbar.py +++ b/builds/statusbar/statusbar/statusbar.py @@ -116,7 +116,7 @@ def filecheckerfactory(filename: str, modname: str, timeout=60): battery = filecheckerfactory("/sys/class/power_supply/BAT0/capacity", "bat") batterystatus = filecheckerfactory("/sys/class/power_supply/BAT0/status", "batstat") -sxhkdmode = filemodfactory("/home/usr/.cache/sxhkd_mode", "sxhkdmode") +sxhkdmode = filemodfactory("/home/usr/.cache/statusbar/sxhkd_mode", "sxhkdmode") def render(modules) -> str: columns, _ = os.get_terminal_size(0) @@ -144,10 +144,12 @@ def render(modules) -> str: stdout.flush() def main(): + try: + os.mkdir("/home/usr/.cache/statusbar") + except FileExistsError: + pass + if argv[1] == "start_statusbars": -# signal.signal(signal.SIGINT, signal.SIG_IGN) -# os.system("pkill statusbar") -# signal.signal(signal.SIGINT, signal.SIG_DFL) # get the monitors xrandr = subprocess.Popen(['xrandr'], stdout=subprocess.PIPE, stderr=subprocess.STDOUT) output = list(xrandr.stdout) diff --git a/builds/utils/sh/disp b/builds/utils/sh/disp index 27adda2..9b35d8d 100755 --- a/builds/utils/sh/disp +++ b/builds/utils/sh/disp @@ -55,14 +55,6 @@ case "$(hostname)" in "mlg") case "$1" in "invert") - 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 - ;; - *) xrandr \ --output DP-0 --off \ --output DP-1-1 --primary --mode 1920x1080 --pos 0x352 --rotate normal --rate 180 \ @@ -70,6 +62,14 @@ case "$(hostname)" in bspc monitor DP-1-1 -d 1 3 5 7 bspc monitor DP-1-2 -d 2 4 6 8 ;; + *) + 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 + ;; esac xinput set-prop 'INSTANT USB GAMING MOUSE ' 'libinput Accel Speed' -1 diff --git a/builds/utils/sh/mode b/builds/utils/sh/mode index d020d65..7ad2263 100755 --- a/builds/utils/sh/mode +++ b/builds/utils/sh/mode @@ -4,7 +4,7 @@ if [ -n "$1" ]; then pkill sxhkd sxhkd -c ~/.config/sxhkd/$1 & disown [ -f "~/.config/sxhkd/$1.sh" ] && ~/.config/sxhkd/$1.sh - echo "$1" > ~/.cache/sxhkd_mode + echo "$1" > ~/.cache/statusbar/sxhkd_mode exit fi diff --git a/builds/utils/sh/special_ins b/builds/utils/sh/special_ins new file mode 100755 index 0000000..6cc23c9 --- /dev/null +++ b/builds/utils/sh/special_ins @@ -0,0 +1,14 @@ +# insert special characters universally in xorg + +( +tmenu <