From 548c80ddc96c6f5ca191bba5fc32e34cc5458ad0 Mon Sep 17 00:00:00 2001 From: Michael Grote Date: Sat, 9 Jul 2022 23:13:29 +0200 Subject: [PATCH] i3: alacritty-start-script --- i3/config | 4 ++-- i3/scripte/start_alacritty.sh | 9 +++++++++ 2 files changed, 11 insertions(+), 2 deletions(-) create mode 100755 i3/scripte/start_alacritty.sh 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