summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xarchsetup2
-rwxr-xr-xdotfiles/system/.local/bin/startdwm1
-rwxr-xr-xscripts/redshift.sh18
3 files changed, 21 insertions, 0 deletions
diff --git a/archsetup b/archsetup
index 9406715..602736f 100755
--- a/archsetup
+++ b/archsetup
@@ -527,6 +527,8 @@ desktop_environment() {
pacman_install exfat-utils
pacman_install lshw
pacman_install ntfs-3g
+ pacman_install redshift
+ pacman_install libappindicator-gtk3 # required by some applets
pacman_install sshfs
pacman_install testdisk
pacman_install tickrs
diff --git a/dotfiles/system/.local/bin/startdwm b/dotfiles/system/.local/bin/startdwm
index 2f2628d..c6aef7a 100755
--- a/dotfiles/system/.local/bin/startdwm
+++ b/dotfiles/system/.local/bin/startdwm
@@ -31,6 +31,7 @@ emacs --daemon &
nitrogen --restore &
nm-applet &
blueman-applet &
+redshift-gtk &
battery_monitor &
mpd &
caffeine &
diff --git a/scripts/redshift.sh b/scripts/redshift.sh
new file mode 100755
index 0000000..1ecef7d
--- /dev/null
+++ b/scripts/redshift.sh
@@ -0,0 +1,18 @@
+#!/bin/sh
+
+# sudo pacman -S --noconfirm redshift libappindicator-gtk3
+
+mkdir -p ~/.config/systemd/user/
+cat << EOF > ~/.config/systemd/user/geoclue-agent.service
+[Unit]
+Description=redshift needs to get a (geo)clue
+
+[Service]
+ExecStart=/usr/lib/geoclue-2.0/demos/agent
+
+[Install]
+WantedBy=default.target
+EOF
+
+systemctl --user enable geoclue-agent.service
+systemctl --user start geoclue-agent.service