From d8078fdba80409193d5ef717741077575a8353a7 Mon Sep 17 00:00:00 2001 From: Craig Jennings Date: Sun, 25 May 2025 15:20:11 -0500 Subject: adding redshift and getting geoclue to work --- archsetup | 2 ++ dotfiles/system/.local/bin/startdwm | 1 + scripts/redshift.sh | 18 ++++++++++++++++++ 3 files changed, 21 insertions(+) create mode 100755 scripts/redshift.sh 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 -- cgit v1.2.3