From b83929bcbd5f5be045c17df76c0b64ca1f8b9b43 Mon Sep 17 00:00:00 2001 From: Marty Oehme Date: Fri, 18 Sep 2020 13:16:09 +0200 Subject: [PATCH] services: Move flashfocus to systemd service Removed manual initialization of flashfocus from xinitrc, enabled the service in systemd. Changed the restart timer to 5 seconds, to mirror other X-dependent user services to circumvent systemd being too eager to start the service before X is ready on booting. --- X/.config/xresources/xinitrc | 2 -- .../.config/systemd/user/flashfocus.service.d/override.conf | 2 ++ .../user/graphical-session.target.wants/flashfocus.service | 1 + 3 files changed, 3 insertions(+), 2 deletions(-) create mode 100644 services/.config/systemd/user/flashfocus.service.d/override.conf create mode 120000 services/.config/systemd/user/graphical-session.target.wants/flashfocus.service diff --git a/X/.config/xresources/xinitrc b/X/.config/xresources/xinitrc index bd3058a..6bc3fcd 100644 --- a/X/.config/xresources/xinitrc +++ b/X/.config/xresources/xinitrc @@ -56,8 +56,6 @@ type xcape >/dev/null 2>&1 && xcape -e 'Control_L=Escape' -t 500 type unclutter >/dev/null 2>&1 && unclutter & # picom is the maintained version of desktop compositor compton type picom >/dev/null 2>&1 && picom & -# flashfocus 'flashes' windows as they gain focus -type flashfocus >/dev/null 3>&1 && flashfocus --flash-lone-windows never & # if sxhkd - the key-binding daemon is installed, start it up type sxhkd >/dev/null 2>&1 && sxhkd-piped & diff --git a/services/.config/systemd/user/flashfocus.service.d/override.conf b/services/.config/systemd/user/flashfocus.service.d/override.conf new file mode 100644 index 0000000..b7063fd --- /dev/null +++ b/services/.config/systemd/user/flashfocus.service.d/override.conf @@ -0,0 +1,2 @@ +[Service] +RestartSec=5 diff --git a/services/.config/systemd/user/graphical-session.target.wants/flashfocus.service b/services/.config/systemd/user/graphical-session.target.wants/flashfocus.service new file mode 120000 index 0000000..e9696ac --- /dev/null +++ b/services/.config/systemd/user/graphical-session.target.wants/flashfocus.service @@ -0,0 +1 @@ +/usr/lib/systemd/user/flashfocus.service \ No newline at end of file