- commit
- c2f2e1d
- parent
- c22d9cd
- author
- xxwhirlpool
- date
- 2025-12-18 16:13:55 -0500 EST
add passmenu & tempmenu
4 files changed,
+54,
-6
+1,
-0
1@@ -135,6 +135,7 @@ alias cat="bat --paging=never"
2 alias rced="micro ~/.bashrc && source ~/.bashrc"
3 alias dd="askdd"
4 alias copy="xclip -sel clipboard"
5+alias calc="python3 -Sq"
6
7 # lazy ass way for me to get my idol mp3s from youtube
8 # usage: ytmp3 url
+0,
-6
1@@ -1968,12 +1968,6 @@
2 ๐ค๐ฝ crossed fingers: medium skin tone
3 ๐ค๐พ crossed fingers: medium-dark skin tone
4 ๐ค๐ฟ crossed fingers: dark skin tone
5-๐ vulcan salute
6-๐๐ป vulcan salute: light skin tone
7-๐๐ผ vulcan salute: medium-light skin tone
8-๐๐ฝ vulcan salute: medium skin tone
9-๐๐พ vulcan salute: medium-dark skin tone
10-๐๐ฟ vulcan salute: dark skin tone
11 ๐ค sign of the horns
12 ๐ค๐ป sign of the horns: light skin tone
13 ๐ค๐ผ sign of the horns: medium-light skin tone
1@@ -0,0 +1,24 @@
2+#!/usr/bin/env bash
3+
4+shopt -s nullglob globstar
5+
6+typeit=0
7+if [[ $1 == "--type" ]]; then
8+ typeit=1
9+ shift
10+fi
11+
12+prefix=${PASSWORD_STORE_DIR-~/.password-store}
13+password_files=( "$prefix"/**/*.gpg )
14+password_files=( "${password_files[@]#"$prefix"/}" )
15+password_files=( "${password_files[@]%.gpg}" )
16+
17+password=$(printf '%s\n' "${password_files[@]}" | dmenu -i -c -l 10 "$@")
18+
19+[[ -n $password ]] || exit
20+
21+if [[ $typeit -eq 0 ]]; then
22+ pass show -c "$password" 2>/dev/null
23+else
24+ pass show "$password" | { IFS= read -r pass; printf %s "$pass"; } | $xdotool
25+fi
1@@ -0,0 +1,29 @@
2+#!/bin/bash
3+
4+f_to_c() {
5+ fah=$(echo "" | dmenu -i -c -l 3 -p '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"
9+}
10+
11+c_to_f() {
12+ cel=$(echo "" | dmenu -i -c -l 3 -p '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"
16+}
17+
18+menu() {
19+ cmd=$(printf "fahrenheit to celsius\\ncelsius to fahrenheit" | dmenu -i -c -l 10 -p "temperature conversion")
20+ case "$cmd" in
21+ *celsius) f_to_c ;;
22+ *fahrenheit) c_to_f ;;
23+ *) exit 0;;
24+ esac
25+}
26+
27+case "$1" in
28+ *menu) menu ;;
29+ *) exit;;
30+esac