misc updates - dotfiles - These are my dotfiles. There are many like it, but these are mine.
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) README
---
(DIR) commit 2d737ed1c32cb0304c00d627570d6099ec7927d8
(DIR) parent 4cd431555432812ba6c2b17095fc64c439957e87
(HTM) Author: Jay Scott <me@jay.scot>
Date: Sun, 25 Sep 2022 15:24:23 +0100
misc updates
Diffstat:
A bin/sway-run.sh | 26 ++++++++++++++++++++++++++
M bin/yt_dl.sh | 10 ++++++++--
M fdm/config | 13 ++++++-------
M mutt/muttrc | 10 +++++-----
M sfeed/sfeedrc | 2 ++
5 files changed, 47 insertions(+), 14 deletions(-)
---
(DIR) diff --git a/bin/sway-run.sh b/bin/sway-run.sh
@@ -0,0 +1,26 @@
+#!/bin/sh
+export TERM=foot
+export _JAVA_AWT_WM_NONREPARENTING=1
+export GTK_IM_MOUDLE=xim
+export XMODIFIERS=@im=ibus
+export QT_IM_MODULE=ibus
+export XKB_DEFAULT_OPTIONS=caps:escape
+export GDK_BACKEND=wayland
+export XDG_SESSION_TYPE=wayland
+export XCURSOR_THEME=Adwaita
+export XDG_DESKTOP_DIR="$HOME"
+export XDG_DOWNLOAD_DIR="$HOME/tmp"
+export XDG_DOCUMENTS_DIR="$HOME/tmp"
+export XDG_MUSIC_DIR="$HOME/tmp"
+export XDG_PICTURES_DIR="$HOME/tmp"
+export XDG_VIDEOS_DIR="$HOME/tmp"
+export XDG_CURRENT_DESKTOP=sway
+
+if [ -z "$XDG_RUNTIME_DIR" ]
+then
+ mkdir -p /tmp/runtime/jay
+ chmod 700 /tmp/runtime/jay
+ export XDG_RUNTIME_DIR=/tmp/runtime/jay
+fi
+
+exec dbus-run-session sway
(DIR) diff --git a/bin/yt_dl.sh b/bin/yt_dl.sh
@@ -7,7 +7,7 @@
# user config
savepath="/data/media/videos"
cfgdir="${HOME}/.cache/yt_dl"
-post="echo '%(title)s' | mutt -s 'YT: %(channel)s ' -- me@jay.scot"
+post="echo \"%(title)s\" | mutt -s 'YT: %(channel)s ' -- me@jay.scot"
# youtube-dl related settings
yt="yt-dlp"
@@ -18,6 +18,7 @@ main() {
mkdir -p "${cfgdir}"
+ $1 "mr_sudo" "https://www.youtube.com/playlist?list=UUZEvYxVEr0MMUG2ZCpG8bRA"
$1 "mre_steve" "https://www.youtube.com/playlist?list=UU2I6Et1JkidnnbWgJFiMeHA"
$1 "harald_baldr" "https://www.youtube.com/playlist?list=UUKr68ZJ4vv6VloNdnS2hjhA"
$1 "dale_philip" "https://www.youtube.com/playlist?list=UUKygRpISlqs5TufcT3JtRng"
@@ -33,7 +34,6 @@ main() {
$1 "c90adventures" "https://www.youtube.com/playlist?list=UUVqpNG1R72i21jh-nAxEk4A"
$1 "abroad_in_japan" "https://www.youtube.com/playlist?list=UUHL9bfHTxCMi-7vfxQ-AYtg"
$1 "mental_outlaw" "https://www.youtube.com/playlist?list=UU7YOGHUfC1Tb6E4pudI9STA"
- $1 "rwxrob" "https://www.youtube.com/playlist?list=UUs2Kaw3Soa63cJq3H0VA7og"
$1 "quin69" "https://www.youtube.com/playlist?list=UUpNBjjE8y8eFPhDU4YzYmKA"
$1 "clawd00d" "https://www.youtube.com/playlist?list=UUdQ3VoDGjjl3NsfB3V0mPng"
$1 "serpentza" "https://www.youtube.com/playlist?list=UUl7mAGnY4jh4Ps8rhhh8XZg"
@@ -44,6 +44,7 @@ main() {
$1 "bright_sun_films" "https://www.youtube.com/playlist?list=UU5k3Kc0avyDJ2nG9Kxm9JmQ"
$1 "tuxfoo" "https://www.youtube.com/playlist?list=UUWpoyqSBIXtylRLFgP3PFfg"
$1 "system_crafters" "https://www.youtube.com/playlist?list=UUAiiOTio8Yu69c3XnR7nQBQ"
+ $1 "someordinarygamer" "https://www.youtube.com/playlist?list=UUtMVHI3AJD4Qk4hcbZnI9ZQ"
}
get_video() {
@@ -71,6 +72,11 @@ case $1 in
main get_ids
exit
;;
+-n)
+ get_ids $2 $3
+ exit
+ ;;
+
*)
main get_video
exit
(DIR) diff --git a/fdm/config b/fdm/config
@@ -6,7 +6,7 @@ $imap_pass = $(pass tech/mailbox.org | head -n1)
$path = "%h/.mail"
$feedcache = "%h/.mail/fdm.cache"
$feeddir = "%h/.mail/feeds/"
-$listdir = "%h/.mail/mailinglists/"
+$listdir = "%h/.mail/ml"
$strurl = "(http[s]?://.*|gemini://.*)"
# options
@@ -26,12 +26,11 @@ account "personal" imaps
action "inbox" maildir "${path}/%u/Inbox"
# mailing lists
-action "freebsd-announce" maildir "${path}/${listdir}/freebsd.announce"
-action "freebsd-current" maildir "${path}/${listdir}/freebsd.current"
-action "freebsd-questions" maildir "${path}/${listdir}/freebsd.questions"
-action "sourcehut-discuss" maildir "${path}/${listdir}/srht.discuss"
-action "srht-discuss" maildir "${path}/${listdir}/srht.discuss"
-action "srht-dev" maildir "${path}/${listdir}/srht.dev"
+action "freebsd-announce" maildir "${listdir}/freebsd.announce"
+action "freebsd-current" maildir "${listdir}/freebsd.current"
+action "freebsd-questions" maildir "${listdir}/freebsd.questions"
+action "srht-discuss" maildir "${listdir}/srht.discuss"
+action "srht-dev" maildir "${listdir}/srht.dev"
# feeds
action "feedtag" tag "msgid" value "%1"
(DIR) diff --git a/mutt/muttrc b/mutt/muttrc
@@ -76,10 +76,10 @@ mailboxes +feeds/uninformativ
# mailing lists
mailboxes +mailinglists
-mailboxes -label "srht.discuss" +mailinglists/srht.discuss
-mailboxes -label "srht.dev" +mailinglists/srht.dev
-mailboxes -label "freebsd.questions" +mailinglists/freebsd.questions
-mailboxes -label "freebsd.announce" +mailinglists/freebsd.announce
+mailboxes -label "srht.discuss" +ml/srht.discuss
+mailboxes -label "srht.dev" +ml/srht.dev
+mailboxes -label "freebsd.questions" +ml/freebsd.questions
+mailboxes -label "freebsd.announce" +ml/freebsd.announce
set sort_alias = alias
set reverse_alias = yes
@@ -97,7 +97,7 @@ macro index M "<save-message>?<toggle-mailboxes>" "move a message to a mailbox"
# sorting
set sort = threads
set sort_aux = reverse-date
-set pager_index_lines = 5
+set pager_index_lines = 10
set pager_context = 1
set index_format = '%Z | %{%b %d %Y} | %-15.15F | %s'
(DIR) diff --git a/sfeed/sfeedrc b/sfeed/sfeedrc
@@ -27,10 +27,12 @@ feeds() {
feed 'tomasino' 'gemini://tilde.team/~tomasino/atom.xml'
feed 'antenna' 'gemini://warmedal.se/~antenna/atom.xml'
feed 'techrights' 'gemini://gemini.techrights.org/feed.xml'
+ feed 'ewok' 'gemini://warmedal.se/~bjorn/atom.xml'
# people
feed 'codemadness' 'https://codemadness.org/atom.xml'
feed 'drewdevault' 'https://drewdevault.com/blog/index.xml'
feed 'seeshyjo' 'http://joeyh.name/blog/index.rss'
feed 'unixsheikh' 'https://unixsheikh.com/feed.rss'
feed 'uninformativ' 'https://www.uninformativ.de/blog/feeds/en.atom'
+ feed 'fabiensanglard' 'https://fabiensanglard.net/rss.xml'
}