mirror of
https://github.com/arthur-pbty/arthur-os.git
synced 2026-08-01 20:28:16 +02:00
Some users may choose to disable notification timeout for normal-level notifications to ensure no notifications are missed when the user is away from the screen. However, there are several Omarchy notifications that only serve as an immediate feedback for a user action, such as "Screensaver enabled" or "Editing config file foo.conf", for which disabling the timeout is not desirable. This commit drops the urgency level for such notification to low, allowing configuring a different timeout value for them. Notifications with an explicitly set timeout are excluded from this commit.
13 lines
287 B
Bash
Executable File
13 lines
287 B
Bash
Executable File
#!/bin/bash
|
|
|
|
STATE_FILE=~/.local/state/omarchy/toggles/screensaver-off
|
|
|
|
if [[ -f $STATE_FILE ]]; then
|
|
rm -f $STATE_FILE
|
|
notify-send -u low " Screensaver enabled"
|
|
else
|
|
mkdir -p "$(dirname $STATE_FILE)"
|
|
touch $STATE_FILE
|
|
notify-send -u low " Screensaver disabled"
|
|
fi
|