From ec76f6264db80329bc8ac6172753f7dd45c7eed9 Mon Sep 17 00:00:00 2001 From: William Carroll Date: Thu, 16 Dec 2021 00:11:06 -0500 Subject: feat(wpcarro/marcus): Install xsecurelock TL;DR: - Install `xsecurelock` - Support screen-locking for personal (and corporate) devices Change-Id: Ife2ead109c60b69b817775d8d6524c6aece5f376 Reviewed-on: https://cl.tvl.fyi/c/depot/+/4354 Tested-by: BuildkiteCI Reviewed-by: wpcarro --- users/wpcarro/emacs/.emacs.d/wpc/window-manager.el | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'users/wpcarro/emacs/.emacs.d/wpc') diff --git a/users/wpcarro/emacs/.emacs.d/wpc/window-manager.el b/users/wpcarro/emacs/.emacs.d/wpc/window-manager.el index 6030461da6..0ab5a63d61 100644 --- a/users/wpcarro/emacs/.emacs.d/wpc/window-manager.el +++ b/users/wpcarro/emacs/.emacs.d/wpc/window-manager.el @@ -195,7 +195,9 @@ ;; TODO: Is there a shell-command API that accepts an alist and serializes it ;; into variables to pass to the shell command? (defconst window-manager--xsecurelock - "/usr/share/goobuntu-desktop-files/xsecurelock.sh" + (if (device-corporate?) + "/usr/share/goobuntu-desktop-files/xsecurelock.sh" + "xsecurelock") "Path to the proper xsecurelock executable. The other path to xsecurelock is /usr/bin/xsecurelock, which works fine, but it is not optimized for Goobuntu devices. Goobuntu attempts to check a user's @@ -347,7 +349,7 @@ predicate." (add-hook 'exwm-init-hook (lambda () - (display-arrange-primary) + ;; (display-arrange-primary) (window-manager--switch "Coding"))) (provide 'window-manager) -- cgit 1.4.1