From f6c2cd83824bbfa10c8d79fbc2e47c73cd2e231a Mon Sep 17 00:00:00 2001 From: Ryan Kavanagh Date: Fri, 5 Jan 2024 16:45:34 -0500 Subject: [sway] disable swayidle when dspdfviewer is running; set random bg --- dot_config/sway/config | 25 +++++++++++++++---------- 1 file changed, 15 insertions(+), 10 deletions(-) diff --git a/dot_config/sway/config b/dot_config/sway/config index 4cb7e9a..e015772 100644 --- a/dot_config/sway/config +++ b/dot_config/sway/config @@ -27,21 +27,21 @@ for_window [con_mark=$alphamark] opacity set $trans include /etc/sway/config-vars.d/* -### Output configuration -# -# Default wallpaper (more resolutions are available in /usr/share/backgrounds/sway/) -output * bg /usr/share/backgrounds/sway/Sway_Wallpaper_Blue_1920x1080.png fill - +### Things to run at start of session exec { - # Idle configuration - swayidle -w \ - timeout 180 $lock \ - timeout 240 'swaymsg "output * dpms off"' resume 'swaymsg "output * dpms on"' \ - before-sleep $lock + # set a random background + swaybg-random ~/bg # use footclient/footserver as our terminal foot -s } +### Idle configuration +exec swayidle -w \ + timeout 180 $lock \ + timeout 240 'swaymsg "output * dpms off"' resume 'swaymsg "output * dpms on"' \ + before-sleep $lock +for_window [app_id="dspdfviewer"] inhibit_idle focus + ### Input configuration # @@ -159,6 +159,11 @@ bindsym --to-code { # If there are multiple scratchpad windows, this command cycles through them. $mod+minus scratchpad show +# +# Marking: +# +# $mod+m exec + } bindgesture swipe:right workspace prev -- cgit v1.2.3