From 268e376a317895ef2c3666055c750a56ae3b21c3 Mon Sep 17 00:00:00 2001 From: jdlugosz963 Date: Sun, 19 Dec 2021 17:16:48 +0100 Subject: mv qtile to .config --- .config/qtile/autorc | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100755 .config/qtile/autorc (limited to '.config/qtile/autorc') diff --git a/.config/qtile/autorc b/.config/qtile/autorc new file mode 100755 index 0000000..14969c9 --- /dev/null +++ b/.config/qtile/autorc @@ -0,0 +1,26 @@ +#!/bin/bash + +function off_monitor_if_hdmi_plugged_in() { + monitor_status=$(xrandr | grep "HDMI-1-4 connected" | wc -l) + + if [ $monitor_status == 1 ]; + then + xrandr --auto + xrandr --output eDP-1 --off + fi +} + +function caps_to_esc(){ xmodmap -e 'clear Lock' -e 'keycode 0x42 = Escape'; } + +function start() { + killall $1 + sleep .5 + $($1 $2) & +} + +off_monitor_if_hdmi_plugged_in +caps_to_esc + +start picom "-b -D 4 --vsync" +start nitrogen "--restore" +start run_spotifyd -- cgit v1.2.3