repositories / dotfiles

dotfiles

bugabingas dorkfiles

owned by bugabinga

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

02b5c199df283412557485eed71303f653363135

Oliver Jan Krylow <oliver@bugabinga.net> ·

unsigned

Browse filesCompare with HEAD

Changed files (12)

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

Diff layout

fedora.symlinks

Modified

+3 / −0 text lines

4646wezterm
4747~/.config/wezterm
49wezterm/wezterm.service
50~/.config/systemd/user/wezterm.service
4952ssh/config
5053~/.ssh/config

neovim/spell/nerd.utf-8.add

Modified

+1 / −0 text lines

9595difftastic
9696weechat
9797tarsnap
98mux

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

Modified

Binary size (old → new): 1393 → 1398 bytes.

nushell/login.nu

Modified

+1 / −0 text lines

99use dwnld.nu
1010use packages.nu
1111use fedora_bootstrip.nu
12use notes.nu
1314if $env.WIN32 {
1415 use refreshenv.nu *

nushell/scripts/notes.nu

Added
new file mode 100644

+85 / −0 text lines

1### bugabingas custom note taking and organizing system
2###
3### notes are grouped into contexts (folders), so that i can distinguish between
4### personal and work related notes.
5
6
7
8def validate_context [
9 context: string
10] {
11 if not ($env.NOTES | path exists) {
12 error make {
13 msg: "No notes folder found in environment variables.
14 Make sure a NOTES variable exists in $env."
15 }
16 }
17 if not ($env.NOTES | path join $context | path exists) {
18error make {
19 msg: $"The given context ($context) does not exist in ($env.NOTES).
20 Create it and try again."
21 }
22 }
23}
25 export def main [
26 --context: string = "bugabinga" # which context do the notes belong to
27] {
28 # TODO: the context needs to get overridden by env var, so that switch between work and personal is easy
30 validate_context $context
31
32 ls --short-names ($env.NOTES | path join $context)
33 # TODO: print some high level view of the notes. tree, graph, text ?
34}
36def new_note_id [] { random binary 3 | encode new-base64 --nopad --url }
38def new_note [
39 title: string # title of note. will be used for title and initial heading
40 author: string # author, usually me...
41 date: string # creation date of note
42 tags: list<string> # a list of tags, if already known
43 context: string # note context
44] {
45 $"---
46title: ($title)
47author: ($author)
48date: ($date)
49tags:
50- ($context)
51($tags | each { '- ' + $in } | str join (char nl))
52---
53
54"
55}
57export def new [
58 title?: string # title of new node
59 --tags: list<string> # some optional tags for the note
60 --context: string = "bugabinga" # which context do the notes belong to
61] {
62 validate_context $context
64 let title = if ($title | is-empty) { input "gimme title: " } else { $title }
65 let author = 'Oliver Jan Krylow'
66 let now = date now | date to-record
67 let date = $"($now.day)/($now.month)/($now.year)" # german dates. what can i say...
68 let tags = if ($tags == null) { [] } else { $tags }
70 let note_content = new_note $title $author $date $tags $context
71 let note_file_name = $"(new_note_id)-($title | str kebab-case).md"
72 let note_file = [ $env.NOTES $context $note_file_name] | path join
74 if ($note_file | path exists) {
75 error make {
76 msg: "the note you are trying to create exists already"
77 }
78 }
80 $note_content | save --raw $note_file
82 let editor = if ( $env.EDITOR == null ) { 'vi' } else { $env.EDITOR }
83 let editor = if ( $env.VISUAL == null ) { $editor } else { $env.VISUAL }
84 run-external $editor $note_file
85}

wezterm/bugabinga/code_fonts

Deleted
deleted file mode 100644

+0 / −116 text lines

1Anonymous Pro
2Anonymous Pro Minus
3Aurulent Sans Mono
4AverageMono
5BPmono
6BigBlue TerminalPlus
7Bitstream Vera Sans Mono
8Bront
9CMU Typewriter Text
10CPMono_v07
11CamingoCode
12Cascadia Code
13Code New Roman
14CodingFontTobi
15Consola Mono
16Courier Prime Code
17Cousine
18Crisp
19Cutive Mono
20D2Coding
21DejaVu Sans Mono
22Dina ttf 10px
23Droid Sans Mono
24Edlo
25Envy Code R
26Fantasque Sans Mono
27Fira Code
28Fira Mono
29Fixedsys Excelsior 3.01
30FreeMono
31Geist Mono
32Generic Mono II
33GohuFont
34Hack
35Hasklig
36Hermit
37# IBM Plex Math
38IBM Plex Mono
39# IBM Plex Sans
40# IBM Plex Sans Condensed
41# IBM Plex Serif
42Inconsolata
43Inconsolata LGC
44Inconsolata-dz
45Inconsolata-g
46Intel One Mono
47Iosevka
48Iosevka Slab
49JetBrains Mono
50JetBrains Mono NL
51Kawkab Mono
52Latin Modern Mono Light
53Lekton
54Liberation Mono
55Lilex
56Linux Libertine Mono
57Luculent
58Luxi Mono
59M+ 1m
60M+ 1mn
61M+ 2m
62Martian Mono
63Mensch
64Meslo LG M DZ
65Metrickal
66Monaspace Argon Var
67Monaspace Krypton Var
68Monaspace Neon Var
69Monaspace Radon Var
70Monaspace Xenon Var
71MonoSpatial
72Monoid
73Monospace
74MonospaceTypewriter
75MonteCarlo Fixed 12
76NanumGothic_Coding
77Nimbus Mono
78NotCourierSans
79Office Code Pro
80Office Code Pro D
81Oxygen Mono
82PT Mono
83Panic Sans
84PixelCarnageMonoTT
85Pointfree
86ProFontWindows
87ProggyCleanTT
88ProggyCleanTTSZ
89ProggySmallTT
90ProggySquareTT
91ProggySquareTTSZ
92ProggyTinyTT
93ProggyTinyTTSZ
94Rec Mono Casual
95Rec Mono Linear
96Roboto Mono
97SV Basic Manual
98Share Tech Mono
99Share-TechMonoTrue
100SmallTypeWriting
101Source Code Pro
102Sudo
103Symbols Nerd Font
104Symbols Nerd Font Mono
105TeX Gyre Cursor
106Terminus
107Ubuntu Mono
108Verily Serif Mono
109Victor Mono
110Whois
111agave
112iA Writer Mono V
113monoOne
114monofur
115mononoki
116saxMono

wezterm/bugabinga/code_fonts.csv

Modified

+2 / −2 text lines

5757 1, M+ 2m
5858 1, Martian Mono
5959 1, Mensch
60 1, Meslo LG M DZ
60 0, Meslo LG M DZ
6161 1, Metrickal
6262 1, Monaspace Argon Var
6363 1, Monaspace Krypton Var
7575 1, Oxygen Mono
7676 1, PT Mono
7777 1, Panic Sans
78 1, PixelCarnageMonoTT
78 0, PixelCarnageMonoTT
7979 1, Pointfree
8080 1, ProFontWindows
8181 1, ProggyCleanTT

wezterm/bugabinga/key_binds.lua

Modified

+22 / −0 text lines

11local wez = require 'wezterm'
3local custom_action = function ( _ )
4 local id = 'custom-action-' .. tostring( wez.time.now() )
5 wez.on( id, _ )
6 return wez.action.EmitEvent( id )
7end
8
39local leader = { key = 'VoidSymbol', }
410if wez.target_triple:find 'windows' then
511 leader = { key = 'raw:255', }
154160 mods = 'LEADER',
155161 action = wez.action.QuitApplication,
156162 },
163 {
164 key = 'm',
165 mods = 'LEADER',
166 action = custom_action( function ( window, pane )
167 local unix_domain = 'unix'
168 wez.log_info( 'Current pane domain name: ', pane:get_domain_name() )
169 if pane:get_domain_name() == unix_domain then
170 wez.log_info( 'Detaching from: ', unix_domain )
171 window:perform_action( wez.action.DetachDomain { DomainName = unix_domain, }, pane )
172 else
173 wez.log_info( 'Switching to: ', unix_domain )
174 window:perform_action( wez.action.AttachDomain( unix_domain ), pane )
175 end
176 end ),
177 },
158180-- Navigate Tabs by LEADER+n
159181for i = 1, 8 do
160182 -- CTRL+ALT + number to activate that tab

wezterm/bugabinga/mouse_binds.lua

Modified

+1 / −0 text lines

33local bindings = {
44 {
55 event = { Down = { streak = 3, button = 'Left', }, },
6 -- FIXME: this needs integration in nushel
67 action = wez.action.SelectTextAtMouseCursor 'SemanticZone',
78 mods = 'NONE',
89 },

wezterm/bugabinga/options.lua

Modified

+27 / −19 text lines

11local wez = require 'wezterm'
3return function(cfg)
4 cfg.default_cwd = wez.home_dir
5 cfg.inactive_pane_hsb = {
6 saturation = 0.42,
7 brightness = 0.69,
8 }
9 cfg.default_cursor_style = 'SteadyBlock'
10 cfg.check_for_updates = false
11 cfg.audible_bell = 'Disabled'
12 cfg.visual_bell = {
13 fade_in_duration_ms = 69,
14 fade_out_duration_ms = 69,
15 target = 'CursorColor',
16 }
17 cfg.cursor_blink_rate = 0
18 cfg.front_end = 'WebGpu'
19 cfg.max_fps = 144
20 cfg.unzoom_on_switch_pane = true
21 cfg.scrollback_lines = 16777216
3return function ( cfg )
4 cfg.default_cwd = wez.home_dir
5 cfg.inactive_pane_hsb = {
6 saturation = 0.42,
7 brightness = 0.69,
8 }
9 cfg.default_cursor_style = 'SteadyBlock'
10 cfg.check_for_updates = false
11 cfg.audible_bell = 'Disabled'
12 cfg.visual_bell = {
13 fade_in_duration_ms = 69,
14 fade_out_duration_ms = 69,
15 target = 'CursorColor',
16 }
17 cfg.cursor_blink_rate = 0
18 cfg.front_end = 'WebGpu'
19 cfg.max_fps = 144
20 cfg.unzoom_on_switch_pane = true
21 cfg.scrollback_lines = 16777216
22 cfg.unix_domains = {
23 {
24 name = 'unix',
25 no_serve_automatically = true, -- managed via systemd
26 -- multiplexing = "WezTerm",
27 local_echo_threshold_ms = 10,
28 },
29 }
2230end

wezterm/bugabinga/status.lua

Modified

+12 / −8 text lines

3636 { Text = table.concat( fonts, ', ' ), },
3737 'ResetAttributes',
3838 }
39 local pane_domain = pane:get_domain_name()
4041 local status = { '', }
4142 if leader then
4748 if zoomed_state then
4849 table.insert( status, zoomed_state )
4950 end
50 if current_workspace then
51 table.insert( status, current_workspace )
52 end
53 if font then
54 table.insert( status, font )
55 end
52 local context = wez.format {
53 { Text = current_workspace, },
54 { Text = '@', },
55 { Attribute = { Intensity = 'Bold', }, },
56 { Text = pane_domain, },
57 'ResetAttributes',
58 }
59 table.insert( status, context )
61 table.insert( status, font )
5763 window:set_right_status( table.concat( status, DELIMITER ) )
5864 --TODO: shirley, something useful can be done here
6672 cfg.use_fancy_tab_bar = false
6773 cfg.tab_max_width = 42
6874 cfg.tab_bar_at_bottom = true
70
7175end

wezterm/wezterm.service

Modified

+1 / −2 text lines

11[Unit]
22Description=Wezterm Multiplexing Server
3After=gnome-session.target
54[Service]
65ExecStart=/usr/bin/wezterm-mux-server
76Restart=on-failure
98[Install]
10WantedBy=gnome-session.target
9WantedBy=default.target