Lock your screen on SwayWM View article history Edit article

Published: , Updated:
Talks about: <a class="post-tag post-tag-screenlock" href="/tags/screenlock">screenlock</a>, and <a class="post-tag post-tag-swaywm" href="/tags/swaywm">swaywm</a>

SwayWM users can use swaylock to lock their screen. Place the following key binding in your Sway configuration:

# lock your screen
bindsym $mod+Ctrl+l exec swaylock --color 000000

$mod+Ctrl+l will lock your screen and turn it to black. The --color flag allows any color in the form of rrggbb[aa].