Changed font, added window rules and now runs polkit authentication

agent.
This commit is contained in:
Sheldon Lee 2022-05-02 17:39:16 +08:00
parent af8ca807eb
commit 50642c3a37

View File

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