i3: Remove i3 autostart package

The application autostart takes too long and is more intrusive than
anticipated. If I want to use qutebrowser, I can just start qutebrowser
on my and don't need to wait for i3 to do it for me --- especially since
the starting procedure takes a while and the application starts on the
wrong workspace anyways when it autostarts while I change desktops.

Spotify is not installed currently and throws an error each time, so
that is also not very useful.

An option for this to make a return might be as automatically starting
systemd services, which quickly switch to the correct workspace when the
application actually starts up -- but it is probably not worth the
hassle.

Lastly, this let's me get rid of a script in the i3 configuration
directory, which did not really belong there anyways with the XDG
distinction of 'configuration' and 'data'.
This commit is contained in:
Marty Oehme 2020-09-23 16:47:42 +02:00
parent e015c4b5f1
commit 51e0d82ce9
Signed by: Marty
GPG key ID: B7538B8F50A1C800
2 changed files with 0 additions and 39 deletions

View file

@ -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

View file

@ -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"