diff options
| author | iceyrazor <iceyrazor@mailfence.com> | 2026-07-22 02:42:17 -0500 |
|---|---|---|
| committer | iceyrazor <iceyrazor@mailfence.com> | 2026-07-22 02:42:17 -0500 |
| commit | b50c450a572c9951baf2bdf1720fb241625c626d (patch) | |
| tree | 4750183b51250f5444a6839bc2bf679ef9a12b79 /env | |
| parent | 735b92dbcfe2f8f85047110bdd17f48900b12b8e (diff) | |
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
Diffstat (limited to 'env')
| -rwxr-xr-x | env/.config/.profile | 2 | ||||
| -rw-r--r-- | env/.config/i3/config | 12 | ||||
| -rwxr-xr-x | env/.config/i3blocks/bandwidth-wrapper.sh | 14 | ||||
| -rw-r--r-- | env/.config/i3blocks/config | 11 | ||||
| -rw-r--r-- | env/.config/vis/themes/caelus.lua | 6 | ||||
| -rw-r--r-- | env/.config/vis/visrc.lua | 1 | ||||
| -rwxr-xr-x | env/.local/bin/scripts/urlview.sh | 6 | ||||
| -rwxr-xr-x | env/.local/bin/system/start-scripts/newsboat-fetch.sh | 8 |
8 files changed, 44 insertions, 16 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 |
