Switch to GNU stow
This commit is contained in:
parent
a2605c4254
commit
d34cecb27e
137 changed files with 39244 additions and 141 deletions
38
i3/.config/i3/scripts/i3-applications-autostart
Executable file
38
i3/.config/i3/scripts/i3-applications-autostart
Executable file
|
|
@ -0,0 +1,38 @@
|
|||
#!/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 -eq 200 ]; then
|
||||
notify-send -u critical "Error during start: last program $! did not started 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 9"
|
||||
keybase &
|
||||
wait_for_program
|
||||
|
||||
i3-msg "workspace number 1"
|
||||
qutebrowser &
|
||||
wait_for_program
|
||||
|
||||
i3-msg "workspace number 3"
|
||||
Loading…
Add table
Add a link
Reference in a new issue