agsdotfilesdotshyprlandhyprland-configricerofirofi-configshell-scriptsswwwwallustwaybarwaybar-modulewaybar-themes
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
537 B
24 lines
537 B
#!/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
|
|
|