3 changed files with 41 additions and 0 deletions
@ -0,0 +1,24 @@ |
|||||||
|
#!/bin/bash |
||||||
|
# /* ---- 💫 https://github.com/JaKooLit 💫 ---- */ |
||||||
|
# /* Calculator (using qalculate) and rofi */ |
||||||
|
# /* Submitted by: https://github.com/JosephArmas */ |
||||||
|
|
||||||
|
rofi_config="$HOME/.config/rofi/config-calc.rasi" |
||||||
|
|
||||||
|
|
||||||
|
while true; do |
||||||
|
result=$( |
||||||
|
rofi -i -dmenu \ |
||||||
|
-config "$rofi_config" \ |
||||||
|
-mesg "$result = $calc_result" |
||||||
|
) |
||||||
|
|
||||||
|
if [ $? -ne 0 ]; then |
||||||
|
exit |
||||||
|
fi |
||||||
|
|
||||||
|
if [ -n "$result" ]; then |
||||||
|
calc_result=$(qalc -t "$result") |
||||||
|
echo "$calc_result" | wl-copy |
||||||
|
fi |
||||||
|
done |
||||||
@ -0,0 +1,16 @@ |
|||||||
|
/* ---- 💫 https://github.com/JaKooLit 💫 ---- */ |
||||||
|
/* Main Config Calculator */ |
||||||
|
/* Submitted by: https://github.com/JosephArmas */ |
||||||
|
|
||||||
|
@import "~/.config/rofi/config.rasi" |
||||||
|
|
||||||
|
/* ---- Entry ---- */ |
||||||
|
entry { |
||||||
|
width: 27%; |
||||||
|
placeholder: "🧮 Calculate"; |
||||||
|
} |
||||||
|
|
||||||
|
/* ---- Window ---- */ |
||||||
|
window { |
||||||
|
width: 30%; |
||||||
|
} |
||||||
Loading…
Reference in new issue