repositories / dotfiles

dotfiles

bugabingas dorkfiles

owned by bugabinga

Merge branch 'trunk' of github.com:bugabinga/dotfiles into trunk

b5314a8b926cc6eea11004e1de9310799a4b2272

Oliver Jan Krylow <olver@bugabinga.net> ·

unsigned

Browse filesCompare with HEAD

- river: integrated into systemd user instance
- wezterm: better font variant of IBM Plex Mono
- wayland: new user services: wluma, wlsunset

Changed files (5)

+65 / −48 text lines

Diff layout

TODO.md

Modified

+21 / −14 text lines

44- [ ] interactive zoxide jump function with skim
55- [ ] encrypt box key
66- [ ] get SIM card to work on x230
7- [ ] rewrite bootstripper and java commmands with zig. how to run them? precompile? zig run?
7- [ ] rewrite bootstripper and java commands with zig. how to run them? precompile? zig run?
8- [ ] learn basic helix
89- [ ] nugu theme creator: wezterm, hx, zellij, river, eclipse
910 - [ ] expand nugu theme to wezterm and eclipse, and more
10- [ ] system status command: network, disk space, todo, vsc status, time date, pacsave files
11- [ ] system status command into waybar:
12 -[x] network
13 -[x] disk space
14 -[ ] todo
15 -[ ] vsc status
16 -[x] time date
17 -[ ] pacsave files
1118- [ ] wrap mv and rm to use git/svn versions if applicable
12- [ ] global dark/light theme switch
19- [ ] global dark/light theme switch, with nugu
1320- [x] port nushell config to new config script
1421- [x] configure tiny irc
1825- [ ] wayland (river) systemd user target
1926 - [x] river.service
20 - [ ] wayland.target
21 - [ ] way-display.service
22 - [ ] wluma.service
23 - [ ] wlsunset@latitude&longitude.service
24 - [ ] waylock.service
25 - [ ] bar
26 - [ ] notification
27 - [x] kanshi.service
28 - [x] wluma.service
29 - [x] wlsunset@latitude&longitude.service
30 - [x] waybar.service
31 - [x] mako.service
2732 - [ ] clipboard history
33 - [ ] wayshot in river init
34 - [ ] IME input method for emojis
2835- [ ] wezterm multiplexer service
29- [ ] use systemd user for autostart stuff
36- [x] use systemd user for autostart stuff
3037- [ ] package indexa AUR
3138- [ ] OFFLINE
3239 - [ ] local web proxy cache (squid?)
3441- [ ] pacman trigger for "needs reboot"
3542- [ ] install pipewire
3643- [ ] Configure makepkg and paru
37 - [ ] pacman paru makepkg sscache ?
38- [ ] check out river recommended tools
44 - [ ] pacman paru makepkg sscache ?
45- [x] check out river recommended tools
3946- [ ] bootstripper encrypt keys + ssh config
4047- [ ] create snapper snapshot + systemd-boot entries
4148- [ ] install GRML rescue system into systemd-boot
4451- [ ] create custom optimized pacman repo
4552- [ ] Toolbox on Arch? Custom tool based on nspawn?
4653- [ ] install circular clipboard thingy
47- [ ] restart iwd on wakeup
54- [x] restart iwd on wakeup
4855- [x] river + systemd user + tty2
4956- [x] dotfiles + refresh configs
5057- [x] disable TAB key in tty

nushell/modules/prompt.nu

Modified

+13 / −13 text lines

3939 cd ($z_jump | str trim --right --char (char newline) )
42export alias z = zoxide-jump
42export alias z = zoxide-jump
4444# Map of paths to icons.
4545# These will be used to replace certain path segments in the prompt for example.
4646# Order these paths for precedence.
4747def icons [] {
48 [
48 [
4949 [ path icon ];
5050 [ "/home/oli/Workspace" (char -u "1f4bb") ]
5151 [ "/home/oli" (char nf_house2) ]
5252 [ "C:\\Users\\okr\\Workspaces" (char -u "1f4bb") ]
5353 [ "C:\\Users\\okr" (char nf_house2) ]
5454 ]
55}
55}
5757# Uses a special escape code to set the window title of the terminal emulator.
5858# This will be ignored in terminal emulator, that do not support that escape code.
6363 let pwd = ( $env.PWD | path expand )
6464 let icon = if (icons | any? path == $pwd) { ( icons | where path == $pwd | get icon.0 ) } else { $"(char nf_folder1)" }
6565 # Some terminals freeze, if they do not support this OSC
66 if (env | any? name == TERM_PROGRAM) && $env.TERM_PROGRAM == WezTerm {
66 if (env | any? name == TERM_PROGRAM) && $env.TERM_PROGRAM == WezTerm {
6767 echo ([ (ansi title) $icon " " ( $pwd | path basename ) (ansi reset) ] | str collect)
6868 }
7171def get_vcs_path [] {
7272 #normalize path
73 let pwd = ($env.PWD | path expand)
73 let pwd = ($env.PWD | path expand)
7575 let svn_relative_cmd = ( do --ignore-errors { ^svn info --show-item relative-url --no-newline $pwd } | complete )
7676 let svn_relative_path = if ($svn_relative_cmd.exit_code == 0) { $" 🐢 (char nf_branch) ($svn_relative_cmd.stdout)" }
77
7878 let git_status = ( gstat )
7979 let git_branch = if ( $git_status.branch != "no_branch" ) { $" (char nf_git) (char nf_branch) ($git_status.branch)" }
9494 let truncate_level = 5
9595 let truncate_symbol = $"…(char path_sep)"
9696 let path_segment = if ($pwd | path split | length) >= $truncate_level { ($pwd | path dirname --num-levels 2 --replace $truncate_symbol ) } else { $pwd }
97
9898 let vcs_segment = get_vcs_path
100 [
100 [
101101 (ansi dark_gray)
102102 $path_segment
103103 (ansi reset)
111111 let time_segment = ([
112112 (date now | date format '%d.%m %R')
113113 ] | str collect)
114
115 let command_status_segment = if $env.LAST_EXIT_CODE == 0 { $" (char -u '2713') " } else { $"(ansi red) (char failed) (ansi reset)" }
116 let command_duration_segment = if ($env.CMD_DURATION_MS | into int) > 50 { $"($env.CMD_DURATION_MS)ms" | into duration }
118 [
119 (ansi red_bold)
115 let command_status_segment = if $env.LAST_EXIT_CODE == 0 { $" (char -u '2713') " } else { $"(ansi red) (char failed) (ansi reset)" }
116 let command_duration_segment = if ( $env.CMD_DURATION_MS | into int) > 0 { $"($env.CMD_DURATION_MS)ms" | into duration }
118 [
119 (ansi dark_gray_dimmed)
120120 $command_duration_segment
121121 (ansi reset)
122122 (ansi dark_gray)

river/init

Modified

+11 / −10 text lines

1111# systemd user integration
1212# in order to export the environment variables, that river sets for other services, we need to tell
1313# systemd about those
14riverctl spawn "dbus-update-activation-environment --systemd WAYLAND_DISPLAY XCURSOR_SIZE XDG_CURRENT_DESKTOP"
15riverctl spawn "systemctl --user import-environment WAYLAND_DISPLAY XCURSOR_SIZE XDG_CURRENT_DESKTOP"
14systemd-notify --status="Initializing river"
1716# Use the "logo" key as the primary modifier
1817super="Mod4"
152151riverctl set-cursor-warp on-output-change
154153# Set background and border color
155riverctl background-color 0x000000
154riverctl background-color 0x131313
156155riverctl border-color-focused 0x31ae99
157156riverctl border-color-unfocused 0x113131
158157riverctl border-color-urgent 0xaefeff
162161riverctl set-repeat 50 300
164163# Set app-ids of views which should float
165riverctl float-filter-add "float"
166riverctl float-filter-add "popup"
164riverctl float-filter-add app-id "float"
165riverctl float-filter-add app-id "popup"
166riverctl float-filter-add app-id "waybar"
168168# Set app-ids of views which should use client side decorations
169riverctl csd-filter-add "gedit"
169riverctl csd-filter-add app-id "geary"
171# Set and exec into the default layout generator, rivertile.
172# River will send the process group of the init executable SIGTERM on exit.
173riverctl default-layout rivertile
174exec rivertile -view-padding 0 -outer-padding 0 -main-location right -main-ratio 0.666 -main-count 2
171# Export some environment variables into the systemd user scope and dbus for dependent services
172dbus-update-activation-environment --systemd WAYLAND_DISPLAY XCURSOR_SIZE XDG_CURRENT_DESKTOP
173# Notify systemd that river is now "booted up"
174systemd-notify --ready
175systemd-notify --status="Initialized river"

topgrade/topgrade.linux.toml

Modified

+6 / −2 text lines

2828max_concurrency = 12
30pull_predefined= false
30pull_predefined = false
3232# Arguments to pass Git when pulling Repositories
3333arguments = "--ff --rebase --autostash"
4545# install tools from cargo, that are not already in path
4646# TODO: this could be annoying when setting up a machine first time?
47"01 - Install Cargo Tools" = "nu W:/dotfiles/tools/cargo-tools.nu"
47"01 - Install Cargo Tools" = "nu ~/Workspace/dotfiles/tools/cargo-tools.nu"
4949# Dateisystem-Indexer ix erfrischen
50<<<<<<< HEAD
5051"02 - Indexa Update" = "ix --update"
53=======
54"03 - Indexa Update" = "ix --update"
55>>>>>>> 6e776c53721196aa1f34d22b8f6dfe2185b26bac

wezterm/wezterm.lua

Modified

+14 / −9 text lines

11local wez = require'wezterm'
2local hostname = wez.hostname()
3local hostname = wez.hostname()
44local enable_wayland = false
5local window_decorations = 'TITLE|RESIZE'
6local color_scheme = 'nord-light'
5local window_decorations = 'RESIZE'
6local color_scheme = 'nugu' -- not there yet ;)
7local font_size = 12.0
89if hostname == "x230" then
910 enable_wayland = true
1011 window_decorations = 'NONE'
11 color_scheme = 'nord'
12 font_size = 11.0
13elseif hostname == "pop-os" then
14 color_scheme = 'Ubuntu'
15 font_size = 13.0
1216end
14local configuration = {
15 font = wez.font'BlexMono Nerd Font',
16 font_size = 13.0,
18return {
19 font = wez.font('BlexMono Nerd Font', { weight = "Medium" }),
20 font_size = font_size,
1721 color_scheme = color_scheme,
22 -- first step into nugu territory
23 color_schemes = { nugu = { background = "#131313", } },
1824 default_prog = { 'nu' },
1925 window_decorations = window_decorations,
2026 enable_tab_bar = true,
2935 top = 12,
3036 bottom = 8,
3137 }
32}
33return configurationNo final newline
38}No final newline