dotfiles/i3/scripte/start_alacritty.sh

10 lines
271 B
Bash
Raw Normal View History

2022-07-09 23:13:29 +02:00
#!/bin/bash
2022-07-10 10:04:29 +02:00
if ! pgrep -x "alacritty" > /dev/null
2022-07-09 23:13:29 +02:00
then
2022-07-10 09:59:24 +02:00
# wechsle zu workspace 1 und starte alacritty
i3-msg 'workspace 1; exec --no-startup-id /usr/local/bin/alacritty'
2022-07-09 23:13:29 +02:00
else
2022-07-10 10:04:29 +02:00
# wenn alacritty schon läuft wechsle nur zu workspace 1
2022-07-10 09:59:24 +02:00
i3-msg 'workspace 1'
2022-07-09 23:13:29 +02:00
fi