diff options
| author | iamcheeseman <[hidden email]> | 2026-01-28 16:06:16 -0500 |
|---|---|---|
| committer | iamcheeseman <[hidden email]> | 2026-01-28 16:06:16 -0500 |
| commit | 73d7a1a7594bf80727fa999ff2111711c5f4cc64 (patch) | |
| tree | 3cf7d071d514f05ac7eaecead97c0df4e5a05199 /.local | |
| parent | dbbc2a27a45c8a119df3e2aa8bd12876d526c29b (diff) | |
update stuff frfr
Diffstat (limited to '.local')
| -rwxr-xr-x | .local/bin/dwm_status.sh | 11 | ||||
| -rwxr-xr-x | .local/bin/screenshot | 6 |
2 files changed, 14 insertions, 3 deletions
diff --git a/.local/bin/dwm_status.sh b/.local/bin/dwm_status.sh new file mode 100755 index 0000000..b2faf84 --- /dev/null +++ b/.local/bin/dwm_status.sh @@ -0,0 +1,11 @@ +#!/bin/bash + +while true; do + ram=`free -m | awk 'NR==2{printf "RAM %.2f%%", $3*100/$2}'` + cpu=`top -bn1 | grep load | awk '{printf "CPU %.2f", $(NF-2)}'` + clock=`date +"%a %b %d, %r"` + pkg=`xbps-query -l | wc -l` + vol=`pactl get-sink-volume @DEFAULT_SINK@ | awk 'NR==1{printf "VOL %s", $5}'` + xprop -root -set WM_NAME " PKG $pkg $vol $ram $cpu $clock " + sleep 1 +done & diff --git a/.local/bin/screenshot b/.local/bin/screenshot index 20c98af..fb50efe 100755 --- a/.local/bin/screenshot +++ b/.local/bin/screenshot @@ -3,9 +3,9 @@ maim -u | feh -F - & id=$! -maim -suc 1,1,1 > /tmp/cropped.png -xclip -selection clipboard -t image/png /tmp/cropped.png +maim -suc 1,1,1 > /tmp/screenshot.png +xclip -selection clipboard -t image/png /tmp/screenshot.png kill $id -notify-send -u low -a "maim" -i /tmp/cropped.png "Screenshot captured" +notify-send -u low -a "maim" -i /tmp/screenshot.png "Screenshot captured" |
