diff options
author | jdlugosz963 <jdlugosz963@gmail.com> | 2024-09-20 14:16:56 +0200 |
---|---|---|
committer | jdlugosz963 <jdlugosz963@gmail.com> | 2024-09-20 14:16:56 +0200 |
commit | 45bb0d11161b1c5077a1415eed6dbd0fd25ccb6a (patch) | |
tree | b564c1c43920def6641cd482a7b4dca453dbc043 /files/.config/qtile/autorc | |
parent | 07dd8e37eb767c3dd6abf63e5e4a720cd778da15 (diff) | |
download | dotfiles-45bb0d11161b1c5077a1415eed6dbd0fd25ccb6a.tar.gz dotfiles-45bb0d11161b1c5077a1415eed6dbd0fd25ccb6a.zip |
Change dotfiles structure, and add guix-channels declaration.
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 | ||