commit cb723a6c5c79a1efe13528cc1667f2efda21f3c3
parent a1db2f0e2e1f7d0bd7f372269282d16a39defa0d
Author: Markus Hanetzok <markus@hanetzok.net>
Date: Sat, 14 Dec 2024 13:08:17 +0100
some updates
- added newsboat config & urls
- updated profile & aliasrc
- renamed rempaps script
- added remaps to xinitrc
Diffstat:
7 files changed, 89 insertions(+), 29 deletions(-)
diff --git a/.config/newsboat/config b/.config/newsboat/config
@@ -0,0 +1,55 @@
+#show-read-feeds no
+auto-reload yes
+
+external-url-viewer "urlscan -dc -r 'linkhandler {}'"
+
+bind-key j down
+bind-key k up
+bind-key j next articlelist
+bind-key k prev articlelist
+bind-key J next-feed articlelist
+bind-key K prev-feed articlelist
+bind-key G end
+bind-key g home
+bind-key d pagedown
+bind-key u pageup
+bind-key l open
+bind-key h quit
+bind-key a toggle-article-read
+bind-key n next-unread
+bind-key N prev-unread
+bind-key D pb-download
+bind-key U show-urls
+bind-key x pb-delete
+
+color listnormal cyan default
+color listfocus black yellow standout bold
+color listnormal_unread blue default
+color listfocus_unread yellow default bold
+color info red black bold
+color article white default bold
+
+browser linkhandler
+macro , open-in-browser
+macro t set browser "qndl" ; open-in-browser ; set browser linkhandler
+macro a set browser "tsp yt-dlp --embed-metadata -xic -f bestaudio/best --restrict-filenames" ; open-in-browser ; set browser linkhandler
+macro v set browser "setsid -f mpv" ; open-in-browser ; set browser linkhandler
+macro w set browser "lynx" ; open-in-browser ; set browser linkhandler
+macro d set browser "dmenuhandler" ; open-in-browser ; set browser linkhandler
+macro c set browser "echo %u | xclip -r -sel c" ; open-in-browser ; set browser linkhandler
+macro C set browser "youtube-viewer --comments=%u" ; open-in-browser ; set browser linkhandler
+macro p set browser "peertubetorrent %u 480" ; open-in-browser ; set browser linkhandler
+macro P set browser "peertubetorrent %u 1080" ; open-in-browser ; set browser linkhandler
+
+highlight all "---.*---" yellow
+highlight feedlist ".*(0/0))" black
+highlight article "(^Feed:.*|^Title:.*|^Author:.*)" cyan default bold
+highlight article "(^Link:.*|^Date:.*)" default default
+highlight article "https?://[^ ]+" green default
+highlight article "^(Title):.*$" blue default
+highlight article "\\[[0-9][0-9]*\\]" magenta default bold
+highlight article "\\[image\\ [0-9]+\\]" green default bold
+highlight article "\\[embedded flash: [0-9][0-9]*\\]" green default bold
+highlight article ":.*\\(link\\)$" cyan default
+highlight article ":.*\\(image\\)$" blue default
+highlight article ":.*\\(embedded flash\\)$" magenta default
diff --git a/.config/newsboat/urls b/.config/newsboat/urls
@@ -0,0 +1,11 @@
+https://git.suckless.org/dwm/atom.xml
+https://git.suckless.org/st/atom.xml
+https://logbuch-netzpolitik.de/feed/mp3
+https://www.netzpolitik.org/wp-rss2.php
+https://www.heise.de/developer/rss/news-atom.xml
+https://www.heise.de/rss/heise-atom.xml
+https://www.titanic-magazin.de/newsticker/rss.xml
+https://www.kino.de/rss/movienews
+https://feeds.feedburner.com/blogspot/rkEL
+https://www.spiegel.de/schlagzeilen/rss/0,5291,,00.xml
+https://rss.sueddeutsche.de/rss/Alles
diff --git a/.config/shell/aliasrc b/.config/shell/aliasrc
@@ -17,12 +17,8 @@ alias \
mv="mv -iv" \
rm="rm -vI" \
bc="bc -ql" \
- rsync="rsync -vrPlu" \
+ rsync="rsync -zrvtP" \
mkd="mkdir -pv" \
- yt="yt-dlp --embed-metadata -i" \
- yta="yt -x -f bestaudio/best" \
- ytt="yt --skip-download --write-thumbnail" \
- ffmpeg="ffmpeg -hide_banner"
# Colorize commands when possible.
alias \
@@ -36,18 +32,13 @@ alias \
alias \
ka="killall" \
g="git" \
- trem="transmission-remote" \
- YT="youtube-viewer" \
- sdn="shutdown -h now" \
- e="$EDITOR" \
+ ytfzf="ytfzf -t" \
v="$EDITOR" \
p="pacman" \
- xi="sudo xbps-install" \
- xr="sudo xbps-remove -R" \
- xq="xbps-query" \
- z="zathura"
-
-alias \
- lf="lfub" \
- magit="nvim -c MagitOnly" \
- ref="shortcuts >/dev/null; source ${XDG_CONFIG_HOME:-$HOME/.config}/shell/shortcutrc ; source ${XDG_CONFIG_HOME:-$HOME/.config}/shell/shortcutenvrc ; source ${XDG_CONFIG_HOME:-$HOME/.config}/shell/zshnameddirrc"
+ z="zathura" \
+ dcd="docker compose down" \
+ dcud="docker compose up -d" \
+ dcp="docker compose pull" \
+ dcl="docker compose logs -n 100 -f" \
+ wd="wg-quick down wg0" \
+ wu="wg-quick up wg0"
diff --git a/.config/shell/profile b/.config/shell/profile
@@ -7,6 +7,7 @@ export PATH="$PATH:$(find ~/.local/bin -type d | paste -sd ':' -)"
export EDITOR="nvim"
export TERMINAL="st"
export TERMINAL_PROG="st"
+export BROWSER="firefox"
# Locations
export NAS_ADDRESS="192.168.178.11"
diff --git a/.config/x11/xinitrc b/.config/x11/xinitrc
@@ -1,4 +1,5 @@
mount-nfs.sh &
+remaps.sh &
mpd &
sxhkd &
status.sh &
diff --git a/.local/bin/remaps b/.local/bin/remaps
@@ -1,11 +0,0 @@
-#!/bin/sh
-
-# This script is called on startup to remap keys.
-# Decrease key repeat delay to 300ms and increase key repeat rate to 50 per second.
-xset r rate 300 50
-# Map the caps lock key to super, and map the menu key to right super.
-setxkbmap -option caps:super,altwin:menu_win
-# When caps lock is pressed only once, treat it as escape.
-killall xcape 2>/dev/null ; xcape -e 'Super_L=Escape'
-# Turn off caps lock if on since there is no longer a key for it.
-xset -q | grep -q "Caps Lock:\s*on" && xdotool key Caps_Lock
diff --git a/.local/bin/remaps.sh b/.local/bin/remaps.sh
@@ -0,0 +1,12 @@
+#!/bin/sh
+
+# This script is called on startup to remap keys.
+# Decrease key repeat delay to 300ms and increase key repeat rate to 50 per second.
+xset r rate 300 50
+# Map the caps lock key to super, and map the menu key to right super.
+setxkbmap -option caps:super,altwin:menu_win
+# When caps lock is pressed only once, treat it as escape.
+killall xcape 2>/dev/null ; xcape -e 'Super_L=Escape'
+# Turn off caps lock if on since there is no longer a key for it.
+xset -q | grep -q "Caps Lock:\s*on" && xdotool key Caps_Lock
+setxkbmap ei