summaryrefslogtreecommitdiff
path: root/.config
diff options
context:
space:
mode:
authorSean Whitton <spwhitton@spwhitton.name>2022-03-22 09:04:37 -0700
committerSean Whitton <spwhitton@spwhitton.name>2022-03-22 09:05:28 -0700
commit0ca3a14056c57adf68289ae31375e3719dcabc7e (patch)
tree15687412285467c1fd21cb7abc724af24893914a /.config
parentfcb0a270d501eac92b52e05355b0d3046f0959e7 (diff)
downloaddotfiles-0ca3a14056c57adf68289ae31375e3719dcabc7e.tar.gz
switch to static, tiled wallpaper
I don't get to see my wallpaper often with i3/sway, so let's take advantage of the consistency that's possible with an image small enough to commit to git.
Diffstat (limited to '.config')
-rw-r--r--.config/sway/config16
1 files changed, 11 insertions, 5 deletions
diff --git a/.config/sway/config b/.config/sway/config
index 0e8e893f..9b38ca31 100644
--- a/.config/sway/config
+++ b/.config/sway/config
@@ -371,10 +371,16 @@ exec update-emacs-daemon-environment
exec_always fcitx5 -d --replace
-# Set solid colour as a fallback; select-wallpaper script in combination with
-# HAS-WALLPAPERS-ON-OUTPUTS Consfigurator property can be used to write
-# ~/.config/sway/$(hostname)/bg to set images on this machine's usual outputs,
-# and to start up swayidle with appropriate options.
-output * bg #FFFFF6 solid_color
+output * bg ~/lib/img/green_gobbler.png tile
+
+# Ideally we wouldn't try to call swaylock if the screen is already locked,
+# but discovering whether swaylock is already running in a way that avoids
+# races is difficult or impossible because swaylock doesn't have a mechanism
+# to report that it's successfully locked the screen other than daemonising.
+# So, until it does, the following means a lot of "failed to lock; already
+# locked?" messages on stderr.
+exec swayidle -w \
+ lock 'swaylock -f' before-sleep 'swaylock -f' timeout 300 'swaylock -f' \
+ timeout 300 'swaymsg "output * dpms off"' resume 'swaymsg "output * dpms on"'
include ~/.config/sway/$(hostname)/*