summaryrefslogtreecommitdiffstats
path: root/files/.config/qtile/autorc
diff options
context:
space:
mode:
Diffstat (limited to 'files/.config/qtile/autorc')
-rwxr-xr-xfiles/.config/qtile/autorc31
1 files changed, 31 insertions, 0 deletions
diff --git a/files/.config/qtile/autorc b/files/.config/qtile/autorc
new file mode 100755
index 0000000..c54f683
--- /dev/null
+++ b/files/.config/qtile/autorc
@@ -0,0 +1,31 @@
1#!/bin/bash
2
3function monitor_settings() {
4 sleep .5
5 monitor_status=$(xrandr | grep "HDMI-1-4 connected" | wc -l)
6
7 if [ $monitor_status == 1 ];
8 then
9 # xrandr --auto
10 # xrandr --output eDP-1 --off
11 xrandr --output eDP-1-1 --auto --output HDMI-0 --auto --left-of eDP-1-1
12 fi
13}
14
15function caps_to_esc(){ xmodmap -e 'clear Lock' -e 'keycode 0x42 = Escape'; }
16
17function start() {
18 killall $1
19 sleep .5
20 $($1 $2) &
21}
22
23# monitor_settings
24caps_to_esc
25
26start nitrogen "--restore"
27start picom ""
28start spotifyd ""
29start rclone "mount remote:/sync /home/jakub/Sync"
30start emacs "--daemon"
31xinput set-prop 11 344 1