diff options
author | lonkaars <loek@pipeframe.xyz> | 2024-03-09 19:34:51 +0100 |
---|---|---|
committer | lonkaars <loek@pipeframe.xyz> | 2024-03-09 19:34:51 +0100 |
commit | 65994f40856905a60d323452ca6115eb4e4c416e (patch) | |
tree | fc67e6ed527bae1f624786ca12d032fa42e8f0fd /.config/i3 | |
parent | ff6671f5abdf8b01b405ea3e39c20191a0cf757c (diff) |
more cleanup + updates
Diffstat (limited to '.config/i3')
-rwxr-xr-x | .config/i3/autostart##template | 21 | ||||
-rw-r--r-- | .config/i3/config##template | 7 |
2 files changed, 17 insertions, 11 deletions
diff --git a/.config/i3/autostart##template b/.config/i3/autostart##template index 47532ff..cc2c652 100755 --- a/.config/i3/autostart##template +++ b/.config/i3/autostart##template @@ -1,15 +1,17 @@ #!/bin/sh . "$HOME/.profile" mode --no-reload restore + /usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1 & polybar & rwall & -picom -b +picom & xbanish & dunst & -autocutsel & -fcitx5 -d -xbindkeys -f "$XDG_CONFIG_HOME/xbindkeys/main" +autocutsel -selection CLIPBOARD & +autocutsel -selection PRIMARY & +fcitx5 & +xbindkeys --file "$XDG_CONFIG_HOME/xbindkeys/main" --nodaemon & {% if yadm.hostname == "thoncc" %} xdimmer -t 45 -p 3 & light-locker --no-late-locking & @@ -21,5 +23,14 @@ desktop2mqtt --config "$XDG_CONFIG_HOME/desktop2mqtt/config.yml" & flashfocus & # auto start lazy script after everything else -[ -x "$HOME/do.sh" ] && "$HOME/do.sh" +[ -x "$HOME/do.sh" ] && "$HOME/do.sh" & + +exit_trap() { + trap - SIGTERM + kill -- -$$ +} +trap exit_trap SIGINT SIGTERM EXIT +# I want to keep this script running so I can easily kill all daemons when i3 +# exits +wait $(jobs -rp) diff --git a/.config/i3/config##template b/.config/i3/config##template index 2b7a84b..2af8c10 100644 --- a/.config/i3/config##template +++ b/.config/i3/config##template @@ -25,11 +25,6 @@ for_window [class=".*"] border pixel 0 # font font pango:Inter 9 -# no idea what these do but they were in here by default -exec --no-startup-id xss-lock --transfer-sleep-lock -- i3lock --nofork -exec --no-startup-id nm-applet -set $refresh_i3status killall -SIGUSR1 i3status - floating_modifier $mod # Gaps @@ -41,7 +36,7 @@ bindsym $mod+n gaps inner current set -1; gaps outer current set 0 bindsym $mod+d gaps inner current set $inner_gaps; gaps outer current set $outer_gaps; # Autostart -exec "~/.config/i3/autostart" +exec --no-startup-id "{{ env.XDG_CONFIG_HOME }}/i3/autostart" # split in horizontal orientation bindsym $mod+bar split h |