Add .scripts directory
This commit is contained in:
parent
571de7aca2
commit
477061982f
|
|
@ -0,0 +1,3 @@
|
|||
#!/bin/sh
|
||||
hyprpicker | tr -d '\n' | wl-copy && \
|
||||
dunstify -t 5000 'Copied color hex code to clipboard'
|
||||
|
|
@ -0,0 +1,15 @@
|
|||
#!/bin/sh
|
||||
filename=~/Pictures/Screenshots/Screenshot_"$(date +'%Y%m%d_%H%M%S').png"
|
||||
grimblast copysave area "$filename" || exit 1
|
||||
action="$(dunstify \
|
||||
-i "$filename" \
|
||||
-A "open,OPEN" \
|
||||
-t 10000 \
|
||||
"Screenshot saved" \
|
||||
"$filename")"
|
||||
|
||||
case "$action" in
|
||||
2) #click
|
||||
xdg-open "$filename"
|
||||
;;
|
||||
esac
|
||||
|
|
@ -0,0 +1,16 @@
|
|||
#!/bin/sh
|
||||
|
||||
INTERVAL="$1"
|
||||
WALLPAPER_DIR="$2"
|
||||
|
||||
rm -rf ~/.cache/swww/
|
||||
swww kill
|
||||
|
||||
swww init
|
||||
interval_secs="$(echo "60 * ${INTERVAL}" | bc)"
|
||||
|
||||
while true; do
|
||||
wallpaper="$(fd '\.(png|jpe?g|gif)$' "$WALLPAPER_DIR" --type f | shuf | head -1)"
|
||||
swww img "$wallpaper"
|
||||
sleep "$interval_secs"
|
||||
done
|
||||
|
|
@ -0,0 +1,28 @@
|
|||
#!/bin/sh
|
||||
|
||||
option="$(printf "⏻ Shutdown\n Reboot\n Suspend\n Hibernate" | \
|
||||
wofi --dmenu -p "Session")"
|
||||
|
||||
dialogue_box() {
|
||||
yad --image=gtk-dialog-question \
|
||||
--text="$1"
|
||||
}
|
||||
|
||||
case $option in
|
||||
*Shutdown)
|
||||
dialogue_box "Are you sure you want to shutdown this computer?" && \
|
||||
systemctl poweroff -i
|
||||
;;
|
||||
*Reboot)
|
||||
dialogue_box "Are you sure you want to reboot this computer?" && \
|
||||
systemctl reboot -i
|
||||
;;
|
||||
*Suspend)
|
||||
dialogue_box "Are you sure you want to suspend this computer?" && \
|
||||
systemctl suspend -i
|
||||
;;
|
||||
*Hibernate)
|
||||
dialogue_box "Are you sure you want to hibernate this computer?" && \
|
||||
systemctl hibernate -i
|
||||
;;
|
||||
esac
|
||||
Loading…
Reference in New Issue