This commit is contained in:
2023-02-22 15:33:55 +01:00
parent f0dd76f2fb
commit 64be233740
14 changed files with 69 additions and 11 deletions
+12
View File
@@ -0,0 +1,12 @@
[Unit]
Description=Autocutsel
[Service]
Type = forking
Restart = on-failure
RestartSec = 10
ExecStartPre = /usr/bin/autocutsel -fork
ExecStart = /usr/bin/autocutsel -selection PRIMARY -fork
[Install]
WantedBy=default.target
@@ -0,0 +1,8 @@
[Unit]
Description=Logs display standby state to a file
[Service]
ExecStart=%h/dotfiles/bin/log-display-standby-state
[Install]
WantedBy=default.target
@@ -0,0 +1,11 @@
[Unit]
Description=Log display standby state every minute
Requires=display-standby-state-logger.service
[Timer]
Unit=display-standby-state-logger.service
OnCalendar=*-*-* *:*:00
[Install]
WantedBy=timers.target
+9
View File
@@ -0,0 +1,9 @@
[Unit]
Description=Automatic display switch
[Service]
ExecStart=display_switch
[Install]
WantedBy=default.target
+4 -3
View File
@@ -3,9 +3,10 @@ Description=swayidle: Manages lockscreen and display
[Service]
ExecStart=/sbin/swayidle \
timeout 300 /home/gregory/dotfiles/bin/screens-lock \
timeout 10 /home/gregory/dotfiles/bin/screens-off \
resume /home/gregory/dotfiles/bin/screens-on
timeout 300 %h/dotfiles/bin/screens-lock \
timeout 60 %h/dotfiles/bin/screens-off \
resume %h/dotfiles/bin/screens-on \
before-sleep %h/dotfiles/bin/screens-lock
[Install]
WantedBy=default.target
+1 -1
View File
@@ -2,7 +2,7 @@
Description=wl-clipsync: Synchronizes primary and clipboard paste buffers
[Service]
ExecStart=/home/gregory/go/path/bin/wl-clipsync -i 300ms
ExecStart=%h/go/path/bin/wl-clipsync -i 300ms
[Install]
WantedBy=default.target