repositories / dotfiles

dotfiles

bugabingas dorkfiles

owned by bugabinga

wezterm: pop-os configuration

49fea979a1c1193720aced0f14ebbdc7a4cd137e

Oliver Jan Krylow <olver@bugabinga.net> ·

unsigned

Browse filesCompare with HEAD

Changed files (4)

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 11 - [ ] nugu theme creator: wezterm, hx, zellij, river, eclipse
12 12 - [ ] expand nugu theme to wezterm and eclipse, and more
13 13 - [ ] system status command: network, disk space, todo, vsc status, time date, pacsave files
20 20 - [ ] pacman trigger for "needs reboot"
21 21 - [ ] install pipewire
22 22 - [ ] Configure makepkg and paru
23 - - [ ] pacman paru makepkg sscache ?
23 + - [ ] pacman paru makepkg sscache ?
24 24 - [ ] check out river recommended tools
25 25 - [ ] bootstripper encrypt keys + ssh config
26 26 - [ ] create snapper snapshot + systemd-boot entries

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)

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 # Leider scheint der eingebaute "tldr" step von topgrade nicht für meine Version von TLDR funktionieren
50 50 "03 - TLDR" = "tldr --update"
52 52 # Dateisystem-Indexer ix erfrischen
53 53 "03 - Indexa Update" = "ix --update"

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 dpi = nil
7 -local color_scheme = 'nord-light'
5 +local window_decorations = 'RESIZE'
6 +local color_scheme = 'nugu' -- not there yet ;)
9 8 if hostname == "x230" then
10 9 enable_wayland = true
11 10 window_decorations = 'NONE'
12 - dpi = 125.37
13 11 color_scheme = 'nord'
12 +elseif hostname == "pop-os" then
13 + color_scheme = 'Ubuntu'
16 -local configuration = {
17 - font = wez.font'JetBrainsMono Nerd Font',
18 - font_size = 13.0,
16 +return {
17 + font = wez.font'BlexMono Nerd Font',
18 + font_size = 14.0,
19 19 color_scheme = color_scheme,
20 - default_prog = {'nu'},
21 - dpi = dpi,
22 - window_decorations = window_decorations,
20 + default_prog = { 'nu' },
21 + window_decorations = window_decorations,
23 22 enable_tab_bar = true,
24 23 hide_tab_bar_if_only_one_tab = true,
25 24 check_for_updates = false,
32 31 top = 12,
33 32 bottom = 8,
35 -}
36 -return configuration