1
0
mirror of https://github.com/pgrondek/config.git synced 2024-11-25 13:16:01 +00:00

[i3] Add redshift

This commit is contained in:
pgrondek 2019-11-20 23:17:04 +01:00
parent 204abc1ebd
commit 1ce12a5070
3 changed files with 16 additions and 2 deletions

View File

@ -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)

View File

@ -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

11
i3/redshift.mk Normal file
View File

@ -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)