repositories / dotfiles

dotfiles

bugabingas dorkfiles

owned by bugabinga

river: new config

3fecbbcdf9d35b2ef6e7b2ba9900635e85eca3fb

Oliver Jan Krylow <olver@bugabinga.net> ·

unsigned

Browse filesCompare with HEAD

Changed files (10)

COMMANDS.md

Modified
3 3 ## Commands to remember
5 5 - cbs: copy and paste
6 6 - ouch: compress and decompress archives
7 7 - sd: search and replace
8 -- fd: find files recursively
9 8 - diskonaut: explore file system visually for large files
10 9 - btm (bottom): system overview
11 -- rg: search file contents
12 -- bat: show file content
13 10 - mdcat: render markdown in the terminal
14 -- tokei: count lines of code
15 -- hyperfine: benchmark tool
16 11 - menyoki: capture screenshots, record gifs
17 12 - tldr: tool documentation
18 13 - grex: regular expression pattern generator
20 15 - pastel: manage colors
21 16 - hexyl: terminal hex viewer
22 17 - gib: generate gitignore files
23 -- ix (indexa): global file search
24 18 - silicon: code pretty picture generator
25 -- eva: calculator
26 19 - bandwhich: show network traffic information
27 20 - so: search Stack Exchange
28 21 - linky: check markdown for broken links
29 22 - comrak: render markdown to html
30 -- hx: terminal code editor
31 23 - xplr: terminal file explorer
32 24 - t-rec: terminal gifs
33 -- podcast: podcast manager
34 25 - sic: image manipulation
35 26 - vivid: generate LS_COLORS
36 27 - chars: unicode character info
37 -- franklin-cli: evolutionary image filter
38 28 - uggo: LoL builds

TODO.md

Modified
5 5 - [ ] encrypt box key
6 6 - [ ] get SIM card to work on x230
7 7 - [ ] rewrite bootstripper and java commmands with zig. how to run them? precompile? zig run?
8 -- [ ] expand nugu theme to wezterm and eclipse, and more
8 +- [ ] nugu theme creator: wezterm, hx, zellij, river, eclipse
9 + - [ ] expand nugu theme to wezterm and eclipse, and more
10 +- [ ] system status command: network, disk space, todo, vsc status, time date, pacsave files
11 +- [ ] wrap mv and rm to use git/svn versions if applicable
12 +- [ ] global dark/light theme switch
9 13 - [x] port nushell config to new config script
14 +- [x] configure tiny irc
16 +## x230
18 +- [ ] pacman hook reflector on mirrorlist
19 +- [ ] install pipewire
20 +- [ ] Configure makepkg and paru
21 + - [ ] pacman paru makepkg sscache ?
22 +- [ ] check out river recommended tools
23 +- [ ] bootstripper encrypt keys + ssh config
24 +- [ ] create snapper snapshot + systemd-boot entries
25 +- [ ] install GRML rescue system into systemd-boot
26 +- [ ] sign secure boot and unified kernel image
27 +- [ ] install coreboot
28 +- [ ] create custom optimized pacman repo
29 +- [ ] Toolbox on Arch? Custom tool based on nspawn?
30 +- [ ] install circular clipboard thingy
31 +- [ ] restart iwd on wakeup
32 +- [x] river + systemd user + tty2
33 +- [x] dotfiles + refresh configs
34 +- [x] disable TAB key in tty
35 +- [x] merge nushell config
36 +- [x] hx colors in console? why different?

nushell/config.nu

Modified
7 7 use git.nu *
8 8 use svn.nu *
9 9 use openssl.nu *
10 +use pacnew.nu *
11 12 # CUSTOM COMPLETIONS
12 13 use svn.complete.nu *

nushell/modules/aliases.nu

Modified
4 4 # Semantic aliases
5 5 export alias view = bat
6 6 export alias list = exa --group-directories-first --classify --all --long --icons --git
7 7 export alias tree = exa --tree --group-directories-first
8 8 export alias look = xplr
9 9 export alias browse = firefox
10 -export alias edit = hx
10 +export def edit [ ...rest: string ] {
11 + if $env.WIN32? {
12 + code $rest
13 + } else {
14 + helix $rest
15 + }
12 18 # wrapper to delegate to gsudo/sudo if available.
13 19 export def doas [

nushell/modules/pacnew.nu

Added
new file mode 100644
1 +def to_original [] { str replace .pacnew '' }
3 +# Looks for *.pacnew files that need merging.
4 +# If found, start a merge in meld for each file.
5 +export def pacnew [] {
6 + let pacnew_to_merge = ( fd '.*\.pacnew$' /etc | sk -0 -1 | str trim )
7 + if ( $pacnew_to_merge | empty? ) {
8 + echo "No pacnew file to merge"
9 + } else {
10 + let original = ( $pacnew_to_merge | to_original )
11 + let pacnew_tmp = "/tmp/" + ( $pacnew_to_merge | path basename )
12 + let original_tmp = "/tmp/" + ( $original | path basename )
13 + cp $pacnew_to_merge $pacnew_tmp
14 + cp $original $original_tmp
15 + meld --label $pacnew_to_merge $pacnew_tmp --label $original $original_tmp
16 + let success = ( input "Merged? [yN] " )
17 + if ( $success | str downcase | str contains 'y' ) {
18 + echo $"Saving merged ($pacnew_to_merge) to ($original)"
19 + doas mv $original_tmp $original
20 + doas rm $pacnew_to_merge
21 + } else {
22 + echo $"Merge of ($pacnew_to_merge) aborted."
23 + rm $original_tmp
24 + }
25 + rm $pacnew_tmp
26 + }

nushell/modules/todo.nu

Modified
1 1 # Render my To-Do file in the terminal
2 2 export def todo [] { mdcat ($env.DOTFILES | path join "TODO.md") }
3 3 # Open my To-Do file for editing
4 -export def "todo edit" [] { hx ($env.DOTFILES | path join "TODO.md")}
4 +export def "todo edit" [] { edit ($env.DOTFILES | path join "TODO.md")}
5 5 # Open a list of commands, that I would like to remember to use
6 6 export def "todo commands" [] { mdcat ($env.DOTFILES | path join "COMMANDS.md") }
7 7 # Open the list of commands to remember for editing.
8 -export def "todo commands edit" [] { hx ($env.DOTFILES | path join "COMMANDS.md") }
8 +export def "todo commands edit" [] { edit ($env.DOTFILES | path join "COMMANDS.md") }

river/init

Added
new file mode 100755
1 +#!/bin/sh
3 +# This is the example configuration file for river.
4 +#
5 +# If you wish to edit this, you will probably want to copy it to
6 +# $XDG_CONFIG_HOME/river/init or $HOME/.config/river/init first.
7 +#
8 +# See the river(1), riverctl(1), and rivertile(1) man pages for complete
9 +# documentation.
11 +# Use the "logo" key as the primary modifier
12 +super="Mod4"
13 +alt="Mod1"
14 +ctrl="Control"
16 +# super+Shift+Return to start an instance of foot (https://codeberg.org/dnkl/foot)
17 +# riverctl map normal $super+Shift Return spawn foot
18 +riverctl map normal $super Return spawn wezterm
19 +riverctl map normal $super B spawn firefox
21 +# super+Q to close the focused view
22 +riverctl map normal $super Q close
24 +# super+E to exit river
25 +riverctl map normal $super+Shift E exit
27 +# super+J and Mod+K to focus the next/previous view in the layout stack
28 +riverctl map normal $super J focus-view next
29 +riverctl map normal $super K focus-view previous
30 +# super+Shift+J and Mod+Shift+K to swap the focused view with the next/previous
31 +# view in the layout stack
32 +riverctl map normal $super+Shift J swap next
33 +riverctl map normal $super+Shift K swap previous
35 +# super+Period and Mod+Comma to focus the next/previous output
36 +riverctl map normal $super Period focus-output next
37 +riverctl map normal $super Comma focus-output previous
39 +# super+Shift+{Period,Comma} to send the focused view to the next/previous output
40 +riverctl map normal $super+Shift Period send-to-output next
41 +riverctl map normal $super+Shift Comma send-to-output previous
43 +# super+Return to bump the focused view to the top of the layout stack
44 +riverctl map normal $super+Shift Space zoom
46 +# super+H and Mod+L to decrease/increase the main ratio of rivertile(1)
47 +riverctl map normal $super H send-layout-cmd rivertile "main-ratio -0.05"
48 +riverctl map normal $super L send-layout-cmd rivertile "main-ratio +0.05"
50 +# super+Shift+H and Mod+Shift+L to increment/decrement the main count of rivertile(1)
51 +riverctl map normal $super+Shift H send-layout-cmd rivertile "main-count +1"
52 +riverctl map normal $super+Shift L send-layout-cmd rivertile "main-count -1"
53 +# super+Alt+{H,J,K,L} to move views
55 +riverctl map normal $super+$alt H move left 100
56 +riverctl map normal $super+$alt J move down 100
57 +riverctl map normal $super+$alt K move up 100
58 +riverctl map normal $super+$alt L move right 100
60 +# super+Alt+Control+{H,J,K,L} to snap views to screen edges
61 +riverctl map normal $super+$alt+Control H snap left
62 +riverctl map normal $super+$alt+Control J snap down
63 +riverctl map normal $super+$alt+Control K snap up
64 +riverctl map normal $super+$alt+Control L snap right
66 +# super+Alt+Shif+{H,J,K,L} to resize views
67 +riverctl map normal $super+$alt+Shift H resize horizontal -100
68 +riverctl map normal $super+$alt+Shift J resize vertical 100
69 +riverctl map normal $super+$alt+Shift K resize vertical -100
70 +riverctl map normal $super+$alt+Shift L resize horizontal 100
72 +# super + Left Mouse Button to move views
73 +riverctl map-pointer normal $super BTN_LEFT move-view
75 +# super + Right Mouse Button to resize views
76 +riverctl map-pointer normal $super BTN_RIGHT resize-view
78 +for i in $(seq 1 9)
79 +do
80 + tags=$((1 << ($i - 1)))
82 + # super+[1-9] to focus tag [0-8]
83 + riverctl map normal $super $i set-focused-tags $tags
85 + # super+Shift+[1-9] to tag focused view with tag [0-8]
86 + riverctl map normal $super+Shift $i set-view-tags $tags
88 + # super+Ctrl+[1-9] to toggle focus of tag [0-8]
89 + riverctl map normal $super+Control $i toggle-focused-tags $tags
91 + # super+Shift+Ctrl+[1-9] to toggle tag [0-8] of focused view
92 + riverctl map normal $super+Shift+Control $i toggle-view-tags $tags
93 +done
95 +# super+0 to focus all tags
96 +# super+Shift+0 to tag focused view with all tags
97 +all_tags=$(((1 << 32) - 1))
98 +riverctl map normal $super 0 set-focused-tags $all_tags
99 +riverctl map normal $super+Shift 0 set-view-tags $all_tags
101 +# super+Space to toggle float
102 +riverctl map normal $super Space toggle-float
104 +# super+F to toggle fullscreen
105 +riverctl map normal $super F toggle-fullscreen
107 +# super+{Up,Right,Down,Left} to change layout orientation
108 +riverctl map normal $super Up send-layout-cmd rivertile "main-location top"
109 +riverctl map normal $super Right send-layout-cmd rivertile "main-location right"
110 +riverctl map normal $super Down send-layout-cmd rivertile "main-location bottom"
111 +riverctl map normal $super Left send-layout-cmd rivertile "main-location left"
113 +# Declare a passthrough mode. This mode has only a single mapping to return to
114 +# normal mode. This makes it useful for testing a nested wayland compositor
115 +riverctl declare-mode passthrough
117 +# super+F11 to enter passthrough mode
118 +riverctl map normal $super F11 enter-mode passthrough
120 +# super+F11 to return to normal mode
121 +riverctl map passthrough $super F11 enter-mode normal
123 +# Various media key mapping examples for both normal and locked mode which do
124 +# not have a modifier
125 +for mode in normal locked
127 + # Control pulse audio volume with pamixer (https://github.com/cdemoulins/pamixer)
128 + riverctl map $mode None XF86AudioRaiseVolume spawn 'pamixer -i 5'
129 + riverctl map $mode None XF86AudioLowerVolume spawn 'pamixer -d 5'
130 + riverctl map $mode None XF86AudioMute spawn 'pamixer --toggle-mute'
132 + # Control MPRIS aware media players with playerctl (https://github.com/altdesktop/playerctl)
133 + riverctl map $mode None XF86AudioMedia spawn 'playerctl play-pause'
134 + riverctl map $mode None XF86AudioPlay spawn 'playerctl play-pause'
135 + riverctl map $mode None XF86AudioPrev spawn 'playerctl previous'
136 + riverctl map $mode None XF86AudioNext spawn 'playerctl next'
138 + # Control screen backlight brighness with kira (https://github.com/bugabinga/kira)
139 + riverctl map $mode None XF86MonBrightnessUp spawn 'kira +5'
140 + riverctl map $mode None XF86MonBrightnessDown spawn 'kira -5'
141 +done
143 +riverctl input 2:10:TPPS/2_IBM_TrackPoint natural-scroll enabled
144 +riverctl input 2:10:TPPS/2_IBM_TrackPoint accel-profile flat
145 +riverctl input 2:10:TPPS/2_IBM_TrackPoint disable-while-typing enabled
146 +riverctl set-cursor-warp on-output-change
148 +# Set background and border color
149 +riverctl background-color 0x000000
150 +riverctl border-color-focused 0x993311
151 +riverctl border-color-unfocused 0x332211
153 +# Set repeat rate
154 +riverctl set-repeat 50 300
156 +# Set app-ids of views which should float
157 +riverctl float-filter-add "float"
158 +riverctl float-filter-add "popup"
160 +# Set app-ids of views which should use client side decorations
161 +riverctl csd-filter-add "gedit"
163 +# Set and exec into the default layout generator, rivertile.
164 +# River will send the process group of the init executable SIGTERM on exit.
165 +riverctl default-layout rivertile
166 +exec rivertile

tools/invaders.sh

Added
new file mode 100755
1 +#!/usr/bin/bash
2 +#
3 +# ANSI color scheme script featuring Space Invaders
4 +#
5 +# Original: http://crunchbang.org/forums/viewtopic.php?pid=126921%23p126921#p126921
6 +# Modified by lolilolicon
7 +#
9 +f=3 b=4
10 +for j in f b; do
11 + for i in {0..7}; do
12 + printf -v $j$i %b "\e[${!j}${i}m"
13 + done
14 +done
15 +bld=$'\e[1m'
16 +rst=$'\e[0m'
18 +cat << EOF
20 + $f1 ▀▄ ▄▀ $f2 ▄▄▄████▄▄▄ $f3 ▄██▄ $f4 ▀▄ ▄▀ $f5 ▄▄▄████▄▄▄ $f6 ▄██▄ $rst
21 + $f1 ▄█▀███▀█▄ $f2███▀▀██▀▀███ $f3▄█▀██▀█▄ $f4 ▄█▀███▀█▄ $f5███▀▀██▀▀███ $f6▄█▀██▀█▄$rst
22 + $f1█▀███████▀█ $f2▀▀███▀▀███▀▀ $f3▀█▀██▀█▀ $f4█▀███████▀█ $f5▀▀███▀▀███▀▀ $f6▀█▀██▀█▀$rst
23 + $f1▀ ▀▄▄ ▄▄▀ ▀ $f2 ▀█▄ ▀▀ ▄█▀ $f3▀▄ ▄▀ $f4▀ ▀▄▄ ▄▄▀ ▀ $f5 ▀█▄ ▀▀ ▄█▀ $f6▀▄ ▄▀$rst
25 + $bld$f1▄ ▀▄ ▄▀ ▄ $f2 ▄▄▄████▄▄▄ $f3 ▄██▄ $f4▄ ▀▄ ▄▀ ▄ $f5 ▄▄▄████▄▄▄ $f6 ▄██▄ $rst
26 + $bld$f1█▄█▀███▀█▄█ $f2███▀▀██▀▀███ $f3▄█▀██▀█▄ $f4█▄█▀███▀█▄█ $f5███▀▀██▀▀███ $f6▄█▀██▀█▄$rst
27 + $bld$f1▀█████████▀ $f2▀▀▀██▀▀██▀▀▀ $f3▀▀█▀▀█▀▀ $f4▀█████████▀ $f5▀▀▀██▀▀██▀▀▀ $f6▀▀█▀▀█▀▀$rst
28 + $bld$f1 ▄▀ ▀▄ $f2▄▄▀▀ ▀▀ ▀▀▄▄ $f3▄▀▄▀▀▄▀▄ $f4 ▄▀ ▀▄ $f5▄▄▀▀ ▀▀ ▀▀▄▄ $f6▄▀▄▀▀▄▀▄$rst
31 + $f7▌$rst
33 + $f7▌$rst
35 + $f7 ▄█▄ $rst
36 + $f7▄█████████▄$rst
37 + $f7▀▀▀▀▀▀▀▀▀▀▀$rst
39 +EOF

topgrade/topgrade.linux.toml

Modified
34 34 [commands]
36 36 # Updating my configuration files
37 -"Refresh Dotfiles" = "java ~/Workspace/dotfiles/bootstripper.java ~/Workspace/dotfiles"
37 +"00 - Refresh Dotfiles" = "java ~/Workspace/dotfiles/bootstripper.java ~/Workspace/dotfiles"
39 39 # Leider scheint der eingebaute "tldr" step von topgrade nicht für meine Version von TLDR funktionieren
40 -"TLDR" = "tldr --update"
40 +"01 - TLDR" = "tldr --update"
42 42 # Dateisystem-Indexer ix erfrischen
43 -"Indexa Update" = "ix --update"
45 -# Update hx editor
46 -"Update helix" = "cd ~/Workspace ; git clone -q https://github.com/helix-editor/helix ; cd helix ; git pull ; ln -s ~/Workspace/helix/runtime /home/oli/.config/helix/ ; cargo install --path helix-term ; hx --grammar fetch ; hx --grammar build"
43 +"02 - Indexa Update" = "ix --update"

x230.symlinks

Modified
29 29 ~/.config/helix/config.toml
31 31 helix/themes
32 -~/.config/helix/themes
32 +~/.config/helix/themes
34 +river
35 +~/.config/river