From de597ba5198dae2a5b51416d17e99da2f6bab362 Mon Sep 17 00:00:00 2001 From: ItsDrike Date: Tue, 17 Aug 2021 17:14:56 +0200 Subject: [PATCH 1/5] Add mlocate pkg --- packages.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/packages.yaml b/packages.yaml index 81667a6..5357b2e 100644 --- a/packages.yaml +++ b/packages.yaml @@ -23,6 +23,7 @@ pacman: - links # Terminal text-only web browser - lshw # List hardware components and their attributes - bat # Colored cat with tons of cool options + - mlocate # A tool for quick system file searching by building an index - httpie # Add comman for obtaining http info from webpages - calcurse # Terminal calendar and event planner #- figlet # generate ascii text banners in terminal From 7651f5e7d3230a91799b52713076d8f0ea1d8cb4 Mon Sep 17 00:00:00 2001 From: ItsDrike Date: Thu, 19 Aug 2021 01:42:17 +0200 Subject: [PATCH 2/5] Add screen locking support --- home/.config/x11/xprofile | 7 +++++++ packages.yaml | 3 ++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/home/.config/x11/xprofile b/home/.config/x11/xprofile index c2e060c..680cf5e 100644 --- a/home/.config/x11/xprofile +++ b/home/.config/x11/xprofile @@ -6,6 +6,13 @@ # Set monitor order xrandr --output HDMI-1 --auto --output eDP-1 --right-of HDMI-1 --auto +# Set X11 lockscreen delays (DPMS) +xset s on +xset s 600 5 # 10 minutes, 5s for dimmer + +# XSS lock with xsecurelock +xss-lock -n /usr/lib/xsecurelock/dimmer -l -- xsecurelock + # Set the background with a custom `setbg` script setbg & diff --git a/packages.yaml b/packages.yaml index 81667a6..bca7e04 100644 --- a/packages.yaml +++ b/packages.yaml @@ -69,8 +69,9 @@ pacman: - xmonad - xmonad-contrib - xmobar + - xss-lock + - xsecurelock - numlockx - #- lightdm # GUI - trayer # System tray From ef45a89ca4aa43fa63120b11171356e66a9e587b Mon Sep 17 00:00:00 2001 From: ItsDrike Date: Thu, 19 Aug 2021 02:09:44 +0200 Subject: [PATCH 3/5] Don't display hostname on lockscreen --- home/.config/shell/environment | 1 + 1 file changed, 1 insertion(+) diff --git a/home/.config/shell/environment b/home/.config/shell/environment index e5d73a0..74c9b58 100755 --- a/home/.config/shell/environment +++ b/home/.config/shell/environment @@ -57,5 +57,6 @@ fi # Other program settings export SUDO_ASKPASS="$HOME/.local/bin/scripts/dmenu/dmenupass" export PIPENV_VENV_IN_PROJECT=1 # Force pipenv to create new environments within projects ./.venv +export XSECURELOCK_SHOW_HOSTNAME=0 # Don't show hostname in xsecurelock #export QT_QPA_PLATFORMTHEME="gtk2" # Have QT use gtk2 theme. From 71c18ed1def1f9e6f9f7f0564fd823e33da79242 Mon Sep 17 00:00:00 2001 From: ItsDrike Date: Thu, 19 Aug 2021 02:14:44 +0200 Subject: [PATCH 4/5] Add lock screen shortcut --- home/.config/xmonad/xmonad.hs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/home/.config/xmonad/xmonad.hs b/home/.config/xmonad/xmonad.hs index 85bd5b1..393a9e9 100644 --- a/home/.config/xmonad/xmonad.hs +++ b/home/.config/xmonad/xmonad.hs @@ -104,6 +104,9 @@ myKeys = [ ("M-S-r", spawn "xmonad --recompile; xmonad --restart") -- Recompiles xmonad , ("M-S-q", io exitSuccess) -- Quits xmonad + -- Lock screen + , ("C-M-l", spawn "xset s activate") -- Send DPMS trigger for lockscreen + -- Programs , ("M-b", spawn (myBrowser)) , ("M-", spawn (myTerminal)) From 965f9029fb5a3a9a602322eabf881f9c21f1c518 Mon Sep 17 00:00:00 2001 From: ItsDrike Date: Thu, 19 Aug 2021 02:15:09 +0200 Subject: [PATCH 5/5] Run xss-lock detached --- home/.config/x11/xprofile | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/home/.config/x11/xprofile b/home/.config/x11/xprofile index 680cf5e..80d93a8 100644 --- a/home/.config/x11/xprofile +++ b/home/.config/x11/xprofile @@ -4,14 +4,14 @@ # if you use startx/xinit this file should also be soruced. # Set monitor order -xrandr --output HDMI-1 --auto --output eDP-1 --right-of HDMI-1 --auto +xrandr --output HDMI-1 --auto --output eDP-1 --right-of HDMI-1 --auto & # Set X11 lockscreen delays (DPMS) -xset s on -xset s 600 5 # 10 minutes, 5s for dimmer +xset s on & +xset s 600 5 & # 10 minutes, 5s for dimmer # XSS lock with xsecurelock -xss-lock -n /usr/lib/xsecurelock/dimmer -l -- xsecurelock +xss-lock -n /usr/lib/xsecurelock/dimmer -l -- xsecurelock & # Set the background with a custom `setbg` script setbg &