diff options
| author | chers <chers@hgdump.net> | 2026-10-27 22:15:20 +1300 |
|---|---|---|
| committer | chers <chers@hgdump.net> | 2026-10-27 22:15:20 +1300 |
| commit | b871e63d3a41f14eb0c599e296b4370674167709 (patch) | |
| tree | b9e091bc4928ce2abd6b3ce40953bae3ea13ccd8 /mouffette | |
intmain
Diffstat (limited to 'mouffette')
| -rw-r--r-- | mouffette/config.kdl | 185 |
1 files changed, 185 insertions, 0 deletions
diff --git a/mouffette/config.kdl b/mouffette/config.kdl new file mode 100644 index 0000000..333c389 --- /dev/null +++ b/mouffette/config.kdl @@ -0,0 +1,185 @@ +sloppy-focus #true +bypass-surface-visibility #false +log-level "error" // "silent", "error", "info", "debug" + +appearance { + // inner border + inner-border-px 0 + inner-border-color "#005577" + inner-focus-color "#3b9fc7" + inner-urgent-color "#ff0000" + // outer border + outer-border-px 0 + outer-border-color "#222222" + outer-focus-color "#444444" + outer-urgent-color "#44270a" + // gaps + gaps 1 + smart-gaps #false + // rootcol + root-color "#222222" + fullscreen-bg "#000000" + // opacity + inactive-opacity 1.0 + active-opacity 1.0 + // spawnselect rubber-band box (see "spawn-select" below) + select-color "#222222" // fill + select-border-color "#ffffff" + select-border-px 0 +} + +input { + // XCursor theme and base size. Leave "cursor-theme" if u want the default. + cursor-theme "plan9" + cursor-size 24 + repeat-rate 50 + repeat-delay 225 + tap-to-click #true + tap-and-drag #true + drag-lock #true + natural-scrolling #true + disable-while-typing #true + scroll-method "2fg" // "2fg", "edge", "button" + click-method "button_areas" // "button_areas", "clickfinger" + accel-profile "flat" // "adaptive", "flat" + accel-speed 0.0 + layout "us" // "us", "de", "de,us", ... +// variant "nodeadkeys" +// options "grp:alt_shift_toggle" +} + +// window swallowing +swallow { + enabled #true + border-px 4 +} + +// Terminals swallow=#true enables the swallow patch +rule app-id="foot" swallow=#true +// rule app-id="mouffette-select" swallow=#true + +// monitor configuration example (transform = rotation of the monitor) +// monitor name="DP-1" mode="2560x1440@240.001" scale=1.0 layout="floating" x=-1 y=-1 +// monitor name="HDMI-A-1" mode="1920x1080" transform=1 scale=1.0 layout="floating" x=-1080 y=-1 + +// monitor rules +monitor scale=1.0 layout="floating" x=-1 y=-1 + +// autostart +autostart "dbus-update-activation-environment WAYLAND_DISPLAY XDG_SESSION_TYPE=wayland XDG_CURRENT_DESKTOP=mouffette" +// autostart "mako" +autostart "swaybg -i ~/Pictures/moody.png -m fill" +eyecandy { + corner-radius 8 // 0 = square corners + corner-radius-only-floating #false + shadow #true + shadow-only-floating #false // no shadow on tiled windows + shadow-color "#00000070" + shadow-focus-color "#000000a0" + shadow-blur 20 // blur radius + shadow-focus-blur 30 + shadow-fade-ms 150 // fade between shadow & shadow-focus, 0 = instant obv + // shadow-ignore "mouffette-select" "some-app-id" +} + +// infinite canvas +canvas { + enabled #false + step 120 // px moved by one keyboard pan + clip-to-monitor #true // windows hanging off a monitor don't show up on its neighbour + pinned-on-top #true // pinwindow'd windows are raised above the rest +} + +// Compositor-rendered wallpaper. +wallpaper { + path "" + mode 1 // 0 = static, 1 = follow the canvas + wallpaper-zoom 1.5 // fixed image zoom: 1 = fitted size, up to 100x + pan-factor 0.5 // 0 = stationary, 1 = follow canvas pan exactly + edge #true // cover and clamp at image edges + fit 0 // static mode: 0 = cover, 1 = contain, 2 = stretch + background-color "#222222" +} + +// keybind: properties mods, key, action; extra positional arguments are the action args +bind mods="logo" key="Return" action="spawn" "foot" +bind mods="logo" key="d" action="spawn" "wmenu-run" +bind mods="logo" key="q" action="killclient" + +bind mods="logo" key="space" action="togglefloating" +bind mods="logo" key="f" action="togglefullscreen" +bind mods="logo" key="g" action="togglegaps" + +bind mods="logo" key="Tab" action="view" +bind mods="logo" key="0" action="view" "all" + +bind mods="logo" key="comma" action="focusmon" "left" +bind mods="logo" key="period" action="focusmon" "right" + +bind mods="logo+shift" key="less" action="tagmon" "left" +bind mods="logo+shift" key="greater" action="tagmon" "right" + +bind mods="logo+shift" key="e" action="quit" + +// workspace +bind mods="logo" key="1" action="view" "1" +bind mods="logo+shift" key="1" action="tag" "1" + +bind mods="logo" key="2" action="view" "2" +bind mods="logo+shift" key="2" action="tag" "2" + +bind mods="logo" key="3" action="view" "4" +bind mods="logo+shift" key="3" action="tag" "4" + +bind mods="logo" key="4" action="view" "8" +bind mods="logo+shift" key="4" action="tag" "8" + +bind mods="logo" key="5" action="view" "16" +bind mods="logo+shift" key="5" action="tag" "16" + +bind mods="logo" key="6" action="view" "32" +bind mods="logo+shift" key="6" action="tag" "32" + +bind mods="logo" key="7" action="view" "64" +bind mods="logo+shift" key="7" action="tag" "64" + +bind mods="logo" key="8" action="view" "128" +bind mods="logo+shift" key="8" action="tag" "128" + +bind mods="logo" key="9" action="view" "256" +bind mods="logo+shift" key="9" action="tag" "256" + +// layout switcher +bind mods="logo" key="o" action="setlayout" "floating" +bind mods="logo" key="p" action="setlayout" "tile" +bind mods="logo" key="i" action="setlayout" "toggle" // flip the layout mode floating <-> tile + +bind mods="logo" key="e" action="layout" "toggle" // flip the focused container splith <-> splitv (from sway) + +// infinite canva features +bind mods="logo" key="h" action="focusdir" "left" +bind mods="logo" key="j" action="focusdir" "down" +bind mods="logo" key="u" action="focusdir" "up" +bind mods="logo" key="k" action="focusdir" "right" + +bind mods="logo+alt" key="h" action="movecanvas" "left" +bind mods="logo+alt" key="j" action="movecanvas" "down" +bind mods="logo+alt" key="u" action="movecanvas" "up" +bind mods="logo+alt" key="k" action="movecanvas" "right" + +bind mods="logo+alt" key="0" action="homecanvas" +bind mods="logo+alt" key="c" action="centerwindow" +bind mods="logo+alt" key="m" action="pinwindow" + +mousebind mods="logo" button="left" action="moveresize" "move" +mousebind mods="logo" button="right" action="moveresize" "resize" +mousebind mods="logo+alt" button="left" action="movecanvasmouse" +mousebind mods="" button="left" action="movecanvasmouse" "root" + +bind mods="" key="XF86AudioRaiseVolume" action="spawn" "wpctl" "set-volume" "-l" "1.0" "@DEFAULT_AUDIO_SINK@" "2%+" +bind mods="" key="XF86AudioLowerVolume" action="spawn" "wpctl" "set-volume" "@DEFAULT_AUDIO_SINK@" "2%-" +bind mods="" key="XF86AudioMute" action="spawn" "wpctl" "set-mute" "@DEFAULT_AUDIO_SINK@" "toggle" + +// dragspawn +mousebind mods="logo" button="middle" action="spawnselect" +spawn-select app-id="mouffette-select" min-size=32 "foot" "--app-id=mouffette-select" |
