- commit
- 80999e0
- parent
- dd2c26f
- author
- chasinglightning
- date
- 2025-06-19 14:33:08 -0400 EDT
more
3 files changed,
+28,
-2
+1,
-1
1@@ -16,4 +16,4 @@
2 "distro": null,
3 "pride_month_shown": [],
4 "pride_month_disable": false
5-}
6+}
+1,
-1
1@@ -25,7 +25,7 @@ font_family JetBrainsMono NF
2 #: <https://sw.kovidgoyal.net/kitty/kittens/choose-fonts/#font-spec-
3 #: syntax>.
4
5-font_size 16.0
6+font_size 14.0
7
8 #: Font size (in pts).
9
+26,
-0
1@@ -0,0 +1,26 @@
2+#!/bin/bash
3+
4+f_to_c() {
5+ fah="$(gum input --placeholder 'enter temp in fahrenheit')"
6+ cel=$(bc <<< "scale=2; ($fah - 32) * 5/9")
7+ result="$fah°F is equal to $cel°C"
8+ notify-send "$result" && echo "$result"
9+}
10+
11+c_to_f() {
12+ cel="$(gum input --placeholder 'enter temp in celsius')"
13+ fah=$(bc <<< "scale=2; ($cel * 9/5) + 32")
14+ result="$cel°C is equal to $fah°F"
15+ notify-send "$result" && echo "$result"
16+}
17+
18+choice() {
19+ choose=$(gum choose "fahrenheit to celsius" "celsius to fahrenheit")
20+ case "$choose" in
21+ *celsius) f_to_c ;;
22+ *fahrenheit) c_to_f ;;
23+ *) exit;;
24+ esac
25+}
26+
27+choice