diff --git a/i3/config b/i3/config index 68bff8c..0420406 100644 --- a/i3/config +++ b/i3/config @@ -174,8 +174,8 @@ for_window [class="Yad" title="yad-calendar"] floating enable bindsym $mod1+e exec fman # starte alacritty -bindsym $mod1+r exec alacritty -bindsym $mod1+Return exec alacritty +bindsym $mod1+r exec ~/dotfiles/i3/scripte/start_alacritty.sh +bindsym $mod1+Return exec ~/dotfiles/i3/scripte/start_alacritty.sh # starte nextcloud exec --no-startup-id /usr/bin/nextcloud diff --git a/i3/scripte/start_alacritty.sh b/i3/scripte/start_alacritty.sh new file mode 100755 index 0000000..aa38446 --- /dev/null +++ b/i3/scripte/start_alacritty.sh @@ -0,0 +1,9 @@ +#!/bin/bash +if ! pgrep -x "alacritty" > /dev/null +then + # läuft bereits + i3-msg 'workspace 1'; /usr/local/bin/alacritty +else + # starte + echo starte +fi