From 41754e8ad1eea8b69853558765cb7317b5a73357 Mon Sep 17 00:00:00 2001 From: CronyAkatsuki Date: Wed, 23 Aug 2023 19:50:09 +0200 Subject: [PATCH] Updates. --- dmenu-kill | 2 +- dmenu-screenshot | 4 ++-- dmenu-share | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/dmenu-kill b/dmenu-kill index 0eb28e0..bb1d896 100755 --- a/dmenu-kill +++ b/dmenu-kill @@ -9,7 +9,7 @@ load_config () { main () { 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 diff --git a/dmenu-screenshot b/dmenu-screenshot index c0d74ae..a1f557a 100755 --- a/dmenu-screenshot +++ b/dmenu-screenshot @@ -8,8 +8,8 @@ load_config () { menu () { 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" ;; - "full screen") sleep 0.5; shotgun $dir/pic-full-"$(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; maim -m 2 $dir/pic-full-"$(date '+%y%m%d-%H%M-%S').png" ;; esac } diff --git a/dmenu-share b/dmenu-share index d6a762a..4b7fa52 100755 --- a/dmenu-share +++ b/dmenu-share @@ -5,8 +5,8 @@ file=$(fd . "$HOME" --type f --hidden --color=never --exclude ".git" | $DMENU -l 15) [ -z "$file" ] && exit 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 - curl -F "file=@$file" 0x0.st | xclip -selection clipboard + curl -F "file=@$file" "https://upfast.cronyakatsuki.xyz" | xclip -selection clipboard fi notify-send "Dmenu Share" "Ready to share"