i3: alacritty-start-script
This commit is contained in:
parent
7da935b2bc
commit
548c80ddc9
2 changed files with 11 additions and 2 deletions
|
@ -174,8 +174,8 @@ for_window [class="Yad" title="yad-calendar"] floating enable
|
||||||
bindsym $mod1+e exec fman
|
bindsym $mod1+e exec fman
|
||||||
|
|
||||||
# starte alacritty
|
# starte alacritty
|
||||||
bindsym $mod1+r exec alacritty
|
bindsym $mod1+r exec ~/dotfiles/i3/scripte/start_alacritty.sh
|
||||||
bindsym $mod1+Return exec alacritty
|
bindsym $mod1+Return exec ~/dotfiles/i3/scripte/start_alacritty.sh
|
||||||
|
|
||||||
# starte nextcloud
|
# starte nextcloud
|
||||||
exec --no-startup-id /usr/bin/nextcloud
|
exec --no-startup-id /usr/bin/nextcloud
|
||||||
|
|
9
i3/scripte/start_alacritty.sh
Executable file
9
i3/scripte/start_alacritty.sh
Executable file
|
@ -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
|
Loading…
Reference in a new issue