From 53e52d8772536c989400ca6035d3b1574e54a4ad Mon Sep 17 00:00:00 2001 From: Daniel Fichtinger Date: Sat, 28 Jun 2025 23:30:15 -0400 Subject: [PATCH] AutoYADM commit: 2025-06-28 23:30:15 --- .config/kak/autoload/filetype/jsonc.kak | 6 +- .config/kak/kakrc | 7 +- .config/waybar/config##hostname.dbox | 270 ++++++++++++------------ .config/waybar/config##hostname.dpad | 4 +- 4 files changed, 143 insertions(+), 144 deletions(-) diff --git a/.config/kak/autoload/filetype/jsonc.kak b/.config/kak/autoload/filetype/jsonc.kak index 7e638979..b9a694f9 100644 --- a/.config/kak/autoload/filetype/jsonc.kak +++ b/.config/kak/autoload/filetype/jsonc.kak @@ -6,9 +6,6 @@ hook global BufCreate .*[.](jsonc) %{ set-option buffer filetype jsonc - set-option buffer comment_line // - set-option buffer comment_block_begin /* - set-option buffer comment_block_end */ } # Initialization @@ -16,6 +13,9 @@ hook global BufCreate .*[.](jsonc) %{ hook global WinSetOption filetype=jsonc %{ require-module jsonc + set-option buffer comment_line // + set-option buffer comment_block_begin /* + set-option buffer comment_block_end */ hook window ModeChange pop:insert:.* -group jsonc-trim-indent jsonc-trim-indent hook window InsertChar .* -group jsonc-indent jsonc-indent-on-char diff --git a/.config/kak/kakrc b/.config/kak/kakrc index f5a25c52..fe9adb67 100644 --- a/.config/kak/kakrc +++ b/.config/kak/kakrc @@ -223,22 +223,21 @@ alias global t cwd-terminal map global normal '"_' define-command goto-debug %{ + buffer *debug* try %{ - buffer *debug* ui-scrolloff-disable execute-keys 'gj' } } -declare-user-mode debug -map -docstring 'open debug buffer' global debug d ':goto-debug' -map -docstring 'open debug buffer' global user D ': enter-user-mode debug' +map -docstring 'open debug buffer' global user d ':goto-debug' define-command exec-selection %{ execute-keys ':.' } map -docstring 'execute selection' global debug x ': exec-selection' + define-command repl %{ new %{ edit -scratch; set buffer filetype kak } } diff --git a/.config/waybar/config##hostname.dbox b/.config/waybar/config##hostname.dbox index dc1de49b..693106ad 100644 --- a/.config/waybar/config##hostname.dbox +++ b/.config/waybar/config##hostname.dbox @@ -1,138 +1,138 @@ [ - // TOP BAR - { - // "output": "DP-1", - "layer": "top", - "position": "top", - "modules-left": [ - "custom/colcount" - ], - "modules-center": [ - "niri/window" - ], - "modules-right": [ - "clock" - ], - "niri/window": { - "max-length": 100, - "separate-outputs": true, - "expand": true, - "format": "{}", - "rewrite": { - "(.*) - Kakoune": "$1" - } - }, - "custom/colcount": { - "exec": "~/dev/niri-windows/niri-windows.py", - "return-type": "json", - "restart-interval": "never", - "format": "{} " - }, - "clock": { - "format-alt": "{:%a, %d. %b %H:%M}" - } + // TOP BAR + { + // "output": "DP-1", + "layer": "top", + "position": "top", + "modules-left": [ + "custom/colcount", + ], + "modules-center": [ + "niri/window", + ], + "modules-right": [ + "clock", + ], + "niri/window": { + // "max-length": 100, + "separate-outputs": true, + "expand": true, + "format": "{}", + "rewrite": { + "(.*) - Kakoune": "$1", + }, }, - // bottom bar - { - "output": "DP-1", - "layer": "top", - "position": "bottom", - "modules-left": [ - "cava" - ], - "modules-center": [ - "cpu", - "custom/delim", - "memory", - "custom/delim", - "pulseaudio" - ], - "modules-right": [ - "custom/recorder", - "tray" - ], - "niri/window": { - "max-length": 50, - "separate-outputs": true - }, - "custom/colcount": { - "exec": "~/dev/niri-windows/niri-windows.py", - "return-type": "json", - "restart-interval": "never", - "format": "{} " - }, - "custom/recorder": { - "exec": "~/dev/utils/wayland-utils/recorder/recorder.py", - "return-type": "json", - "restart-interval": "never", - "on-click": "~/dev/utils/wayland-utils/recorder/recorder.sh screen", - "on-click-right": "~/dev/utils/wayland-utils/recorder/recorder.sh region", - "format": " {} " - }, - "custom/delim": { - "format": "|" - }, - "cava": { - "cava_config": "$XDG_CONFIG_HOME/cava/cava.conf", - "format-icons": [ - "▁", - "▂", - "▃", - "▄", - "▅", - "▆", - "▇", - "█" - ], - "actions": { - "on-click-right": "mode" - } - }, - "battery": { - "format": "{capacity}% 󰁹", - "format-charging": "{capacity}% ", - "format-plugged": "{capacity}% " - }, - "pulseaudio": { - "scroll-step": 5, - "max-volume": 150, - "format": "󰕾 {volume}%", - "format-muted": "󰖁", - "nospacing": 1, - "on-click": "pavucontrol", - "on-click-right": "~/.config/waybar/scripts/cycle-sinks.fish", - "on-click-middle": "wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle", - "tooltip": false - }, - "cpu": { - "interval": 10, - "format": " {usage}%", - "max-length": 10 - }, - "memory": { - "interval": 30, - "format": " {percentage}%", - "max-length": 10 - } + "custom/colcount": { + "exec": "~/dev/niri-windows/niri-windows.py", + "return-type": "json", + "restart-interval": "never", + "format": "{} ", }, - // LEFT BAR - { - // "output": "DP-1", - "layer": "top", - "exclusive": false, - "gtk-layer-shell": true, - "name": "leftbar", - "width": 14, - "position": "left", - "modules-left": [ - "niri/workspaces" - ], - "niri/workspaces": { - "format": "{icon}", - "format-icons": { - "active": "", - "default": "" - } - } - } -] \ No newline at end of file + "clock": { + "format-alt": "{:%a, %d. %b %H:%M}", + }, + }, + // bottom bar + { + "output": "DP-1", + "layer": "top", + "position": "bottom", + "modules-left": [ + "cava", + ], + "modules-center": [ + "cpu", + "custom/delim", + "memory", + "custom/delim", + "pulseaudio", + ], + "modules-right": [ + "custom/recorder", + "tray", + ], + "niri/window": { + "max-length": 50, + "separate-outputs": true, + }, + "custom/colcount": { + "exec": "~/dev/niri-windows/niri-windows.py", + "return-type": "json", + "restart-interval": "never", + "format": "{} ", + }, + "custom/recorder": { + "exec": "~/dev/utils/wayland-utils/recorder/recorder.py", + "return-type": "json", + "restart-interval": "never", + "on-click": "~/dev/utils/wayland-utils/recorder/recorder.sh screen", + "on-click-right": "~/dev/utils/wayland-utils/recorder/recorder.sh region", + "format": " {} ", + }, + "custom/delim": { + "format": "|", + }, + "cava": { + "cava_config": "$XDG_CONFIG_HOME/cava/cava.conf", + "format-icons": [ + "▁", + "▂", + "▃", + "▄", + "▅", + "▆", + "▇", + "█", + ], + "actions": { + "on-click-right": "mode", + }, + }, + "battery": { + "format": "{capacity}% 󰁹", + "format-charging": "{capacity}% ", + "format-plugged": "{capacity}% ", + }, + "pulseaudio": { + "scroll-step": 5, + "max-volume": 150, + "format": "󰕾 {volume}%", + "format-muted": "󰖁", + "nospacing": 1, + "on-click": "pavucontrol", + "on-click-right": "~/.config/waybar/scripts/cycle-sinks.fish", + "on-click-middle": "wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle", + "tooltip": false, + }, + "cpu": { + "interval": 10, + "format": " {usage}%", + "max-length": 10, + }, + "memory": { + "interval": 30, + "format": " {percentage}%", + "max-length": 10, + }, + }, + // LEFT BAR + { + // "output": "DP-1", + "layer": "top", + "exclusive": false, + "gtk-layer-shell": true, + "name": "leftbar", + "width": 14, + "position": "left", + "modules-left": [ + "niri/workspaces", + ], + "niri/workspaces": { + "format": "{icon}", + "format-icons": { + "active": "", + "default": "", + }, + }, + }, +] diff --git a/.config/waybar/config##hostname.dpad b/.config/waybar/config##hostname.dpad index 88b14973..dc0be83d 100644 --- a/.config/waybar/config##hostname.dpad +++ b/.config/waybar/config##hostname.dpad @@ -15,7 +15,7 @@ "clock" ], "niri/window": { - "max-length": 100, + // "max-length": 100, "separate-outputs": true, "expand": true, "format": "{}", @@ -358,4 +358,4 @@ // } // } // } -] \ No newline at end of file +]