diff options
Diffstat (limited to 'files/.config/qtile/autorc')
| -rwxr-xr-x | files/.config/qtile/autorc | 31 |
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 | |||
| 3 | function 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 | |||
| 15 | function caps_to_esc(){ xmodmap -e 'clear Lock' -e 'keycode 0x42 = Escape'; } | ||
| 16 | |||
| 17 | function start() { | ||
| 18 | killall $1 | ||
| 19 | sleep .5 | ||
| 20 | $($1 $2) & | ||
| 21 | } | ||
| 22 | |||
| 23 | # monitor_settings | ||
| 24 | caps_to_esc | ||
| 25 | |||
| 26 | start nitrogen "--restore" | ||
| 27 | start picom "" | ||
| 28 | start spotifyd "" | ||
| 29 | start rclone "mount remote:/sync /home/jakub/Sync" | ||
| 30 | start emacs "--daemon" | ||
| 31 | xinput set-prop 11 344 1 | ||
