From 50642c3a377def4c96f1fefdd8a4fe6535cb0e39 Mon Sep 17 00:00:00 2001 From: Sheldon Lee Date: Mon, 2 May 2022 17:39:16 +0800 Subject: [PATCH] Changed font, added window rules and now runs polkit authentication agent. --- .config/sway/config | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.config/sway/config b/.config/sway/config index c51fbe9..aba6008 100644 --- a/.config/sway/config +++ b/.config/sway/config @@ -4,6 +4,7 @@ # # Read `man 5 sway` for a complete reference. exec dbus-update-activation-environment --systemd WAYLAND_DISPLAY XDG_CURRENT_DESKTOP=sway +exec /usr/libexec/polkit-gnome-authentication-agent-1 ### Variables # @@ -25,7 +26,8 @@ set $blue #268bd2 set $cyan #2aa198 set $green #859900 # Font -set $font SourceCodePro Semibold 11px +#set $font SourceCodePro Semibold 11px +set $font FiraCode SemiBold 11px # Logo key. Use Mod1 for Alt. set $mod Mod4 # Home row direction keys, like vim @@ -41,7 +43,7 @@ set $term alacritty # # 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 $menucmd j4-dmenu-desktop --dmenu="~/.config/wm_scripts/menucmd" --no-exec set $menu dmenu_path | $menucmd | xargs swaymsg exec -- # Screenshot @@ -325,6 +327,8 @@ exec flatpak run com.discordapp.Discord # Application rules: # assign [app_id="firefox"] workspace 2:r +#for_window [title="^Discord — Mozilla Firefox"] move container to workspace 3:s +for_window [title="Firefox — Sharing Indicator"] floating enable, move position 50ppt 0px; for_window [class="discord"] move container to workspace 3:s assign [class="Steam"] workspace 4:t # Inhibit swayidle when discord is focused. Usefull when watching stream.