systemd: fix gammastep

This commit is contained in:
lelgenio 2022-04-12 22:49:47 -03:00
parent 7c33d17c17
commit 62aadda8a1
3 changed files with 23 additions and 7 deletions

View File

@ -1,9 +1,3 @@
#!/bin/sh
if type curl; then
loc=`curl ipinfo.io/loc | sed 's/,/:/'`
else
loc="-30:-50"
fi
exec gammastep -l "$loc"
exec _gammastep

9
dotfiles/scripts/_gammastep Executable file
View File

@ -0,0 +1,9 @@
#!/bin/sh
if type curl; then
loc=`curl ipinfo.io/loc | sed 's/,/:/'`
else
loc="-30:-50"
fi
exec gammastep -l "$loc"

View File

@ -0,0 +1,13 @@
# {{ header() }}
[Unit]
Description=Wayland equivalent of autorandr.
Documentation=https://sr.ht/~emersion/kanshi/
PartOf=graphical-session.target
[Service]
Type=simple
ExecStart=/bin/env _gammastep
[Install]
WantedBy=sway-session.target