summaryrefslogtreecommitdiff
path: root/desktop.org
diff options
context:
space:
mode:
authorThanos Apollo <[email protected]>2023-08-27 08:54:59 +0300
committerThanos Apollo <[email protected]>2023-08-27 09:05:54 +0300
commit0fafaa2d8252943cd6ed6b988d3c0efe76bbf267 (patch)
treebf3df7359935e00f26104bc60f8191d0bea73d71 /desktop.org
parentf486d2fa1e11631cd5de3a93f93bf730dc0c2998 (diff)
desktop: Add slock & remove auto_tangle
Diffstat (limited to 'desktop.org')
-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