From 659e9d81cbb5fda8d77e8ab2f7b4cc3fcfe74c20 Mon Sep 17 00:00:00 2001 From: LMBishop <13875753+LMBishop@users.noreply.github.com> Date: Sun, 16 Jul 2023 23:50:44 +0100 Subject: Fix multiple instances of wofi appearing --- sway/config | 4 ++-- wofi/config | 1 - 2 files changed, 2 insertions(+), 3 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' diff --git a/wofi/config b/wofi/config index 395ab21..3730661 100644 --- a/wofi/config +++ b/wofi/config @@ -6,4 +6,3 @@ no_actions=true location=2 drun-display_generic=true -drun-print_command=true -- cgit v1.2.3-70-g09d2