summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xbin/extra/cycleKB2
-rw-r--r--config/essentials/shell/functions.sh16
-rw-r--r--config/essentials/zsh/.zshrc1
3 files changed, 3 insertions, 16 deletions
diff --git a/bin/extra/cycleKB b/bin/extra/cycleKB
index 5b9b197..154f5a1 100755
--- a/bin/extra/cycleKB
+++ b/bin/extra/cycleKB
@@ -3,4 +3,4 @@ keyboards="$HOME/bin/keyboards.txt"
kb="$(head -n 1 "$keyboards")"
setxkbmap $kb &
sed -i '1h;1d;$G' "$keyboards"
-notify-send -t 1000 "cycleKB" "$kb"
+notify-send -t 1000 "cycleKB" "${kb%% *}"
diff --git a/config/essentials/shell/functions.sh b/config/essentials/shell/functions.sh
index ac51bd5..1aecccc 100644
--- a/config/essentials/shell/functions.sh
+++ b/config/essentials/shell/functions.sh
@@ -69,7 +69,7 @@ trcp() { scp "$1" db:/media/basilisk/downloads/transmission/torrents/; }
rln() { ln -s "$(readlink -f "$1")" "$2"; }
getgit() { git clone git@db:"$1"; }
esc() { eval "$EDITOR '$(which $1)'"; }
-
+ssh_keyadd() { ssh-keygen -f "$HOME"/.ssh/"$1" -P "$(pass generate -f keys/"$HOST"/ssh/"$1" | tail -n 1)" -t ed25519; }
delfile() { curl -s "${2:-https://upfast.cronyakatsuki.xyz/delete/$1}"; }
upfile() { curl -s -F "file=@\"$1\"" "${2:-https://0x0.st}"; }
to_webm() { ffmpeg -y -i "$1" -vcodec libvpx -cpu-used -12 -deadline realtime "${1%.*}".webm; }
@@ -284,19 +284,6 @@ wgt() {
doas wg-quick up "$d"
}
-# serve a file through dufs
-serve() {
- if [ "$1" ]
- then
- logn "Serving $1"
- dufs "$1"
- else
- logn "Receiving files.."
- dufs /tmp/data --alow-upload
- fi
-}
-
-ssh_keyadd() { ssh-keygen -f "$HOME"/.ssh/"$1" -P "$(pass generate -f keys/"$HOST"/ssh/"$1" | tail -n 1)" -t ed25519; }
fchange()
@@ -394,4 +381,3 @@ ssh() {
done
/usr/bin/ssh $@
}
-
diff --git a/config/essentials/zsh/.zshrc b/config/essentials/zsh/.zshrc
index 690c7e8..e474366 100644
--- a/config/essentials/zsh/.zshrc
+++ b/config/essentials/zsh/.zshrc
@@ -144,3 +144,4 @@ setopt notify
# zprof
+PATH="$PATH:$HOME/proj/chatty/"