From 2376f1b0c4195769aa6c47f2e2d10fe4a2e8a43a Mon Sep 17 00:00:00 2001 From: tdro Date: Sat, 21 Jan 2023 01:47:35 -0500 Subject: .bash_profile: Restart redshift if enabled --- .bash_profile | 1 + 1 file changed, 1 insertion(+) (limited to '.bash_profile') 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 -- cgit v1.2.3