From 0fafaa2d8252943cd6ed6b988d3c0efe76bbf267 Mon Sep 17 00:00:00 2001 From: Thanos Apollo Date: Sun, 27 Aug 2023 08:54:59 +0300 Subject: desktop: Add slock & remove auto_tangle --- desktop.org | 19 ++++++++++++++++--- 1 file changed, 16 insertions(+), 3 deletions(-) (limited to 'desktop.org') diff --git a/desktop.org b/desktop.org index 9182080..62b049b 100644 --- a/desktop.org +++ b/desktop.org @@ -1,6 +1,5 @@ #+TITLE: General System Configurations #+PROPERTY: header-args :mkdirp yes -#+auto_tangle: t #+STARTUP: overview * Git @@ -26,7 +25,7 @@ #+end_src * gnupgp -#+begin_src conf :tangle (when (string= (system-name) "zeus") "yes") ~/.gnupg/gpg-agent.conf +#+begin_src conf :tangl ~/.gnupg/gpg-agent.conf default-cache-ttl 172800 max-cache-ttl 282800 pinentry-program /home/thanos/.stumpwm.d/modules/util/pinentry/stumpwm-pinentry @@ -523,7 +522,6 @@ #+end_src * Starship - #+begin_src conf :tangle ~/.config/starship.toml # Get editor completions based on the config schema "$schema" = 'https://starship.rs/config-schema.json' @@ -621,5 +619,20 @@ format = "via [🤖 $version](bold green) " #+end_src +* slock +#+begin_src conf :tangle "/sudo::/etc/systemd/system/slock@.service" + [Unit] + Description=Lock X session using slock for user %i + Before=sleep.target + + [Service] + User=%i + Environment=DISPLAY=:0 + ExecStartPre=/usr/bin/xset dpms force suspend + ExecStart=/usr/bin/slock + + [Install] + WantedBy=sleep.target +#+end_src -- cgit v1.2.3