From 06f130cb86ca6866cefc22c845aa9d7d5a4f5919 Mon Sep 17 00:00:00 2001 From: Aminda Suomalainen Date: Fri, 28 Oct 2022 19:37:48 +0300 Subject: [PATCH] sway config: add brightness keys and slow gtk start workaround --- conf/sway/config | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/conf/sway/config b/conf/sway/config index 7577542d..0b72f312 100644 --- a/conf/sway/config +++ b/conf/sway/config @@ -230,9 +230,16 @@ bindsym XF86Calculator exec --no-startup-id galculator # Known from Windows display configuration bindsym $mod+p exec wdisplays bindsym $mod+Shift+p exec wdisplays +# Brightness from Sway user FAQ +bindsym --locked XF86MonBrightnessDown exec brightnessctl set 5%- +bindsym --locked XF86MonBrightnessUp exec brightnessctl set 5%+ # Reveal xwayland for_window [shell=".*"] title_format "%title :: %shell" +# Slow gtk start workaround +exec systemctl --user import-environment +exec dbus-update-activation-environment --systemd DISPLAY WAYLAND_DISPLAY SWAYSOCK + include /etc/sway/config.d/* include ~/.config/sway/config.d/*.conf