diff --git a/CLAUDE.md b/CLAUDE.md index c59e353..e06a43d 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -16,6 +16,17 @@ This is a dotfiles/config repository for Arch Linux (Manjaro) using `yay` as the - **Submodule**: `hatsune-miku-windows-linux-cursors` - cursor theme (init with `git submodule update --init --recursive`) - **Packages**: `packages.txt` - list of packages installed via `yay -S` +## Build System + +Some configs are built by concatenating a `colors.*` file with a `base.*` file. The build outputs are gitignored. **Always edit the source (`base.*`) files, never the built outputs.** + +| Component | Sources | Build output | Build command | +|-----------|---------|--------------|---------------| +| Hyprland | `hypr/colors.conf` + `hypr/base.conf` | `hypr/hyprland.conf` | `hypr/build.sh` | +| Waybar CSS | `waybar/colors.css` + `waybar/base.css` | `waybar/style.css` | `waybar/build.sh` | + +After editing a base file, run the corresponding `build.sh` to regenerate the output. + ## Key Conventions - Configs are symlinked into `~/.config/` (see README.md for exact symlink commands per component) diff --git a/hypr/base.conf b/hypr/base.conf index ae75bae..93d8349 100644 --- a/hypr/base.conf +++ b/hypr/base.conf @@ -35,7 +35,7 @@ exec-once = wl-paste --watch cliphist store exec-once = dunst exec-once = hypridle exec-once = hyprpaper -exec-once = hyprsunset +exec-once = gammastep -m wayland -l 51.5074:-0.1278 -t 6500:3500 exec-once = waterfox exec-once = waybar # NOTE: ff-theme-util and fix_xcursor are X11-specific; drop or find Wayland equivalents @@ -120,7 +120,7 @@ misc { ############# input { - kb_layout = gb + kb_layout = kb_options = caps:swapescape,grp:alt_shift_toggle follow_mouse = 1 sensitivity = 0 @@ -164,6 +164,9 @@ bind = $mod SHIFT, Print, exec, grim -g "$(slurp)" ~/screenshot.png # Xkill equivalent bind = $mod CTRL, X, exec, hyprctl kill +# Toggle nerd-dictation +bind = $mod, C, exec, pgrep -f "nerd-dictation begin" >/dev/null && nerd-dictation end || nerd-dictation begin --simulate-input-tool=YDOTOOL + # Lock screen bind = $mod, 9, exec, hyprlock # replaces blurlock; configure hyprlock separately diff --git a/hypr/hyprland.conf b/hypr/hyprland.conf index 6103ef5..4b74493 100644 --- a/hypr/hyprland.conf +++ b/hypr/hyprland.conf @@ -17,6 +17,7 @@ $color_white = rgb(FFFFFF) ################ monitor=,preferred,auto,1 +monitor = DP-2, 2560x1440, 2560x0, 1, transform, 1 ################### @@ -45,7 +46,7 @@ exec-once = wl-paste --watch cliphist store exec-once = dunst exec-once = hypridle exec-once = hyprpaper -exec-once = hyprsunset +exec-once = gammastep -m wayland -l 51.5074:-0.1278 -t 6500:3500 exec-once = waterfox exec-once = waybar # NOTE: ff-theme-util and fix_xcursor are X11-specific; drop or find Wayland equivalents @@ -58,10 +59,10 @@ exec-once = waybar env = XDG_SESSION_TYPE,wayland # NVIDIA-specific env vars — uncomment if running on nvidia: -# env = LIBVA_DRIVER_NAME,nvidia -# env = GBM_BACKEND,nvidia-drm -# env = __GLX_VENDOR_LIBRARY_NAME,nvidia -# env = WLR_NO_HARDWARE_CURSORS,1 +env = LIBVA_DRIVER_NAME,nvidia +env = GBM_BACKEND,nvidia-drm +env = __GLX_VENDOR_LIBRARY_NAME,nvidia +env = WLR_NO_HARDWARE_CURSORS,1 ##################### ### LOOK AND FEEL ### @@ -130,7 +131,7 @@ misc { ############# input { - kb_layout = gb + kb_layout = kb_options = caps:swapescape,grp:alt_shift_toggle follow_mouse = 1 sensitivity = 0 @@ -174,6 +175,9 @@ bind = $mod SHIFT, Print, exec, grim -g "$(slurp)" ~/screenshot.png # Xkill equivalent bind = $mod CTRL, X, exec, hyprctl kill +# Toggle nerd-dictation +bind = $mod, C, exec, pgrep -f "nerd-dictation begin" >/dev/null && nerd-dictation end || nerd-dictation begin --simulate-input-tool=YDOTOOL + # Lock screen bind = $mod, 9, exec, hyprlock # replaces blurlock; configure hyprlock separately diff --git a/hypr/monitors.conf b/hypr/monitors.conf new file mode 100644 index 0000000..5316ffa --- /dev/null +++ b/hypr/monitors.conf @@ -0,0 +1,5 @@ +# Generated by nwg-displays on 2026-05-30 at 01:47:19. Do not edit manually. + +monitor=DP-1,2560x1440@59.95,0x0,1.0 +monitor=DP-1,transform,1 +monitor=DP-2,2560x1440@164.85,1440x0,1.0 diff --git a/hypr/monitors.lua b/hypr/monitors.lua new file mode 100644 index 0000000..24f7d77 --- /dev/null +++ b/hypr/monitors.lua @@ -0,0 +1,15 @@ +-- Generated by nwg-displays on 2026-05-30 at 01:47:19. Do not edit manually. + +hl.monitor({ + output = "DP-1", + mode = "2560x1440@59.95", + position = "0x0", + scale = 1.0, + transform = 1 +}) +hl.monitor({ + output = "DP-2", + mode = "2560x1440@164.85", + position = "1440x0", + scale = 1.0 +}) diff --git a/hypr/workspaces.conf b/hypr/workspaces.conf new file mode 100644 index 0000000..e69de29 diff --git a/i3/base b/i3/base index 221ee50..a2c68e2 100644 --- a/i3/base +++ b/i3/base @@ -92,6 +92,9 @@ bindsym $mod+Shift+Print --release exec --no-startup-id i3-scrot -s # bindsym $mod+Shift+h exec xdg-open /usr/share/doc/manjaro/i3_help.pdf bindsym $mod+Ctrl+x --release exec --no-startup-id xkill +# Toggle nerd-dictation +bindsym $mod+c exec --no-startup-id "pgrep -f 'nerd-dictation begin' >/dev/null && nerd-dictation end || nerd-dictation begin" + focus_follows_mouse yes # change focus diff --git a/i3/config b/i3/config index 467613f..c23d9e3 100644 --- a/i3/config +++ b/i3/config @@ -32,6 +32,7 @@ exec --no-startup-id pamac-tray exec --no-startup-id clipit exec --no-startup-id dunst exec --no-startup-id xautolock -time 90 -locker blurlock +exec_always --no-startup-id xrandr --output DP-2 --rotate left # exec --no-startup-id nitrogen ~/scripts/background.jpg # exec --no-startup-id blueman-applet # exec_always --no-startup-id sbxkb @@ -102,6 +103,9 @@ bindsym $mod+Shift+Print --release exec --no-startup-id i3-scrot -s # bindsym $mod+Shift+h exec xdg-open /usr/share/doc/manjaro/i3_help.pdf bindsym $mod+Ctrl+x --release exec --no-startup-id xkill +# Toggle nerd-dictation +bindsym $mod+c exec --no-startup-id "pgrep -x nerd-dictation && nerd-dictation end || nerd-dictation begin" + focus_follows_mouse yes # change focus diff --git a/nvim/lua/plugins/snacks.lua b/nvim/lua/plugins/snacks.lua index 638a05b..95002c2 100644 --- a/nvim/lua/plugins/snacks.lua +++ b/nvim/lua/plugins/snacks.lua @@ -1,6 +1,16 @@ return { { "snacks.nvim", + keys = { + { + "?", + function() + Snacks.picker.keymaps() + end, + desc = "Search Keymaps", + mode = { "n", "x" }, + }, + }, opts = { dashboard = { preset = { diff --git a/nvim/lua/plugins/whichkey.lua b/nvim/lua/plugins/whichkey.lua index 1c5e3fa..89529a3 100644 --- a/nvim/lua/plugins/whichkey.lua +++ b/nvim/lua/plugins/whichkey.lua @@ -1,73 +1,69 @@ return { - { - "folke/which-key.nvim", - event = "VeryLazy", - opts_extend = { "spec" }, - opts = { - preset = "helix", - defaults = {}, - spec = { - { - mode = { "n", "x" }, - { "", group = "tabs" }, - { "c", group = "code" }, - { "d", group = "debug" }, - { "dp", group = "profiler" }, - { "f", group = "file/find" }, - { "g", group = "git" }, - { "gh", group = "hunks" }, - { "q", group = "quit/session" }, - { "s", group = "search" }, - { "u", group = "ui" }, - { "x", group = "diagnostics/quickfix" }, - { "[", group = "prev" }, - { "]", group = "next" }, - { "g", group = "goto" }, - { "gs", group = "surround" }, - { "z", group = "fold" }, - { - "b", - group = "buffer", - expand = function() - return require("which-key.extras").expand.buf() - end, - }, - { - "w", - group = "windows", - proxy = "", - expand = function() - return require("which-key.extras").expand.win() - end, - }, - -- better descriptions - { "gx", desc = "Open with system app" }, - }, - }, - }, - keys = { - { - "?", - function() - require("which-key").show({ global = false }) - end, - desc = "Buffer Keymaps (which-key)", - }, - { - "", - function() - require("which-key").show({ keys = "", loop = true }) - end, - desc = "Window Hydra Mode (which-key)", - }, - }, - config = function(_, opts) - local wk = require("which-key") - wk.setup(opts) - if not vim.tbl_isempty(opts.defaults) then - LazyVim.warn("which-key: opts.defaults is deprecated. Please use opts.spec instead.") - wk.register(opts.defaults) - end - end, - }, + { + "folke/which-key.nvim", + event = "VeryLazy", + opts_extend = { "spec" }, + opts = { + preset = "helix", + defaults = {}, + spec = { + { + mode = { "n", "x" }, + { "", group = "tabs" }, + { "c", group = "code" }, + { "d", group = "debug" }, + { "dp", group = "profiler" }, + { "f", group = "file/find" }, + { "g", group = "git" }, + { "gh", group = "hunks" }, + { "q", group = "quit/session" }, + { "s", group = "search" }, + { "u", group = "ui" }, + { "x", group = "diagnostics/quickfix" }, + { "[", group = "prev" }, + { "]", group = "next" }, + { "g", group = "goto" }, + { "gs", group = "surround" }, + { "z", group = "fold" }, + { + "b", + group = "buffer", + expand = function() + return require("which-key.extras").expand.buf() + end, + }, + { + "w", + group = "windows", + proxy = "", + expand = function() + return require("which-key.extras").expand.win() + end, + }, + -- better descriptions + { "gx", desc = "Open with system app" }, + { "gc", group = "comment", desc = "Toggle comment" }, + }, + }, + }, + keys = { + -- disable LazyVim's default ? so the snacks keymaps picker owns it + { "?", false }, + { + "", + function() + require("which-key").show({ keys = "", loop = true }) + end, + desc = "Window Hydra Mode (which-key)", + }, + }, + config = function(_, opts) + local wk = require("which-key") + wk.setup(opts) + if not vim.tbl_isempty(opts.defaults) then + LazyVim.warn("which-key: opts.defaults is deprecated. Please use opts.spec instead.") + wk.register(opts.defaults) + end + end, + }, } diff --git a/packages.txt b/packages.txt index 8ba9837..39f5c04 100644 --- a/packages.txt +++ b/packages.txt @@ -31,6 +31,7 @@ slurp mako brightnessctl +gammastep lxappearance