diff options
author | Roger Gonzalez <roger@rogs.me> | 2024-08-07 09:42:07 -0300 |
---|---|---|
committer | Roger Gonzalez <roger@rogs.me> | 2024-08-07 09:42:07 -0300 |
commit | 5c4a2489186232248995909ba35105053efa3d60 (patch) | |
tree | 941cb24aa07d27b06ae4c74a477f9c9d76212ab3 /.config/i3/scripts | |
parent | 2e9544cb385877770c1f3a71e209a8743a4a0793 (diff) |
Added dnd mode and general i3 fixes
Diffstat (limited to '.config/i3/scripts')
-rwxr-xr-x | .config/i3/scripts/i3lock_script.sh | 11 | ||||
-rwxr-xr-x | .config/i3/scripts/toggle_dnd.sh | 10 |
2 files changed, 21 insertions, 0 deletions
diff --git a/.config/i3/scripts/i3lock_script.sh b/.config/i3/scripts/i3lock_script.sh new file mode 100755 index 00000000..4af57b56 --- /dev/null +++ b/.config/i3/scripts/i3lock_script.sh @@ -0,0 +1,11 @@ +#!/bin/bash +# +# | '__/ _ \ / _` / __| Roger González +# | | | (_) | (_| \__ \ https://rogs.me +# |_| \___/ \__, |___/ https://git.rogs.me +# |___/ +# +scrot /tmp/screen.png +xwobf -s 11 /tmp/screen.png +i3lock -i /tmp/screen.png +rm /tmp/screen.png diff --git a/.config/i3/scripts/toggle_dnd.sh b/.config/i3/scripts/toggle_dnd.sh new file mode 100755 index 00000000..a11a4f83 --- /dev/null +++ b/.config/i3/scripts/toggle_dnd.sh @@ -0,0 +1,10 @@ +#!/bin/bash + +state=$(xfconf-query -c xfce4-notifyd -p /do-not-disturb) +if [ "$state" = "true" ]; then + xfconf-query -c xfce4-notifyd -p /do-not-disturb -s false + notify-send "Do not disturb: Disabled" -t 2000 -i notification +else + xfconf-query -c xfce4-notifyd -p /do-not-disturb -s true + notify-send -u critical "Do not disturb: Enabled" -t 2000 -i notification +fi |