From 1ce12a5070fd478ceb6be5dabf2ecbac881703ab Mon Sep 17 00:00:00 2001 From: pgrondek Date: Wed, 20 Nov 2019 23:17:04 +0100 Subject: [PATCH] [i3] Add redshift --- i3/Makefile | 4 ++-- i3/config | 3 +++ i3/redshift.mk | 11 +++++++++++ 3 files changed, 16 insertions(+), 2 deletions(-) create mode 100644 i3/redshift.mk diff --git a/i3/Makefile b/i3/Makefile index 948edc7..932f0c5 100644 --- a/i3/Makefile +++ b/i3/Makefile @@ -45,9 +45,9 @@ OUT=$(I3_CONFIG_OUT) $(DUNST_CONFIG_OUT) .PHONY: clean_install -clean_install: clean install +clean_install: clean install clean_playerctl clean_redshift clean: clean_i3 clean_dunst clean_compton clean_i3blocks clean_bins clean_playerctl -install: $(REQUIRED_BINS) install_i3 install_compton install_i3blocks install_bins clean_dunst install_playerctl +install: $(REQUIRED_BINS) install_i3 install_compton install_i3blocks install_bins clean_dunst install_playerctl install_redshift $(REQUIRED_BINS): $(ROOT_APT) install $(PACKAGES) diff --git a/i3/config b/i3/config index ca556c6..dc699aa 100644 --- a/i3/config +++ b/i3/config @@ -221,6 +221,9 @@ exec --no-startup-id compton --config ~/.config/compton.conf -b # polkit for authentication as root exec --no-startup-id /usr/lib/policykit-1-gnome/polkit-gnome-authentication-agent-1 +# redshift +exec --no-startup-id /usr/bin/redshift + # autolock exec xautolock -time 5 -locker ~/bin/lock -notify 10 diff --git a/i3/redshift.mk b/i3/redshift.mk new file mode 100644 index 0000000..a6be8a4 --- /dev/null +++ b/i3/redshift.mk @@ -0,0 +1,11 @@ +PACKAGE=redshift +BIN=/usr/bin/redshift +ROOT_APT=sudo aptitude + +install_redshift: $(BIN) + +$(BIN): + $(ROOT_APT) install $(PACKAGE) + +clean_redshift: + $(ROOT_APT) remove $(PACKAGE)