aboutsummaryrefslogtreecommitdiffstats
path: root/sway
diff options
context:
space:
mode:
authorLMBishop <13875753+LMBishop@users.noreply.github.com>2023-07-16 23:50:44 +0100
committerLMBishop <13875753+LMBishop@users.noreply.github.com>2023-07-16 23:50:44 +0100
commit659e9d81cbb5fda8d77e8ab2f7b4cc3fcfe74c20 (patch)
tree2a8e48a7b22aa10f98927b810b0fde56279bb760 /sway
parente106fc0cc2c604101ceb8c0385334c4a31575dd9 (diff)
Fix multiple instances of wofi appearing
Diffstat (limited to 'sway')
-rw-r--r--sway/config4
1 files changed, 2 insertions, 2 deletions
diff --git a/sway/config b/sway/config
index eb80318..985bf95 100644
--- a/sway/config
+++ b/sway/config
@@ -8,7 +8,7 @@ set $down j
set $up k
set $right l
set $term alacritty
-set $menu wofi | xargs swaymsg exec
+set $menu wofi
# Colours
set $cl_high #434e59
@@ -65,7 +65,7 @@ for_window [app_id="termfloat"] resize set width 900
bindsym $mod+Return exec $term
bindsym $mod+Shift+Return exec $term --class="termfloat"
-bindsym $mod+d exec $menu
+bindsym $mod+d exec pgrep -x wofi >/dev/null 2>&1 && killall wofi || $menu
bindsym $mod+Shift+c reload
bindsym $mod+Shift+e exec swaynag -t warning -m 'You pressed the exit shortcut. Do you really want to exit sway? This will end your Wayland session.' -B 'Yes, exit sway' 'swaymsg exit'