AutoYADM commit: 2025-06-28 23:30:15
This commit is contained in:
parent
1b275b6905
commit
53e52d8772
4 changed files with 143 additions and 144 deletions
|
@ -6,9 +6,6 @@
|
||||||
|
|
||||||
hook global BufCreate .*[.](jsonc) %{
|
hook global BufCreate .*[.](jsonc) %{
|
||||||
set-option buffer filetype jsonc
|
set-option buffer filetype jsonc
|
||||||
set-option buffer comment_line //
|
|
||||||
set-option buffer comment_block_begin /*
|
|
||||||
set-option buffer comment_block_end */
|
|
||||||
}
|
}
|
||||||
|
|
||||||
# Initialization
|
# Initialization
|
||||||
|
@ -16,6 +13,9 @@ hook global BufCreate .*[.](jsonc) %{
|
||||||
|
|
||||||
hook global WinSetOption filetype=jsonc %{
|
hook global WinSetOption filetype=jsonc %{
|
||||||
require-module 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 ModeChange pop:insert:.* -group jsonc-trim-indent jsonc-trim-indent
|
||||||
hook window InsertChar .* -group jsonc-indent jsonc-indent-on-char
|
hook window InsertChar .* -group jsonc-indent jsonc-indent-on-char
|
||||||
|
|
|
@ -223,22 +223,21 @@ alias global t cwd-terminal
|
||||||
|
|
||||||
map global normal <backspace> '"_'
|
map global normal <backspace> '"_'
|
||||||
define-command goto-debug %{
|
define-command goto-debug %{
|
||||||
try %{
|
|
||||||
buffer *debug*
|
buffer *debug*
|
||||||
|
try %{
|
||||||
ui-scrolloff-disable
|
ui-scrolloff-disable
|
||||||
execute-keys 'gj'
|
execute-keys 'gj'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
declare-user-mode debug
|
map -docstring 'open debug buffer' global user d ':goto-debug<ret>'
|
||||||
map -docstring 'open debug buffer' global debug d ':goto-debug<ret>'
|
|
||||||
map -docstring 'open debug buffer' global user D ': enter-user-mode debug<ret>'
|
|
||||||
|
|
||||||
define-command exec-selection %{
|
define-command exec-selection %{
|
||||||
execute-keys ':<c-r>.<ret>'
|
execute-keys ':<c-r>.<ret>'
|
||||||
}
|
}
|
||||||
|
|
||||||
map -docstring 'execute selection' global debug x ': exec-selection<ret>'
|
map -docstring 'execute selection' global debug x ': exec-selection<ret>'
|
||||||
|
|
||||||
define-command repl %{
|
define-command repl %{
|
||||||
new %{ edit -scratch; set buffer filetype kak }
|
new %{ edit -scratch; set buffer filetype kak }
|
||||||
}
|
}
|
||||||
|
|
|
@ -5,32 +5,32 @@
|
||||||
"layer": "top",
|
"layer": "top",
|
||||||
"position": "top",
|
"position": "top",
|
||||||
"modules-left": [
|
"modules-left": [
|
||||||
"custom/colcount"
|
"custom/colcount",
|
||||||
],
|
],
|
||||||
"modules-center": [
|
"modules-center": [
|
||||||
"niri/window"
|
"niri/window",
|
||||||
],
|
],
|
||||||
"modules-right": [
|
"modules-right": [
|
||||||
"clock"
|
"clock",
|
||||||
],
|
],
|
||||||
"niri/window": {
|
"niri/window": {
|
||||||
"max-length": 100,
|
// "max-length": 100,
|
||||||
"separate-outputs": true,
|
"separate-outputs": true,
|
||||||
"expand": true,
|
"expand": true,
|
||||||
"format": "{}",
|
"format": "{}",
|
||||||
"rewrite": {
|
"rewrite": {
|
||||||
"(.*) - Kakoune": "$1"
|
"(.*) - Kakoune": "$1",
|
||||||
}
|
},
|
||||||
},
|
},
|
||||||
"custom/colcount": {
|
"custom/colcount": {
|
||||||
"exec": "~/dev/niri-windows/niri-windows.py",
|
"exec": "~/dev/niri-windows/niri-windows.py",
|
||||||
"return-type": "json",
|
"return-type": "json",
|
||||||
"restart-interval": "never",
|
"restart-interval": "never",
|
||||||
"format": "{} "
|
"format": "{} ",
|
||||||
},
|
},
|
||||||
"clock": {
|
"clock": {
|
||||||
"format-alt": "{:%a, %d. %b %H:%M}"
|
"format-alt": "{:%a, %d. %b %H:%M}",
|
||||||
}
|
},
|
||||||
},
|
},
|
||||||
// bottom bar
|
// bottom bar
|
||||||
{
|
{
|
||||||
|
@ -38,28 +38,28 @@
|
||||||
"layer": "top",
|
"layer": "top",
|
||||||
"position": "bottom",
|
"position": "bottom",
|
||||||
"modules-left": [
|
"modules-left": [
|
||||||
"cava"
|
"cava",
|
||||||
],
|
],
|
||||||
"modules-center": [
|
"modules-center": [
|
||||||
"cpu",
|
"cpu",
|
||||||
"custom/delim",
|
"custom/delim",
|
||||||
"memory",
|
"memory",
|
||||||
"custom/delim",
|
"custom/delim",
|
||||||
"pulseaudio"
|
"pulseaudio",
|
||||||
],
|
],
|
||||||
"modules-right": [
|
"modules-right": [
|
||||||
"custom/recorder",
|
"custom/recorder",
|
||||||
"tray"
|
"tray",
|
||||||
],
|
],
|
||||||
"niri/window": {
|
"niri/window": {
|
||||||
"max-length": 50,
|
"max-length": 50,
|
||||||
"separate-outputs": true
|
"separate-outputs": true,
|
||||||
},
|
},
|
||||||
"custom/colcount": {
|
"custom/colcount": {
|
||||||
"exec": "~/dev/niri-windows/niri-windows.py",
|
"exec": "~/dev/niri-windows/niri-windows.py",
|
||||||
"return-type": "json",
|
"return-type": "json",
|
||||||
"restart-interval": "never",
|
"restart-interval": "never",
|
||||||
"format": "{} "
|
"format": "{} ",
|
||||||
},
|
},
|
||||||
"custom/recorder": {
|
"custom/recorder": {
|
||||||
"exec": "~/dev/utils/wayland-utils/recorder/recorder.py",
|
"exec": "~/dev/utils/wayland-utils/recorder/recorder.py",
|
||||||
|
@ -67,10 +67,10 @@
|
||||||
"restart-interval": "never",
|
"restart-interval": "never",
|
||||||
"on-click": "~/dev/utils/wayland-utils/recorder/recorder.sh screen",
|
"on-click": "~/dev/utils/wayland-utils/recorder/recorder.sh screen",
|
||||||
"on-click-right": "~/dev/utils/wayland-utils/recorder/recorder.sh region",
|
"on-click-right": "~/dev/utils/wayland-utils/recorder/recorder.sh region",
|
||||||
"format": " {} "
|
"format": " {} ",
|
||||||
},
|
},
|
||||||
"custom/delim": {
|
"custom/delim": {
|
||||||
"format": "|"
|
"format": "|",
|
||||||
},
|
},
|
||||||
"cava": {
|
"cava": {
|
||||||
"cava_config": "$XDG_CONFIG_HOME/cava/cava.conf",
|
"cava_config": "$XDG_CONFIG_HOME/cava/cava.conf",
|
||||||
|
@ -82,16 +82,16 @@
|
||||||
"▅",
|
"▅",
|
||||||
"▆",
|
"▆",
|
||||||
"▇",
|
"▇",
|
||||||
"█"
|
"█",
|
||||||
],
|
],
|
||||||
"actions": {
|
"actions": {
|
||||||
"on-click-right": "mode"
|
"on-click-right": "mode",
|
||||||
}
|
},
|
||||||
},
|
},
|
||||||
"battery": {
|
"battery": {
|
||||||
"format": "{capacity}% ",
|
"format": "{capacity}% ",
|
||||||
"format-charging": "{capacity}% ",
|
"format-charging": "{capacity}% ",
|
||||||
"format-plugged": "{capacity}% "
|
"format-plugged": "{capacity}% ",
|
||||||
},
|
},
|
||||||
"pulseaudio": {
|
"pulseaudio": {
|
||||||
"scroll-step": 5,
|
"scroll-step": 5,
|
||||||
|
@ -102,18 +102,18 @@
|
||||||
"on-click": "pavucontrol",
|
"on-click": "pavucontrol",
|
||||||
"on-click-right": "~/.config/waybar/scripts/cycle-sinks.fish",
|
"on-click-right": "~/.config/waybar/scripts/cycle-sinks.fish",
|
||||||
"on-click-middle": "wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle",
|
"on-click-middle": "wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle",
|
||||||
"tooltip": false
|
"tooltip": false,
|
||||||
},
|
},
|
||||||
"cpu": {
|
"cpu": {
|
||||||
"interval": 10,
|
"interval": 10,
|
||||||
"format": " {usage}%",
|
"format": " {usage}%",
|
||||||
"max-length": 10
|
"max-length": 10,
|
||||||
},
|
},
|
||||||
"memory": {
|
"memory": {
|
||||||
"interval": 30,
|
"interval": 30,
|
||||||
"format": " {percentage}%",
|
"format": " {percentage}%",
|
||||||
"max-length": 10
|
"max-length": 10,
|
||||||
}
|
},
|
||||||
},
|
},
|
||||||
// LEFT BAR
|
// LEFT BAR
|
||||||
{
|
{
|
||||||
|
@ -125,14 +125,14 @@
|
||||||
"width": 14,
|
"width": 14,
|
||||||
"position": "left",
|
"position": "left",
|
||||||
"modules-left": [
|
"modules-left": [
|
||||||
"niri/workspaces"
|
"niri/workspaces",
|
||||||
],
|
],
|
||||||
"niri/workspaces": {
|
"niri/workspaces": {
|
||||||
"format": "{icon}",
|
"format": "{icon}",
|
||||||
"format-icons": {
|
"format-icons": {
|
||||||
"active": "",
|
"active": "",
|
||||||
"default": ""
|
"default": "",
|
||||||
}
|
},
|
||||||
}
|
},
|
||||||
}
|
},
|
||||||
]
|
]
|
|
@ -15,7 +15,7 @@
|
||||||
"clock"
|
"clock"
|
||||||
],
|
],
|
||||||
"niri/window": {
|
"niri/window": {
|
||||||
"max-length": 100,
|
// "max-length": 100,
|
||||||
"separate-outputs": true,
|
"separate-outputs": true,
|
||||||
"expand": true,
|
"expand": true,
|
||||||
"format": "{}",
|
"format": "{}",
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue