summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--desktop.org19
1 files changed, 16 insertions, 3 deletions
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/[email protected]"
+ [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