about summary refs log tree commit diff
path: root/configs/shared/misc
diff options
context:
space:
mode:
authorWilliam Carroll <wpcarro@gmail.com>2019-05-13T15·35+0100
committerWilliam Carroll <wpcarro@gmail.com>2019-05-13T15·35+0100
commita59605c756b614bd5c536fe03a643b73ac04d1f2 (patch)
tree76ce0280594f754d39bb1a20466ea4c8e71b83c6 /configs/shared/misc
parentaafc240c1666d123c11df1d3710ede7c61f1d27c (diff)
Support alternative lock screen
Also adds some rules for the Compton configuration so, that the lock screen
isn't transparent.
Diffstat (limited to 'configs/shared/misc')
-rw-r--r--configs/shared/misc/.config/compton.conf14
-rw-r--r--configs/shared/misc/.config/i3/config.shared4
2 files changed, 14 insertions, 4 deletions
diff --git a/configs/shared/misc/.config/compton.conf b/configs/shared/misc/.config/compton.conf
index 51e8c8aaa1c4..ae06b19aba8f 100644
--- a/configs/shared/misc/.config/compton.conf
+++ b/configs/shared/misc/.config/compton.conf
@@ -10,5 +10,15 @@ inactive-opacity = 0.8;
 
 # transitions
 fading = true;
-fade-in-step = 0.03;
-fade-out-step = 0.03;
\ No newline at end of file
+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'" ];
diff --git a/configs/shared/misc/.config/i3/config.shared b/configs/shared/misc/.config/i3/config.shared
index 2e3926687962..1cf570a82210 100644
--- a/configs/shared/misc/.config/i3/config.shared
+++ b/configs/shared/misc/.config/i3/config.shared
@@ -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