10 lines
322 B
Bash
Executable file
10 lines
322 B
Bash
Executable file
#!/bin/bash
|
|
if ! pgrep -x "alacritty" > /dev/null
|
|
then
|
|
# wechsle zu workspace 1 und starte alacritty
|
|
i3-msg 'workspace 1; exec --no-startup-id /usr/local/bin/alacritty'
|
|
else
|
|
# wenn alacritty schon läuft wechsle nur zu workspace 1
|
|
dunstify -u low "alacritty is already running"
|
|
i3-msg 'workspace 1'
|
|
fi
|