dotfiles

My configuration files.
git clone https://git.svemoe.de/dotfiles.git
Log | Files | Refs | README

commit 76c684a8a67aa326e87134e42c2d440539713bdc
parent 7ae1bea154058d823551d3adfb35a08b7ad51d79
Author: Sven Möller <sven@svemoe.de>
Date:   Sun,  5 Mar 2023 21:47:54 +0100

Changes too lazy

Diffstat:
MX11/.xinitrc | 4++--
Mbash/.bashrc | 20+++++++++++++++++---
Mbash/.profile | 4+++-
Mbin/.local/bin/lh | 2+-
Mbin/.local/bin/passfill | 6+++++-
Mdwm/.local/src/dwm/config.h | 2+-
Mgit/.config/git/config | 2+-
Mneomutt/.config/neomutt/neomuttrc | 2+-
Mnewsboat/.config/newsboat/config | 19++++++++++---------
Mpipe-viewer/.config/pipe-viewer/pipe-viewer.conf | 3++-
Mprofanity/.config/profanity/profrc | 9+++++----
Msxhkd/.config/sxhkd/sxhkdrc | 6+++---
Mtmux/.config/tmux/tmux.conf | 1+
13 files changed, 52 insertions(+), 28 deletions(-)

diff --git a/X11/.xinitrc b/X11/.xinitrc @@ -24,12 +24,12 @@ gnirehtet autorun & #udiskie & # appearance -#picom & +picom & xrdb -merge .config/X11/Xresources #xrdb -merge .cache/wal/colors.Xresources . "${HOME}/.cache/wal/colors.sh" #hsetroot -solid "#000000" -xwallpaper --zoom ~/pictures/wallpaper +xwallpaper --zoom ~/.wallpaper #dwmblocks & dunst \ -nfr "${color3}" \ diff --git a/bash/.bashrc b/bash/.bashrc @@ -9,13 +9,14 @@ alias pass="gopass" alias mutt="neomutt" alias nb="newsboat" alias o="xdg-open" +alias open="xdg-open" alias yt="pipe-viewer" alias gs="git status" alias gd="git diff" alias gc="git commit" alias ga="git add" alias gr="git restore" -alias sv="mosh sven@svenmoeller.xyz" +alias sv="mosh sven@svemoe.de" alias config="git -C ~/.dotfiles" source /usr/share/bash-completion/completions/git __git_complete config __git_main @@ -27,5 +28,18 @@ alias search="surfraw search" alias t="todo.sh" alias qalc="qalc -s 'decimal comma on'" -source /usr/share/bash-completion/completions/todo.sh -complete -F _todo t +osc7_cwd() { + local strlen=${#PWD} + local encoded="" + local pos c o + for (( pos=0; pos<strlen; pos++ )); do + c=${PWD:$pos:1} + case "$c" in + [-/:_.!\'\(\)~[:alnum:]] ) o="${c}" ;; + * ) printf -v o '%%%02X' "'${c}" ;; + esac + encoded+="${o}" + done + printf '\e]7;file://%s%s\e\\' "${HOSTNAME}" "${encoded}" +} +PROMPT_COMMAND=${PROMPT_COMMAND:+$PROMPT_COMMAND; }osc7_cwd diff --git a/bash/.profile b/bash/.profile @@ -24,7 +24,9 @@ setleds -D +num 2> /dev/null [ -f ~/.bashrc ] && . ~/.bashrc if [ -z "$TMUX" ]; then - if [ -z "$SSH_TTY" ]; then + if [ -z "${DISPLAY}" ] && [ "${XDG_VTNR}" -eq 1 ]; then + startwl + elif [ -z "$SSH_TTY" ]; then udiskie & export TERM=linux-16color tmux new -AD diff --git a/bin/.local/bin/lh b/bin/.local/bin/lh @@ -6,7 +6,7 @@ menu="fzf -i" open () { case "$url" in *.png|*.jpg|*.jpeg|*.JPG|*.gif|*.svg|*.webp) - $PICVIEWER "$url" + nsxiv-url "$url" ;; *.mp3|*mp4|*.ogg|*.flac|*/watch*|*/w/*|*odysee.com/*) $VIDVIEWER "$url" diff --git a/bin/.local/bin/passfill b/bin/.local/bin/passfill @@ -1,6 +1,9 @@ #!/bin/sh account="$(gopass ls --flat | $MENU | xargs -r gopass find | head -n1)" + +[ -z $account ] && exit + entry="$(gopass show "$account")" if [ -z "$DISPLAY" ]; then @@ -9,5 +12,6 @@ else echo "$entry" | grep "login:" | cut -d' ' -f2 | xclip echo "$entry" | grep "url:" | cut -d' ' -f2 | xargs -r $BROWSER gopass -c "$account" - gopass otp "$account" | xargs -r notify-send -t 60000 + echo "$entry" | grep "otpauth:" && \ + gopass otp "$account" | xargs -r notify-send -t 60000 fi diff --git a/dwm/.local/src/dwm/config.h b/dwm/.local/src/dwm/config.h @@ -1,7 +1,7 @@ /* See LICENSE file for copyright and license details. */ /* appearance */ -static const unsigned int borderpx = 1; /* border pixel of windows */ +static const unsigned int borderpx = 0; /* border pixel of windows */ static const unsigned int snap = 32; /* snap pixel */ static const int showbar = 1; /* 0 means no bar */ static const int topbar = 1; /* 0 means bottom bar */ diff --git a/git/.config/git/config b/git/.config/git/config @@ -1,5 +1,5 @@ [user] - email = sven@svenmoeller.xyz + email = sven@svemoe.de name = Sven Möller [pull] rebase = true diff --git a/neomutt/.config/neomutt/neomuttrc b/neomutt/.config/neomutt/neomuttrc @@ -11,7 +11,7 @@ auto_view text/html alternative_order text/plain text/html # Sidebar -set sidebar_visible +#set sidebar_visible set sidebar_format = "%D%?F? [%F]?%* %?N?%N/?%?S?%S?" set mail_check_stats bind index,pager \Ck sidebar-prev # Ctrl-Shift-P - Previous Mailbox diff --git a/newsboat/.config/newsboat/config b/newsboat/.config/newsboat/config @@ -3,21 +3,22 @@ bookmark-cmd "bm" bookmark-autopilot yes scrolloff 10 text-width 80 -browser $LINK_HANDLER +browser lh show-read-feeds no -urls-source "miniflux" -miniflux-url "https://miniflux.svenmoeller.xyz/" -miniflux-login "sven" -miniflux-passwordeval "gopass server/sven@miniflux" +urls-source "freshrss" +freshrss-url "https://news.svemoe.de/api/greader.php" +freshrss-login "sven" +freshrss-passwordeval "gopass svenmoeller.xyz/api@freshrss" +freshrss-flag-star "s" -highlight article "^Title:.*$" blue default -highlight article "Title:" default default +highlight article "^Tit(le|el):.*$" red default +highlight article "Tit(le|el):" default default highlight article "https?://[^ ]+" cyan default -highlight article "\\[[0-9]+\\]" red default +highlight article "\\[[0-9]+\\]" blue default highlight article "\\[image [0-9]+[^\]]+\\]" green default highlight article "Links:" blue default -highlight article "^[ ]*\\* " red default +highlight article "^[ ]*\\* " blue default bind-key j down bind-key k up diff --git a/pipe-viewer/.config/pipe-viewer/pipe-viewer.conf b/pipe-viewer/.config/pipe-viewer/pipe-viewer.conf @@ -1,6 +1,6 @@ #!/usr/bin/perl -# CLI Pipe Viewer 0.4.4 - configuration file +# CLI Pipe Viewer 0.4.5 - configuration file use utf8; @@ -9,6 +9,7 @@ our $CONFIG = { audio_quality => "best", auto_captions => 0, autoplay_mode => 0, + bypass_age_gate_native => 0, bypass_age_gate_with_proxy => 0, cache_dir => "$ENV{HOME}/.cache/pipe-viewer", colors => 1, diff --git a/profanity/.config/profanity/profrc b/profanity/.config/profanity/profrc @@ -2,8 +2,9 @@ theme=solarized-dark history=true -[logging] -chlog=true - [connection] -mam=true +account=sven@svemoe.de + +[notifications] +message=true +message.text=true diff --git a/sxhkd/.config/sxhkd/sxhkdrc b/sxhkd/.config/sxhkd/sxhkdrc @@ -34,11 +34,11 @@ super + y super + c $TERMINAL -e cava -super + p +super + ssharp passfill -super + b - bm -g all open +#super + b +# bm -g all open super + n news -g diff --git a/tmux/.config/tmux/tmux.conf b/tmux/.config/tmux/tmux.conf @@ -1,5 +1,6 @@ set -g prefix M-Space bind M-Space last-window +bind Space send-prefix unbind C-b set -sg escape-time 1