Cleaning and adding new RSS feeds. - dotfiles - These are my dotfiles. There are many like it, but these are mine.
(HTM) git clone git://jay.scot/dotfiles
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) README
---
(DIR) commit bb5259bfef8dc33826d4c835465fa7d95c510baf
(DIR) parent 08f6b8d5a457655d945ef23a0b935fb79a584438
(HTM) Author: Jay Scott <me@jay.scot>
Date: Mon, 3 Feb 2025 20:41:31 +0000
Cleaning and adding new RSS feeds.
Diffstat:
M Xdefaults | 10 ++++++++++
A bin/termbar | 60 +++++++++++++++++++++++++++++++
M cwmrc | 9 ++++++---
M kshrc | 3 ---
M rss2email/rss2email.cfg | 97 +++++++++----------------------
M xsession | 8 +++++++-
6 files changed, 109 insertions(+), 78 deletions(-)
---
(DIR) diff --git a/Xdefaults b/Xdefaults
@@ -5,6 +5,8 @@ xterm*scrollBar: false
xterm*loginShell: true
xterm*selectToClipboard: true
xterm.termName: xterm-256color
+xterm.fullscreen: never
+xterm.omitTranslation: fullscreen
/* XFT */
Xft.dpi: 96
@@ -15,6 +17,14 @@ Xft.autohint: false
Xft.hintstyle: hintslight
Xft.lcdfilter: lcddefault
+! termbar
+!termbar*faceName: xft:mono:pixelsize=24
+termbar*geometry: 1920x1+0+0
+termbar*internalBorder: 6
+termbar*saveLines: 0
+termbar*scrollBar: false
+termbar*title: termbar
+
! special
*.foreground: #ebdbb2
*.background: #282828
(DIR) diff --git a/bin/termbar b/bin/termbar
@@ -0,0 +1,60 @@
+#!/bin/sh
+
+## Debug
+#set -x
+
+trap 'exec $0' HUP # Restart itself
+trap 'tput cnorm; exit 1' INT QUIT TERM
+
+esc="\033"
+reset="${esc}[0m"
+redf="${esc}[31m"
+cyanf="${esc}[36m";
+purplef="${esc}[35m"
+pipe="${purplef}|${reset}"
+
+today()
+{
+ DATE=$(date '+%a %d %b %H:%M')
+}
+
+desktop_id()
+{
+ DESKTOP_ID=$(xprop -root 32c '\t$0' _NET_CURRENT_DESKTOP | cut -f 2)
+}
+
+bat()
+{
+ BAT=$(apm -l)
+}
+
+bat_status()
+{
+ STATUS=$(sysctl hw.sensors.acpiac0.indicator0 | grep -c On)
+
+ if [ ${STATUS} -eq "1" ]; then
+ BAT_STATUS=$(echo Connected)
+ else
+ BAT_STATUS=$(echo ${redf}Disconnected${reset})
+ fi
+}
+
+mem()
+{
+ MEM=$(top -n | grep Memory | awk {'print $6'})
+}
+
+tput civis
+
+while true; do
+ today
+ desktop_id
+ mem
+ bat
+ bat_status
+ tput cup 1 0
+ printf "[${DESKTOP_ID}] ${pipe} ${reset} ${DATE} ${pipe} ${cyanf}Mem:${reset} ${MEM} "
+ printf "${pipe} ${cyanf}Bat:${reset} $BAT - ${BAT_STATUS}"
+ printf " " echo "\e[1A"
+ sleep 1
+done
(DIR) diff --git a/cwmrc b/cwmrc
@@ -5,20 +5,24 @@ fontname "Hack:pixelsize=14:bold"
sticky yes
# Appearance
-borderwidth 2
+borderwidth 3
color font "#eeeeee"
color selfont "#eeeeee"
color menubg "#161616"
color menufg "#5294E2"
+# ignore
+ignore "termbar"
+
# Autogroup some apps
+autogroup0 "termbar,termbar"
autogroup 2 "Navigator,firefox-default"
# Remove all default keybindings
unbind-key all
# Key bindings
-bind-key M-m /home/jay/bin/music
+bind-key M-m window-maximize
bind-key M-space xterm
bind-key M-f firefox
@@ -26,7 +30,6 @@ bind-key M-p menu-exec
bind-key M-r restart
bind-key M-c window-close
bind-key M-q quit
-bind-key M-return window-fullscreen
bind-key M-1 group-only-1
bind-key M-2 group-only-2
(DIR) diff --git a/kshrc b/kshrc
@@ -3,9 +3,6 @@ export XDG_CACHE_HOME="$HOME/.cache"
export XDG_DATA_HOME="$HOME/.local/share"
export XDG_STATE_HOME="$HOME/.local/state"
-# cleanup ~/
-export CARGO_HOME="$XDG_DATA_HOME"/cargo
-
# common exports
GPG_TTY=$(tty)
export GPG_TTY
(DIR) diff --git a/rss2email/rss2email.cfg b/rss2email/rss2email.cfg
@@ -1,92 +1,23 @@
[DEFAULT]
from = rss@jay.scot
-user-agent = rss2email/__VERSION__ (__URL__)
-use-8bit = False
force-from = True
use-publisher-email = False
name-format = {feed-title}: {author}
to = me@jay.scot
-proxy =
feed-timeout = 60
same-server-fetch-interval = 0
active = True
-digest = False
-digest-type = multipart/digest
date-header = True
-date-header-order = modified, issued, created, expired
-bonus-header =
trust-guid = True
trust-link = False
reply-changes = False
-encodings = US-ASCII, ISO-8859-1, UTF-8, BIG5, ISO-2022-JP
post-process = rss2email.post_process.prettify process
-digest-post-process =
-subject-format = {feed-title}
html-mail = False
-multipart-html = False
-use-css = False
-css = h1 {
- font: 18pt Georgia, "Times New Roman";
- }
- body {
- font: 12pt Arial;
- }
- a:link {
- font: 12pt Arial;
- font-weight: bold;
- color: #0000cc;
- }
- blockquote {
- font-family: monospace;
- }
- .header {
- background: #e0ecff;
- border-bottom: solid 4px #c3d9ff;
- padding: 5px;
- margin-top: 0px;
- color: red;
- }
- .header a {
- font-size: 20px;
- text-decoration: none;
- }
- .footer {
- background: #c3d9ff;
- border-top: solid 4px #c3d9ff;
- padding: 5px;
- margin-bottom: 0px;
- }
- .entry {
- border: solid 4px #c3d9ff;
- }
- .body {
- margin-left: 5px;
- margin-right: 5px;
- }
unicode-snob = False
links-after-each-paragraph = False
-inline-links = True
+inline-links = False
wrap-links = True
body-width = 72
-email-protocol = sendmail
-sendmail = /usr/sbin/sendmail
-sendmail_config =
-smtp-auth = False
-smtp-username = username
-smtp-password = password
-smtp-server = smtp.example.net
-smtp-port = 465
-smtp-ssl = False
-imap-auth = False
-imap-username = username
-imap-password = password
-imap-server = imap.example.net
-imap-port = 143
-imap-ssl = False
-imap-mailbox = INBOX
-maildir-path = ~/Maildir
-maildir-mailbox = INBOX
-verbose = info
[feed.noted]
url = https://noted.lol/rss/
@@ -98,7 +29,7 @@ url = https://selfh.st/rss/
url = https://planet.kernel.org/rss20.xml
[feed.bear-blogs]
-url = https://bearblog.dev/discover/feed/
+url = https://bearblog.dev/discover/feed/?lang=en
[feed.Uninformativ]
url = https://www.uninformativ.de/blog/feeds/en.atom
@@ -124,3 +55,27 @@ url = https://labnotes.org/rss/
[feed.1MB-Club]
url = https://1mb.club/posts.xml
+[feed.Tumfatig]
+url = https://www.tumfatig.net/index.xml
+
+[feed.Smol-Web]
+url = https://smol.pub/atom.xml
+
+[feed.Midnight-Pub]
+url = https://midnight.pub/feed.xml
+
+[feed.Astro-GR]
+url = https://astro-gr.org/openbsd/feed/
+
+[feed.Lobster-Unix]
+url = https://lobste.rs/t/unix.rss
+
+[feed.OpenBSD-Journal]
+url = https://undeadly.org/cgi?action=rss;full=yes
+
+[feed.OpenBSD-Webzine]
+url = https://webzine.puffy.cafe/atom.xml
+
+[feed.Hoagies]
+url = https://site.sebasmonia.com/feed.xml
+
(DIR) diff --git a/xsession b/xsession
@@ -1,3 +1,7 @@
+
+# firefox
+export MOZ_ACCELERATED=1 MOZ_WEBRENDER=1
+
# x settings
xset -b
xsetroot -solid black
@@ -6,6 +10,8 @@ xsetroot -solid black
slstatus &
mpd &
+# termbar
+#exec xterm -name termbar -class termbar -e ~/bin/termbar &
+
# window manager
-#exec dwm
exec cwm