aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoriceyrazor <iceyrazor@mailfence.com>2026-07-22 02:42:17 -0500
committericeyrazor <iceyrazor@mailfence.com>2026-07-22 02:42:17 -0500
commitb50c450a572c9951baf2bdf1720fb241625c626d (patch)
tree4750183b51250f5444a6839bc2bf679ef9a12b79
parent735b92dbcfe2f8f85047110bdd17f48900b12b8e (diff)
Squashed commit of the following:HEADmain
fixed i3blocks breaking blocks on multible monitors added keybind for cboomer urlview.sh change added asciidoc asociation for vis for v0.9 tag fixed vis theme added xorg-xinit. fixed typo xlibre-xserver moved ugrep urlview check change
-rwxr-xr-xenv/.config/.profile2
-rw-r--r--env/.config/i3/config12
-rwxr-xr-xenv/.config/i3blocks/bandwidth-wrapper.sh14
-rw-r--r--env/.config/i3blocks/config11
-rw-r--r--env/.config/vis/themes/caelus.lua6
-rw-r--r--env/.config/vis/visrc.lua1
-rwxr-xr-xenv/.local/bin/scripts/urlview.sh6
-rwxr-xr-xenv/.local/bin/system/start-scripts/newsboat-fetch.sh8
-rwxr-xr-xruns-all/get-reqs-arch/xorg.sh2
-rwxr-xr-xruns/get-reqs-arch.sh4
10 files changed, 47 insertions, 19 deletions
diff --git a/env/.config/.profile b/env/.config/.profile
index e4dd27e..96cf32f 100755
--- a/env/.config/.profile
+++ b/env/.config/.profile
@@ -63,7 +63,7 @@ alias dev="~/stuff/scripts/dotfiles/run.sh"
alias lf="~/.local/bin/lfimg-sixel/lfrun"
alias ovim=/usr/bin/vim
alias vim=nvim
-alias notes="cd ~/stuff/notes && vim notes.adoc && cd ~"
+alias notes="tmux new-session -s notes -c ~/stuff/notes 'zsh -c \"vis notes.adoc; zsh\"'"
alias ts="tmux-sessionizer.sh"
alias fman="bash -c 'compgen -c' | fzf | xargs man"
alias ffmpreg="ffmpeg $@"
diff --git a/env/.config/i3/config b/env/.config/i3/config
index 64637d3..6084e0f 100644
--- a/env/.config/i3/config
+++ b/env/.config/i3/config
@@ -82,6 +82,8 @@ bindsym $mod+d exec --no-startup-id "rofi -x11 -show drun"
bindsym $mod+SHIFT+D exec $HOME/.local/bin/system/rofi-search-web.sh
bindsym $mod+Control+period exec $HOME/.local/bin/system/kaomoji-picker.sh
+bindsym $mod+x exec $HOME/.local/bin/cboomer
+
# kill gamethread
bindsym $mod+Shift+i exec "pkill GameThread && sleep 1 && steam run steam://rungameid/2073850"
@@ -139,10 +141,10 @@ bindsym $mod+space floating toggle
bindsym $mod+Shift+space focus mode_toggle
# focus the parent container
-bindsym $mod+a focus parent
+bindsym $mod+shift+a focus parent
# focus the child container
-#bindsym $mod+d focus child
+bindsym $mod+a focus child
# move the currently focused window to the scratchpad
bindsym $mod+Shift+minus move scratchpad
@@ -304,7 +306,7 @@ bar {
output primary
tray_output primary
strip_workspace_numbers yes
- status_command SCRIPT_DIR=~/.config/i3blocks i3blocks
+ status_command env I3BLOCKS_PRIMARY=1 SCRIPT_DIR=$HOME/.config/i3blocks i3blocks
colors {
statusline #c0caf5
@@ -323,7 +325,7 @@ bar {
output nonprimary
tray_output none
strip_workspace_numbers yes
- status_command SCRIPT_DIR=~/.config/i3blocks i3blocks
+ status_command env SCRIPT_DIR=$HOME/.config/i3blocks i3blocks
colors {
statusline #c0caf5
@@ -335,4 +337,4 @@ bar {
active_workspace $trans $trans $text-color
urgent_workspace $urbg-color $urbg-color $text-color
}
-}
+} \ No newline at end of file
diff --git a/env/.config/i3blocks/bandwidth-wrapper.sh b/env/.config/i3blocks/bandwidth-wrapper.sh
new file mode 100755
index 0000000..d78daa4
--- /dev/null
+++ b/env/.config/i3blocks/bandwidth-wrapper.sh
@@ -0,0 +1,14 @@
+#!/bin/bash
+CACHE_FILE="/tmp/bandwidth.cache"
+
+# Primary bar updates the cache
+if [ -n "$I3BLOCKS_PRIMARY" ]; then
+ ~/.config/i3blocks/bandwidth/bandwidth > "$CACHE_FILE" 2>/dev/null
+fi
+
+# Both bars show from cache
+if [ -f "$CACHE_FILE" ]; then
+ sleep 0.1 && cat "$CACHE_FILE"
+else
+ echo "↓0 ↑0"
+fi
diff --git a/env/.config/i3blocks/config b/env/.config/i3blocks/config
index 1be7de4..b2faf6c 100644
--- a/env/.config/i3blocks/config
+++ b/env/.config/i3blocks/config
@@ -81,8 +81,13 @@ label=󰈀
interval=10
separator=false
-[bandwidth]
+#[bandwidth]
#INTERFACE=eth0
+#interval=5
+
+[bandwidth]
+INTERFACE=eth0
+command=bandwidth-wrapper.sh
interval=5
# CPU usage
@@ -93,7 +98,7 @@ interval=5
label=
interval=10
min_width= 100.00%
-#separator=false
+separator=false
[load_average]
label=
@@ -109,7 +114,7 @@ interval=30
[rss]
label=
-command=/usr/bin/newsboat -x print-unread|sed 's/\s.*//; s/Error:/E/'
+command=cat /tmp/newsboat-unreads.cache 2>/dev/null || echo "0"
interval=20
# Date Time
diff --git a/env/.config/vis/themes/caelus.lua b/env/.config/vis/themes/caelus.lua
index 07461a5..be71bd9 100644
--- a/env/.config/vis/themes/caelus.lua
+++ b/env/.config/vis/themes/caelus.lua
@@ -1,8 +1,8 @@
local lexers = vis.lexers
-local lightyellow = '#efbf71'
-local lightgray = '#9a9c8b'
-local darkgray = '#1e1f1e'
+local lightyellow = '221'
+local lightgray = '144'
+local darkgray = '234'
lexers.STYLE_DEFAULT = 'back:000000,fore:white'
lexers.STYLE_NOTHING = 'back:black'
diff --git a/env/.config/vis/visrc.lua b/env/.config/vis/visrc.lua
index b11f0cb..d1a2e32 100644
--- a/env/.config/vis/visrc.lua
+++ b/env/.config/vis/visrc.lua
@@ -28,3 +28,4 @@ vis.events.subscribe(vis.events.WIN_OPEN, function(win)
end)
vis.ftdetect.filetypes["greyscript"] = { ext = { "%.src$" } }
+vis.ftdetect.filetypes["asciidoc"] = { ext = { "%.adoc$" } }
diff --git a/env/.local/bin/scripts/urlview.sh b/env/.local/bin/scripts/urlview.sh
index 797f40f..394ac66 100755
--- a/env/.local/bin/scripts/urlview.sh
+++ b/env/.local/bin/scripts/urlview.sh
@@ -1,14 +1,14 @@
#!/bin/sh
-url="$(grep -o -e 'http://[^"]*' -e 'https://[^"]*' <&0 | tr ' ' '\n' | fzf)"
-[ "$url" = "" ] && exit
+url="$(grep -Eo "https?://[^]})\"'' ]*" <&0 | fzf)" # extra ' because my editor dont syntax highlight correctly
+[ ! "$url" ] && exit
choices="\
clipboard
browser/xdg-open"
choice=$(echo "$choices" | fzf)
-[ "$choice" = "" ] && exit
+[ ! "$choice" ] && exit
choice=$(echo "$choice" | sed -e 's/browser\/xdg-open/xdg-open/') # browser/xdg-open should just run xdg-open
if [ "$choice" = "clipboard" ]; then
diff --git a/env/.local/bin/system/start-scripts/newsboat-fetch.sh b/env/.local/bin/system/start-scripts/newsboat-fetch.sh
index 5eefe9b..bd9146c 100755
--- a/env/.local/bin/system/start-scripts/newsboat-fetch.sh
+++ b/env/.local/bin/system/start-scripts/newsboat-fetch.sh
@@ -1,11 +1,17 @@
#!/bin/sh
+
+CACHE_FILE="/tmp/newsboat-unreads.cache"
+
+[ -f "$CACHE_FILE" ] || echo "0" > "$CACHE_FILE"
+
newsboat_loop(){
NO_PROXY=\".com,.org,.xyz,.chat,.social,.net,.co,.love\" newsboat -x reload
- #newsboat -x print-unread | xargs -0 notify-send "newsboat feed"
unreads=$(newsboat -x print-unread)
unreadnum=$(printf -- "%s" "$unreads" | sed 's/ .*//g')
+ echo "${unreadnum:-0}" > "$CACHE_FILE"
+
if [ "$unreadnum" -gt 0 ]; then
notify-send "newsboat feed" "$unreads"
fi
diff --git a/runs-all/get-reqs-arch/xorg.sh b/runs-all/get-reqs-arch/xorg.sh
index 15177b1..e642e9f 100755
--- a/runs-all/get-reqs-arch/xorg.sh
+++ b/runs-all/get-reqs-arch/xorg.sh
@@ -1,2 +1,2 @@
#!/bin/sh
-$sudo pacman -S --noconfirm xlibre-server xorg-xinit libxft libxinerama
+$sudo pacman -S --noconfirm xlibre-xserver xorg-xinit libxft libxinerama xorg-xinit
diff --git a/runs/get-reqs-arch.sh b/runs/get-reqs-arch.sh
index 9c87626..9f9056c 100755
--- a/runs/get-reqs-arch.sh
+++ b/runs/get-reqs-arch.sh
@@ -6,8 +6,8 @@ if [ "$ID" = "artix" ] || [ "$ID" = "arch" ]; then
echo GETTING MIN REQS
- $sudo pacman -S neovim rsync man-db wget git fzf ugrep
- $sudo pacman -S lf
+ $sudo pacman -S neovim rsync man-db wget git fzf
+ $sudo pacman -S lf ugrep
echo -------------
fi