systemd: fix gammastep
This commit is contained in:
parent
7c33d17c17
commit
62aadda8a1
|
@ -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
|
||||
|
|
|
@ -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"
|
|
@ -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
|
Reference in New Issue