From c962d3140af03ac41e8b7528e9c6487e086b62fb Mon Sep 17 00:00:00 2001 From: Kristofers Solo Date: Thu, 16 Oct 2025 18:14:21 +0300 Subject: [PATCH] Update 2025-10-16 --- .dotter/global.toml | 2 ++ config/asm-lsp/.asm-lsp.toml | 2 +- config/btop/btop.conf | 2 +- config/containers/containers.toml | 10 ++++++++++ config/shell/env | 3 +++ config/waybar/config.jsonc | 12 +++++++++++- config/zsh/completions/_bun | 1 - local/bin/podman-cleanup | 8 ++++++++ 8 files changed, 36 insertions(+), 4 deletions(-) create mode 100644 config/containers/containers.toml create mode 100755 local/bin/podman-cleanup diff --git a/.dotter/global.toml b/.dotter/global.toml index 1bd58c58..e8630602 100644 --- a/.dotter/global.toml +++ b/.dotter/global.toml @@ -178,6 +178,8 @@ depends = [ "zsh", "tmux", "fish" ] [dev.files] "config/sqruff/" = "~/.config/sqruff/" "config/asm-lsp/" = "~/.config/asm-lsp/" +"config/containers/" = "~/.config/containers/" + [apps.files] "config/Vencord/" = "~/.config/Vencord/" diff --git a/config/asm-lsp/.asm-lsp.toml b/config/asm-lsp/.asm-lsp.toml index 9e83ca1d..b1b5c565 100644 --- a/config/asm-lsp/.asm-lsp.toml +++ b/config/asm-lsp/.asm-lsp.toml @@ -1,7 +1,7 @@ [default_config] version = "0.10.0" assembler = "gas" -instruction_set = "riscv" +instruction_set = "arm" [default_config.opts] # compiler = "zig" diff --git a/config/btop/btop.conf b/config/btop/btop.conf index ef1024dd..9d29488b 100644 --- a/config/btop/btop.conf +++ b/config/btop/btop.conf @@ -57,7 +57,7 @@ update_ms = 1000 #* Processes sorting, "pid" "program" "arguments" "threads" "user" "memory" "cpu lazy" "cpu direct", #* "cpu lazy" sorts top process over time (easier to follow), "cpu direct" updates top process directly. -proc_sorting = "cpu lazy" +proc_sorting = "cpu direct" #* Reverse sorting order, True or False. proc_reversed = False diff --git a/config/containers/containers.toml b/config/containers/containers.toml new file mode 100644 index 00000000..8878014b --- /dev/null +++ b/config/containers/containers.toml @@ -0,0 +1,10 @@ +[engine] +cgroup_manager = "cgroupfs" +events_logger = "file" +runtime = "crun" + +[network] +network_backend = "cni" + +[storage] +driver = "overlay" diff --git a/config/shell/env b/config/shell/env index 9fdcb9db..b8d75b31 100644 --- a/config/shell/env +++ b/config/shell/env @@ -6,11 +6,14 @@ typeset -U PATH path # If you don't plan on reverting to bash, you can remove the link in ~/.profile # to clean up. +export BUN_INSTALL="$XDG_DATA_HOME/bun" + # Adds `~/.local/bin` to $PATH export PATH="$PATH:${$(find ~/.local/bin -type d -printf %p:)%%:}" export PATH="$PATH:~/.spicetify" export PATH="$PATH:${$(find ~/.cache/.bun/bin -type d -printf %p:)%%:}" export PATH="$JAVA_HOME/bin:$PATH" +export PATH="$BUN_INSTALL/bin:$PATH" # Disable files export LESSHISTFILE=- diff --git a/config/waybar/config.jsonc b/config/waybar/config.jsonc index c4df4c26..69850ee1 100644 --- a/config/waybar/config.jsonc +++ b/config/waybar/config.jsonc @@ -12,7 +12,7 @@ "spacing": 0, // Gaps between modules (4px) // Choose the order of the modules "modules-left": [ - "wlr/taskbar" + "cffi/niri-taskbar" ], "modules-center": [], "modules-right": [ @@ -57,6 +57,16 @@ "on-click-middle": "close", "on-click-right": "fullscreen" }, + "cffi/niri-taskbar": { + "module_path": "/usr/lib/waybar/libniri_taskbar.so", + // "all-outputs": true, + // "format": "{icon} {title} {app_id}", + "format": "{icon}", + "tooltip-format": "{title} | {app_id}", + "on-click": "activate", + "on-click-middle": "close", + "on-click-right": "fullscreen" + }, "keyboard-state": { "numlock": true, "capslock": true, diff --git a/config/zsh/completions/_bun b/config/zsh/completions/_bun index 3680e718..3931619d 100644 --- a/config/zsh/completions/_bun +++ b/config/zsh/completions/_bun @@ -665,7 +665,6 @@ _bun_test_completion() { '--timeout[Set the per-test timeout in milliseconds, default is 5000.]:timeout' \ '--update-snapshots[Update snapshot files]' \ '--rerun-each[Re-run each test file times, helps catch certain bugs]:rerun' \ - '--only[Only run tests that are marked with "test.only()"]' \ '--todo[Include tests that are marked with "test.todo()"]' \ '--coverage[Generate a coverage profile]' \ '--bail[Exit the test suite after failures. If you do not specify a number, it defaults to 1.]:bail' \ diff --git a/local/bin/podman-cleanup b/local/bin/podman-cleanup new file mode 100755 index 00000000..2a5c036b --- /dev/null +++ b/local/bin/podman-cleanup @@ -0,0 +1,8 @@ +#!/usr/bin/env bash + +if command -v podman >/dev/null; then + export XDG_RUNTIME_DIR="${XDG_RUNTIME_DIR:-/run/user/$(id -u)}" + podman --runtime-flag timeout=5s stop --all 2>/dev/null || true + podman --runtime-flag timeout=5s rm --all --force 2>/dev/null || true + rm -rf "${XDG_RUNTIME_DIR}/libpod" "${XDG_RUNTIME_DIR}/containers" 2>/dev/null || true +fi