repositories / dotfiles

dotfiles

bugabingas dorkfiles

owned by bugabinga

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

d273182e44d6f7ac1bd76d413b91de9cb710e1f2

Oliver Jan Krylow <oliver@bugabinga.net> ·

unsigned

Browse filesCompare with HEAD

Changed files (23)

+143 / −172 text lines · 2 binary (striped old/new sizes in 64-byte units, not churn) · lines and sizes scale separately

Diff layout

NB-00718-WSL.symlinks

Deleted
deleted file mode 100644

+0 / −65 text lines

1me/isp.nuon
2~/.config/me/id.nuon
3
4git/gitconfig
5~/.config/git/config
6
7git/gitconfig.isp
8~/.config/git/.gitconfig.include
9
10subversion/config
11~/.subversion/config
13subversion/diff
14~/.local/bin/svn.diff
16subversion/merge
17~/.local/bin/svn.merge
19tools/git-info
20~/.local/bin/git-info
22cargo/config.toml
23~/.cargo/config.toml
25bat/config
26~/.config/bat/config
28nushell/config.nu
29~/.config/nushell/config.nu
31nushell/env.nu
32~/.config/nushell/env.nu
34nushell/login.nu
35~/.config/nushell/login.nu
37nushell/gen-aliases.nu
38~/.config/nushell/gen-aliases.nu
40nushell/scripts
41~/.config/nushell/scripts
43nushell/completions
44~/.config/nushell/completions
46topgrade/topgrade.toml
47~/.config/topgrade.toml
49ssh/config
50~/.ssh/config
52neovim
53~/.config/nvim
55neovide
56~/.config/neovide
58fonts
59~/.local/share/fonts
61pueue
62~/.config/pueue
64pueue/pueued.service
65~/.config/systemd/user/pueued.service

cargo/config.toml

Modified

+3 / −2 text lines

88[profile.release]
99# link time optimization is slow, but allows inter-crate analysis
1010lto = "fat"
11# slam crates together for the optimizer to munch on
12codegen-units = 1
1214# use the fastest known linker out there (2022)
1315[target.x86_64-unknown-linux-gnu]
1416# not sure why that is necessary, but without it, rustc seems to pass wrong arguments to mold.
15linker = "clang"
16rustflags = ["-C", "link-arg=--ld-path=mold"]
17rustflags = ["-C", "link-arg=-fuse-ld=mold"]

fedora.symlinks

Modified

+4 / −3 text lines

9191unison/unison@.service
9292~/.config/systemd/user/unison@.service
94unison/unison@.timer
95~/.config/systemd/user/unison@.timer
9794pueue
9895~/.config/pueue
106103firefox/qrza8u52.default-release/user.js
107104~/.mozilla/firefox/qrza8u52.default-release/user.js
106yazi
107~/.config/yazi

helix/themes/nugu-dark.toml

Modified

+1 / −1 text lines

130130unfocus = "#28454b"
131131ui_normal = "#e6e6e6"
132132ui_backdrop = "#000000"
133ui_accent = "#230723"
133ui_accent = "#5a265a"
134134ui_important_global = "#514a6c"
135135ui_important_local = "#2a2638"
136136ui_minor = "#242424"

helix/themes/nugu-light.toml

Modified

+1 / −1 text lines

130130unfocus = "#929292"
131131ui_normal = "#1a1a1a"
132132ui_backdrop = "#ffffff"
133ui_accent = "#b225b2"
133ui_accent = "#5a265a"
134134ui_important_global = "#897bb1"
135135ui_important_local = "#bab1d1"
136136ui_minor = "#a3a3a3"

neovim/lua/bugabinga/nugu/palette_dark.lua

Modified

+1 / −1 text lines

1616 ui_normal = '#fcfcfc',
1717 ui_backdrop = '#000000',
18 ui_accent = '#230723',
18 ui_accent = '#5a265a',
1919 ui_minor = '#242424',
2020 ui_focus = '#3d474a',
2121 ui_unfocus = '#0c1010',

neovim/lua/bugabinga/nugu/palette_light.lua

Modified

+1 / −1 text lines

1616 ui_normal = '#030303',
1717 ui_backdrop = '#ffffff',
18 ui_accent = '#b225b2',
18 ui_accent = '#5a265a',
1919 ui_minor = '#a3a3a3',
2020 ui_focus = '#53a5b7',
2121 ui_unfocus = '#bdbdbd',

neovim/lua/bugabinga/options/spelling.lua

Modified

+2 / −1 text lines

2323-- create new spl file with:
2424-- mkspell ~/.config/nvim/spell/[lang] ~/Downloads/[lang]
2525-- update nerd words with
26-- mkspell! ~/.config/nvim/spell/nerd ~/.config//nvim/spell/nerd.words
26-- vim.cmd [[ mkspell! ~/.config/nvim/spell/nerd ~/.config//nvim/spell/nerd.words ]]
27-- vim.cmd [[ mkspell! ~/.config/nvim/spell/nerd.utf-8.add ]]

neovim/spell/nerd.utf-8.add

Modified

+2 / −1 text lines

106106diskonaut
107107mdsh
108108ast-grep
109>>>>>>> 313efcb717d937c279f95a0b48804aedd210e3ae
110109JavaDoc
111110CiaoCiao
112111EntwicklerQuiz
113112Toolchain
114113Rätselantworten
114minidlna
115systemd

neovim/spell/nerd.utf-8.add.spl

Modified

Binary size (old → new): 1761 → 1694 bytes.

neovim/spell/nerd.utf-8.spl

Modified

Binary size (old → new): 68759 → 69071 bytes.

nushell/config.nu

Modified

+1 / −1 text lines

1313 # some experimental options
1414 buffer_editor: ["nvim" "--clean"]
15 highlight_resolved_externals : true
15 highlight_resolved_externals : true
1616 use_kitty_protocol : true
1717 render_right_prompt_on_last_line: true

nushell/env.nu

Modified

+3 / −1 text lines

77$env.NOTES = ("~/Notes" | path expand)
88$env.TOOLS = ("~/Tools" | path expand)
99$env.CARGO_HOME = ( "~/.cargo" | path expand )
10$env.GO_HOME = ( "~/go" | path expand )
10$env.GO_HOME = ( "~/.go" | path expand )
1111$env.BARTIB_FILE = ( $env.NOTES | path join 'timetrack.txt')
1313if $env.WIN32 {
1515 $env.Path
1616 | split row (char esep)
1717 | append ($env.CARGO_HOME | path join bin)
18 | append ($env.GO_HOME | path join bin)
1819 | append ($env.HOME | path join .local bin)
1920 | uniq # filter so the paths are unique
107108if ( $env | get -i WSLENV | is-not-empty ) { wslg }

nushell/gen-aliases.nu

Modified

+16 / −17 text lines

88 ...args: string # optional arguemtns to program
99] {
11 if not (which $command | is-empty) {
12 $"alias ($name) = ($command) ($args | str join ' ')\n" | save -a $file
11 if (which $command | is-not-empty) {
12 $"alias ($name) = ($command) ($args | str join ' ')\n" | save --append $file
1313 }
1616########################################
1717# Start defining your aliases here
19aka cat bat
20aka tar bsdtar
21aka walk yazi
22aka list eza '--long' '--git'
19# semantic aliases
2320aka tree eza '--tree' '--icons' '--git' '--all' '--long'
24aka imgcat wezterm imgcat
21aka view wezterm imgcat
22aka list eza '--long' '--git'
23aka show bat
24aka web firefox
25aka code neovide
26aka edit nvim '--clean'
27aka archive wget "-mpck" "--html-extension" '--user-agent=""' "-e" "robots=off" "--wait" 1 "-P" .
29# pro aliases
2630aka ll ls '--long'
2731aka la ls '--long' '--all'
29aka browse firefox
32aka q exit
33aka g git
34aka gu gitu
3135aka vim nvim
32aka code nvim
33aka vide neovide
34aka edit nvim '--clean'
35aka ed nvim '--clean'
3636aka vi nvim '--clean'
37aka vide neovide
3738aka bb bartib
39aka cal carl
3941aka userctl systemctl '--user'
41# https://gist.github.com/mullnerz/9fff80593d6b442d5c1b
42aka archive wget "-mpck" "--html-extension" '--user-agent=""' "-e" "robots=off" "--wait" 1 "-P" .
4443# CUSTOM LITTLE JAVA COMMANDS
4544aka aes java ($env.DOTFILES + /tools/ + aes.java)
4645aka download java ($env.DOTFILES + /tools/ + download.java)

nushell/scripts/direnv.nu

Modified

+26 / −23 text lines

77}
99def direnv [] {
10 [
11 {
12 condition: {|before, after| ($before != $after) and ($after | path join '.env' | path exists) }
13 code: r#'
14 open .env
15 | lines
16 | parse --regex '\s*(?P<key>.+?)\s*=\s*?(?P<value>.+)?\s*'
17 | reduce --fold {} { | entry, acc|
18 $acc | upsert $entry.key ( $entry.value | str trim | expand-home )
19 }
20 | load-env
21 '#
22 }
23 ]
10 [
11 {
12 condition: {|before, after| ($before != $after) and ($after | path join '.env' | path exists) }
13 code: r#'
14 open .env
15 | lines
16 | parse --regex '\s*(?P<key>.+?)\s*=\s*?(?P<value>.+)?\s*'
17 | reduce --fold {} { | entry, acc|
18 $acc | upsert $entry.key ( $entry.value | str trim | expand-home )
19 }
20 | load-env
21 '#
22 }
23 ]
2626export-env {
27 $env.config = ( $env.config | upsert hooks.env_change.PWD { |config|
28 let o = ($config | get -i hooks.env_change.PWD)
29 let val = (direnv)
30 if $o == null {
31 $val
32 } else {
33 $o | append $val
34 }
35 })
27 $env.config = ( $env.config | upsert hooks { |config|
28 let o = ($config | get -i hooks.env_change.PWD)
29 let val = (direnv)
30 let appended = if $o == null {
31 $val
32 } else {
33 $o | append $val
34 }
35 env_change: {
36 PWD: $appended
37 }
38 })

nushell/scripts/fedora_bootstrip.nu

Modified

+64 / −13 text lines

77 # building c/c++
88 sudo dnf groupinstall "Development Tools" "Development Libraries"
10 # deps of some rust crates i like to build
11 sudo dnf install fontconfig-devel freetype-devel libX11-xcb libX11-devel libstdc++-static libstdc++-devel alsa-lib-devel libspatialaudio-devel pipewire-devel systemd-devel libseat-devel cairo-gobject-devel pango-devel libdisplay-info-devel libinput-devel mesa-libgbm-devel openssl-devel wayland-devel pipewire-devel pango-devel mesa-libgbm-devel libxkbcommon-devel libseat-devel libspatialaudio-devel
13 # these seem to be deps of the openssl-sys crates build system
14 sudo dnf install perl-File-Compare perl-File-Copy perl-FindBin perl-IPC-Cmd
16 # system stuff
17 sudo dnf install python3-dnf-plugin-rpmconf dnf-automatic
18 sudo systemctl enable --now dnf-automatic-install.timer
19
20 # my stuff
21 sudo dnf install aerc llvm clang cmake unison rustup neovim mold java-latest-openjdk-devel java-latest-openjdk-src perl-Image-ExifTool
10 mut packages = [
11 # deps of some rust crates i like to build
12 fontconfig-devel
13 freetype-devel
14 libX11-xcb
15 libX11-devel
16 libstdc++-static
17 libstdc++-devel
18 alsa-lib-devel
19 libspatialaudio-devel
20 pipewire-devel
21 systemd-devel
22 libseat-devel
23 cairo-gobject-devel
24 pango-devel
25 libdisplay-info-devel
26 libinput-devel
27 mesa-libgbm-devel
28 openssl-devel
29 wayland-devel
30 pipewire-devel
31 pango-devel
32 mesa-libgbm-devel
33 libxkbcommon-devel
34 libseat-devel
35 libspatialaudio-devel
36 # these seem to be deps of the openssl-sys crates build system
37 perl-File-Compare
38 perl-File-Copy
39 perl-FindBin
40 perl-IPC-Cmd
41 # java
42 java-latest-openjdk
43 java-latest-openjdk-src
44 java-latest-openjdk-javadoc
45 java-latest-openjdk-devel
46 # other langs
47 llvm
48 clang
49 cmake rustup
50 golang
51 mold
52 # system stuff
53 python3-dnf-plugin-rpmconf
54 dnf-automatic
55 # my stuff
56 aerc
57 unison
58 neovim
59 perl-Image-ExifTool
60 ]
2362 # gui stuff
2463 if $gui {
25 sudo dnf install gnome-tweaks zathura zathura-pdf-mudpf
64 let gui_packages = [
65 gnome-tweaks
66 zathura
67 zathura-pdf-mupdf
68 ]
69 $packages = $packages | append $gui_packages
71 flatpak install com.bitwarden.desktop com.discordapp.Discord org.telegram.desktop rs.ruffle.Ruffle
2672 }
74 sudo dnf install ...$packages
76 sudo systemctl enable --now dnf-automatic-install.timer

nushell/scripts/notes.nu

Modified

+1 / −1 text lines

3333 # TODO: print some high level view of the notes. tree, graph, text ?
36def new_note_id [] { random binary 3 | encode new-base64 --nopad --url }
36def new_note_id [] { random binary 3 | encode base64 --nopad --url }
3838def new_note [
3939 title: string # title of note. will be used for title and initial heading

nushell/scripts/prompt.nu

Modified

+1 / −28 text lines

2222 ]
25# Uses a special escape code to set the window title of the terminal emulator.
26# This will be ignored in terminal emulator, that do not support that escape code.
27# The title to be set is derived from the current working directory.
28# Special types of directories, e.g. HOME, get custom icons.
29def set-window-title [] {
30 # Some terminals freeze, if they do not support this OSC
31 if ($env | get -i TERM_PROGRAM) == WezTerm {
32 # normalize path
33 let pwd = ( $env.PWD | path expand )
34 let icon = if (icons | any { |icon| $icon.path == $pwd } ) { ( icons | where path == $pwd | get icon.0 ) } else { $"(char nf_folder1)" }
35 echo ([ (ansi title) $icon " " ( $pwd | path basename ) (ansi reset) ] | str join)
36 }
37}
3925def prompt-git-branch [] {
5844def create_left_prompt [] {
59 set-window-title
6145 # normalize path
6246 let pwd = ($env.PWD | path expand)
6347 let pwd = ( (icons) | reduce --fold $pwd { |item, accumulator| $accumulator | str replace $item.path $item.icon })
8064def create_right_prompt [] {
81 let time_segment = ([
82 (date now | format date '%d.%m %R')
83 ] | str join)
8565 let command_status_segment = if $env.LAST_EXIT_CODE == 0 { $" (char -u '2713') " } else { $"(ansi red) (char failed) (ansi reset)" }
86 let command_duration_segment = if ( $env.CMD_DURATION_MS | into int) > 0 { $"($env.CMD_DURATION_MS)ms" | into duration }
8867 [
8968 (ansi dark_gray_dimmed)
90 $command_duration_segment
91 (ansi reset)
92 (ansi dark_gray)
9369 $command_status_segment
9470 (ansi reset)
95 (ansi dark_gray)
96 ( $time_segment )
97 (ansi reset)
9871 ] | str join
10679 # The prompt indicators are environmental variables that represent
10780 # the state of the prompt
108 $env.PROMPT_INDICATOR = $"(ansi green) (char prompt) (ansi reset)"
81 $env.PROMPT_INDICATOR = $"(ansi green) ⚈ (ansi reset)"
10982 $env.PROMPT_INDICATOR_VI_INSERT = $"(ansi magenta) (char pipe) (ansi reset)"
11083 $env.PROMPT_INDICATOR_VI_NORMAL = $"(ansi magenta) (char prompt) (ansi reset)"
11184 $env.PROMPT_MULTILINE_INDICATOR = $"(ansi magenta) (char prompt)(char prompt) (ansi reset)"

nushell/scripts/sy.nu

Modified

+6 / −4 text lines

1717export def up [] {
1818 check-deps
20 # FIXME: make list of repos and factor sync into functions
21 let git_add_notes = [ '-C' $env.NOTES add '--all' ]
2022 let git_commit_notes = [ '-C' $env.NOTES commit '--all' ]
2123 let git_push_notes = [ '-C' $env.NOTES push '-ff' ]
24 let git_add_dotfiles = [ '-C' $env.DOTFILES add '--all' ]
2225 let git_commit_dotfiles = [ '-C' $env.DOTFILES commit '--all' ]
2326 let git_push_dotfiles = [ '-C' $env.DOTFILES push '-ff' ]
25 # print git ...$git_commit_notes
28 run-external git ...$git_add_notes
2629 try { run-external git ...$git_commit_notes }
27 # print git $git_push_notes
2830 run-external git ...$git_push_notes
29 # print git $git_commit_dotfiles
32 run-external git ...$git_add_dotfiles
3033 try { run-external git ...$git_commit_dotfiles }
31 # print git $git_push_dotfiles
3234 run-external git ...$git_push_dotfiles

wezterm/bugabinga/code_fonts.csv

Modified

+3 / −3 text lines

44441,Iosevka Slab
45450,JetBrains Mono
46460,JetBrains Mono NL
471,Kawkab Mono
477,Kawkab Mono
48481,Latin Modern Mono Light
494911,Lekton
50501,Liberation Mono
91911,SV Basic Manual
92921,Share Tech Mono
93931,Share-TechMonoTrue
941,SmallTypeWriting
944,SmallTypeWriting
95951,Source Code Pro
96961,Sudo
971,Symbols Nerd Font
970,Symbols Nerd Font
98980,Symbols Nerd Font Mono
99991,TeX Gyre Cursor
1001001,Terminus

wezterm/bugabinga/nugu/init.lua

Modified

+2 / −2 text lines

3333 palette.content.minor, -- silver
3434 },
3535 brights = {
36 palette.content.unfocus, -- grey
36 palette.content.minor, -- grey
3737 palette.error, -- red
3838 palette.content.accent, -- lime
3939 palette.warning, -- yellow
40 palette.info, -- blue
40 palette.content.unfocus, -- blue
4141 palette.debug, -- fuchsia
4242 palette.content.focus, -- aqua
4343 palette.content.normal, -- white

wezterm/wezterm.lua

Modified

+1 / −0 text lines

99require 'bugabinga.window' ( cfg )
1010require 'bugabinga.startup' ( cfg )
1111require 'bugabinga.status' ( cfg )
12require 'bugabinga.titles' ( cfg )
1213require 'bugabinga.launch' ( cfg )
1314require 'bugabinga.neovim_zen_mode' (cfg)
1415require 'bugabinga.hosts' ( cfg )

x230.symlinks

Modified

+4 / −3 text lines

7070unison/unison@.service
7171~/.config/systemd/user/unison@.service
73unison/unison@.timer
74~/.config/systemd/user/unison@.timer
7673hypr
7774~/.config/hypr
8582environment.d
8683~/.config/environment.d
85yazi
86~/.config/yazi