dotfiles/scripts/i3/start_alacritty.sh
2022-07-21 14:51:16 +02:00

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