aboutsummaryrefslogtreecommitdiffstats
path: root/config/hypr/scripts
diff options
context:
space:
mode:
authorJaKooLit <jimmielovejay@gmail.com>2024-05-23 20:27:41 +0900
committerJaKooLit <jimmielovejay@gmail.com>2024-05-23 20:27:41 +0900
commit57121a4bddf834545613b38dfa8510a1e7060d3c (patch)
tree6eaa500f223b2359f35583fe8700abf5c2745f76 /config/hypr/scripts
parent8a36a291b396f843b91da1970f1d162c23a05c13 (diff)
RofiCalc script moved to UserScripts
Diffstat (limited to 'config/hypr/scripts')
-rwxr-xr-xconfig/hypr/scripts/RofiCalc.sh31
1 files changed, 0 insertions, 31 deletions
diff --git a/config/hypr/scripts/RofiCalc.sh b/config/hypr/scripts/RofiCalc.sh
deleted file mode 100755
index 355130de..00000000
--- a/config/hypr/scripts/RofiCalc.sh
+++ /dev/null
@@ -1,31 +0,0 @@
-#!/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"
-
-# Kill Rofi if already running before execution
-if pgrep -x "rofi" >/dev/null; then
- pkill rofi
- exit 0
-fi
-
-# main function
-
-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
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage