From 372815faa1f09aaa50c6170cc40164e21b1acaaf Mon Sep 17 00:00:00 2001 From: littleblack111 Date: Sun, 27 Oct 2024 23:10:14 +0800 Subject: change: added focus_on_activate false before hyprsession --- dot-config/hypr/autostart.conf | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/dot-config/hypr/autostart.conf b/dot-config/hypr/autostart.conf index 1c0900c5..58efc480 100644 --- a/dot-config/hypr/autostart.conf +++ b/dot-config/hypr/autostart.conf @@ -87,7 +87,8 @@ exec-once = modprobe uvcvideo || notify-send 'uvcvideo' 'disabled' exec-once = pgrep -f gpu-screen-recorder && notify-send 'recorder' 'recording' # restore session -exec-once = hyprsession +exec-once = hyprctl keyword misc:focus_on_activate false; hyprsession --mode load-and-exit; hyprctl keyword misc:focus_on_activate true +exec-once = hyprsession --mode save-only # spam of notification at start(e.g. chromium) exec-once = swaync-client --dnd-on && sleep 3 && swaync-client --dnd-off -- cgit v1.2.3