aboutsummaryrefslogtreecommitdiff
path: root/.bash_profile
diff options
context:
space:
mode:
authortdro <tdro@users.noreply.github.com>2023-01-21 01:47:35 -0500
committertdro <tdro@users.noreply.github.com>2023-01-21 01:47:35 -0500
commit2376f1b0c4195769aa6c47f2e2d10fe4a2e8a43a (patch)
tree719475e9fd5c7b81f74a034e7824df68e8d76801 /.bash_profile
parentf9eef6165b46e243d3d5cf4988dc414d7c7cb069 (diff)
downloaddotfiles-2376f1b0c4195769aa6c47f2e2d10fe4a2e8a43a.tar.gz
dotfiles-2376f1b0c4195769aa6c47f2e2d10fe4a2e8a43a.tar.bz2
dotfiles-2376f1b0c4195769aa6c47f2e2d10fe4a2e8a43a.zip
.bash_profile: Restart redshift if enabled
Diffstat (limited to '.bash_profile')
-rw-r--r--.bash_profile1
1 files changed, 1 insertions, 0 deletions
diff --git a/.bash_profile b/.bash_profile
index d986432..795bd03 100644
--- a/.bash_profile
+++ b/.bash_profile
@@ -16,6 +16,7 @@ prefixPath "$HOME/.local/bin/wrappers"
# auto login
[ "$EUID" != 0 ] && [ -z "$DISPLAY" ] && [ "$(tty)" = '/dev/tty1' ] \
&& command -v nix && nix-xorg-conf > "$HOME"/.config/X11/xorg.conf.d/00-modules.conf \
+ && { [ "$(systemctl --user is-enabled redshift)" = "enabled" ] && systemctl --user restart redshift & } \
&& exec sx
umask 0022