aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2022-04-30 19:15:08 +1200
committerTom Ryder <tom@sanctum.geek.nz>2022-04-30 19:18:02 +1200
commit79a724ee37465c93d7af0e793b91b0ae551285fa (patch)
treebd63949a441323d03e123108ad56174ae1715fd8
parentCheck and execute ~/.fehbg rather than sourcing it (diff)
downloaddotfiles-79a724ee37465c93d7af0e793b91b0ae551285fa.tar.gz
dotfiles-79a724ee37465c93d7af0e793b91b0ae551285fa.zip
Move redshift files to dedicated target
-rw-r--r--Makefile6
-rw-r--r--X/xsession.d/redshift.sh3
-rw-r--r--redshift/redshift.conf (renamed from X/redshift.conf)0
-rw-r--r--redshift/xsession.d/redshift.sh2
4 files changed, 7 insertions, 4 deletions
diff --git a/Makefile b/Makefile
index 8cf0e3e8..03e67b67 100644
--- a/Makefile
+++ b/Makefile
@@ -41,6 +41,7 @@
install-pyenv \
install-rbenv \
install-readline \
+ install-redshift \
install-sh \
install-subversion \
install-systemd \
@@ -550,6 +551,10 @@ install-rbenv: install-sh
install-readline:
cp -p -- readline/inputrc $(HOME)/.inputrc
+install-redshift: install-x
+ cp -p -- redshift/redshift.conf $(XDG_CONFIG_HOME)
+ cp -p -- redshift/xsession.d/* $(HOME)/.xsession.d
+
install-sh: check-sh
mkdir -p -- $(HOME)/.profile.d $(HOME)/.shrc.d
cp -p -- sh/profile $(HOME)/.profile
@@ -634,7 +639,6 @@ install-x: check-xsession
$(XDG_CONFIG_HOME)/sxhkd \
$(HOME)/.xsession.d \
$(HOME)/.Xresources.d
- cp -p -- X/redshift.conf $(XDG_CONFIG_HOME)
cp -p -- X/sxhkdrc $(XDG_CONFIG_HOME)/sxhkd
cp -p -- X/xsession $(HOME)/.xsession
cp -p -- X/xsession.d/*.sh $(HOME)/.xsession.d
diff --git a/X/xsession.d/redshift.sh b/X/xsession.d/redshift.sh
deleted file mode 100644
index d5d58d8a..00000000
--- a/X/xsession.d/redshift.sh
+++ /dev/null
@@ -1,3 +0,0 @@
-# Start redshift(1)
-command -v redshift >/dev/null 2>&1 || return
-redshift &
diff --git a/X/redshift.conf b/redshift/redshift.conf
index 1e1de4ee..1e1de4ee 100644
--- a/X/redshift.conf
+++ b/redshift/redshift.conf
diff --git a/redshift/xsession.d/redshift.sh b/redshift/xsession.d/redshift.sh
new file mode 100644
index 00000000..929f564e
--- /dev/null
+++ b/redshift/xsession.d/redshift.sh
@@ -0,0 +1,2 @@
+# Start redshift(1)
+redshift &