Add nerd-dictation toggle, swap hyprsunset for gammastep, monitor layout
- Bind $mod+C to toggle nerd-dictation in hyprland and i3 - Replace hyprsunset with gammastep (added to packages.txt) - Add nwg-displays monitor/workspace configs and DP-2 rotation - Snacks keymaps picker on <leader>?, disable which-key default - Document colors+base build system in CLAUDE.md Co-Authored-By: Claude Fable 5 <[email protected]>
This commit is contained in:
@@ -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)
|
||||
|
||||
+5
-2
@@ -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
|
||||
|
||||
|
||||
+10
-6
@@ -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
|
||||
|
||||
|
||||
@@ -0,0 +1,5 @@
|
||||
# Generated by nwg-displays on 2026-05-30 at 01:47:19. Do not edit manually.
|
||||
|
||||
monitor=DP-1,[email protected],0x0,1.0
|
||||
monitor=DP-1,transform,1
|
||||
monitor=DP-2,[email protected],1440x0,1.0
|
||||
@@ -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 = "[email protected]",
|
||||
position = "0x0",
|
||||
scale = 1.0,
|
||||
transform = 1
|
||||
})
|
||||
hl.monitor({
|
||||
output = "DP-2",
|
||||
mode = "[email protected]",
|
||||
position = "1440x0",
|
||||
scale = 1.0
|
||||
})
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -1,6 +1,16 @@
|
||||
return {
|
||||
{
|
||||
"snacks.nvim",
|
||||
keys = {
|
||||
{
|
||||
"<leader>?",
|
||||
function()
|
||||
Snacks.picker.keymaps()
|
||||
end,
|
||||
desc = "Search Keymaps",
|
||||
mode = { "n", "x" },
|
||||
},
|
||||
},
|
||||
opts = {
|
||||
dashboard = {
|
||||
preset = {
|
||||
|
||||
@@ -1,73 +1,69 @@
|
||||
return {
|
||||
{
|
||||
"folke/which-key.nvim",
|
||||
event = "VeryLazy",
|
||||
opts_extend = { "spec" },
|
||||
opts = {
|
||||
preset = "helix",
|
||||
defaults = {},
|
||||
spec = {
|
||||
{
|
||||
mode = { "n", "x" },
|
||||
{ "<leader><tab>", group = "tabs" },
|
||||
{ "<leader>c", group = "code" },
|
||||
{ "<leader>d", group = "debug" },
|
||||
{ "<leader>dp", group = "profiler" },
|
||||
{ "<leader>f", group = "file/find" },
|
||||
{ "<leader>g", group = "git" },
|
||||
{ "<leader>gh", group = "hunks" },
|
||||
{ "<leader>q", group = "quit/session" },
|
||||
{ "<leader>s", group = "search" },
|
||||
{ "<leader>u", group = "ui" },
|
||||
{ "<leader>x", group = "diagnostics/quickfix" },
|
||||
{ "[", group = "prev" },
|
||||
{ "]", group = "next" },
|
||||
{ "g", group = "goto" },
|
||||
{ "gs", group = "surround" },
|
||||
{ "z", group = "fold" },
|
||||
{
|
||||
"<leader>b",
|
||||
group = "buffer",
|
||||
expand = function()
|
||||
return require("which-key.extras").expand.buf()
|
||||
end,
|
||||
},
|
||||
{
|
||||
"<leader>w",
|
||||
group = "windows",
|
||||
proxy = "<c-w>",
|
||||
expand = function()
|
||||
return require("which-key.extras").expand.win()
|
||||
end,
|
||||
},
|
||||
-- better descriptions
|
||||
{ "gx", desc = "Open with system app" },
|
||||
},
|
||||
},
|
||||
},
|
||||
keys = {
|
||||
{
|
||||
"<leader>?",
|
||||
function()
|
||||
require("which-key").show({ global = false })
|
||||
end,
|
||||
desc = "Buffer Keymaps (which-key)",
|
||||
},
|
||||
{
|
||||
"<c-w><space>",
|
||||
function()
|
||||
require("which-key").show({ keys = "<c-w>", 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" },
|
||||
{ "<leader><tab>", group = "tabs" },
|
||||
{ "<leader>c", group = "code" },
|
||||
{ "<leader>d", group = "debug" },
|
||||
{ "<leader>dp", group = "profiler" },
|
||||
{ "<leader>f", group = "file/find" },
|
||||
{ "<leader>g", group = "git" },
|
||||
{ "<leader>gh", group = "hunks" },
|
||||
{ "<leader>q", group = "quit/session" },
|
||||
{ "<leader>s", group = "search" },
|
||||
{ "<leader>u", group = "ui" },
|
||||
{ "<leader>x", group = "diagnostics/quickfix" },
|
||||
{ "[", group = "prev" },
|
||||
{ "]", group = "next" },
|
||||
{ "g", group = "goto" },
|
||||
{ "gs", group = "surround" },
|
||||
{ "z", group = "fold" },
|
||||
{
|
||||
"<leader>b",
|
||||
group = "buffer",
|
||||
expand = function()
|
||||
return require("which-key.extras").expand.buf()
|
||||
end,
|
||||
},
|
||||
{
|
||||
"<leader>w",
|
||||
group = "windows",
|
||||
proxy = "<c-w>",
|
||||
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 <leader>? so the snacks keymaps picker owns it
|
||||
{ "<leader>?", false },
|
||||
{
|
||||
"<c-w><space>",
|
||||
function()
|
||||
require("which-key").show({ keys = "<c-w>", 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,
|
||||
},
|
||||
}
|
||||
|
||||
@@ -31,6 +31,7 @@ slurp
|
||||
|
||||
mako
|
||||
brightnessctl
|
||||
gammastep
|
||||
|
||||
lxappearance
|
||||
|
||||
|
||||
Reference in New Issue
Block a user