aboutsummaryrefslogtreecommitdiff
path: root/.config/i3
diff options
context:
space:
mode:
Diffstat (limited to '.config/i3')
-rw-r--r--.config/i3/autostart##template15
-rw-r--r--.config/i3/config##template2
2 files changed, 7 insertions, 10 deletions
diff --git a/.config/i3/autostart##template b/.config/i3/autostart##template
index 6d54ff7..23eb199 100644
--- a/.config/i3/autostart##template
+++ b/.config/i3/autostart##template
@@ -1,18 +1,15 @@
#!/bin/sh
+. ~/.profile
/usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1 &
-{% if yadm.hostname == "thoncc" %}
-cat ~/.config/X11/base ~/.config/X11/light | xrdb &
-{% else %}
-cat ~/.config/X11/base ~/.config/X11/dark | xrdb &
-{% endif %}
+cat "$XDG_CONFIG_HOME/X11/$(cat "$XDG_DATA_HOME/mode/active")" | xrdb -merge &
polybar &
-zsh -c "rwall" &
+rwall &
picom -b
xbanish &
dunst &
autocutsel &
fcitx5 -d
-zsh -c "xbindkeys -f ~/.config/xbindkeys/main"
+xbindkeys -f "~/.config/xbindkeys/main"
{% if yadm.hostname == "thoncc" %}
xdimmer -t 45 -p 3 &
light-locker --no-late-locking &
@@ -20,12 +17,12 @@ light-locker --no-late-locking &
redshift -l 52:6 &
nicotine &
{% endif %}
-zsh -c "flashfocus" &
+flashfocus &
# bw unlock <password> --raw | keyctl padd user bw_session @u
sh ~/.config/i3/unlock_bitwarden &
# auto start lazy script after everything else
sleep 2
-[[ -f ~/do.sh ]] && source ~/do.sh
+[ -f "~/do.sh" ] && . "~/do.sh"
diff --git a/.config/i3/config##template b/.config/i3/config##template
index 49a2caf..2b7a84b 100644
--- a/.config/i3/config##template
+++ b/.config/i3/config##template
@@ -41,7 +41,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 "sh ~/.config/i3/autostart"
+exec "~/.config/i3/autostart"
# split in horizontal orientation
bindsym $mod+bar split h