summaryrefslogtreecommitdiffstats
path: root/qtile/autorc
diff options
context:
space:
mode:
authorjdlugosz963 <jdlugosz963@gmail.com>2021-12-19 17:12:03 +0100
committerjdlugosz963 <jdlugosz963@gmail.com>2021-12-19 17:12:03 +0100
commit5422ea7430f070323bbf8c6304567f248912781a (patch)
tree0d7663e73173f3a02d37d3f7c9fc5fefbf4501c6 /qtile/autorc
downloaddotfiles-5422ea7430f070323bbf8c6304567f248912781a.tar.gz
dotfiles-5422ea7430f070323bbf8c6304567f248912781a.zip
add my dot files
Diffstat (limited to 'qtile/autorc')
-rwxr-xr-xqtile/autorc26
1 files changed, 26 insertions, 0 deletions
diff --git a/qtile/autorc b/qtile/autorc
new file mode 100755
index 0000000..14969c9
--- /dev/null
+++ b/qtile/autorc
@@ -0,0 +1,26 @@
1#!/bin/bash
2
3function off_monitor_if_hdmi_plugged_in() {
4 monitor_status=$(xrandr | grep "HDMI-1-4 connected" | wc -l)
5
6 if [ $monitor_status == 1 ];
7 then
8 xrandr --auto
9 xrandr --output eDP-1 --off
10 fi
11}
12
13function caps_to_esc(){ xmodmap -e 'clear Lock' -e 'keycode 0x42 = Escape'; }
14
15function start() {
16 killall $1
17 sleep .5
18 $($1 $2) &
19}
20
21off_monitor_if_hdmi_plugged_in
22caps_to_esc
23
24start picom "-b -D 4 --vsync"
25start nitrogen "--restore"
26start run_spotifyd