Introduction
Introduction Statistics Contact Development Disclaimer Help
Cleaning up config URLs etc. - dotfiles - These are my dotfiles. There are many…
Log
Files
Refs
README
---
commit 7dee81e1cfb28c0db3552d707249284604e606d6
parent b4d3ece906a944fb0682b1a96855a6a93a858fe4
Author: Jay Scott <[email protected]>
Date: Thu, 2 May 2024 20:28:51 +0100
Cleaning up config URLs etc.
Diffstat:
M .gitignore | 1 +
M ashrc | 6 +++++-
M bin/link_handler.sh | 8 ++++----
A bin/music.sh | 10 ++++++++++
M lynx/bookmarks.html | 14 ++++++--------
M newsraft/config | 5 ++---
M newsraft/feeds | 8 +++-----
M nvim/init.lua | 1 +
M sway/config | 57 ++++++++++++-----------------…
9 files changed, 53 insertions(+), 57 deletions(-)
---
diff --git a/.gitignore b/.gitignore
@@ -18,6 +18,7 @@ bin/terraform
bin/golangci-lint
bin/neonmodem
bin/radio
+bin/w3m
# vim
nvim/lazy-lock.json
diff --git a/ashrc b/ashrc
@@ -14,7 +14,9 @@ export EDITOR="nvim"
export BROWSER="firefox"
export PATH=$PATH:$HOME/bin
-export BEMENU_OPTS="-p '> ' --tb '#013220' --tf '#ffffff' --hf '#444444'"
+# tools
+export OPENER=~/bin/link_handler.sh
+export BEMENU_OPTS="-l 5 -p '>>> ' --tb '#55a1ba' --tf '#ffffff' --hf '#444444…
# terraform config
export TF_CLOUD_ORGANIZATION="jay-scot"
@@ -43,6 +45,8 @@ alias gma='git commit -am'
# neo
alias vim='nvim'
alias mutt='neomutt'
+alias mpv="mpv --autofit=30% --really-quiet --no-terminal"
+alias w="w3m -B"
# vpn
alias von='doas wg-quick up mullvad'
diff --git a/bin/link_handler.sh b/bin/link_handler.sh
@@ -3,9 +3,9 @@
launcher="setsid"
# applications
-player="mpv --really-quiet --no-terminal"
+player="mpv --autofit=30% --really-quiet --no-terminal"
gemini="foot -e amfora"
-gopher="foot -e lynx"
+gopher="foot -e w3m"
pdf="zathura"
images="swayimg"
torrent="qbittorrent"
@@ -21,10 +21,10 @@ case "$uri_lower" in
$gemini "$uri"
;;
gopher:*)
- $gopher "$uri"
+ $gopher "$uri" &
;;
magnet:*)
- $launcher "$torrent" "$uri"
+ $launcher "$torrent" "$uri" &
;;
*.pdf | *.ps | *.epub)
$launcher "$pdf" "$uri"
diff --git a/bin/music.sh b/bin/music.sh
@@ -0,0 +1,10 @@
+#!/bin/sh
+
+DIRECTORY="$HOME/media/music_videos"
+
+directories=$(find "$DIRECTORY" -mindepth 1 -maxdepth 1 -type d -exec basename…
+selected_directory=$(printf "%s\n" "$directories" | bemenu -p 'music: ')
+if [ -n "$selected_directory" ]; then
+ mpv --autofit=30% --really-quiet --no-terminal "$DIRECTORY/$selected_direc…
+fi
+
diff --git a/lynx/bookmarks.html b/lynx/bookmarks.html
@@ -11,16 +11,14 @@
<p>
<ol>
<h2>Gopher</h2>
-<LI><a href="gopher://jay.scot/">jay.scot</a>
-<LI><a href="gopher://gopher.icu/">Ian J</a>
-<LI><a href="gopher://hngopher.com">Hacker News</a>
-<LI><a href="gopher://gopher.tildeverse.org">gopher.tildeverse.org</a>
-<LI><a href="gopher://freeshell.org/">freeshell</a>
-<LI><a href="gopher://bitreich.org/">BitReich</a>
+<li><a href="gopher://jay.scot/">jay.scot</a></li>
+<li><a href="gopher://gopher.icu/">Ian J</a>
+<li><a href="gopher://hngopher.com">Hacker News</a>
<LI><a href="gopher://gopherpedia.com/">gopherpedia</a>
-<LI><a href="gopher://typed-hole.org/1/roll/">typed-hole phlog</a>
<LI><a href="gopher://bitreich.org/1/lawn">The Gopher Lawn</a>
<LI><a href="gopher://gopher.black/1/moku-pona">Aggregator of phlog</a>
-<LI><a href="gopher://uninformativ.de/">Uninform</a>
<LI><a href="gopher://i-logout.cz/1/bongusta/">Bongusta</a>
<LI><a href="gopher://floodgap.com/">Floodgap</a>
+<hr>
+<h2>Web</h2>
+<LI><a href="https://text.npr.org/">NPR</a>
diff --git a/newsraft/config b/newsraft/config
@@ -1,10 +1,9 @@
# settings
set open-in-browser-command ~/bin/link_handler.sh "%l"
-set send-user-agent-header true
set clean-database-on-startup true
-#set menu-feed-sorting unread-desc
-#set menu-item-sorting unread-desc
+set menu-feed-sorting unread-desc
+set menu-item-sorting unread-desc
# key bindings
bind f exec "~/bin/link_handler.sh %l"
diff --git a/newsraft/feeds b/newsraft/feeds
@@ -16,6 +16,7 @@ https://drewdevault.com/blog/index.xml "Drew DeVault"
http://joeyh.name/blog/index.rss "Joey H"
https://unixsheikh.com/feed.rss "Unix Sheikh"
https://www.uninformativ.de/blog/feeds/en.atom "Uninformativ"
+$(curl -s gopher://bitreich.org/0/news.atom.xml) "Bitreich News"
@ ODYSEE
https://odysee.com/$/rss/@AlphaNerd:8 "Mental Outlaws"
@@ -26,12 +27,12 @@ https://odysee.com/$/rss/@thelinuxcast:4 "Linux Cast"
https://odysee.com/$/rss/@SystemCrafters:e "System Crafters"
https://odysee.com/$/rss/@tuxfoo:e "Tuxfoo"
https://odysee.com/$/rss/@hexdsl:7 "HexDSL"
+https://odysee.com/$/rss/@gotbletu:b "Gotbletu"
+https://odysee.com/$/rss/@brightsunfilms:5 "Bright Sun Films"
@ YOUTUBE
https://www.youtube.com/feeds/videos.xml?channel_id=UC2I6Et1JkidnnbWgJFiMeHA "…
-https://www.youtube.com/feeds/videos.xml?channel_id=UC7uO9V1Frl_wPd9d1qOm_RQ "…
https://www.youtube.com/feeds/videos.xml?channel_id=UCLfNfMnFlBYR0q1Fvj5k2hQ "…
-https://www.youtube.com/feeds/videos.xml?channel_id=UC5k3Kc0avyDJ2nG9Kxm9JmQ "…
https://www.youtube.com/feeds/videos.xml?channel_id=UCKr68ZJ4vv6VloNdnS2hjhA "…
https://www.youtube.com/feeds/videos.xml?channel_id=UCQCrKxBj5Id79syQEsY2Qxg "…
https://www.youtube.com/feeds/videos.xml?channel_id=UCRvWwMPr2SmSG7rXXzeEUdA "…
@@ -43,13 +44,11 @@ https://www.youtube.com/feeds/videos.xml?channel_id=UCgNqlR…
https://www.youtube.com/feeds/videos.xml?channel_id=UCHL9bfHTxCMi-7vfxQ-AYtg "…
https://www.youtube.com/feeds/videos.xml?channel_id=UCwpHKudUkP5tNgmMdexB3ow "…
https://www.youtube.com/feeds/videos.xml?channel_id=UCl7mAGnY4jh4Ps8rhhh8XZg "…
-https://www.youtube.com/feeds/videos.xml?channel_id=UCpXwMqnXfJzazKS5fJ8nrVw "…
https://www.youtube.com/feeds/videos.xml?channel_id=UCO8MMsO_XRjO7X4iGCuKdwg "…
https://www.youtube.com/feeds/videos.xml?channel_id=UCpiWxsm9Gt_HK7d-jqkU4MA "…
https://www.youtube.com/feeds/videos.xml?channel_id=UCPqdx8N99fs4IDoK_XA1aew "…
https://www.youtube.com/feeds/videos.xml?channel_id=UCI3mQP0kLxdZKhNtcHhExyA "…
https://www.youtube.com/feeds/videos.xml?channel_id=UCdVEfdWcNwL5jWmwaNWEf1Q "…
-https://www.youtube.com/feeds/videos.xml?channel_id=UC2O6HDtMOZf9FkUAepz9Atg "…
https://www.youtube.com/feeds/videos.xml?channel_id=UCdQ3VoDGjjl3NsfB3V0mPng "…
https://www.youtube.com/feeds/videos.xml?channel_id=UCpNBjjE8y8eFPhDU4YzYmKA "…
https://www.youtube.com/feeds/videos.xml?channel_id=UCGKQFbHWBL9SqYXH41ZMTkw "…
@@ -72,4 +71,3 @@ https://www.youtube.com/feeds/videos.xml?channel_id=UCcjx6m03…
https://www.youtube.com/feeds/videos.xml?channel_id=UCKBUeKsqzKWSxp4pahxljBw "…
https://www.youtube.com/feeds/videos.xml?channel_id=UCcKw8Eg0FfRvhIAnC0cPGAA "…
https://www.youtube.com/feeds/videos.xml?channel_id=UCBhQuxcHU3aydk_zTXcbdTg "…
-https://www.youtube.com/feeds/videos.xml?channel_id=UCkf4VIqu3Acnfzuk3kRIFwA "…
diff --git a/nvim/init.lua b/nvim/init.lua
@@ -99,6 +99,7 @@ vim.opt.termguicolors = true
vim.opt.backup = false
vim.opt.swapfile = false
vim.opt.showmatch = true
+vim.opt.mouse = ""
-- spelling
vim.opt.spell = true
diff --git a/sway/config b/sway/config
@@ -1,18 +1,8 @@
set $mod Mod1
# colour theme
-set $colour #013220
-
-set $left h
-set $down j
-set $up k
-set $right l
-
-# apps
-set $term footclient -d none
-set $browser firefox
-set $menu bemenu-run -n -p '> ' --tb '$colour' --tf '#ffffff' --hf '#444444'
-set $vol pamixer
+set $colour #1c3c46
+set $menu bemenu-run -p '>>> ' --tb '#55a1ba' --tf '#ffffff' --hf '#444444' -c…
# autostart
exec foot --server
@@ -20,11 +10,13 @@ exec wl-paste -t text --watch clipman store --no-persist
exec /usr/libexec/pipewire-launcher
# appearance
-default_border none
-default_floating_border none
-workspace_layout tabbed
+default_border pixel 3
+default_floating_border pixel 5
+workspace_layout default
font pango: Hack:style=Regular 2
+for_window [app_id="mpv"] floating enable, sticky enable, move absolute positi…
+
# misc
xwayland enable
bar swaybar_command waybar
@@ -35,32 +27,24 @@ input * {
xkb_variant "extd"
}
-# monitors
-output HDMI-A-1 pos 0 0 res 1920x1080
-output DP-1 pos 1920 0 res 1920x1080
-
-# workspaces
-workspace 1 HDMI-A-1
-workspace 2 HDMI-A-1
-workspace 3 DP-1
-workspace 4 DP-1
-
# Keybinds
-bindsym $mod+Space exec $term
+bindsym $mod+Space exec footclient
bindsym $mod+p exec $menu
-bindsym $mod+f exec $browser
-bindsym $mod+u exec $vol -i 5
-bindsym $mod+d exec $vol -d 5
+bindsym $mod+f exec firefox
+bindsym $mod+m exec /home/jay/bin/music.sh
+bindsym $mod+u exec pamixer -i 5
+bindsym $mod+d exec pamixer -d 5
bindsym $mod+c kill
+bindsym $mod+x exec killall -SIGUSR1 waybar
bindsym $mod+Shift+c reload
bindsym $mod+Shift+q exec swaymsg exit
# Move your focus around
-bindsym $mod+$left focus left
-bindsym $mod+$down focus down
-bindsym $mod+$up focus up
-bindsym $mod+$right focus right
+bindsym $mod+h focus left
+bindsym $mod+j focus down
+bindsym $mod+k focus up
+bindsym $mod+l focus right
# Or use $mod+[up|down|left|right]
bindsym $mod+Left focus left
@@ -74,13 +58,14 @@ bindsym $mod+2 workspace number 2
bindsym $mod+3 workspace number 3
bindsym $mod+4 workspace number 4
+bindsym $mod+Tab focus next
bindsym $mod+Shift+1 move container to workspace number 1
bindsym $mod+Shift+2 move container to workspace number 2
bindsym $mod+Shift+3 move container to workspace number 3
bindsym $mod+Shift+4 move container to workspace number 4
-bindsym $mod+e layout toggle split
-bindsym $mod+m fullscreen
-bindsym $mod+w layout tabbed
+bindsym $mod+Shift+e layout toggle split
+bindsym $mod+Shift+m fullscreen
+bindsym $mod+Shift+w layout tabbed
client.focused $colour $colour $colour
You are viewing proxied material from jay.scot. The copyright of proxied material belongs to its original authors. Any comments or complaints in relation to proxied material should be directed to the original authors of the content concerned. Please see the disclaimer for more details.