Support alternative lock screen

Also adds some rules for the Compton configuration so, that the lock screen
isn't transparent.
This commit is contained in:
William Carroll 2019-05-13 16:35:38 +01:00
parent aafc240c16
commit a59605c756
5 changed files with 28 additions and 5 deletions

View file

@ -10,5 +10,15 @@ inactive-opacity = 0.8;
# transitions
fading = true;
fade-in-step = 0.03;
fade-out-step = 0.03;
fade-in-step = 0.07;
fade-out-step = 0.07;
# lock screen
# NOTE: Need this rule here because I set XSECURELOCK_NO_COMPOSITE=1 in
# ~/.profile. Without this, the lock screen will adopt the opacity settings
# above, which is a security risk if you lock your screen while it has sensitive
# content on it.
#
# NOTE: For some reason, `100:class_g` doesn't work, so settling for
# `99:class_g` instead.
opacity-rule = [ "99:class_g = 'xsecurelock'" ];

View file

@ -120,8 +120,8 @@ bindsym $mod+v split vertical
bindsym $mod+Shift+v split horizontal
# lock the screen (Window's famous Ctrl-Alt-Delete)
bindsym $mod+Ctrl+Delete exec "/usr/share/goobuntu-desktop-files/xsecurelock.sh"
bindsym $mod+Shift+q exec "/usr/share/goobuntu-desktop-files/xsecurelock.sh"
bindsym $mod+Ctrl+Delete exec xsecurelock
bindsym $mod+Shift+q exec xsecurelock
# sound applet
exec --no-startup-id gnome-sound-applet