diff options
-rwxr-xr-x | bin/common/ytclipo | 1 | ||||
-rwxr-xr-x | bin/extra/gml | 13 | ||||
-rwxr-xr-x | bin/guiscripts/fillpass | 13 | ||||
-rwxr-xr-x | bin/menuscripts/mpower | 2 | ||||
-rw-r--r-- | config/essentials/nvim/after/plugin/dap.lua | 1 | ||||
-rw-r--r-- | config/essentials/nvim/after/plugin/luasnip.lua | 4 | ||||
-rw-r--r-- | config/essentials/zsh/aliases.sh | 2 |
7 files changed, 31 insertions, 5 deletions
diff --git a/bin/common/ytclipo b/bin/common/ytclipo index 7e7b9cc..fc98b6e 100755 --- a/bin/common/ytclipo +++ b/bin/common/ytclipo @@ -18,6 +18,7 @@ notify-send "ytclipo" "<b>downloading</b> $inp" yt-dlp "$inp" \ --restrict-filenames \ + --embed-chapters \ -f "b" \ -S "res:1080" \ -P "$HOME/vids/youtube/" \ diff --git a/bin/extra/gml b/bin/extra/gml index 0d3a277..0f2f143 100755 --- a/bin/extra/gml +++ b/bin/extra/gml @@ -48,17 +48,22 @@ steam() { choice="$( cat <<-EOF | column -t -l 2 | commander -d -x -c | awk '{printf $1}' - 274190 broforc3 + 274190 broforce 291550 brawlhalla 1712840 tiny tina - EOF + 105600 terraria + kill +EOF )" - [ "$choice" ] && setsid steam steam://rungameid/"$choice" + case "$choice" in + kill) pkill steam ;; + *) setsid steam steam://rungameid/"$choice" ;; + esac exit } eval "$( - cat <<-EOF | commander -c + cat <<-EOF | commander -c -w 9 -y 2 minecraft steam EOF diff --git a/bin/guiscripts/fillpass b/bin/guiscripts/fillpass new file mode 100755 index 0000000..87e74ca --- /dev/null +++ b/bin/guiscripts/fillpass @@ -0,0 +1,13 @@ +#!/bin/sh + +pass="$( + find "${PASSWORD_STORE_DIR:=~/src/password-store/}" -name "*.gpg" | + sed -e "s@$PASSWORD_STORE_DIR/@@" -e 's/\.gpg$//' | + commander -x -c)" +[ "$pass" ] || exit 1 + +login="$(pass show "$pass" | awk '/^login:/ {print $2}')" +password="$(pass show "$pass" | head -n 1)" + +printf '%s\t%s\n' "$login" "$password" | + ydotool type -f - diff --git a/bin/menuscripts/mpower b/bin/menuscripts/mpower index 1543a0b..0d0cdcc 100755 --- a/bin/menuscripts/mpower +++ b/bin/menuscripts/mpower @@ -1,6 +1,6 @@ #!/bin/sh choice="$( -cat <<EOF | commander -c +cat <<EOF | commander -c -w 9 -y 4 poweroff suspend hibernate diff --git a/config/essentials/nvim/after/plugin/dap.lua b/config/essentials/nvim/after/plugin/dap.lua index 8c0a739..e32b5ee 100644 --- a/config/essentials/nvim/after/plugin/dap.lua +++ b/config/essentials/nvim/after/plugin/dap.lua @@ -25,6 +25,7 @@ local bufopts = { noremap=true, silent=true } nnoremap('<F5>' , dap.continue, bufopts, "Continue") +nnoremap('<F6>' , dap.disconnect, bufopts, "Continue") nnoremap('<F10>' , dap.step_over, bufopts, "Step over") nnoremap('<F11>' , dap.step_into, bufopts, "Step into") nnoremap('<F12>' , dap.step_out, bufopts, "Step out") diff --git a/config/essentials/nvim/after/plugin/luasnip.lua b/config/essentials/nvim/after/plugin/luasnip.lua index 5657560..a98fe82 100644 --- a/config/essentials/nvim/after/plugin/luasnip.lua +++ b/config/essentials/nvim/after/plugin/luasnip.lua @@ -155,6 +155,10 @@ ls.add_snippets("sh", { stty \$old_stty_cfg } ]], {}), + parse("fdie", + [[ + die () { >&2 printf '%s\n' "\$@"; exit 1; } + ]], {}), parse("flogn", [[ logn () { >&2 printf '%s\n' "\$@"; } diff --git a/config/essentials/zsh/aliases.sh b/config/essentials/zsh/aliases.sh index 1282f24..d901740 100644 --- a/config/essentials/zsh/aliases.sh +++ b/config/essentials/zsh/aliases.sh @@ -253,6 +253,7 @@ alias fzh="tac $HISTFILE | fzf | tee /dev/stderr | clipp" alias ffwin='hyprctl clients -j | jq '\''.[].pid'\'' | fzf --preview "hyprctl clients -j | jq '\''.[] | select(.pid == {}) | {class, title, workspace, xwayland}'\''"' alias pff='find ${PASSWORD_STORE_DIR:=~/src/password-store/} -name "*.gpg" | sed -e "s@$PASSWORD_STORE_DIR/@@" -e '\''s/\.gpg$//'\'' | fzf | xargs pass show -c' alias fzps='fzf --print0 | xargs -0I{}' +alias ytdl='yt-dlp --restrict-filenames --embed-chapters -f "b" -S "res:1080" -P "$HOME/vids/youtube/" -o "%(channel)s - %(title)s.%(ext)s"' alias dcb='docker build' alias dcbt='docker build -t' @@ -268,6 +269,7 @@ alias sshdb='ssh -t db "tmux a || tmux"' alias dbsmu='rsync -aPz db:/media/basilisk/music/ /media/kilimanjaro/music' # oh-my-zsh git aliases +alias gmod='git status --short | sed '\''/^\s*M/!d;s/^\s*M\s*//'\'' | fzf | xargs $EDITOR' alias g='git' alias ga='git add' alias gaa='git add --all' |