adds rofi as styling
This commit is contained in:
parent
d03146f3a1
commit
1682bed87f
9 changed files with 124 additions and 8 deletions
20
.config/rofi/scripts/calc.sh
Executable file
20
.config/rofi/scripts/calc.sh
Executable file
|
|
@ -0,0 +1,20 @@
|
|||
#!/bin/bash
|
||||
|
||||
case $ROFI_RETV in
|
||||
1)
|
||||
wl-copy "$@"
|
||||
;;
|
||||
2)
|
||||
|
||||
result=$(rink "$@" | grep -v '^>')
|
||||
NUMBERS=$(echo "$result "tr '\n' ' ' | sed -e 's/[^0-9]/ /g' -e 's/^ *//g' -e 's/ *$//g')
|
||||
|
||||
IFS=' '
|
||||
|
||||
for number in $NUMBERS; do
|
||||
echo $number
|
||||
done
|
||||
echo -en "$result\0non-selectable\x1ftrue\n"
|
||||
;;
|
||||
|
||||
esac
|
||||
Loading…
Add table
Add a link
Reference in a new issue