repositories / dotfiles

dotfiles

bugabingas dorkfiles

owned by bugabinga

systemd user: river + wayland desktop tools

2fccf8adb1c6a1fe5b8a425cddacf7560677c675

Oliver Jan Krylow <olver@bugabinga.net> ·

unsigned

Browse filesCompare with HEAD

Changed files (6)

COMMANDS.md

Modified
2 2 ## Commands to remember
4 4 - sbyte: byte editor cli
5 5 - cbs: copy and paste
6 +- lswt: list wayland toplevel windows
7 +- dex: run and make xdg desktop files
6 8 - ouch: compress and decompress archives
7 9 - choose: `choose` sections from each line of files
8 10 - sd: search and replace

TODO.md

Modified
16 16 ## x230
18 +- [ ] wayland (river) systemd user target
19 + - [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 + - [ ] clipboard history
28 +- [ ] wezterm multiplexer service
29 +- [ ] use systemd user for autostart stuff
18 30 - [ ] package indexa AUR
31 +- [ ] OFFLINE
32 + - [ ] local web proxy cache (squid?)
19 33 - [ ] pacman hook reflector on mirrorlist
20 34 - [ ] pacman trigger for "needs reboot"
21 35 - [ ] install pipewire

nushell/modules/aliases.nu

Modified
4 4 # Semantic aliases
5 5 export alias view = bat
6 6 export alias list = exa --group-directories-first --classify --all --long --icons --git
7 7 export alias tree = exa --tree --group-directories-first
8 8 export alias look = xplr
9 9 export alias browse = firefox
10 -export alias edit = code
10 +export alias edit = hx
11 +export alias code = code
12 13 # TODO: HOST SPECIFIC ALIASES
13 14 # I do not see a way right now the have different aliases per host with nu.
13 14 export alias aes = java (build-string $env.DOTFILES /tools/ aes.java)
14 15 export alias download = java (build-string $env.DOTFILES /tools/ download.java)
15 16 export alias download_jar = java (build-string $env.DOTFILES /tools/ download_jar.java)
18 +# git
19 +export alias ghead = git rev-parse HEAD
21 +# systemd
22 +export alias userctl = systemctl --user

river/init

Modified
8 8 # See the river(1), riverctl(1), and rivertile(1) man pages for complete
9 9 # documentation.
11 +# systemd user integration
12 +# in order to export the environment variables, that river sets for other services, we need to tell
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"
11 17 # Use the "logo" key as the primary modifier
12 18 super="Mod4"
13 19 alt="Mod1"
165 171 # Set and exec into the default layout generator, rivertile.
166 172 # River will send the process group of the init executable SIGTERM on exit.
167 173 riverctl default-layout rivertile
168 -exec rivertile
174 +exec rivertile -view-padding 0 -outer-padding 0 -main-location right -main-ratio 0.666 -main-count 2

topgrade/topgrade.linux.toml

Modified
1 1 # Disable specific steps - same options as the command line flag
2 -disable = ["tldr"]
2 +disable = []
4 4 assume_yes = true
46 46 # TODO: this could be annoying when setting up a machine first time?
47 47 "01 - Install Cargo Tools" = "nu W:/dotfiles/tools/cargo-tools.nu"
49 -# Leider scheint der eingebaute "tldr" step von topgrade nicht für meine Version von TLDR funktionieren
50 -"03 - TLDR" = "tldr --update"
52 49 # Dateisystem-Indexer ix erfrischen
53 -"03 - Indexa Update" = "ix --update"
50 +"02 - Indexa Update" = "ix --update"

wezterm/wezterm.lua

Modified
3 3 local wez = require'wezterm'
4 4 local hostname = wez.hostname()
6 6 local enable_wayland = false
7 7 local window_decorations = 'TITLE|RESIZE'
8 -local dpi = nil
9 8 local color_scheme = 'nord-light'
11 10 if hostname == "x230" then
12 11 enable_wayland = true
13 12 window_decorations = 'NONE'
14 - dpi = 125.37
15 13 color_scheme = 'nord'
18 16 local configuration = {
19 - font = wez.font'JetBrainsMono Nerd Font',
17 + font = wez.font'BlexMono Nerd Font',
20 18 font_size = 13.0,
21 19 color_scheme = color_scheme,
22 - default_prog = {'nu'},
23 - dpi = dpi,
20 + default_prog = { 'nu' },
24 21 window_decorations = window_decorations,
25 22 enable_tab_bar = true,
26 23 hide_tab_bar_if_only_one_tab = true,