Menu command now uses own script to determint command.

Also some rule changes for certain applications in gentoo.
This commit is contained in:
Sheldon Lee 2022-04-01 17:58:44 +08:00
parent 612caeabaf
commit 04efb1bfa4

View File

@ -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