From 04efb1bfa4982c448c97da88b1b3ff21ca2a0403 Mon Sep 17 00:00:00 2001 From: Sheldon Lee Date: Fri, 1 Apr 2022 17:58:44 +0800 Subject: [PATCH] Menu command now uses own script to determint command. Also some rule changes for certain applications in gentoo. --- .config/sway/config | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/.config/sway/config b/.config/sway/config index 722930b..57fc5b4 100644 --- a/.config/sway/config +++ b/.config/sway/config @@ -37,8 +37,12 @@ set $term alacritty # Your preferred application launcher # Note: pass the final command to swaymsg so that the resulting window can be opened # on the original workspace that the command was run on. -set $menucmd bemenu -l 10 --scrollbar always --fn '$font' --tb '$base02' --tf '$green' --fb '$base03' --ff '$base0' --nb '$base03' --nf '$base0' --sb '$base02' --sf 'cyan' --hb '$base02' --hf '$cyan' --scb '$base02' --scf '$cyan' +# +# This line is was the equivalent to the bemenu command in ~/.config/wm_scripts/menucmd +#set $menucmd bemenu -l 10 --scrollbar always --fn '$font' --tb '$base02' --tf '$green' --fb '$base03' --ff '$base0' --nb '$base03' --nf '$base0' --sb '$base02' --sf 'cyan' --hb '$base02' --hf '$cyan' --scb '$base02' --scf '$cyan' +set $menucmd j4-dmenu-desktop --dmenu=menucmd --no-exec set $menu dmenu_path | $menucmd | xargs swaymsg exec -- + # Screenshot set $screenshot "~/.config/wm_scripts/screenshot.sh" @@ -88,6 +92,7 @@ exec swayidle -w \ # } # input 1133:50503:Logitech_USB_Receiver accel_profile flat + input 1133:16500:Logitech_G304 accel_profile flat # You can get the names of your inputs by running: swaymsg -t get_inputs # Read `man 5 sway-input` for more information about this section. @@ -280,7 +285,7 @@ bar { urgent_workspace $cyan $red $base03 } font pango:$font - tray_output primary + #tray_output primary } # @@ -309,7 +314,7 @@ exec alacritty exec firefox exec flatpak run com.discordapp.Discord -assign [class="firefox"] workspace 2:r +assign [app_id="firefox"] workspace 2:r for_window [class="discord"] move container to workspace 3:s assign [class="Steam"] workspace 4:t