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)

TODO.md

Modified
4 4 # To-Do
6 6 - [ ] write svn completions for nushell
7 7 - [ ] interactive zoxide jump function with skim
8 8 - [ ] encrypt box key
9 9 - [ ] get SIM card to work on x230
10 -- [ ] rewrite bootstripper and java commmands with zig. how to run them? precompile? zig run?
10 +- [ ] rewrite bootstripper and java commands with zig. how to run them? precompile? zig run?
11 +- [ ] learn basic helix
11 12 - [ ] nugu theme creator: wezterm, hx, zellij, river, eclipse
12 13 - [ ] expand nugu theme to wezterm and eclipse, and more
13 -- [ ] system status command: network, disk space, todo, vsc status, time date, pacsave files
14 +- [ ] system status command into waybar:
15 + -[x] network
16 + -[x] disk space
17 + -[ ] todo
18 + -[ ] vsc status
19 + -[x] time date
20 + -[ ] pacsave files
14 21 - [ ] wrap mv and rm to use git/svn versions if applicable
15 -- [ ] global dark/light theme switch
22 +- [ ] global dark/light theme switch, with nugu
16 23 - [x] port nushell config to new config script
17 24 - [x] configure tiny irc
18 25 - [ ] wayland (river) systemd user target
19 26 - [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
27 32 - [ ] clipboard history
33 + - [ ] wayshot in river init
34 + - [ ] IME input method for emojis
28 35 - [ ] wezterm multiplexer service
29 -- [ ] use systemd user for autostart stuff
36 +- [x] use systemd user for autostart stuff
30 37 - [ ] package indexa AUR
31 38 - [ ] OFFLINE
32 39 - [ ] local web proxy cache (squid?)
34 41 - [ ] pacman trigger for "needs reboot"
35 42 - [ ] install pipewire
36 43 - [ ] 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
39 46 - [ ] bootstripper encrypt keys + ssh config
40 47 - [ ] create snapper snapshot + systemd-boot entries
41 48 - [ ] install GRML rescue system into systemd-boot
44 51 - [ ] create custom optimized pacman repo
45 52 - [ ] Toolbox on Arch? Custom tool based on nspawn?
46 53 - [ ] install circular clipboard thingy
47 -- [ ] restart iwd on wakeup
54 +- [x] restart iwd on wakeup
48 55 - [x] river + systemd user + tty2
49 56 - [x] dotfiles + refresh configs
50 57 - [x] disable TAB key in tty

nushell/modules/prompt.nu

Modified
39 39 cd ($z_jump | str trim --right --char (char newline) )
42 -export alias z = zoxide-jump
42 +export alias z = zoxide-jump
44 44 # Map of paths to icons.
45 45 # These will be used to replace certain path segments in the prompt for example.
46 46 # Order these paths for precedence.
47 47 def icons [] {
48 - [
48 + [
49 49 [ path icon ];
50 50 [ "/home/oli/Workspace" (char -u "1f4bb") ]
51 51 [ "/home/oli" (char nf_house2) ]
52 52 [ "C:\\Users\\okr\\Workspaces" (char -u "1f4bb") ]
53 53 [ "C:\\Users\\okr" (char nf_house2) ]
55 -}
57 57 # Uses a special escape code to set the window title of the terminal emulator.
58 58 # This will be ignored in terminal emulator, that do not support that escape code.
63 63 let pwd = ( $env.PWD | path expand )
64 64 let icon = if (icons | any? path == $pwd) { ( icons | where path == $pwd | get icon.0 ) } else { $"(char nf_folder1)" }
65 65 # 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 {
67 67 echo ([ (ansi title) $icon " " ( $pwd | path basename ) (ansi reset) ] | str collect)
71 71 def get_vcs_path [] {
72 72 #normalize path
73 - let pwd = ($env.PWD | path expand)
73 + let pwd = ($env.PWD | path expand)
75 75 let svn_relative_cmd = ( do --ignore-errors { ^svn info --show-item relative-url --no-newline $pwd } | complete )
76 76 let svn_relative_path = if ($svn_relative_cmd.exit_code == 0) { $" 🐢 (char nf_branch) ($svn_relative_cmd.stdout)" }
78 78 let git_status = ( gstat )
79 79 let git_branch = if ( $git_status.branch != "no_branch" ) { $" (char nf_git) (char nf_branch) ($git_status.branch)" }
94 94 let truncate_level = 5
95 95 let truncate_symbol = $"…(char path_sep)"
96 96 let path_segment = if ($pwd | path split | length) >= $truncate_level { ($pwd | path dirname --num-levels 2 --replace $truncate_symbol ) } else { $pwd }
98 98 let vcs_segment = get_vcs_path
100 - [
101 101 (ansi dark_gray)
102 102 $path_segment
103 103 (ansi reset)
111 111 let time_segment = ([
112 112 (date now | date format '%d.%m %R')
113 113 ] | str collect)
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 }
119 + (ansi dark_gray_dimmed)
120 120 $command_duration_segment
121 121 (ansi reset)
122 122 (ansi dark_gray)

river/init

Modified
11 11 # systemd user integration
12 12 # in order to export the environment variables, that river sets for other services, we need to tell
13 13 # systemd about those
14 -riverctl spawn "dbus-update-activation-environment --systemd WAYLAND_DISPLAY XCURSOR_SIZE XDG_CURRENT_DESKTOP"
15 -riverctl spawn "systemctl --user import-environment WAYLAND_DISPLAY XCURSOR_SIZE XDG_CURRENT_DESKTOP"
14 +systemd-notify --status="Initializing river"
17 16 # Use the "logo" key as the primary modifier
18 17 super="Mod4"
152 151 riverctl set-cursor-warp on-output-change
154 153 # Set background and border color
155 -riverctl background-color 0x000000
154 +riverctl background-color 0x131313
156 155 riverctl border-color-focused 0x31ae99
157 156 riverctl border-color-unfocused 0x113131
158 157 riverctl border-color-urgent 0xaefeff
162 161 riverctl set-repeat 50 300
164 163 # Set app-ids of views which should float
165 -riverctl float-filter-add "float"
166 -riverctl float-filter-add "popup"
164 +riverctl float-filter-add app-id "float"
165 +riverctl float-filter-add app-id "popup"
166 +riverctl float-filter-add app-id "waybar"
168 168 # Set app-ids of views which should use client side decorations
169 -riverctl csd-filter-add "gedit"
169 +riverctl 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.
173 -riverctl default-layout rivertile
174 -exec 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
172 +dbus-update-activation-environment --systemd WAYLAND_DISPLAY XCURSOR_SIZE XDG_CURRENT_DESKTOP
173 +# Notify systemd that river is now "booted up"
174 +systemd-notify --ready
175 +systemd-notify --status="Initialized river"

topgrade/topgrade.linux.toml

Modified
28 28 max_concurrency = 12
30 -pull_predefined= false
30 +pull_predefined = false
32 32 # Arguments to pass Git when pulling Repositories
33 33 arguments = "--ff --rebase --autostash"
45 45 # install tools from cargo, that are not already in path
46 46 # 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"
49 49 # Dateisystem-Indexer ix erfrischen
50 +<<<<<<< HEAD
50 51 "02 - Indexa Update" = "ix --update"
53 +=======
54 +"03 - Indexa Update" = "ix --update"
55 +>>>>>>> 6e776c53721196aa1f34d22b8f6dfe2185b26bac

wezterm/wezterm.lua

Modified
1 1 local wez = require'wezterm'
2 -local hostname = wez.hostname()
3 +local hostname = wez.hostname()
4 4 local enable_wayland = false
5 -local window_decorations = 'TITLE|RESIZE'
6 -local color_scheme = 'nord-light'
5 +local window_decorations = 'RESIZE'
6 +local color_scheme = 'nugu' -- not there yet ;)
7 +local font_size = 12.0
8 9 if hostname == "x230" then
9 10 enable_wayland = true
10 11 window_decorations = 'NONE'
11 - color_scheme = 'nord'
12 + font_size = 11.0
13 +elseif hostname == "pop-os" then
14 + color_scheme = 'Ubuntu'
15 + font_size = 13.0
14 -local configuration = {
15 - font = wez.font'BlexMono Nerd Font',
16 - font_size = 13.0,
18 +return {
19 + font = wez.font('BlexMono Nerd Font', { weight = "Medium" }),
20 + font_size = font_size,
17 21 color_scheme = color_scheme,
22 + -- first step into nugu territory
23 + color_schemes = { nugu = { background = "#131313", } },
18 24 default_prog = { 'nu' },
19 25 window_decorations = window_decorations,
20 26 enable_tab_bar = true,
29 35 top = 12,
30 36 bottom = 8,
32 -}
33 -return configuration