From 5422ea7430f070323bbf8c6304567f248912781a Mon Sep 17 00:00:00 2001 From: jdlugosz963 Date: Sun, 19 Dec 2021 17:12:03 +0100 Subject: add my dot files --- qtile/autorc | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100755 qtile/autorc (limited to 'qtile/autorc') diff --git a/qtile/autorc b/qtile/autorc new file mode 100755 index 0000000..14969c9 --- /dev/null +++ b/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