Skip to content

Commit 556bd6e

Browse files
committed
.config/sway: swaylock: Avoid syntax error when display unplugged
Notes: - `*_output_name` macro vars expand only when the display is connected - This is due to subshell expansion & parsing caveats introduced by 045074d - Caused by: Workaround hack for issue that will be fixed by swaywm/swaylock#368
1 parent bb847a6 commit 556bd6e

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

dot_config/sway/definitions.d/02-override-swaylock.conf

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,9 @@
66
### Lockscreen configuration
77
# Set long options in config file: ~/.config/swaylock/config
88
# Otherwise, we get segfault from swayidle PID
9-
set $locking swaylock --daemonize --image "$pikvm_output_name:/usr/share/backgrounds/sway/Sway_Wallpaper_Blue_1920x1080.png" --image "$vizio_m601d_output_name:/usr/share/backgrounds/wizard4-by-rfk1ll.jpg" --image "$lg_oled_output_name:${XDG_PICTURES_DIR}/backgrounds/oled-pure-black-3840x2160.png"
9+
## NOTE: *_output_name macro vars expand only when the display is connected!
10+
#set $locking swaylock --debug --daemonize --image "$pikvm_output_name:/usr/share/backgrounds/sway/Sway_Wallpaper_Blue_1920x1080.png" --image "$vizio_m601d_output_name:/usr/share/backgrounds/wizard4-by-rfk1ll.jpg" --image "$lg_oled_output_name:${XDG_PICTURES_DIR}/backgrounds/oled-pure-black-3840x2160.png"
11+
set $locking swaylock --daemonize --image $vizio_m601d_output_name:/usr/share/backgrounds/wizard4-by-rfk1ll.jpg --image "$lg_oled_output_name:${XDG_PICTURES_DIR}/backgrounds/oled-pure-black-3840x2160.png"
1012

1113
### Idle configuration
1214
# This will lock your screen after 300 seconds of inactivity, then turn off

0 commit comments

Comments
 (0)