add cpuctl

This commit is contained in:
2026-03-12 21:34:48 -07:00
parent b03003f401
commit a8884b5128
3 changed files with 61 additions and 5 deletions

View File

@@ -1,8 +1,8 @@
#!/bin/sh
EXPRESSION=$(printf "" | dmenu -b -w $(xdotool getactivewindow) -p "calculator")
RESULT=$(qalc $EXPRESSION)
printf "" | dmenu -b -w $(xdotool getactivewindow) -p "$RESULT"
echo $RESULT | sed 's/^[^=≈]*[=≈]//' | xclip -selection clipboard
#EXPRESSION=$(printf "" | dmenu -b -w $(xdotool getactivewindow) -p "calculator")
#RESULT=$(qalc $EXPRESSION)
#printf "" | dmenu -b -w $(xdotool getactivewindow) -p "$RESULT"
#echo $RESULT | sed 's/^[^=≈]*[=≈]//' | xclip -selection clipboard
# start qalc in terminal instead
#st -i -g 60x30+200+200 -e qalc
st -i -g 60x20-100+100 -e qalc