diff --git a/i3/.config/i3/config b/i3/.config/i3/config index a5c23a1..a3bfd8f 100644 --- a/i3/.config/i3/config +++ b/i3/.config/i3/config @@ -199,8 +199,3 @@ for_window [class="^spotify$"] move to workspace 10 for_window [class="floating"] floating enable for_window [class="scratchpad"] floating enable for_window [class="scratchpad"] move scratchpad - -# autostart often used apps -# needs to be done like this to both automatically start the apps on correct workspace -# and not confine them there forever -exec $XDG_CONFIG_HOME/i3/scripts/i3-applications-autostart diff --git a/i3/.config/i3/scripts/i3-applications-autostart b/i3/.config/i3/scripts/i3-applications-autostart deleted file mode 100755 index 70857a1..0000000 --- a/i3/.config/i3/scripts/i3-applications-autostart +++ /dev/null @@ -1,34 +0,0 @@ -#!/usr/bin/env bash - -# Wait for program coming up -wait_for_program() { - n=0 - while true; do - # PID of last background command - if xdotool search --onlyvisible --pid $! 2>/dev/null; then - break - else - if [ $n -gt 200 ]; then - notify-send -u critical "Error during start: last program $! did not start fast enough" - break - else - n=$((n + 1)) - sleep 0.1 - fi - fi - done -} - -i3-msg "workspace number 2" -alacritty & -wait_for_program - -i3-msg "workspace number 10" -spotify & -wait_for_program - -i3-msg "workspace number 1" -qutebrowser & -wait_for_program - -i3-msg "workspace number 3"