-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathutilities.bash
More file actions
26 lines (24 loc) · 2.29 KB
/
Copy pathutilities.bash
File metadata and controls
26 lines (24 loc) · 2.29 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#!/bin/bash
CHOICE=$(printf "1. Hexpicker\n2. Process killer\n3. Wallpapers Utils\n4. Emoji picker\n5. Icon picker\n6. Info picker\n7. Output device\n8. Input device\n9. Translator\n10. Timezone converter" | fuzzel -d | awk -F'.' '{print $1}')
case $CHOICE in
1) sleep 0.5; hyprpicker | wl-copy;;
2) ps a -u rat| awk '{print $1, $5, $6, $7, $8, $9, $10, $11, $12, $13, $14, $15}' | fuzzel -d | awk '{print $1}' | xargs -I % kill %;;
3)
CHOICE=$(printf "1. Random wallpaper change\n2. Choose wallpaper" | fuzzel -d | awk '{print $1}')
case $CHOICE in
*1*) find ~/backgrounds/ -type f | grep -v ".svg" | shuf -n1 | xargs -I % swaybg -i % -m fill;;
*2*) bash $HOME/.config/hypr/scripts/advanced-chooser.bash;;
esac;;
4) grep -v '^#' ~/.local/share/emoji | fuzzel -d | cut -d' ' -f1 | tee >(wtype - -k) | wl-copy;;
5) grep -v '^#' ~/.local/share/font-awesome | fuzzel -d | cut -d' ' -f1 | tee >(wtype - -k return) | wl-copy;;
6) grep -v '^#' ~/.local/share/info | fuzzel -d | grep -v '^#' ~/.local/share/info | fuzzel -d | awk -F '> ' '{print $2}' | tee >(wtype - -k return) | wl-copy;;
*7*) pactl info | awk 'NR==13' | xargs -I % notify-send -h string:x-canonical-private-synchronous:sys-notify -u low % && pactl list sinks | grep -E 'Sink |Description' | sed 'N;s/\n//g' | sed ';s/Description//g' | sed ';s/\t//g' | fuzzel -d | awk '{print $2}' | tr -d "#" | tr -d ":" | xargs -I % pactl set-default-sink % 2> /dev/stdout 1> /dev/null | xargs -I % notify-send "Errored" %;;
8) pactl info | awk 'NR==14' | xargs -I % notify-send -h string:x-canonical-private-synchronous:sys-notify -u low % && pactl list sources | grep -E 'Source |Description' | sed 'N;s/\n//g' | sed ';s/Description//g' | sed ';s/\t//g' | fuzzel -d | awk '{print $2}' | tr -d "#" | tr -d ":" | xargs -I % pactl set-default-source % 2> /dev/stdout 1> /dev/null | xargs -I % notify-send "Errored" %;;
9)
CHOICE=$(printf "1. English\n2. Nederlands" | fuzzel -d | awk '{print $1}')
case $CHOICE in
*1*) zenity --entry --text="What do you want to translate?" | trans :en -b | xargs -I % notify-send "Vertaling:" %;;
*2*) zenity --entry --text="What do you want to translate?" | trans :nl -b | xargs -I % notify-send "Vertaling:" %;;
esac;;
10) bash $HOME/.config/hypr/scripts/timezone-converter.bash;;
esac