dots


commit
8c914fe
parent
f8cf024
author
xxwhirlpool
date
2026-04-21 00:19:22 -0400 EDT
bashrc kwangya
1 files changed,  +24, -1
M config/.bashrc-kwangya
+24, -1
 1@@ -100,6 +100,9 @@ alias ffmpeg="ffmpeg -hide_banner"
 2 alias open="xdg-open"
 3 alias c="clear"
 4 alias unfuckwifi="sudo systemctl restart NetworkManager"
 5+alias uptime="uptime -p"
 6+alias irc="senpai"
 7+alias xmpp="profanity"
 8 alias updupgr="sudo apt update && sudo apt upgrade"
 9 alias winek="wineserver -k"
10 
11@@ -229,6 +232,18 @@ notif() {
12 	spd-say -t female3 -r +25 "done!"
13 }
14 
15+# shamelessly stolen from evan hahn:
16+# https://evanhahn.com/scripts-i-wrote-that-i-use-all-the-time/#audio-and-video-and-pictures
17+boop() {
18+	local last="$?"
19+	if [[ "$last" == "0" ]]; then
20+		sfx chime
21+	else
22+		sfx bad
23+	fi
24+	exit "$last"
25+}
26+
27 # make & cd into a folder
28 mkcd() {
29   mkdir -p "$@" && cd "$_" || exit 1;
30@@ -238,7 +253,15 @@ mkcd() {
31 # for shell functions
32 # https://lobste.rs/s/fkr3ha/some_terminal_frustrations#c_70wike
33 man() {
34-	/usr/bin/man "$@" || help "$@"
35+	/usr/bin/man "$@" || help "$@" | less
36+}
37+
38+# https://askubuntu.com/questions/196890/how-to-find-the-bitrate-of-an-mp3-file-via-command-line
39+bitrate() {
40+	gum style --foreground "#f4b8e4" "file: " | tr -d "\n"
41+	basename "$1"
42+	gum style --foreground "#f4b8e4" "bitrate: " | tr -d "\n"
43+	echo "$(file "$1" | sed 's/.*, \(.*\)kbps.*/\1/' | tr -d " " )" kbps
44 }
45 
46 ######################################