From d3460b52ea8bd299f492740f8224d9ac09d68b90 Mon Sep 17 00:00:00 2001 From: Johannes Kresner Date: Thu, 30 Jul 2026 00:08:37 +0200 Subject: [PATCH] chore: cleanup --- config/cursor/commands/journal.md | 8 - config/cursor/rules/auto-document.mdc | 17 - config/cursor/rules/commit-messages.mdc | 54 --- config/cursor/rules/golang-errors.mdc | 10 - config/cursor/rules/golang-style.mdc | 26 -- config/cursor/rules/golang-testing.mdc | 12 - config/cursor/rules/php-docs.mdc | 8 - config/cursor/rules/php-errors.mdc | 10 - config/cursor/rules/php-performance.mdc | 10 - config/cursor/rules/php-security.mdc | 10 - config/cursor/rules/php-style.mdc | 12 - config/cursor/rules/php-testing.mdc | 10 - config/fastfetch/config.jsonc.bak | 61 --- config/helix/config.toml | 32 -- .../themes/catppuccin_latte_transparent.toml | 1 - .../themes/catppuccin_mocha_transparent.toml | 3 - config/hypr/hyprland.conf | 281 -------------- config/niri/config.kdl | 349 ------------------ config/nushell/config.nu | 64 +--- config/nushell/env.nu | 76 +--- config/themes/catppuccin/latte/wofi.css | 61 --- config/themes/catppuccin/mocha/wofi.css | 61 --- config/waybar/config | 337 ----------------- config/waybar/config.jsonc | 105 ------ config/waybar/mocha.css | 26 -- config/waybar/modules/mail.py | 42 --- config/waybar/modules/spotify.sh | 18 - config/waybar/modules/storage.sh | 24 -- config/waybar/modules/weather.sh | 79 ---- config/waybar/style.css | 158 -------- config/waybar/waybar.sh | 10 - config/wofi/config | 25 -- config/wofi/launch.sh | 7 - config/wofi/style.css | 1 - config/yazi/package.toml | 3 + config/yazi/plugins/auto-layout.yazi/LICENSE | 21 -- .../yazi/plugins/auto-layout.yazi/README.md | 24 -- config/yazi/plugins/auto-layout.yazi/main.lua | 180 --------- config/yazi/plugins/git.yazi/LICENSE | 21 -- config/yazi/plugins/git.yazi/README.md | 78 ---- config/yazi/plugins/git.yazi/main.lua | 228 ------------ home.nix | 11 +- 42 files changed, 14 insertions(+), 2560 deletions(-) delete mode 100644 config/cursor/commands/journal.md delete mode 100644 config/cursor/rules/auto-document.mdc delete mode 100644 config/cursor/rules/commit-messages.mdc delete mode 100644 config/cursor/rules/golang-errors.mdc delete mode 100644 config/cursor/rules/golang-style.mdc delete mode 100644 config/cursor/rules/golang-testing.mdc delete mode 100644 config/cursor/rules/php-docs.mdc delete mode 100644 config/cursor/rules/php-errors.mdc delete mode 100644 config/cursor/rules/php-performance.mdc delete mode 100644 config/cursor/rules/php-security.mdc delete mode 100644 config/cursor/rules/php-style.mdc delete mode 100644 config/cursor/rules/php-testing.mdc delete mode 100644 config/fastfetch/config.jsonc.bak delete mode 100644 config/helix/config.toml delete mode 100644 config/helix/themes/catppuccin_latte_transparent.toml delete mode 100644 config/helix/themes/catppuccin_mocha_transparent.toml delete mode 100644 config/hypr/hyprland.conf delete mode 100644 config/niri/config.kdl delete mode 100644 config/themes/catppuccin/latte/wofi.css delete mode 100644 config/themes/catppuccin/mocha/wofi.css delete mode 100644 config/waybar/config delete mode 100644 config/waybar/config.jsonc delete mode 100644 config/waybar/mocha.css delete mode 100755 config/waybar/modules/mail.py delete mode 100755 config/waybar/modules/spotify.sh delete mode 100755 config/waybar/modules/storage.sh delete mode 100755 config/waybar/modules/weather.sh delete mode 100644 config/waybar/style.css delete mode 100755 config/waybar/waybar.sh delete mode 100644 config/wofi/config delete mode 100755 config/wofi/launch.sh delete mode 120000 config/wofi/style.css create mode 100644 config/yazi/package.toml delete mode 100644 config/yazi/plugins/auto-layout.yazi/LICENSE delete mode 100644 config/yazi/plugins/auto-layout.yazi/README.md delete mode 100644 config/yazi/plugins/auto-layout.yazi/main.lua delete mode 100644 config/yazi/plugins/git.yazi/LICENSE delete mode 100644 config/yazi/plugins/git.yazi/README.md delete mode 100644 config/yazi/plugins/git.yazi/main.lua diff --git a/config/cursor/commands/journal.md b/config/cursor/commands/journal.md deleted file mode 100644 index 8f37777..0000000 --- a/config/cursor/commands/journal.md +++ /dev/null @@ -1,8 +0,0 @@ -# Journal - -@Cursor Rules Auto Document Session (Work/Private) -@Git -@Past Chats - -Create today’s structured development log and save to Anytype (Work or Private). - diff --git a/config/cursor/rules/auto-document.mdc b/config/cursor/rules/auto-document.mdc deleted file mode 100644 index b4461b4..0000000 --- a/config/cursor/rules/auto-document.mdc +++ /dev/null @@ -1,17 +0,0 @@ ---- -description: Auto-document session to Anytype (asks Work/Private) and saves to today's daily page -alwaysApply: false ---- - -# Auto Document Session (Work/Private) - -- Ask me which Anytype space: **Work Journal** or **Private Journal**. -- Use **@Git** to gather staged diffs/commit messages and **@Past Chats** for today’s key exchanges. -- Summarize as Markdown sections: - 1) Date & Context - 2) Git Changes - 3) Cursor Interaction Summary - 4) Completed Work - 5) Pending Work / Next Steps -- Using the Anytype MCP, **create or append** to the daily page titled `YYYY-MM-DD` in the chosen space. If missing, create it; then append the entry (separate entries with `---`). - diff --git a/config/cursor/rules/commit-messages.mdc b/config/cursor/rules/commit-messages.mdc deleted file mode 100644 index f460120..0000000 --- a/config/cursor/rules/commit-messages.mdc +++ /dev/null @@ -1,54 +0,0 @@ ---- -alwaysApply: false ---- - -You write commit messages by reading the staged diff, current branch name, and recent history. - -## Detect style -1. Look at the last 30 commit subjects. - - If ≥70% match Conventional Commits (`^(feat|fix|docs|style|refactor|perf|test|build|ci|chore|revert)(\([\w\-./]+\))?: `) → use **Conventional**. -2. Else, if the branch name matches a project/issue pattern, use **ProjectIssue**: - - Accept: `project-issue-branch`, `project/issue-branch`, `PROJECT-123/feature-x`, `proj-123-scope-x`. - - Extract `project` = leading letters/dashes, `issue` = number block (e.g., `123` or `PROJ-123`). - -## Message rules (both styles) -- Subject: imperative mood, ≤ 50 chars, no period. -- Scope: infer from top-level changed path (e.g., `api`, `ui`, `build`, `docs`). -- Body: explain **why** and **what**, wrap at 72 cols; list key changes as bullets. -- Footer: include references (`Refs: #`), co-authors, and `BREAKING CHANGE:` when applicable. - -## Types -feat, fix, docs, style, refactor, perf, test, build, ci, chore, revert - -## Formats -- **Conventional** - `(): ` - [blank line] - `` - [blank line if footers] - `Refs: ` - `BREAKING CHANGE:
` - -- **ProjectIssue** - `-: #time - ` - -## Issue/branch parsing -Examples → extracted -- `checkout-321-add-paypal` → `checkout-321` -- `PAY-1042/refactor-provider` → `PAY-1042` -- `proj-77-auth-cleanup` → `proj-77` -- `feature/PAY-88-retry` → `PAY-88` - -## Output -- Propose **3 options** following the chosen style. -- Each option = subject + body (+ footers if relevant). -- If multiple scopes changed, pick dominant one by lines changed; otherwise omit scope. -- If history is mixed, prefer **Conventional** unless branch clearly encodes issue. - -## Examples -- Conventional: - `feat(api): add refund endpoint` - Body: explain why/what, bullets, breaking change if needed - -- ProjectIssue: - `PAY-1042: #time 0h - normalize provider errors` diff --git a/config/cursor/rules/golang-errors.mdc b/config/cursor/rules/golang-errors.mdc deleted file mode 100644 index fcde53e..0000000 --- a/config/cursor/rules/golang-errors.mdc +++ /dev/null @@ -1,10 +0,0 @@ ---- -alwaysApply: false ---- - -# Error Handling Rules -- Always return errors instead of panicking (except in `main` or tests). -- Wrap errors with `%w` when using `fmt.Errorf` for context. -- Do not ignore errors; handle or log them explicitly. -- Use sentinel errors or `errors.Is` / `errors.As` for checking. - diff --git a/config/cursor/rules/golang-style.mdc b/config/cursor/rules/golang-style.mdc deleted file mode 100644 index 03e4dfe..0000000 --- a/config/cursor/rules/golang-style.mdc +++ /dev/null @@ -1,26 +0,0 @@ ---- -alwaysApply: false ---- - -# Go Code Style Rules -- Always run `gofmt` or `goimports` before committing. -- Follow Go naming conventions: - - Exported identifiers: PascalCase. - - Unexported identifiers: camelCase. -- Keep line length <= 100 characters. -- Group standard library imports first, then third-party, then local modules. -- Avoid unnecessary abbreviations in variable names. -- Use `error` as the last return value in functions. -- Prefer `context.Context` as the first argument in long-lived or external-facing funcs. - -# Go Code Style Rules -- Always run `gofmt` or `goimports` before committing. -- Follow Go naming conventions: - - Exported identifiers: PascalCase. - - Unexported identifiers: camelCase. -- Keep line length <= 100 characters. -- Group standard library imports first, then third-party, then local modules. -- Avoid unnecessary abbreviations in variable names. -- Use `error` as the last return value in functions. -- Prefer `context.Context` as the first argument in long-lived or external-facing funcs. - diff --git a/config/cursor/rules/golang-testing.mdc b/config/cursor/rules/golang-testing.mdc deleted file mode 100644 index e5e3565..0000000 --- a/config/cursor/rules/golang-testing.mdc +++ /dev/null @@ -1,12 +0,0 @@ ---- -alwaysApply: false ---- - -# Testing Rules -- Write tests for all exported functions. -- Use `*_test.go` files with `testing` package. -- Test names must describe the behavior: `TestFunctionName_Scenario`. -- Use table-driven tests for multiple cases. -- Ensure test coverage > 80%. -- Use `t.Helper()` in test helpers. -- Benchmarks must be named `BenchmarkFunctionName`. diff --git a/config/cursor/rules/php-docs.mdc b/config/cursor/rules/php-docs.mdc deleted file mode 100644 index 7216034..0000000 --- a/config/cursor/rules/php-docs.mdc +++ /dev/null @@ -1,8 +0,0 @@ ---- -alwaysApply: false ---- - -# Documentation -- Update README on env vars, setup, and run commands. -- Public services/classes need PHPDoc when intent isn’t obvious. -- Changelog follows Keep a Changelog; SemVer for releases. diff --git a/config/cursor/rules/php-errors.mdc b/config/cursor/rules/php-errors.mdc deleted file mode 100644 index 6b092c6..0000000 --- a/config/cursor/rules/php-errors.mdc +++ /dev/null @@ -1,10 +0,0 @@ ---- -alwaysApply: false ---- - -# Errors & Exceptions -- Never suppress errors with @. -- Throw domain-specific exceptions; do not return error strings. -- Catch only what you can handle; rethrow with previous exception. -- Use Value Objects for validation; avoid silent defaults. -- Log unexpected exceptions once at the edge (middleware/handler). diff --git a/config/cursor/rules/php-performance.mdc b/config/cursor/rules/php-performance.mdc deleted file mode 100644 index 9f46c77..0000000 --- a/config/cursor/rules/php-performance.mdc +++ /dev/null @@ -1,10 +0,0 @@ ---- -alwaysApply: false ---- - -# Security -- Never commit secrets; load via env (vlucas/phpdotenv or server env). -- Escape output (HTML/JS) and use parameterized queries everywhere. -- Validate and sanitize all input; centralize validation. -- Use password_hash()/password_verify(); never custom crypto. -- Enable SameSite, HttpOnly, Secure cookies; rotate session IDs on login. diff --git a/config/cursor/rules/php-security.mdc b/config/cursor/rules/php-security.mdc deleted file mode 100644 index 9f46c77..0000000 --- a/config/cursor/rules/php-security.mdc +++ /dev/null @@ -1,10 +0,0 @@ ---- -alwaysApply: false ---- - -# Security -- Never commit secrets; load via env (vlucas/phpdotenv or server env). -- Escape output (HTML/JS) and use parameterized queries everywhere. -- Validate and sanitize all input; centralize validation. -- Use password_hash()/password_verify(); never custom crypto. -- Enable SameSite, HttpOnly, Secure cookies; rotate session IDs on login. diff --git a/config/cursor/rules/php-style.mdc b/config/cursor/rules/php-style.mdc deleted file mode 100644 index 2283116..0000000 --- a/config/cursor/rules/php-style.mdc +++ /dev/null @@ -1,12 +0,0 @@ ---- -alwaysApply: false ---- - -# PHP Code Style -- Follow PSR-12 strictly; run php-cs-fixer or PHP_CodeSniffer on commit. -- Enable strict_types=1 in all files. -- Use typed properties/params/returns; avoid mixed unless documented. -- One class per file; namespaces match directory structure. -- Limit line length to 120; prefer early returns to reduce nesting. -- Prefer short array syntax []; no Yoda conditions. -- Use null coalesce (??) and nullsafe (?->) where appropriate. diff --git a/config/cursor/rules/php-testing.mdc b/config/cursor/rules/php-testing.mdc deleted file mode 100644 index e339361..0000000 --- a/config/cursor/rules/php-testing.mdc +++ /dev/null @@ -1,10 +0,0 @@ ---- -alwaysApply: false ---- - -# Testing -- Use PHPUnit or Pest; tests live in tests/. -- Aim ≥ 85% coverage for domain/services; integration tests for I/O. -- Test names: testMethod_Scenario_ExpectedResult. -- Use data providers/table tests for variants. -- Mock only external boundaries (HTTP/DB/FS); avoid over-mocking. diff --git a/config/fastfetch/config.jsonc.bak b/config/fastfetch/config.jsonc.bak deleted file mode 100644 index 888b5da..0000000 --- a/config/fastfetch/config.jsonc.bak +++ /dev/null @@ -1,61 +0,0 @@ -{ - "$schema": "https://github.com/fastfetch-cli/fastfetch/raw/dev/doc/json_schema.json", - "display": { - "separator": "• " - }, - "modules": [ - "break", - { - "type": "title", - }, - { - "type": "custom", - "format": "╭───────────────────────────────╮" - }, - { - "type": "os", - "key": "  ", - "format": "{2}" - }, - { - "type": "host", - "key": "  ", - }, - { - "type": "kernel", - "key": "  " - }, - { - "type": "wm", - "key": "  " - }, - { - "type": "shell", - "key": " $ " - }, - { - "type": "terminal", - "key": "  " - }, - { - "type": "uptime", - "key": " 󰔚 " - }, - { - "type": "memory", - "key": " 󰍛 " - }, - { - "type": "packages", - "key": "  " - }, - { - "type": "custom", - "format": "╰───────────────────────────────╯" - }, - { - "type": "custom", - "format": " \u001b[90m── \u001b[31m── \u001b[32m── \u001b[33m── \u001b[34m── \u001b[35m── \u001b[36m── \u001b[37m── " - } - ] -} diff --git a/config/helix/config.toml b/config/helix/config.toml deleted file mode 100644 index d26dfb7..0000000 --- a/config/helix/config.toml +++ /dev/null @@ -1,32 +0,0 @@ -theme = "catppuccin_mocha_transparent" - -[editor] -line-number = "relative" -cursorline = true -color-modes = true -bufferline = "multiple" -true-color = true -mouse = true - -[editor.cursor-shape] -insert = "bar" -normal = "block" -select = "underline" - -[editor.indent-guides] -render = true -character = "│" -skip-levels = 1 - -[editor.statusline] -left = ["mode", "spinner", "file-name", "file-modification-indicator"] -center = [] -right = ["diagnostics", "selections", "position", "file-encoding", "file-line-ending", "file-type"] -separator = "│" -mode.normal = "NORMAL" -mode.insert = "INSERT" -mode.select = "SELECT" - -[keys.normal] -# Mimic Neovim config keymaps -space = { space = "file_picker", "," = "buffer_picker" } diff --git a/config/helix/themes/catppuccin_latte_transparent.toml b/config/helix/themes/catppuccin_latte_transparent.toml deleted file mode 100644 index 2bb8d2f..0000000 --- a/config/helix/themes/catppuccin_latte_transparent.toml +++ /dev/null @@ -1 +0,0 @@ -inherits = "catppuccin_latte"\n\n"ui.background" = {} diff --git a/config/helix/themes/catppuccin_mocha_transparent.toml b/config/helix/themes/catppuccin_mocha_transparent.toml deleted file mode 100644 index a8459af..0000000 --- a/config/helix/themes/catppuccin_mocha_transparent.toml +++ /dev/null @@ -1,3 +0,0 @@ -inherits = "catppuccin_mocha" - -"ui.background" = {} diff --git a/config/hypr/hyprland.conf b/config/hypr/hyprland.conf deleted file mode 100644 index e86d1f5..0000000 --- a/config/hypr/hyprland.conf +++ /dev/null @@ -1,281 +0,0 @@ -################ -### MONITORS ### -################ - -# See https://wiki.hyprland.org/Configuring/Monitors/ -monitor=,preferred,auto,auto - -source = ~/.config/hypr/monitors.conf -source = ~/.config/hypr/theme.conf - - -################### -### MY PROGRAMS ### -################### - -# See https://wiki.hyprland.org/Configuring/Keywords/ - -# Set programs that you use -$terminal = ghostty -$fileManager = nemo -$menu = qs ipc call appLauncher open -$clipboard = qs ipc call clipboardPicker open -$lock = hyprlock -$powermenu = qs ipc call powerMenu open - -################# -### AUTOSTART ### -################# - -exec-once = hypridle -exec-once = trayscale --hide-window -exec-once = nextcloud -exec-once = wl-paste --watch cliphist store -exec-once = quickshell -exec-once = easyeffects --service-mode -exec-once = lxqt-polkit-agent -exec-once = /home/johannes/.local/bin/mcpproxy - -exec-once = awww-daemon - -############################# -### ENVIRONMENT VARIABLES ### -############################# - -env = XCURSOR_SIZE,24 -env = HYPRCURSOR_SIZE,24 -env = XCURSOR_THEME,Bibata-Modern-Classic -env = QT_QPA_PLATFORMTHEME,qt5ct:qt6ct -env = MOZ_ENABLE_WAYLAND,1 -env = XDG_SESSION_TYPE,wayland -env = MOZ_DBUS_REMOTE,1 -env = GDK_BACKEND,wayland -env = QT_AUTO_SCREEN_SCALE_FACTOR,1 -env = QT_WAYLAND_FORCE_DPI,physical -env = OZONE_PLATFORM,wayland -env = EGL_PLATFORM,wayland -env = CLUTTER_BACKEND,wayland -env = TERM,ghostty -env = TERMINAL,ghostty -env = ELECTRON_OZONE_PLATFORM_HINT,auto -env = QT_QPA_PLATFORM,wayland -env = QT_STYLE_OVERRIDE,kvantum -env = GTK_THEME,catppuccin-mocha-mauve-standard+default -env = PROTON_DLSS_UPGRADE,1 - -##################### -### LOOK AND FEEL ### -##################### - -general { - gaps_in = 5 - gaps_out = 20 - - border_size = 2 - - col.active_border = $red - col.inactive_border = $surface1 - - resize_on_border = false - allow_tearing = false - layout = dwindle -} - -decoration { - rounding = 2 - rounding_power = 2 - - active_opacity = 1.0 - inactive_opacity = 0.9 - - shadow { - enabled = true - range = 4 - render_power = 3 - color = rgba(1a1a1aee) - } - - blur { - enabled = true - size = 3 - passes = 1 - vibrancy = 0.1696 - } -} - -animations { - enabled = true - bezier = wind, 0.05, 0.9, 0.1, 1.05 - bezier = winIn, 0.1, 1.1, 0.1, 1.1 - bezier = winOut, 0.3, -0.3, 0, 1 - bezier = liner, 1, 1, 1, 1 - animation = windows, 1, 6, wind, slide - animation = windowsIn, 1, 6, winIn, slide - animation = windowsOut, 1, 5, winOut, slide - animation = windowsMove, 1, 5, wind, slide - animation = border, 1, 1, liner - animation = borderangle, 1, 30, liner, loop - animation = fade, 1, 10, default - animation = workspaces, 1, 5, wind -} - -# Ref https://wiki.hyprland.org/Configuring/Workspace-Rules/ -workspace = 2, layoutopt:direction:right - -dwindle { -# pseudotile = true - preserve_split = true -} - -master { - new_status = slave -} - -scrolling { - fullscreen_on_one_column = true - column_width = 0.9 - direction = right -} - -misc { - force_default_wallpaper = -1 - disable_hyprland_logo = false -} - -############# -### INPUT ### -############# - -input { - kb_layout = de - kb_model = - kb_rules = - - follow_mouse = 1 - sensitivity = 0 - - touchpad { - natural_scroll = true - } -} - -gestures { - # workspace_swipe = true -} - -# Example per-device config -device { - name = epic-mouse-v1 - sensitivity = -0.5 -} - -################### -### KEYBINDINGS ### -################### - -$mainMod = SUPER - -exec = hyprctl dispatch submap global -submap = global - -# Apps -bind = $mainMod, Return, exec, $terminal -bind = $mainMod, Q, killactive, -bind = $mainMod, M, exec, $powermenu -bind = $mainMod, E, exec, $fileManager -bind = $mainMod, H, togglefloating, -bind = $mainMod, Space, exec, $menu -bind = $mainMod, P, pseudo, -#bind = $mainMod, J, togglesplit, -bind = $mainMod, F, fullscreen -bind = $mainMod, L, exec, $lock -bind = $mainMod, V, exec, $clipboard - -# Layout -bind = $mainMod, period, layoutmsg, move +col -bind = $mainMod, comma, layoutmsg, move -col -bind = $mainMod SHIFT, period, layoutmsg, swapcol r -bind = $mainMod SHIFT, comma, layoutmsg, swapcol l - -# Theme / wallpaper switchers -bind = $mainMod, T, exec, qs ipc call themeSwitcher open -bind = $mainMod, W, exec, qs ipc call wallpaperSwitcher open -bind = $mainMod SHIFT, W, exec, qs ipc call wallpaperSwitcher random - -# Brightness -bindl = , XF86MonBrightnessUp, global, brightnessctl set 10%- -bindl = , XF86MonBrightnessDown, global, brightnessctl set 10%- - -# Media -bindl = ,XF86AudioRaiseVolume, exec, wpctl set-volume -l 1 @DEFAULT_AUDIO_SINK@ 5%+ -bindl = ,XF86AudioLowerVolume, exec, wpctl set-volume -l 1 @DEFAULT_AUDIO_SINK@ 5%- -bindl = ,XF86AudioMute, exec, wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle -bindl = ,XF86AudioMicMute, exec, wpctl set-mute @DEFAULT_AUDIO_SOURCE@ toggle -bindl = ,XF86AudioPlay, exec, playerctl play-pause -bindl = ,XF86AudioPause, exec, playerctl play-pause -bindl = ,XF86AudioStop, exec, playerctl stop -bindl = ,XF86AudioNext, exec, playerctl next -bindl = ,XF86AudioPrev, exec, playerctl previous - -# Move focus with mainMod + arrow keys -bind = $mainMod, left, movefocus, l -bind = $mainMod, right, movefocus, r -bind = $mainMod, up, movefocus, u -bind = $mainMod, down, movefocus, d - -# Switch workspaces with mainMod + [0-9] -bind = $mainMod, 1, workspace, 1 -bind = $mainMod, 2, workspace, 2 -bind = $mainMod, 3, workspace, 3 -bind = $mainMod, 4, workspace, 4 -bind = $mainMod, 5, workspace, 5 -bind = $mainMod, 6, workspace, 6 -bind = $mainMod, 7, workspace, 7 -bind = $mainMod, 8, workspace, 8 -bind = $mainMod, 9, workspace, 9 -bind = $mainMod, 0, workspace, 10 - -# Move active window to a workspace with mainMod + SHIFT + [0-9] -bind = $mainMod SHIFT, 1, movetoworkspace, 1 -bind = $mainMod SHIFT, 2, movetoworkspace, 2 -bind = $mainMod SHIFT, 3, movetoworkspace, 3 -bind = $mainMod SHIFT, 4, movetoworkspace, 4 -bind = $mainMod SHIFT, 5, movetoworkspace, 5 -bind = $mainMod SHIFT, 6, movetoworkspace, 6 -bind = $mainMod SHIFT, 7, movetoworkspace, 7 -bind = $mainMod SHIFT, 8, movetoworkspace, 8 -bind = $mainMod SHIFT, 9, movetoworkspace, 9 -bind = $mainMod SHIFT, 0, movetoworkspace, 10 - -# Example special workspace (scratchpad) -bind = $mainMod, S, togglespecialworkspace, magic -bind = $mainMod SHIFT, S, movetoworkspace, special:magic - -# Scroll through existing workspaces with mainMod + scroll -bind = $mainMod, mouse_down, workspace, e+1 -bind = $mainMod, mouse_up, workspace, e-1 - -# Move/resize windows with mainMod + LMB/RMB and dragging -bindm = $mainMod, mouse:272, movewindow -bindm = $mainMod, mouse:273, resizewindow - -############################## -### WINDOWS AND WORKSPACES ### -############################## - -windowrule = match:class vivaldi-snapshot, opacity 1.0 override 1.0 override -windowrule = float true,match:class ^(org.quickshell)$,match:title ^(Theme Switcher)$ -windowrule = decorate false,match:class ^(org.quickshell)$,match:title ^(Theme Switcher)$ -windowrule = rounding 34,match:class ^(org.quickshell)$,match:title ^(Theme Switcher)$ -windowrule = float true,match:class ^(org.quickshell)$,match:title ^(Wallpaper Switcher)$ -windowrule = decorate false,match:class ^(org.quickshell)$,match:title ^(Wallpaper Switcher)$ -windowrule = rounding 34,match:class ^(org.quickshell)$,match:title ^(Wallpaper Switcher)$ -windowrule = float true,match:class ^(org.quickshell)$,match:title ^(Power Menu)$ -windowrule = decorate false,match:class ^(org.quickshell)$,match:title ^(Power Menu)$ -windowrule = rounding 34,match:class ^(org.quickshell)$,match:title ^(Power Menu)$ -windowrule = float true,match:class ^(org.quickshell)$,match:title ^(Clipboard Picker)$ -windowrule = decorate false,match:class ^(org.quickshell)$,match:title ^(Clipboard Picker)$ -windowrule = rounding 34,match:class ^(org.quickshell)$,match:title ^(Clipboard Picker)$ -windowrule = float true,match:class ^(org.quickshell)$,match:title ^(App Launcher)$ -windowrule = decorate false,match:class ^(org.quickshell)$,match:title ^(App Launcher)$ -windowrule = rounding 34,match:class ^(org.quickshell)$,match:title ^(App Launcher)$ diff --git a/config/niri/config.kdl b/config/niri/config.kdl deleted file mode 100644 index ee8d303..0000000 --- a/config/niri/config.kdl +++ /dev/null @@ -1,349 +0,0 @@ -input { - keyboard { - xkb { - layout "de" - } - repeat-delay 300 - repeat-rate 30 - } - - touchpad { - tap - natural-scroll - } - - mouse { - accel-profile "flat" - } - focus-follows-mouse max-scroll-amount="0%" -} - -output "Samsung Electric Company C49HG9x H4ZRC02847" { - mode "3840x1080@144" - scale 1 - transform "normal" - variable-refresh-rate on-demand=true - position x=0 y=0 -} - -output "Samsung Electric Company SAMSUNG 0x01000E00" { - //off - scale 2 -} - -output "Samsung Electric Company Odyssey G85SB H1AK500000" { - mode "3440x1440@174.962" - scale 1.33 - transform "normal" - variable-refresh-rate - position x=1920 y=0 -} - -output "Iiyama North America PL2730H 1153680901995" { - mode "1920x1080@74.973" - scale 1 - transform "normal" - position x=0 y=0 -} - - -layout { - gaps 10 - center-focused-column "never" - preset-column-widths { - proportion 0.33333 - proportion 0.5 - proportion 0.66667 - proportion 1.0 - } - focus-ring { - off - } - - background-color "transparent" - - default-column-width { proportion 0.66667; } - - border { - width 2 - //active-gradient from="#0DB7D4" to="#9778D0" angle=90 - //inactive-color "#04404A" - active-color "#f38ba8" - inactive-color "#45475a" - } - - struts { - left 2 - right 2 - top 2 - bottom 2 - } -} - -layer-rule { - match namespace="^swww-daemon$" - place-within-backdrop true -} - -spawn-at-startup "systemctl" "--user" "enable" "--now" "hypridle" -spawn-at-startup "awww-daemon" -spawn-at-startup "trayscale" "--hide-window" -spawn-at-startup "owncloud" -spawn-at-startup "wl-paste" "--watch" "cliphist" "store" -spawn-at-startup "quickshell" -spawn-at-startup "mcpproxy" "serve" -spawn-at-startup "lxqt-policykit-agent" - -environment { - LD_PRELOAD "" - MOZ_ENABLE_WAYLAND "1" - XDG_SESSION_TYPE "wayland" - XDG_CURRENT_DESKTOP "niri" - XDG_SESSION_DESKTOP "niri" - MOZ_DBUS_REMOTE "1" - GDK_BACKEND "wayland,x11" - QT_AUTO_SCREEN_SCALE_FACTOR "1" - QT_WAYLAND_FORCE_DPI "physical" - OZONE_PLATFORM "wayland" - EGL_PLATFORM "wayland" - CLUTTER_BACKEND "wayland" - TERM "ghostty" - TERMINAL "ghostty" - _JAVA_AWT_WM_NONREPARENTING "1" - ELECTRON_OZONE_PLATFORM_HINT "wayland" - QT_QPA_PLATFORMTHEME "qt5ct:qt6ct" - QT_QPA_PLATFORM "wayland" - QT_STYLE_OVERRIDE "kvantum" - GTK_THEME "catppuccin-mocha-mauve-standard+default" - XCURSOR_SIZE "24" - XCURSOR_THEME "Bibata-Modern-Classic" - __GL_THREADED_OPTIMIZATIONS "0" - PROTON_DLSS_UPGRADE "1" - //nv __GL_VRR_ALLOWED "1" - //nv __GL_GSYNC_ALLOWED "1" -} - -prefer-no-csd - -hotkey-overlay { - skip-at-startup -} - -//screenshot-path "~/Pictures/Screenshots/Screenshot from %Y-%m-%d %H-%M-%S.png" -screenshot-path null -//screenshot-notification-disable - -animations { - // Uncomment to turn off all animations. - // off - - // Slow down all animations by this factor. Values below 1 speed them up instead. - // slowdown 3.0 -} - -window-rule { - match app-id="^(steam_app_.*)$" - variable-refresh-rate true - open-fullscreen true -} - -window-rule { - match app-id="steam" title=r#"^notificationtoasts_\d+_desktop$"# - default-floating-position x=10 y=10 relative-to="bottom-right" -} - -window-rule { - geometry-corner-radius 20 - clip-to-geometry true -} - -// Quickshell popups from Hyprland rules. -window-rule { - match app-id=r#"^org\.quickshell$"# title="^Theme Switcher$" - match app-id=r#"^org\.quickshell$"# title="^Wallpaper Switcher$" - match app-id=r#"^org\.quickshell$"# title="^Power Menu$" - match app-id=r#"^org\.quickshell$"# title="^Clipboard Picker$" - match app-id=r#"^org\.quickshell$"# title="^App Launcher$" - - open-floating true - geometry-corner-radius 34 - clip-to-geometry true - - border { - off - } - - shadow { - off - } -} - -window-rule { - match app-id=r#"^org\.quickshell$"# title="^App Launcher$" - match app-id=r#"^org\.quickshell$"# title="^Clipboard Picker$" - - default-column-width { fixed 720; } - default-window-height { fixed 520; } -} - -window-rule { - match app-id=r#"^org\.quickshell$"# title="^Wallpaper Switcher$" - - default-column-width { fixed 900; } - default-window-height { fixed 560; } -} - -window-rule { - match app-id=r#"^org\.quickshell$"# title="^Theme Switcher$" - - default-column-width { fixed 640; } - default-window-height { fixed 480; } -} - -window-rule { - match app-id=r#"^org\.quickshell$"# title="^Power Menu$" - - default-column-width { fixed 420; } - default-window-height { fixed 320; } -} - -binds { - Mod+Shift+7{ show-hotkey-overlay; } - Mod+Return { spawn "ghostty"; } - Super+Space { spawn "qs" "ipc" "call" "appLauncher" "open"; } - Super+L { spawn "hyprlock"; } - Super+M { spawn "qs" "ipc" "call" "powerMenu" "open"; } - Super+V { spawn "qs" "ipc" "call" "clipboardPicker" "open"; } - Super+T { spawn "qs" "ipc" "call" "themeSwitcher" "open"; } - Super+W { spawn "qs" "ipc" "call" "wallpaperSwitcher" "open"; } - Super+Shift+W { spawn "qs" "ipc" "call" "wallpaperSwitcher" "random"; } - - XF86AudioRaiseVolume allow-when-locked=true { spawn "wpctl" "set-volume" "-l" "1" "@DEFAULT_AUDIO_SINK@" "5%+"; } - XF86AudioLowerVolume allow-when-locked=true { spawn "wpctl" "set-volume" "-l" "1" "@DEFAULT_AUDIO_SINK@" "5%-"; } - XF86AudioMute allow-when-locked=true { spawn "wpctl" "set-mute" "@DEFAULT_AUDIO_SINK@" "toggle"; } - XF86AudioPlay allow-when-locked=true { spawn "playerctl" "play-pause"; } - XF86AudioPause allow-when-locked=true { spawn "playerctl" "play-pause"; } - XF86AudioStop allow-when-locked=true { spawn "playerctl" "stop"; } - XF86AudioNext allow-when-locked=true { spawn "playerctl" "next"; } - XF86AudioPrev allow-when-locked=true { spawn "playerctl" "previous"; } - - XF86MonBrightnessUp allow-when-locked=true { spawn "brightnessctl" "set" "5%+"; } - XF86MonBrightnessDown allow-when-locked=true { spawn "brightnessctl" "set" "5%-"; } - - Mod+Q { close-window; } - - Mod+Left { focus-column-left; } - Mod+Down { focus-window-down; } - Mod+Up { focus-window-up; } - Mod+Right { focus-column-right; } - Mod+H { focus-column-left; } - Mod+J { focus-window-down; } - Mod+K { focus-window-up; } - Mod+L { focus-column-right; } - - Mod+Ctrl+Left { move-column-left; } - Mod+Ctrl+Down { move-window-down; } - Mod+Ctrl+Up { move-window-up; } - Mod+Ctrl+Right { move-column-right; } - Mod+Ctrl+H { move-column-left; } - Mod+Ctrl+J { move-window-down; } - Mod+Ctrl+K { move-window-up; } - Mod+Ctrl+L { move-column-right; } - - Mod+Home { focus-column-first; } - Mod+End { focus-column-last; } - Mod+Ctrl+Home { move-column-to-first; } - Mod+Ctrl+End { move-column-to-last; } - - Mod+Shift+Left { focus-monitor-left; } - Mod+Shift+Down { focus-monitor-down; } - Mod+Shift+Up { focus-monitor-up; } - Mod+Shift+Right { focus-monitor-right; } - Mod+Shift+H { focus-monitor-left; } - Mod+Shift+J { focus-monitor-down; } - Mod+Shift+K { focus-monitor-up; } - Mod+Shift+L { focus-monitor-right; } - - Mod+Shift+Ctrl+Left { move-column-to-monitor-left; } - Mod+Shift+Ctrl+Down { move-column-to-monitor-down; } - Mod+Shift+Ctrl+Up { move-column-to-monitor-up; } - Mod+Shift+Ctrl+Right { move-column-to-monitor-right; } - Mod+Shift+Ctrl+H { move-column-to-monitor-left; } - Mod+Shift+Ctrl+J { move-column-to-monitor-down; } - Mod+Shift+Ctrl+K { move-column-to-monitor-up; } - Mod+Shift+Ctrl+L { move-column-to-monitor-right; } - - Mod+Page_Down { focus-workspace-down; } - Mod+Page_Up { focus-workspace-up; } - Mod+U { focus-workspace-down; } - Mod+I { focus-workspace-up; } - Mod+Ctrl+Page_Down { move-column-to-workspace-down; } - Mod+Ctrl+Page_Up { move-column-to-workspace-up; } - Mod+Ctrl+U { move-column-to-workspace-down; } - Mod+Ctrl+I { move-column-to-workspace-up; } - - - Mod+Shift+Page_Down { move-workspace-down; } - Mod+Shift+Page_Up { move-workspace-up; } - Mod+Shift+U { move-workspace-down; } - Mod+Shift+I { move-workspace-up; } - - Mod+WheelScrollDown cooldown-ms=150 { focus-workspace-down; } - Mod+WheelScrollUp cooldown-ms=150 { focus-workspace-up; } - Mod+Ctrl+WheelScrollDown cooldown-ms=150 { move-column-to-workspace-down; } - Mod+Ctrl+WheelScrollUp cooldown-ms=150 { move-column-to-workspace-up; } - - Mod+WheelScrollRight { focus-column-right; } - Mod+WheelScrollLeft { focus-column-left; } - Mod+Ctrl+WheelScrollRight { move-column-right; } - Mod+Ctrl+WheelScrollLeft { move-column-left; } - - Mod+Shift+WheelScrollDown { focus-column-right; } - Mod+Shift+WheelScrollUp { focus-column-left; } - Mod+Ctrl+Shift+WheelScrollDown { move-column-right; } - Mod+Ctrl+Shift+WheelScrollUp { move-column-left; } - - Mod+1 { focus-workspace 1; } - Mod+2 { focus-workspace 2; } - Mod+3 { focus-workspace 3; } - Mod+4 { focus-workspace 4; } - Mod+5 { focus-workspace 5; } - Mod+6 { focus-workspace 6; } - Mod+7 { focus-workspace 7; } - Mod+8 { focus-workspace 8; } - Mod+9 { focus-workspace 9; } - Mod+Ctrl+1 { move-column-to-workspace 1; } - Mod+Ctrl+2 { move-column-to-workspace 2; } - Mod+Ctrl+3 { move-column-to-workspace 3; } - Mod+Ctrl+4 { move-column-to-workspace 4; } - Mod+Ctrl+5 { move-column-to-workspace 5; } - Mod+Ctrl+6 { move-column-to-workspace 6; } - Mod+Ctrl+7 { move-column-to-workspace 7; } - Mod+Ctrl+8 { move-column-to-workspace 8; } - Mod+Ctrl+9 { move-column-to-workspace 9; } - - Mod+BracketLeft { consume-or-expel-window-left; } - Mod+BracketRight { consume-or-expel-window-right; } - Mod+Comma { consume-window-into-column; } - Mod+Period { expel-window-from-column; } - - Mod+R { switch-preset-column-width; } - Mod+Shift+R { switch-preset-window-height; } - Mod+Ctrl+R { reset-window-height; } - Mod+Shift+F { maximize-column; } - Mod+F { fullscreen-window; } - Mod+C { center-column; } - Mod+Minus { set-column-width "-10%"; } - Mod+Equal { set-column-width "+10%"; } - Mod+Shift+Minus { set-window-height "-10%"; } - Mod+Shift+Equal { set-window-height "+10%"; } - Mod+V { toggle-window-floating; } - Mod+Shift+V { switch-focus-between-floating-and-tiling; } - - Print { screenshot; } - Ctrl+Print { screenshot-screen; } - Alt+Print { screenshot-window; } - - Mod+Shift+E { quit; } - Ctrl+Alt+Delete { quit; } -} diff --git a/config/nushell/config.nu b/config/nushell/config.nu index 53fd42b..651e660 100644 --- a/config/nushell/config.nu +++ b/config/nushell/config.nu @@ -103,6 +103,7 @@ source $"($nu.cache-dir)/starship.nu" source $"($nu.cache-dir)/carapace.nu" source $"($nu.cache-dir)/zoxide.nu" source $"($nu.cache-dir)/atuin.nu" +source $"($nu.cache-dir)/mise.nu" #-------- # Scripts @@ -122,60 +123,7 @@ source scripts/commands.nu source completions/pm.nu -#---------------- -# Custom Banner -#---------------- - -def banner [] { - # Catppuccin Mocha Palette Mappings (assuming terminal theme is set, otherwise approximations) - let rosewater = (ansi -e '38;2;245;224;220m') - let flamingo = (ansi -e '38;2;242;205;205m') - let pink = (ansi -e '38;2;245;194;231m') - let mauve = (ansi -e '38;2;203;166;247m') - let red = (ansi -e '38;2;243;139;168m') - let maroon = (ansi -e '38;2;235;160;172m') - let peach = (ansi -e '38;2;250;179;135m') - let yellow = (ansi -e '38;2;249;226;175m') - let green = (ansi -e '38;2;166;227;161m') - let teal = (ansi -e '38;2;148;226;213m') - let sky = (ansi -e '38;2;137;220;235m') - let sapphire = (ansi -e '38;2;116;199;236m') - let blue = (ansi -e '38;2;137;180;250m') - let lavender = (ansi -e '38;2;180;190;254m') - let text = (ansi -e '38;2;205;214;244m') - let overlay1 = (ansi -e '38;2;127;132;156m') - let overlay0 = (ansi -e '38;2;108;112;134m') - let reset = (ansi reset) - - # Dynamic accent choice - let accent = ([$mauve, $pink, $sapphire, $green, $peach] | shuffle | first) - - let sys_info = (sys host) - let uptime = $sys_info.uptime - let kernel = $sys_info.kernel_version - # Calculate config load time (env.nu + config.nu execution) - let startup = ((date now) - ($env.__NU_START_TIME? | default (date now))) - let version = (version | get version) - - # Styling elements - let pipe = $"($overlay0)│($reset)" - let sep = $"($overlay1)::($reset)" - let header_line = $"($overlay0)──────────────────────────────────($reset)" - - print "" - print $" ($overlay0)╭──($reset) ($accent)SYSTEM_READY($reset) ($header_line)" - print $" ($pipe)" - print $" ($pipe) ($lavender)HOST_ID($reset) ($sep) ($text)($sys_info.hostname)($reset)" - print $" ($pipe) ($lavender)KERNEL_VER($reset) ($sep) ($text)($kernel)($reset)" - print $" ($pipe) ($lavender)UPTIME_DUR($reset) ($sep) ($text)($uptime)($reset)" - print $" ($pipe)" - print $" ($pipe) ($lavender)SHELL_ENV($reset) ($sep) ($text)nu ($version)($reset)" - print $" ($pipe) ($lavender)LOAD_TIME($reset) ($sep) ($accent)($startup)($reset)" - print $" ($pipe)" - print $" ($overlay0)╰──($reset) ($header_line) ($accent)[OK]($reset)" - print "" -} -banner +fastfetch #---------------- # Custom Commands @@ -208,11 +156,3 @@ $env.config.keybindings = ( # Load machine-local config if it exists source "~/.local.nu" -# Shadow warning for critical commands -let crit_cmds = ["git" "nu"] -for cmd in $crit_cmds { - let p = (which $cmd | get path | get 0? | default "") - if ($p | str contains ".local/share/mise/installs") { - print $"[Warning] Critical command '($cmd)' is shadowed by mise: ($p)" - } -} diff --git a/config/nushell/env.nu b/config/nushell/env.nu index f7d9c0f..a96e2db 100644 --- a/config/nushell/env.nu +++ b/config/nushell/env.nu @@ -26,76 +26,16 @@ if not ($nu.cache-dir | path exists) { mkdir $"($nu.cache-dir)" } -def create_cache [name: string, generator: closure] { - let file = $"($nu.cache-dir)/($name).nu" - if not ($file | path exists) { - do $generator | save -f $file - } -} +if (which starship | is-not-empty) { starship init nu | save -f $"($nu.cache-dir)/starship.nu" } else { "" | save -f $"($nu.cache-dir)/starship.nu" } +if (which zoxide | is-not-empty) { zoxide init nushell | save -f $"($nu.cache-dir)/zoxide.nu" } else { "" | save -f $"($nu.cache-dir)/zoxide.nu" } +if (which atuin | is-not-empty) { atuin init nu | save -f $"($nu.cache-dir)/atuin.nu" } else { "" | save -f $"($nu.cache-dir)/atuin.nu" } +$env.CARAPACE_BRIDGES = 'zsh,fish,bash,inshellisense' +if (which carapace | is-not-empty) { ^carapace _carapace nushell | str replace '$env.config = $current' '$env.config = ($env.config? | default {} | merge $current)' | save -f $"($nu.cache-dir)/carapace.nu" } else { "" | save -f $"($nu.cache-dir)/carapace.nu" } -create_cache starship { starship init nu } -create_cache zoxide { zoxide init nushell } -create_cache atuin { atuin init nu } -create_cache carapace { - $env.CARAPACE_BRIDGES = 'zsh,fish,bash,inshellisense'; - ^carapace _carapace nushell | str replace '$env.config = $current' '$env.config = ($env.config? | default {} | merge $current)' -} -def --env apply_mise_env [mise_bin: string] { - let vars = ( - ^$mise_bin hook-env -s nu - | from csv --noheaders --no-infer - | rename 'op' 'name' 'value' - ) - - for var in $vars { - if $var.op == "set" { - if ($var.name | str uppercase) == "PATH" { - $env.PATH = ($var.value | split row (char esep)) - } else { - load-env {($var.name): $var.value} - } - } else if $var.op == "hide" and $var.name in $env { - hide-env -i $var.name - } - } -} - -def --env add-hook [field: cell-path new_hook: any] { - let field = $field | split cell-path | update optional true | into cell-path - let old_config = $env.config? | default {} - let old_hooks = $old_config | get $field | default [] - $env.config = ($old_config | upsert $field ($old_hooks ++ [$new_hook])) -} - -let mise_candidates = if ($nu.os-info.name == "macos") { - ["/opt/homebrew/bin/mise" "~/.local/bin/mise" "mise"] +if (which mise | is-not-empty) { + mise activate nu | save -f $"($nu.cache-dir)/mise.nu" } else { - ["~/.local/bin/mise" "/home/linuxbrew/.linuxbrew/bin/mise" "mise"] -} - -let mise_bin = ( - $mise_candidates - | each {|candidate| - if $candidate == "mise" { - if (which mise | is-empty) { null } else { "mise" } - } else { - let expanded = ($candidate | path expand) - if ($expanded | path exists) { $expanded } else { null } - } - } - | compact - | get 0? -) - -if $mise_bin != null { - $env.MISE_SHELL = "nu" - apply_mise_env $mise_bin - let mise_hook = { - condition: { "MISE_SHELL" in $env } - code: { apply_mise_env $mise_bin } - } - add-hook hooks.pre_prompt $mise_hook - add-hook hooks.env_change.PWD $mise_hook + "" | save -f $"($nu.cache-dir)/mise.nu" } # Deduplicate PATH at the end diff --git a/config/themes/catppuccin/latte/wofi.css b/config/themes/catppuccin/latte/wofi.css deleted file mode 100644 index 573cb67..0000000 --- a/config/themes/catppuccin/latte/wofi.css +++ /dev/null @@ -1,61 +0,0 @@ -/* Catppuccin Latte + Mauve */ - -* { - all: unset; - font-family: "Inter", "JetBrainsMono Nerd Font", "Noto Sans", sans-serif; - font-size: 14px; -} - -window { - background: rgba(220, 224, 232, 0.94); - color: #4c4f69; - border-radius: 18px; - border: 1px solid rgba(136, 57, 239, 0.28); - padding: 12px; - box-shadow: 0 18px 50px rgba(76, 79, 105, 0.22); - margin-left: auto; - margin-right: auto; - margin-top: auto; - margin-bottom: auto; -} - -#outer-box { padding: 6px; } - -#input { - background: rgba(230, 233, 239, 0.96); - color: #4c4f69; - border-radius: 14px; - padding: 10px 12px; - border: 1px solid rgba(188, 192, 204, 0.95); - margin: 6px 6px 10px 6px; -} - -#input:focus { - border: 1px solid rgba(136, 57, 239, 0.75); - box-shadow: 0 0 0 3px rgba(136, 57, 239, 0.14); -} - -#prompt { color: #8839ef; margin-right: 8px; } -#scroll { margin: 0 4px 4px 4px; } - -#entry { - border-radius: 14px; - padding: 10px 10px; - margin: 4px 2px; - background: transparent; -} - -#entry image { margin-right: 10px; opacity: 0.95; } -#entry #text { color: #5c5f77; } - -#entry:selected { - background: rgba(204, 208, 218, 0.95); - border: 1px solid rgba(136, 57, 239, 0.55); -} - -#entry:selected #text { color: #4c4f69; } -#entry:hover { background: rgba(204, 208, 218, 0.65); } -#entry:selected #text, #entry:selected image { opacity: 1; } -#text { margin-left: 2px; } -#inner-box { padding: 2px; } -#img { border-radius: 10px; } diff --git a/config/themes/catppuccin/mocha/wofi.css b/config/themes/catppuccin/mocha/wofi.css deleted file mode 100644 index 05aade4..0000000 --- a/config/themes/catppuccin/mocha/wofi.css +++ /dev/null @@ -1,61 +0,0 @@ -/* Catppuccin Mocha + Mauve */ - -* { - all: unset; - font-family: "Inter", "JetBrainsMono Nerd Font", "Noto Sans", sans-serif; - font-size: 14px; -} - -window { - background: rgba(17, 17, 27, 0.92); - color: #cdd6f4; - border-radius: 18px; - border: 1px solid rgba(203, 166, 247, 0.25); - padding: 12px; - box-shadow: 0 18px 50px rgba(0, 0, 0, 0.55); - margin-left: auto; - margin-right: auto; - margin-top: auto; - margin-bottom: auto; -} - -#outer-box { padding: 6px; } - -#input { - background: rgba(24, 24, 37, 0.95); - color: #cdd6f4; - border-radius: 14px; - padding: 10px 12px; - border: 1px solid rgba(69, 71, 90, 0.9); - margin: 6px 6px 10px 6px; -} - -#input:focus { - border: 1px solid rgba(203, 166, 247, 0.75); - box-shadow: 0 0 0 3px rgba(203, 166, 247, 0.16); -} - -#prompt { color: #cba6f7; margin-right: 8px; } -#scroll { margin: 0 4px 4px 4px; } - -#entry { - border-radius: 14px; - padding: 10px 10px; - margin: 4px 2px; - background: transparent; -} - -#entry image { margin-right: 10px; opacity: 0.95; } -#entry #text { color: #bac2de; } - -#entry:selected { - background: rgba(49, 50, 68, 0.95); - border: 1px solid rgba(203, 166, 247, 0.55); -} - -#entry:selected #text { color: #cdd6f4; } -#entry:hover { background: rgba(49, 50, 68, 0.65); } -#entry:selected #text, #entry:selected image { opacity: 1; } -#text { margin-left: 2px; } -#inner-box { padding: 2px; } -#img { border-radius: 10px; } diff --git a/config/waybar/config b/config/waybar/config deleted file mode 100644 index a66c4c8..0000000 --- a/config/waybar/config +++ /dev/null @@ -1,337 +0,0 @@ -{ - // ------------------------------------------------------------------------- - // Global configuration - // ------------------------------------------------------------------------- - "layer": "top", - "position": "top", - //"height": 20, - "margin-left": 10, - "margin-bottom": 0, - "margin-right": 10, - "spacing": 5, // Gaps between modules (4px) - "modules-left": [ - //"custom/rofi", - "hyprland/workspaces", - //"hyprland/submap", - //"temperature", - //"idle_inhibitor", - //"mpd" - "custom/spotify" - ], - "modules-center": [ - //"hyprland/window" - "clock#date", - "custom/weather" - //"custom/gammastep" - ], - "modules-right": [ - "backlight", - "custom/storage", - "memory", - "cpu", - "temperature", - "battery", - //"pulseaudio", - "wireplumber", - "tray", - ], - // ------------------------------------------------------------------------- - // Modules - // ------------------------------------------------------------------------- - "custom/sp1": { - "format": " | ", - "tooltip": false - }, - "custom/sp2": { - "format": " |", - "tooltip": false - }, - "custom/rofi": { - "format": "", - "tooltip": false, - "on-click-right": "nwg-drawer", - "on-click": "wofi --show run", - "on-click-middle": "pkill -9 wofi" - }, - "custom/screenshot_t": { - "format": " ", - "on-click": "~/.config/hypr/scripts/screenshot_full", - "on-click-right": "~/.config/hypr/scripts/screenshot_area" - }, - "clock#1": { - "format": " {:%a}", - "tooltip": false, - "on-click": "gsimplecal" - }, - "clock#2": { - "format": " {:%d-%h-%Y}", - "tooltip": false, - "on-click": "gsimplecal" - }, - "clock#3": { - "format": " {:%H:%M:%S %p}", - "tooltip": false, - "on-click": "gsimplecal" - }, - "temperature": { - // "thermal-zone": 1, - "interval": 4, - "hwmon-path": "/sys/devices/pci0000:00/0000:00:18.3/hwmon/hwmon2/temp1_input", - "critical-threshold": 80, - // "format-critical": " {temperatureC}°C", - "format-critical": " {temperatureC}°C", - "format": "{icon} {temperatureC}°C", - "format-icons": [ - "", - "", - "" - ], - "max-length": 7, - "min-length": 7, - "on-click": "xsensors" - }, - "memory": { - "interval": 30, - "format": " {used:0.2f} / {total:0.0f} GB", - "on-click": "alacritty -e btop" - }, - "battery": { - "interval": 2, - "states": { - "good": 95, - "warning": 30, - "critical": 15 - }, - "format": "{icon} {capacity}%", - "format-charging": " {capacity}%", - "format-plugged": " {capacity}%", - "format-icons": [ - "", - "", - "", - "", - "" - ] - }, - "network": { - "format-wifi": " {essid} ({signalStrength}%)", - "format-ethernet": "{ifname}: {ipaddr}/{cidr} ", - "format-linked": "{ifname} (No IP) ", - "format": "", - "format-disconnected": "", - "format-alt": "{ifname}: {ipaddr}/{cidr}", - "on-click": "wl-copy $(ip address show up scope global | grep inet | head -n1 | cut -d/ -f 1 | tr -d [:space:] | cut -c5-)", - "on-click-right": "wl-copy $(ip address show up scope global | grep inet6 | head -n1 | cut -d/ -f 1 | tr -d [:space:] | cut -c6-)", - "tooltip-format": " {bandwidthUpBits}  {bandwidthDownBits}\n{ifname}\n{ipaddr}/{cidr}\n", - "tooltip-format-wifi": " {essid} {frequency}MHz\nStrength: {signaldBm}dBm ({signalStrength}%)\nIP: {ipaddr}/{cidr}\n {bandwidthUpBits}  {bandwidthDownBits}", - "interval": 10 - }, - "custom/storage": { - "format": " {}", - "format-alt": "{percentage}% ", - "format-alt-click": "click-right", - "return-type": "json", - "interval": 60, - "exec": "~/.config/waybar/modules/storage.sh" - }, - "backlight": { - "device": "intel_backlight", - "format": "{icon} {percent}%", - "format-alt": "{percent}% {icon}", - "format-alt-click": "click-right", - //"format-icons": ["", ""], - "format-icons": [ - "", - "" - ], - "on-scroll-down": "brightnessctl s 5%-", - "on-scroll-up": "brightnessctl s +5%" - }, - "idle_inhibitor": { - "format": "{icon}", - "format-icons": { - "activated": "", - "deactivated": "" - }, - "tooltip": "true" - }, - "custom/weather": { - "format": "{}", - "format-alt": "{alt}: {}", - "format-alt-click": "click-right", - "interval": 3600, - "exec": "curl -s 'https://wttr.in/?format=1'", - //"return-type": "json", - //"exec": "~/.config/waybar/modules/weather.sh", - "exec-if": "ping wttr.in -c1" - }, - "custom/pacman": { - "format": "􏆲 {}", - "interval": 3600, // every hour - "exec": "checkupdates | wc -l", // # of updates - "exec-if": "exit 0", // always run; consider advanced run conditions - "on-click": "alacritty -e 'paru'; pkill -SIGRTMIN+8 waybar", // update system - "signal": 8, - "max-length": 5, - "min-length": 3 - }, - "custom/spotify": { - "exec": "~/.config/waybar/mediaplayer.py --player spotify", - "format": "{} ", - "return-type": "json", - "on-click": "playerctl play-pause", - "on-scroll-up": "playerctl next", - "on-scroll-down": "playerctl previous" - }, - "custom/media": { - "format": "{0} {1}", - "return-type": "json", - "max-length": 40, - "format-icons": { - "spotify": "", - "default": "🎜" - }, - "escape": true, - //"exec": "~/.config/waybar/mediaplayer.py" // Script in resources folder - // "exec": "~/.config/waybar/mediaplayer.py --player spotify 2> /dev/null" // Filter player based on name - }, - "custom/power": { - "format": " 󰐥 ", - "tooltip": false, - "on-click": "wlogout" - }, - "clock": { - "format": " {:%H:%M  %e %b}", - "tooltip-format": "{:%Y %B}\n{calendar}", - "today-format": "{}" - }, - "clock#date": { - "format": "󰥔 {:%H:%M \n %e %b}", - "tooltip-format": "{:%Y %B}\n{calendar}", - "today-format": "{}" - }, - "custom/gammastep": { - "interval": 5, - "return-type": "json", - "exec": { - "pre": "if unit_status=\"$(systemctl --user is-active gammastep)\"; then\nstatus=\"$unit_status ($(journalctl --user -u gammastep.service -g 'Period: ' | tail -1 | cut -d ':' -f6 | xargs))\"\nelse\nstatus=\"$unit_status\"\nfi", - "alt": "${status:-inactive}", - "tooltip": "Gammastep is $status", - }, - "format": "{icon}", - "format-icons": { - "activating": "󰁪 ", - "deactivating": "󰁪 ", - "inactive": "? ", - "active (Night)": " ", - "active (Nighttime)": " ", - "active (Transition (Night)": " ", - "active (Transition (Nighttime)": " ", - "active (Day)": " ", - "active (Daytime)": " ", - "active (Transition (Day)": " ", - "active (Transition (Daytime)": " ", - }, - "on-click": "systemctl --user is-active gammastep && systemctl --user stop gammastep || systemctl --user start gammastep", - }, - "cpu": { - "interval": 1, - "format": " {usage}%", - //"format": "{max_frequency}GHz | {usage}%", - "max-length": 13, - "min-length": 13 - }, - "mpd": { - "max-length": 25, - "format": " {title}", - "format-paused": " {title}", - "format-stopped": "", - "format-disconnected": "", - "on-click": "mpc --quiet toggle", - "on-click-right": "mpc update; mpc ls | mpc add", - "on-click-middle": "alacritty -e ncmpcpp", - "on-scroll-up": "mpc --quiet prev", - "on-scroll-down": "mpc --quiet next", - "smooth-scrolling-threshold": 5, - "tooltip-format": "{title} - {artist} ({elapsedTime:%M:%S}/{totalTime:%H:%M:%S})" - }, - "custom/title": { - "format": "{}", - "interval": 0, - "return-type": "json", - //"max-length": 35, - "tooltip": false - }, - "custom/title#name": { - "format": "{}", - "interval": 0, - "return-type": "json", - "max-length": 35, - "exec": "$HOME/.scripts/title" - }, - /*"custom/keyboard": { - "format": " {}", - "interval": 1, - "exec": "$HOME/.config/waybar/get_kbdlayout.sh" - },*/ - "niri/workspaces": { - "max-length": 100, - "separate-outputs": true - }, - "pulseaudio": { - "scroll-step": 3, // %, can be a float - "format": "{icon} {volume}% {format_source}", - "format-bluetooth": "{volume}% {icon} {format_source}", - "format-bluetooth-muted": " {icon} {format_source}", - "format-muted": " {format_source}", - //"format-source": "{volume}% ", - //"format-source-muted": "", - "format-source": "", - "format-source-muted": "", - "format-icons": { - "headphone": "", - "hands-free": "", - "headset": "", - "phone": "", - "portable": "", - "car": "", - "default": [ - "", - "", - "" - ] - }, - "on-click": "pavucontrol", - "on-click-right": "amixer sset Master toggle" - }, - "wireplumber": { - "on-click": "pavucontrol", - "on-click-right": "amixer sset Master toggle 1>/dev/null", - //on-click: "${wpctl} set-mute @DEFAULT_AUDIO_SINK@ toggle"; - //on-scroll-down: "${wpctl} set-volume -l 1.0 @DEFAULT_AUDIO_SINK@ 0.04+"; - //on-scroll-up: "${wpctl} set-volume -l 1.0 @DEFAULT_AUDIO_SINK@ 0.04-"; - "format": "{icon} {volume}%", - "format-muted": " ", - "format-source": "", - "format-source-muted": "", - //"format-muted": "", - //"format-icons": [ "" ] - "format-icons": { - "headphone": " ", - "hands-free": " ", - "headset": " ", - "phone": " ", - "portable": " ", - "car": " ", - "default": [ - " ", - " ", - " " - ] - }, - }, - "tray": { - "icon-size": 15, - "spacing": 5 - } -} diff --git a/config/waybar/config.jsonc b/config/waybar/config.jsonc deleted file mode 100644 index 3350bca..0000000 --- a/config/waybar/config.jsonc +++ /dev/null @@ -1,105 +0,0 @@ -{ - "layer": "top", - "position": "top", - "reload_style_on_change": true, - "modules-left": ["custom/notification","clock","custom/pacman","tray"], - "modules-center": ["hyprland/workspaces"], - "modules-right": ["cpu","memory","temperature","bluetooth","network","battery", "custom/spacer"], - "hyprland/workspaces": { - "format": "{icon}", - "format-icons": { - "active": "", - "default": "", - "empty": "" - }, - "persistent-workspaces": { - "*": [ 1,2,3,4,5 ] - } - }, - "custom/notification": { - "tooltip": false, - "format": "", - "on-click": "swaync-client -t -sw", - "escape": true - }, - "clock": { - "format": "{:%H:%M:%S} ", - "interval": 1, - "tooltip-format": "{calendar}", - "calendar": { - "format": { - "today": "{}" - } - }, - "actions": { - "on-click-right": "shift_down", - "on-click": "shift_up" - } - }, - "network": { - "format-wifi": " ", - "format-ethernet":" ", - "format-disconnected": " ", - "tooltip-format-disconnected": "Error", - "tooltip-format-wifi": "{essid} ({signalStrength}%) ", - "tooltip-format-ethernet": "{ifname} 🖧 ", - "on-click": "kitty nmtui" - }, - "bluetooth": { - "format-on": "󰂯", - "format-off": "BT-off", - "format-disabled": "󰂲", - "format-connected-battery": "{device_battery_percentage}% 󰂯", - "format-alt": "{device_alias} 󰂯", - "tooltip-format": "{controller_alias}\t{controller_address}\n\n{num_connections} connected", - "tooltip-format-connected": "{controller_alias}\t{controller_address}\n\n{num_connections} connected\n\n{device_enumerate}", - "tooltip-format-enumerate-connected": "{device_alias}\n{device_address}", - "tooltip-format-enumerate-connected-battery": "{device_alias}\n{device_address}\n{device_battery_percentage}%", - "on-click-right": "blueman-manager" - }, - "battery": { - "interval":30, - "states": { - "good": 95, - "warning": 30, - "critical": 20 - }, - "format": "{capacity}% {icon}", - "format-charging": "{capacity}% 󰂄", - "format-plugged": "{capacity}% 󰂄 ", - "format-alt": "{time} {icon}", - "format-icons": [ - "󰁻", - "󰁼", - "󰁾", - "󰂀", - "󰂂", - "󰁹" - ] - }, - "custom/pacman": { - "format": "󰅢 {}", - "interval": 30, - "exec": "checkupdates | wc -l", - "exec-if": "exit 0", - "on-click": "kitty sh -c 'yay -Syu; echo Done - Press enter to exit; read'; pkill -SIGRTMIN+8 waybar", - "signal": 8, - "tooltip": false - }, - "cpu": { - "format": "󰻠 {usage}%", - "tooltip": true - }, - "memory": { - "format": " {used}GB" - }, - "temperature": { - "critical-threshold": 80, - "format": " {}°C", - "hwmon-path": "/sys/class/hwmon/hwmon2/temp1_input" - }, - "tray": { - "icon-size": 14, - "spacing": 10 - } -} diff --git a/config/waybar/mocha.css b/config/waybar/mocha.css deleted file mode 100644 index 0eb6a82..0000000 --- a/config/waybar/mocha.css +++ /dev/null @@ -1,26 +0,0 @@ -@define-color rosewater #f5e0dc; -@define-color flamingo #f2cdcd; -@define-color pink #f5c2e7; -@define-color mauve #cba6f7; -@define-color red #f38ba8; -@define-color maroon #eba0ac; -@define-color peach #fab387; -@define-color yellow #f9e2af; -@define-color green #a6e3a1; -@define-color teal #94e2d5; -@define-color sky #89dceb; -@define-color sapphire #74c7ec; -@define-color blue #89b4fa; -@define-color lavender #b4befe; -@define-color text #cdd6f4; -@define-color subtext1 #bac2de; -@define-color subtext0 #a6adc8; -@define-color overlay2 #9399b2; -@define-color overlay1 #7f849c; -@define-color overlay0 #6c7086; -@define-color surface2 #585b70; -@define-color surface1 #45475a; -@define-color surface0 #313244; -@define-color base #1e1e2e; -@define-color mantle #181825; -@define-color crust #11111b; diff --git a/config/waybar/modules/mail.py b/config/waybar/modules/mail.py deleted file mode 100755 index abc36ec..0000000 --- a/config/waybar/modules/mail.py +++ /dev/null @@ -1,42 +0,0 @@ -#!/usr/bin/python - -import os -import imaplib - -import mailsecrets - -def getmails(username, password, server): - imap = imaplib.IMAP4_SSL(server, 993) - imap.login(username, password) - imap.select('INBOX') - ustatus, uresponse = imap.uid('search', None, 'UNSEEN') - if ustatus == 'OK': - unread_msg_nums = uresponse[0].split() - else: - unread_msg_nums = [] - - fstatus, fresponse = imap.uid('search', None, 'FLAGGED') - if fstatus == 'OK': - flagged_msg_nums = fresponse[0].split() - else: - flagged_msg_nums = [] - - return [len(unread_msg_nums), len(flagged_msg_nums)] - -ping = os.system("ping " + mailsecrets.server + " -c1 > /dev/null 2>&1") -if ping == 0: - mails = getmails(mailsecrets.username, mailsecrets.password, mailsecrets.server) - text = '' - alt = '' - - if mails[0] > 0: - text = alt = str(mails[0]) - if mails[1] > 0: - alt = str(mails[1]) + "  " + alt - else: - exit(1) - - print('{"text":"' + text + '", "alt": "' + alt + '"}') - -else: - exit(1) diff --git a/config/waybar/modules/spotify.sh b/config/waybar/modules/spotify.sh deleted file mode 100755 index c00622b..0000000 --- a/config/waybar/modules/spotify.sh +++ /dev/null @@ -1,18 +0,0 @@ -#!/bin/sh - -class=$(playerctl metadata --player=spotify --format '{{lc(status)}}') -icon="" - -if [[ $class == "playing" ]]; then - info=$(playerctl metadata --player=spotify --format '{{artist}} - {{title}}') - if [[ ${#info} > 40 ]]; then - info=$(echo $info | cut -c1-40)"..." - fi - text=$info" "$icon -elif [[ $class == "paused" ]]; then - text=$icon -elif [[ $class == "stopped" ]]; then - text="" -fi - -echo -e "{\"text\":\""$text"\", \"class\":\""$class"\"}" diff --git a/config/waybar/modules/storage.sh b/config/waybar/modules/storage.sh deleted file mode 100755 index ae2a5ce..0000000 --- a/config/waybar/modules/storage.sh +++ /dev/null @@ -1,24 +0,0 @@ -#!/bin/sh - -mount="/" -warning=20 -critical=10 - -df -h -P -l "$mount" | awk -v warning=$warning -v critical=$critical ' -/\/.*/ { - text=$4 - tooltip="Filesystem: "$1"\rSize: "$2"\rUsed: "$3"\rAvail: "$4"\rUse%: "$5"\rMounted on: "$6 - use=$5 - exit 0 -} -END { - class="" - gsub(/%$/,"",use) - if ((100 - use) < critical) { - class="critical" - } else if ((100 - use) < warning) { - class="warning" - } - print "{\"text\":\""text"\", \"percentage\":"use",\"tooltip\":\""tooltip"\", \"class\":\""class"\"}" -} -' diff --git a/config/waybar/modules/weather.sh b/config/waybar/modules/weather.sh deleted file mode 100755 index 06157ef..0000000 --- a/config/waybar/modules/weather.sh +++ /dev/null @@ -1,79 +0,0 @@ -#!/bin/bash - -cachedir=~/.cache/rbn -cachefile=${0##*/}-$1 - -if [ ! -d $cachedir ]; then - mkdir -p $cachedir -fi - -if [ ! -f $cachedir/$cachefile ]; then - touch $cachedir/$cachefile -fi - -# Save current IFS -SAVEIFS=$IFS -# Change IFS to new line. -IFS=$'\n' - -cacheage=$(($(date +%s) - $(stat -c '%Y' "$cachedir/$cachefile"))) -if [ $cacheage -gt 1740 ] || [ ! -s $cachedir/$cachefile ]; then - data=($(curl -s https://en.wttr.in/$1\?0qnT 2>&1)) - echo ${data[0]} | cut -f1 -d, > $cachedir/$cachefile - echo ${data[1]} | sed -E 's/^.{15}//' >> $cachedir/$cachefile - echo ${data[2]} | sed -E 's/^.{15}//' >> $cachedir/$cachefile -fi - -weather=($(cat $cachedir/$cachefile)) - -# Restore IFSClear -IFS=$SAVEIFS - -temperature=$(echo ${weather[2]} | sed -E 's/([[:digit:]])+\.\./\1 to /g') - -#echo ${weather[1]##*,} - -# https://fontawesome.com/icons?s=solid&c=weather -case $(echo ${weather[1]##*,} | tr '[:upper:]' '[:lower:]') in -"clear" | "sunny") - condition="" - ;; -"partly cloudy") - condition="杖" - ;; -"cloudy") - condition="" - ;; -"overcast") - condition="" - ;; -"mist" | "fog" | "freezing fog") - condition="" - ;; -"patchy rain possible" | "patchy light drizzle" | "light drizzle" | "patchy light rain" | "light rain" | "light rain shower" | "rain") - condition="" - ;; -"moderate rain at times" | "moderate rain" | "heavy rain at times" | "heavy rain" | "moderate or heavy rain shower" | "torrential rain shower" | "rain shower") - condition="" - ;; -"patchy snow possible" | "patchy sleet possible" | "patchy freezing drizzle possible" | "freezing drizzle" | "heavy freezing drizzle" | "light freezing rain" | "moderate or heavy freezing rain" | "light sleet" | "ice pellets" | "light sleet showers" | "moderate or heavy sleet showers") - condition="ﭽ" - ;; -"blowing snow" | "moderate or heavy sleet" | "patchy light snow" | "light snow" | "light snow showers") - condition="流" - ;; -"blizzard" | "patchy moderate snow" | "moderate snow" | "patchy heavy snow" | "heavy snow" | "moderate or heavy snow with thunder" | "moderate or heavy snow showers") - condition="ﰕ" - ;; -"thundery outbreaks possible" | "patchy light rain with thunder" | "moderate or heavy rain with thunder" | "patchy light snow with thunder") - condition="" - ;; -*) - condition="" - echo -e "{\"text\":\""$condition"\", \"alt\":\""${weather[0]}"\", \"tooltip\":\""${weather[0]}: $temperature ${weather[1]}"\"}" - ;; -esac - -#echo $temp $condition - -echo -e "{\"text\":\""$temperature $condition"\", \"alt\":\""${weather[0]}"\", \"tooltip\":\""${weather[0]}: $temperature ${weather[1]}"\"}" diff --git a/config/waybar/style.css b/config/waybar/style.css deleted file mode 100644 index 97b7952..0000000 --- a/config/waybar/style.css +++ /dev/null @@ -1,158 +0,0 @@ -@import "mocha.css"; - -* { - font-size:15px; - font-family: "FiraCode Nerd Font"; -} -window#waybar{ - all:unset; -} -.modules-left { - padding:7px; - margin:10 0 5 10; - border-radius:10px; - background: alpha(@base,.6); - box-shadow: 0px 0px 2px rgba(0, 0, 0, .6); -} -.modules-center { - padding:7px; - margin:10 0 5 0; - border-radius:10px; - background: alpha(@base,.6); - box-shadow: 0px 0px 2px rgba(0, 0, 0, .6); -} -.modules-right { - padding:7px; - margin: 10 10 5 0; - border-radius:10px; - background: alpha(@base,.6); - box-shadow: 0px 0px 2px rgba(0, 0, 0, .6); -} -tooltip { - background:@base; - color: @text; -} -#clock:hover, #custom-pacman:hover, #custom-notification:hover,#bluetooth:hover,#network:hover,#battery:hover, #cpu:hover,#memory:hover,#temperature:hover{ - transition: all .3s ease; - color:@overlay0; -} -#custom-notification { - padding: 0px 5px; - transition: all .3s ease; - color:@text; -} -#clock{ - padding: 0px 5px; - color:@mauve; - transition: all .3s ease; -} -#custom-pacman{ - padding: 0px 5px; - transition: all .3s ease; - color:@text; - -} -#workspaces { - padding: 0px 5px; -} -#workspaces button { - all:unset; - padding: 0px 5px; - color: alpha(@overlay0,.4); - transition: all .2s ease; -} -#workspaces button:hover { - color:rgba(0,0,0,0); - border: none; - text-shadow: 0px 0px 1.5px rgba(0, 0, 0, .5); - transition: all 1s ease; -} -#workspaces button.active { - color: @flamingo; - border: none; - text-shadow: 0px 0px 2px rgba(0, 0, 0, .5); -} -#workspaces button.empty { - color: rgba(0,0,0,0); - border: none; - text-shadow: 0px 0px 1.5px rgba(0, 0, 0, .2); -} -#workspaces button.empty:hover { - color: rgba(0,0,0,0); - border: none; - text-shadow: 0px 0px 1.5px rgba(0, 0, 0, .5); - transition: all 1s ease; -} -#workspaces button.empty.active { - color: @overlay0; - border: none; - text-shadow: 0px 0px 2px rgba(0, 0, 0, .5); -} -#bluetooth{ - padding: 0px 5px; - transition: all .3s ease; - color:@flamingo; -} -#network{ - padding: 0px 5px; - transition: all .3s ease; - color:@peach; -} -#battery{ - padding: 0px 5px; - transition: all .3s ease; - color:@sky; -} -#battery.charging { - color: @green; -} -#battery.warning:not(.charging) { - color: @yellow; -} -#battery.critical:not(.charging) { - color: @red; - animation-name: blink; - animation-duration: 0.5s; - animation-timing-function: linear; - animation-iteration-count: infinite; - animation-direction: alternate; -} -#group-expand{ - padding: 0px 5px; - transition: all .3s ease; -} -#custom-expand{ - padding: 0px 5px; - color:alpha(@text,.2); - text-shadow: 0px 0px 2px rgba(0, 0, 0, .7); - transition: all .3s ease; -} -#custom-expand:hover{ - color:rgba(255,255,255,.2); - text-shadow: 0px 0px 2px rgba(255, 255, 255, .5); -} -#custom-colorpicker{ - padding: 0px 5px; -} -#cpu,#memory,#temperature{ - padding: 0px 5px; - transition: all .3s ease; - color:@rosewater; -} -#custom-endpoint{ - color:transparent; - text-shadow: 0px 0px 1.5px rgba(0, 0, 0, 1); -} -#tray{ - padding: 0px 5px; - transition: all .3s ease; -} -#tray menu * { - padding: 0px 5px; - transition: all .3s ease; -} - -#tray menu separator { - padding: 0px 5px; - transition: all .3s ease; -} diff --git a/config/waybar/waybar.sh b/config/waybar/waybar.sh deleted file mode 100755 index d03b9eb..0000000 --- a/config/waybar/waybar.sh +++ /dev/null @@ -1,10 +0,0 @@ -#!/usr/bin/env sh - -# Terminate already running bar instances -killall -q waybar - -# Wait until the processes have been shut down -while pgrep -x waybar >/dev/null; do sleep 1; done - -# Launch main -waybar & diff --git a/config/wofi/config b/config/wofi/config deleted file mode 100644 index 834e477..0000000 --- a/config/wofi/config +++ /dev/null @@ -1,25 +0,0 @@ -mode=drun -allow_images=true -image_size=28 - -width=520 -height=420 - -location=center -anchor=center -layer=overlay - -halign=fill -orientation=vertical - -prompt= -search= -insensitive=true -matching=fuzzy - -show=drun -term=ghostty - -no_actions=true -hide_scroll=true -gtk_dark=true diff --git a/config/wofi/launch.sh b/config/wofi/launch.sh deleted file mode 100755 index 9d5c1b8..0000000 --- a/config/wofi/launch.sh +++ /dev/null @@ -1,7 +0,0 @@ -#!/usr/bin/env nu - -if (pgrep wofi | is-empty) { - wofi --show drun --normal-window -} else { - pkill wofi -} diff --git a/config/wofi/style.css b/config/wofi/style.css deleted file mode 120000 index 1d7fab9..0000000 --- a/config/wofi/style.css +++ /dev/null @@ -1 +0,0 @@ -../themes/catppuccin/mocha/wofi.css \ No newline at end of file diff --git a/config/yazi/package.toml b/config/yazi/package.toml new file mode 100644 index 0000000..a5c7690 --- /dev/null +++ b/config/yazi/package.toml @@ -0,0 +1,3 @@ +[dependencies] +git = "yazi-rs/plugins:git" +auto-layout = "josephschmitt/auto-layout" diff --git a/config/yazi/plugins/auto-layout.yazi/LICENSE b/config/yazi/plugins/auto-layout.yazi/LICENSE deleted file mode 100644 index 3ac7028..0000000 --- a/config/yazi/plugins/auto-layout.yazi/LICENSE +++ /dev/null @@ -1,21 +0,0 @@ -MIT License - -Copyright (c) 2025 Joe Schmitt - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. diff --git a/config/yazi/plugins/auto-layout.yazi/README.md b/config/yazi/plugins/auto-layout.yazi/README.md deleted file mode 100644 index bae2d0e..0000000 --- a/config/yazi/plugins/auto-layout.yazi/README.md +++ /dev/null @@ -1,24 +0,0 @@ -# auto-layout.yazi - -This plugin for the [yazi file explorer](https://yazi-rs.github.io) will automatically change the number of columns to show in yazi based on the available width. This is especially useful if you use a terminal layout that might have yazi run in a sidebar (where 1 column is all that's required) but then sometimes zoom into it and you want it to update to use the full 3 column layout. - -## Installation - -```sh -$ ya pack -a josephschmitt/auto-layout -``` - -## Usage - -```lua --- In your yazi config's init.lua -require("auto-layout") -``` - - If you want to customize the breakpoints where the column shifts happen: -```lua -require("auto-layout").setup({ - breakpoint_large = 110, -- new large window threshold, defaults to 100 - breakpoint_medium = 60, -- new medium window threshold, defaults to 50 - }) -``` diff --git a/config/yazi/plugins/auto-layout.yazi/main.lua b/config/yazi/plugins/auto-layout.yazi/main.lua deleted file mode 100644 index 75cc14d..0000000 --- a/config/yazi/plugins/auto-layout.yazi/main.lua +++ /dev/null @@ -1,180 +0,0 @@ --- Auto-Layout Yazi Plugin --- Automatically adjusts the number of Yazi panes based on terminal width. --- Attempts to use Yazi's configured ratios via `rt.mgr.ratio`. --- Falls back to fixed internal ratios if `rt.mgr.ratio` is unavailable. --- --- Usage in init.lua: --- require("auto-layout").setup({ --- breakpoint_large = 110, -- Width threshold for 3 panes (default: 100) --- breakpoint_medium = 60, -- Width threshold for 2 panes (default: 50) --- }) --- If setup is not called, default breakpoints are used. - --- --- Debug Flag --- --- Set to true to enable logging to the file specified below. -local DEBUG_MODE = false - --- --- Logging Setup --- -local log_file_path = "/tmp/yazi-autolayout-debug.log" -local log_enabled = DEBUG_MODE -local function write_log(level, message) if not log_enabled then return end local success, file_or_err = pcall(io.open, log_file_path, "a") if success and file_or_err then local file = file_or_err local timestamp = os.date("%Y-%m-%d %H:%M:%S") local write_success, write_err = pcall(function() file:write(string.format("[%s] [%s] %s\n", timestamp, level, message)) file:flush() file:close() end) if not write_success then io.stderr:write(string.format("[auto-layout] LOG WRITE ERROR: %s\n", tostring(write_err))) end else io.stderr:write(string.format("[auto-layout] LOG FILE ERROR: Could not open %s - %s\n", log_file_path, tostring(file_or_err))) end end -local function log_info(message) write_log("INFO", message) end -local function log_warn(message) write_log("WARN", message) end -local function log_error(message) write_log("ERROR", message) end -if DEBUG_MODE then local success, file_or_err = pcall(io.open, log_file_path, "w"); if success and file_or_err then file_or_err:close() end end --- --- End Logging Setup --- - - --- --- Configuration --- -local plugin_config = { - breakpoint_large = 100, - breakpoint_medium = 50, -} --- Define fallback ratios in case Yazi's runtime ratios are unavailable. -local fallback_ratios = { parent = 2, current = 3, preview = 4, all = 9 } --- --- End Configuration --- - - --- --- Plugin Module --- -local M = {} - -local original_layout = nil -local layout_overridden = false - --- Get layout ratios, trying the modern 'rt.mgr.ratio' first. -local function get_layout_ratios() - local using_fallback = true -- Assume fallback needed initially - local ratios = fallback_ratios -- Default to fallback - - log_info("Attempting to get ratios from rt.mgr.ratio...") - -- Check the modern Yazi runtime object path - if rt and rt.mgr and rt.mgr.ratio and - rt.mgr.ratio.parent and rt.mgr.ratio.current and - rt.mgr.ratio.preview and rt.mgr.ratio.all then - log_info(" -> Success: Found ratios in rt.mgr.ratio.") - ratios = rt.mgr.ratio - using_fallback = false - else - -- Log the specific reason for failure if possible - if not rt then log_warn(" -> Failed: 'rt' object not available.") - elseif not rt.mgr then log_warn(" -> Failed: 'rt.mgr' not available.") - elseif not rt.mgr.ratio then log_warn(" -> Failed: 'rt.mgr.ratio' not available.") - else log_warn(" -> Failed: One or more required ratios (parent, current, preview, all) missing in rt.mgr.ratio.") end - log_warn(" -> Using fallback ratios.") - end - return ratios, using_fallback -end - --- The layout override function -local function auto_layout_override(self) - log_info("--- Tab:layout Start ---") - - if not self._area or not self._area.w then - log_error("ERROR - self._area or self._area.w is nil!") - if original_layout then original_layout(self) end - return - end - if not ui or not ui.Layout or not ui.Constraint then - log_error("ERROR - 'ui' object or components not available!") - if original_layout then original_layout(self) end - return - end - - local w = self._area.w - -- Get ratios using the function that tries 'rt.mgr.ratio' first - local ratios, using_fallback = get_layout_ratios() - - log_info(string.format("Width=%d, Ratios: p=%d, c=%d, pv=%d, all=%d%s", - w, ratios.parent, ratios.current, ratios.preview, ratios.all, - using_fallback and " (FALLBACK)" or " (FROM rt.mgr.ratio)")) - - local success, result = pcall(function() - local constraints = nil - local layout_type = "" - if w > plugin_config.breakpoint_large then - layout_type = "3-column" - constraints = { - ui.Constraint.Ratio(ratios.parent, ratios.all), - ui.Constraint.Ratio(ratios.current, ratios.all), - ui.Constraint.Ratio(ratios.preview, ratios.all), - } - elseif w > plugin_config.breakpoint_medium then - layout_type = "2-column" - constraints = { - ui.Constraint.Ratio(0, ratios.all), - ui.Constraint.Ratio(ratios.current + ratios.parent, ratios.all), - ui.Constraint.Ratio(ratios.preview + ratios.parent, ratios.all), - } - else - layout_type = "1-column" - constraints = { - ui.Constraint.Ratio(0, ratios.all), - ui.Constraint.Ratio(ratios.all, ratios.all), - ui.Constraint.Ratio(0, ratios.all), - } - end - - log_info(string.format("Applying %s layout.", layout_type)) - self._chunks = ui.Layout() :direction(ui.Layout.HORIZONTAL) :constraints(constraints) :split(self._area) - if not self._chunks then error("Layout split returned nil chunks") end - end) - - if not success or not self._chunks then - log_error(string.format("ERROR - Layout failed (success=%s): %s. Falling back.", tostring(success), tostring(result or "chunks nil"))) - if original_layout then original_layout(self) end - else - log_info("Layout split successful.") - end - log_info("--- Tab:layout End ---") -end - --- Setup function -function M.setup(user_config) - if DEBUG_MODE and not layout_overridden then - print(string.format("[auto-layout] DEBUG MODE ENABLED. Logging to: %s", log_file_path)) - end - log_info("--- Plugin Setup Start ---") - - if type(user_config) == "table" then - log_info("Applying user config:") - for k, v in pairs(user_config) do - if plugin_config[k] ~= nil then - log_info(string.format(" Setting plugin_config[%s] = %s", k, tostring(v))) - plugin_config[k] = v - else - log_warn(string.format("WARN - Ignoring unknown config key: %s", k)) - end - end - else - log_info("No user config provided or invalid type.") - end - log_info(string.format("Final plugin config - large: %d, medium: %d", plugin_config.breakpoint_large, plugin_config.breakpoint_medium)) - - if layout_overridden then - log_warn("WARN - Tab:layout already overridden. Skipping.") - return - end - - log_info("Attempting to override Tab:layout...") - if not Tab then - log_error("ERROR - Cannot override layout: Global 'Tab' is not available!") - return - end - - if not original_layout then - log_info("Storing original Tab.layout function.") - original_layout = Tab.layout - if not original_layout then - log_warn("WARN - Original Tab.layout is nil! Fallback may not work.") - original_layout = function() log_error("ERROR - Executing dummy original_layout (original was nil).") end - end - end - - log_info("Assigning auto_layout_override to Tab.layout.") - Tab.layout = auto_layout_override - layout_overridden = true - log_info("Tab:layout override complete.") - log_info("--- Plugin Setup End ---") -end - -return M diff --git a/config/yazi/plugins/git.yazi/LICENSE b/config/yazi/plugins/git.yazi/LICENSE deleted file mode 100644 index fb5b1d6..0000000 --- a/config/yazi/plugins/git.yazi/LICENSE +++ /dev/null @@ -1,21 +0,0 @@ -MIT License - -Copyright (c) 2023 yazi-rs - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. diff --git a/config/yazi/plugins/git.yazi/README.md b/config/yazi/plugins/git.yazi/README.md deleted file mode 100644 index 4c5b07c..0000000 --- a/config/yazi/plugins/git.yazi/README.md +++ /dev/null @@ -1,78 +0,0 @@ -# git.yazi - -> [!NOTE] -> Yazi v25.2.26 or later is required for this plugin to work. - -Show the status of Git file changes as linemode in the file list. - -https://github.com/user-attachments/assets/34976be9-a871-4ffe-9d5a-c4cdd0bf4576 - -## Installation - -```sh -ya pack -a yazi-rs/plugins:git -``` - -## Setup - -Add the following to your `~/.config/yazi/init.lua`: - -```lua -require("git"):setup() -``` - -And register it as fetchers in your `~/.config/yazi/yazi.toml`: - -```toml -[[plugin.prepend_fetchers]] -id = "git" -name = "*" -run = "git" - -[[plugin.prepend_fetchers]] -id = "git" -name = "*/" -run = "git" -``` - -## Advanced - -You can customize the [Style](https://yazi-rs.github.io/docs/plugins/layout#style) of the status sign with: - -- `th.git.modified` -- `th.git.added` -- `th.git.untracked` -- `th.git.ignored` -- `th.git.deleted` -- `th.git.updated` - -For example: - -```lua --- ~/.config/yazi/init.lua -th.git = th.git or {} -th.git.modified = ui.Style():fg("blue") -th.git.deleted = ui.Style():fg("red"):bold() -``` - -You can also customize the text of the status sign with: - -- `th.git.modified_sign` -- `th.git.added_sign` -- `th.git.untracked_sign` -- `th.git.ignored_sign` -- `th.git.deleted_sign` -- `th.git.updated_sign` - -For example: - -```lua --- ~/.config/yazi/init.lua -th.git = th.git or {} -th.git.modified_sign = "M" -th.git.deleted_sign = "D" -``` - -## License - -This plugin is MIT-licensed. For more information check the [LICENSE](LICENSE) file. diff --git a/config/yazi/plugins/git.yazi/main.lua b/config/yazi/plugins/git.yazi/main.lua deleted file mode 100644 index 0445ca9..0000000 --- a/config/yazi/plugins/git.yazi/main.lua +++ /dev/null @@ -1,228 +0,0 @@ ---- @since 25.4.4 - -local WINDOWS = ya.target_family() == "windows" - --- The code of supported git status, --- also used to determine which status to show for directories when they contain different statuses --- see `bubble_up` -local CODES = { - excluded = 100, -- ignored directory - ignored = 6, -- ignored file - untracked = 5, - modified = 4, - added = 3, - deleted = 2, - updated = 1, - unknown = 0, -} - -local PATTERNS = { - { "!$", CODES.ignored }, - { "?$", CODES.untracked }, - { "[MT]", CODES.modified }, - { "[AC]", CODES.added }, - { "D", CODES.deleted }, - { "U", CODES.updated }, - { "[AD][AD]", CODES.updated }, -} - -local function match(line) - local signs = line:sub(1, 2) - for _, p in ipairs(PATTERNS) do - local path, pattern, code = nil, p[1], p[2] - if signs:find(pattern) then - path = line:sub(4, 4) == '"' and line:sub(5, -2) or line:sub(4) - path = WINDOWS and path:gsub("/", "\\") or path - end - if not path then - elseif path:find("[/\\]$") then - -- Mark the ignored directory as `excluded`, so we can process it further within `propagate_down` - return code == CODES.ignored and CODES.excluded or code, path:sub(1, -2) - else - return code, path - end - end -end - -local function root(cwd) - local is_worktree = function(url) - local file, head = io.open(tostring(url)), nil - if file then - head = file:read(8) - file:close() - end - return head == "gitdir: " - end - - repeat - local next = cwd:join(".git") - local cha = fs.cha(next) - if cha and (cha.is_dir or is_worktree(next)) then - return tostring(cwd) - end - cwd = cwd.parent - until not cwd -end - -local function bubble_up(changed) - local new, empty = {}, Url("") - for path, code in pairs(changed) do - if code ~= CODES.ignored then - local url = Url(path).parent - while url and url ~= empty do - local s = tostring(url) - new[s] = (new[s] or CODES.unknown) > code and new[s] or code - url = url.parent - end - end - end - return new -end - -local function propagate_down(excluded, cwd, repo) - local new, rel = {}, cwd:strip_prefix(repo) - for _, path in ipairs(excluded) do - if rel:starts_with(path) then - -- If `cwd` is a subdirectory of an excluded directory, also mark it as `excluded` - new[tostring(cwd)] = CODES.excluded - elseif cwd == repo:join(path).parent then - -- If `path` is a direct subdirectory of `cwd`, mark it as `ignored` - new[path] = CODES.ignored - else - -- Skipping, we only care about `cwd` itself and its direct subdirectories for maximum performance - end - end - return new -end - -local add = ya.sync(function(st, cwd, repo, changed) - st.dirs[cwd] = repo - st.repos[repo] = st.repos[repo] or {} - for path, code in pairs(changed) do - if code == CODES.unknown then - st.repos[repo][path] = nil - elseif code == CODES.excluded then - -- Mark the directory with a special value `excluded` so that it can be distinguished during UI rendering - st.dirs[path] = CODES.excluded - else - st.repos[repo][path] = code - end - end - ya.render() -end) - -local remove = ya.sync(function(st, cwd) - local repo = st.dirs[cwd] - if not repo then - return - end - - ya.render() - st.dirs[cwd] = nil - if not st.repos[repo] then - return - end - - for _, r in pairs(st.dirs) do - if r == repo then - return - end - end - st.repos[repo] = nil -end) - -local function setup(st, opts) - st.dirs = {} -- Mapping between a directory and its corresponding repository - st.repos = {} -- Mapping between a repository and the status of each of its files - - opts = opts or {} - opts.order = opts.order or 1500 - - local t = th.git or {} - local styles = { - [CODES.ignored] = t.ignored and ui.Style(t.ignored) or ui.Style():fg("darkgray"), - [CODES.untracked] = t.untracked and ui.Style(t.untracked) or ui.Style():fg("magenta"), - [CODES.modified] = t.modified and ui.Style(t.modified) or ui.Style():fg("yellow"), - [CODES.added] = t.added and ui.Style(t.added) or ui.Style():fg("green"), - [CODES.deleted] = t.deleted and ui.Style(t.deleted) or ui.Style():fg("red"), - [CODES.updated] = t.updated and ui.Style(t.updated) or ui.Style():fg("yellow"), - } - local signs = { - [CODES.ignored] = t.ignored_sign or "", - [CODES.untracked] = t.untracked_sign or "?", - [CODES.modified] = t.modified_sign or "", - [CODES.added] = t.added_sign or "", - [CODES.deleted] = t.deleted_sign or "", - [CODES.updated] = t.updated_sign or "", - } - - Linemode:children_add(function(self) - local url = self._file.url - local repo = st.dirs[tostring(url.base)] - local code - if repo then - code = repo == CODES.excluded and CODES.ignored or st.repos[repo][tostring(url):sub(#repo + 2)] - end - - if not code or signs[code] == "" then - return "" - elseif self._file.is_hovered then - return ui.Line { " ", signs[code] } - else - return ui.Line { " ", ui.Span(signs[code]):style(styles[code]) } - end - end, opts.order) -end - -local function fetch(_, job) - local cwd = job.files[1].url.base - local repo = root(cwd) - if not repo then - remove(tostring(cwd)) - return true - end - - local paths = {} - for _, file in ipairs(job.files) do - paths[#paths + 1] = tostring(file.url) - end - - -- stylua: ignore - local output, err = Command("git") - :cwd(tostring(cwd)) - :arg({ "--no-optional-locks", "-c", "core.quotePath=", "status", "--porcelain", "-unormal", "--no-renames", "--ignored=matching" }) - :arg(paths) - :stdout(Command.PIPED) - :output() - if not output then - return true, Err("Cannot spawn `git` command, error: %s", err) - end - - local changed, excluded = {}, {} - for line in output.stdout:gmatch("[^\r\n]+") do - local code, path = match(line) - if code == CODES.excluded then - excluded[#excluded + 1] = path - else - changed[path] = code - end - end - - if job.files[1].cha.is_dir then - ya.dict_merge(changed, bubble_up(changed)) - end - ya.dict_merge(changed, propagate_down(excluded, cwd, Url(repo))) - - -- Reset the status of any files that don't appear in the output of `git status` to `unknown`, - -- so that cleaning up outdated statuses from `st.repos` - for _, path in ipairs(paths) do - local s = path:sub(#repo + 2) - changed[s] = changed[s] or CODES.unknown - end - - add(tostring(cwd), repo, changed) - - return false -end - -return { setup = setup, fetch = fetch } diff --git a/home.nix b/home.nix index d4c5a77..ea0c4b4 100644 --- a/home.nix +++ b/home.nix @@ -68,16 +68,7 @@ path = "${config.home.homeDirectory}/.config/jj/config.toml"; }; - home.activation.installFonts = lib.hm.dag.entryAfter ["writeBoundary"] '' - if [ "$(uname)" = "Darwin" ]; then - mkdir -p "$HOME/Library/Fonts" - cp ${./fonts}/*.otf "$HOME/Library/Fonts/" - else - mkdir -p "$HOME/.local/share/fonts" - cp ${./fonts}/*.otf "$HOME/.local/share/fonts/" - ${pkgs.fontconfig}/bin/fc-cache -f -v "$HOME/.local/share/fonts" - fi - ''; + fonts.fontconfig.enable = true; home.activation.cloneNvim = lib.hm.dag.entryAfter ["writeBoundary"] '' if [ ! -d "$HOME/.config/nvim" ]; then