diff options
author | Ryan Kavanagh <rak@rak.ac> | 2024-01-05 16:45:34 -0500 |
---|---|---|
committer | Ryan Kavanagh <rak@rak.ac> | 2024-01-05 16:45:34 -0500 |
commit | f6c2cd83824bbfa10c8d79fbc2e47c73cd2e231a (patch) | |
tree | e879fdaea41aa85aae9243cd336d1b94a1f1638d /dot_config/sway | |
parent | kanshi config for SH-R810 (diff) |
[sway] disable swayidle when dspdfviewer is running; set random bg
Diffstat (limited to 'dot_config/sway')
-rw-r--r-- | dot_config/sway/config | 25 |
1 files 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 |