summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlittleblack111 <littleblack11111@gmail.com>2024-10-27 23:10:14 +0800
committerlittleblack111 <littleblack11111@gmail.com>2024-10-27 23:10:14 +0800
commit372815faa1f09aaa50c6170cc40164e21b1acaaf (patch)
tree3b0f369b4dce239a20ed7a8f729b1432ec3aa68d
parent8641de5938135d8901438273a61541b6ef53190b (diff)
change: added focus_on_activate false before hyprsession
-rw-r--r--dot-config/hypr/autostart.conf3
1 files changed, 2 insertions, 1 deletions
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