dots: misc

This commit is contained in:
Dmitry Zakharchenko 2023-11-19 21:02:00 +02:00
parent 371accb990
commit a78fe950fb
10 changed files with 12 additions and 52 deletions

View File

@ -2,6 +2,7 @@ term=xterm-256color
initial-window-size-chars=80x24
pad=2x2
selection-target=clipboard
font=monospace:size=10
[url]
launch=linkhandler ${url}

View File

@ -1,11 +0,0 @@
account dmitz@disroot.org
host disroot.org
port 465
from dmitz@disroot.org
user dmitz@disroot.org
passwordeval "pass mail/disroot.org"
auth on
tls on
tls_trust_file /etc/ssl/certs/ca-certificates.crt
logfile /home/dmitz/.config/msmtp/msmtp.log
tls_starttls off

View File

@ -1,14 +0,0 @@
[database]
path=/home/dmitz/.local/share/mail
[user]
name=dmitz
primary_email=dmitz@disroot.org
[new]
tags=unread;inbox;
ignore=.mbsyncstate;.uidvalidity
[search]
exclude_tags=deleted;spam;
[maildir]
synchronize_flags=true
[crypto]
gpg_path=gpg

View File

@ -4,8 +4,8 @@ require('telescope').setup {
defaults = {
mappings = {
n = {
["Z"] = actions.select_vertical,
["X"] = actions.select_horizontal,
["Z"] = actions.select_horizontal,
["X"] = actions.select_vertical,
["C"] = actions.select_tab
},
},

View File

@ -3,8 +3,6 @@
alias f="$FILE" \
v="$EDITOR" \
cp="cp -i" \
mv="mv -i" \
rm="rm -i" \
yt="pipe-viewer" \
mkd="mkdir -p" \
trans="trans -j -v :en" \

View File

@ -53,4 +53,4 @@ fileviewer <image/*> sixel %c %pw %ph %pd %pc
filetype *.torrent torwrap add %c
fileviewer *.torrent transmission-show
set vifminfo=tui,registers
set vifminfo=dhistory,chistory,tui,shistory,phistory,fhistory,dirstack,registers

View File

@ -5,7 +5,7 @@ feed="${1:-$(printf "%s" | tofi --prompt-text 'Paste URL or file path')}"
case "$feed" in
*mkv|*webm|*mp4|*watch?v*|*youtu.be*|*music.youtube.com*|*invidious.lunar.icu*|*videos.lukesmith.xyz*|*spacepub.space*|*twitch.tv*)
case "$(printf "yt-dlp\\nyt-dlp (audio)\\nyt-dlp (music)\\nmpv\\nmpv (audio)" | tofi --prompt-text "Handle media with?")" in
"yt-dlp") qndl "$feed" >/dev/null 2>&1 ;;
"yt-dlp") qndl -v "$feed" >/dev/null 2>&1 ;;
"yt-dlp (audio)") qndl -a "$feed" >/dev/null 2>&1 ;;
"yt-dlp (music)") qndl -m "$feed" >/dev/null 2>&1 ;;
"mpv") setsid -f mpv --quiet "$feed" >/dev/null 2>&1 ;;

View File

@ -1,22 +1,22 @@
#!/bin/sh
[ -z "$1" ] && exit
[ -z "$2" ] && exit
cmd="yt-dlp"
while getopts 'am' OPTION; do
while getopts 'amv' OPTION; do
case "$OPTION" in
a)
cmd="yt-dlp -f bestaudio/best -x --audio-format mp3 --no-playlist -o $XDG_DOWNLOAD_DIR/pods/%(title)s.%(ext)s" ;;
m)
cmd="yt-dlp -f bestaudio/best -x --audio-format mp3 --no-playlist -o $XDG_MUSIC_DIR/%(title)s.%(ext)s"
cmd="yt-dlp -f bestaudio/best -x --audio-format mp3 --no-playlist -o $XDG_MUSIC_DIR/%(title)s.%(ext)s" ;;
v)
cmd="yt-dlp"
esac
done
base="$(basename "$1")"
base="$(basename "$2")"
notify-send "Queuing $base..."
idnum="$(ts $cmd "$1")"
idnum="$(ts $cmd "$2")"
realname="$(echo "$base" | sed "s/?\(source\|dest\).*//;s/%20/ /g")"
ts -D "$idnum" mv "$base" "$realname"

View File

@ -1,9 +0,0 @@
#!/bin/sh
wp="$(wpctl get-volume @DEFAULT_AUDIO_SINK@)"
vol="$(echo $wp | awk '{print $2 * 100}')"
ismuted="$(echo "$wp" | awk '{print $3}')"
[ -n "$ismuted" ] && echo muted && exit
printf "vol: %s%%" "$vol"

View File

@ -1,8 +1,3 @@
Include ~/.ssh/config.d/*
Match host * exec "gpg-connect-agent UPDATESTARTUPTTY /bye"
Host *
User admin
RequestTTY yes
RemoteCommand screen -d -RR