diff --git a/.bin/firefox b/.bin/firefox index 922b63b..3c32203 100755 --- a/.bin/firefox +++ b/.bin/firefox @@ -2,5 +2,5 @@ export XDG_CACHE_HOME=/tmp export MOZ_X11_EGL=1 export MOZ_PLUGIN_PATH=/usr/local/lib/mozilla/plugins - -/usr/local/bin/firefox "$@" +unset _SWM_WS +/usr/local/bin/firefox --new-window "$@" diff --git a/.bin/obsdmake b/.bin/obsdmake index 8e91b0c..076f33c 100755 --- a/.bin/obsdmake +++ b/.bin/obsdmake @@ -9,7 +9,7 @@ abort() { echo "Abort with >$0 $ARGS< on $(date)" >> /tmp/obsdmake.log; } JOBS="${JOBS:=$(sysctl -n hw.ncpuonline)}" JOBS=1 -LOG="/tmp/obsdmake.log" +LOG="/home/sdk/obsdmake.log" export CCACHE_DIR="/var/ccache" export CCACHE_SLOPPINESS="locale,time_macros,random_seed,file_stat_matches,pch_defines" diff --git a/.bin/ytdl b/.bin/ytdl index 8badeb4..132c1b4 100755 --- a/.bin/ytdl +++ b/.bin/ytdl @@ -5,9 +5,22 @@ then exit 2 fi -mkdir -p "$HOME/ytdl/$1/" -update-ksh-completions & +if [ ! -d "$HOME/ytdl/$1/" ] +then + mkdir -p "$HOME/ytdl/$1/" + update-ksh-completions + . $HOME/.kshrc.autocomplete +fi cd "$HOME/ytdl/$1/" shift -yt-dlp --cookies-from-browser chromium "$@" - +yt-dlp \ + --cookies-from-browser firefox \ + --user-agent "Mozilla/5.0 (X11; Linux x86_64; rv:142.0) Gecko/20100101 Firefox/142.0" \ + --preset-alias mp4 \ + --embed-metadata \ + --embed-subs \ + --sub-langs "en.*" \ + --write-auto-subs \ + --restrict-filenames \ + -o "%(uploader)s/%(playlist)s/%(title)s.%(ext)s" \ + "$@" diff --git a/.config/spectrwm/spectrwm.conf b/.config/spectrwm/spectrwm.conf index 08f0e0a..c5aed90 100644 --- a/.config/spectrwm/spectrwm.conf +++ b/.config/spectrwm/spectrwm.conf @@ -21,6 +21,7 @@ color_focus_free = rgb:AF/5F/00 color_unfocus = rgb:44/44/44 color_unfocus_free = rgb:55/35/00 disable_border = 0 +disable_padding = 1 maximize_hide_bar = 0 # +-------------------------------------------------- @@ -216,6 +217,7 @@ bind[bar_toggle_ws] = MOD+Shift+b # LAYOUT bind[cycle_layout] = MOD+l bind[flip_layout] = MOD+Shift+l +bind[center_layout] = MOD+Shift+c bind[float_toggle] = MOD+space bind[free_toggle] = MOD+Shift+space diff --git a/.kshrc b/.kshrc index e57d172..d6f9638 100644 --- a/.kshrc +++ b/.kshrc @@ -27,7 +27,7 @@ export LANG LC_MESSAGES LC_NUMERIC LC_TIME ### SOFTWARE PREFERENCES EDITOR="vim" VISUAL="vim" -BROWSER="chrome" +BROWSER="firefox" PAGER="less" export EDITOR VISUAL BROWSER PAGER @@ -240,8 +240,13 @@ mygot-clone() { alias portroach="portroach-cli -m codevoid" alias ugrep="\ugrep -nI --exclude=tags --exclude=.tags --exclude='cscope.*'" alias tarsnap="doas \tarsnap" -alias vpn-on="doas wg-quick up /etc/wireguard/wg0.conf" -alias vpn-off="doas wg-quick up /etc/wireguard/wg0.conf" +alias vpn-on="doas wg-quick up wg0" +alias vpn-off="doas wg-quick down wg0" +alias edit-pf="doas vim /etc/pf.conf && doas pfctl -f /etc/pf.conf" +alias edit-wg="doas vim /etc/hostname.wg0 && doas sh /etc/netstart wg0" +alias log-wg="doas ifconfig wg0 debug; doas tail -f /var/log/messages | grep wg0" +alias log-wg-remote="ssh shell.codevoid.de 'doas ifconfig wg0 debug; doas tail -f /var/log/messages | grep wg0'" + mystuff() { cd /usr/ports/mystuff