#!/bin/sh
scrot -o /tmp/screenshot.png
convert /tmp/screenshot.png -blur 0x5 /tmp/screenshot.png
# Turn on DND
old_dnd="$(xfconf-query -c xfce4-notifyd -p /do-not-disturb)"
xfconf-query -c xfce4-notifyd -p /do-not-disturb -s true
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Unit] | |
Description=Remove unused docker resources | |
Documentation=https://docs.docker.com/v17.09/engine/admin/pruning/ | |
After=docker.service | |
[Service] | |
Type=oneshot | |
ExecStart=/usr/bin/docker system prune -f --filter "until=744h" | |
ExecStart=/usr/bin/docker volume prune -f |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
current=$(hamster current | sed 's|^[^ ]\+ [^ ]\+ \(.*\) [^ ]\+$|\1|' | sed 's|@Unsorted|@|') | |
selected=$(hamster activities | rofi -dmenu -i -select "$current" -p "Select task") | |
[ -z "$selected" ] && exit | |
if [ "$current" == "$selected" ]; then | |
hamster stop | |
dunstify -a "hamster" "Stop activity $selected" |