From 5eb9f20c12fe65c265212a8bf451b731cf9d764a Mon Sep 17 00:00:00 2001 From: littleblack111 Date: Tue, 8 Oct 2024 23:28:35 +0800 Subject: add(notify, autostart status): notify user if something like vpn is already on fix(wl-clip,dupe): removed dupe for wl-clip, now fixes it add(hyprsession): recover session --- dot-config/hypr/autostart.conf | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/dot-config/hypr/autostart.conf b/dot-config/hypr/autostart.conf index e4a898ed..dc707d8e 100644 --- a/dot-config/hypr/autostart.conf +++ b/dot-config/hypr/autostart.conf @@ -42,10 +42,10 @@ exec-once = fcitx5 -d # exec-once = aa-notify -p -s 1 -w 60 -f /var/log/audit/audit.log & # Clipboard history -exec-once = wl-paste --watch cliphist store & +# exec-once = wl-paste --watch cliphist store exec-once = wl-paste --type text --watch cliphist store exec-once = wl-paste --type image --watch cliphist store -exec-once = wl-clip-persist --clipboard regular +# exec-once = wl-clip-persist --clipboard regular # Notification agent exec-once = swaync @@ -77,3 +77,12 @@ exec-once = nextcloud --background exec-once = discord --start-minimized exec-once = beeper --no-sandbox --hidden # exec-once = echo 'ddcci 0x37' | sudo tee /sys/bus/i2c/devices/i2c-13/new_device + +# Notify if stuff is already started +exec-once = warp-cli status | grep Connect && notify-send 'warp-vpn' 'connected' +exec-once = pactl get-source-mute @DEFAULT_SOURCE@ | grep 'Mute: yes' >/dev/null && notify-send 'microphone' 'muted' +exec-once = modprobe uvcvideo || notify-send 'uvcvideo' 'disabled' +exec-once = pgrep -f gpu-screen-recorder && notify-send 'recorder' 'recording' + +# restore session +exec-once = hyprsession -- cgit v1.2.3