This commit is contained in:
CronyAkatsuki 2023-08-23 19:50:09 +02:00
parent f999944f1a
commit 41754e8ad1
3 changed files with 5 additions and 5 deletions

View File

@ -9,7 +9,7 @@ load_config () {
main () { main () {
load_config load_config
pid=$(ps -u $USER -o pid,%mem,%cpu,comm,cmd | sort -b -k3 -r | $DMENU -l 15 -i -p "Choose procces to kill: " | awk '{print $1}') pid=$(ps -e -o pid,%mem,%cpu,comm,cmd | sort -b -k3 -r | $DMENU -l 15 -i -p "Choose procces to kill: " | awk '{print $1}')
[ -n "$pid" ] || exit [ -n "$pid" ] || exit

View File

@ -8,8 +8,8 @@ load_config () {
menu () { menu () {
case "$(printf "a selected area\\nfull screen" | $DMENU -l 6 -p "Screenshot which area?")" in case "$(printf "a selected area\\nfull screen" | $DMENU -l 6 -p "Screenshot which area?")" in
"a selected area") sleep 0.5; shotgun -g $(hacksaw) $dir/pic-selected-"$(date '+%y%m%d-%H%M-%S').png" ;; "a selected area") sleep 0.5; maim -m 2 -s $dir/pic-selected-"$(date '+%y%m%d-%H%M-%S').png" ;;
"full screen") sleep 0.5; shotgun $dir/pic-full-"$(date '+%y%m%d-%H%M-%S').png" ;; "full screen") sleep 0.5; maim -m 2 $dir/pic-full-"$(date '+%y%m%d-%H%M-%S').png" ;;
esac esac
} }

View File

@ -5,8 +5,8 @@
file=$(fd . "$HOME" --type f --hidden --color=never --exclude ".git" | $DMENU -l 15) file=$(fd . "$HOME" --type f --hidden --color=never --exclude ".git" | $DMENU -l 15)
[ -z "$file" ] && exit [ -z "$file" ] && exit
if [ "$XDG_SESSION_TYPE" = "wayland" ]; then if [ "$XDG_SESSION_TYPE" = "wayland" ]; then
curl -F "file=@$file" 0x0.st | wl-copy -n curl -F "file=@$file" "https://upfast.cronyakatsuki.xyz" | wl-copy -n
else else
curl -F "file=@$file" 0x0.st | xclip -selection clipboard curl -F "file=@$file" "https://upfast.cronyakatsuki.xyz" | xclip -selection clipboard
fi fi
notify-send "Dmenu Share" "Ready to share" notify-send "Dmenu Share" "Ready to share"