AutoYADM commit: 2025-05-19 23:13:24
This commit is contained in:
parent
7c5ec89ddf
commit
9fddc43a37
2 changed files with 138 additions and 131 deletions
|
@ -117,9 +117,11 @@ define-command bar-buflist %{
|
|||
while read buf; do
|
||||
index=$(($index + 1))
|
||||
# if [ "$buf" = "$kak_bufname" ]; then
|
||||
list="$list $index $buf"
|
||||
cur=$(printf '[%s] %s' "$index" "$buf")
|
||||
list="$list $cur"
|
||||
done <<< $(printf '%s\n' "$kak_buflist" | tr ' ' '\n')
|
||||
quoted=$(printf '%q' "$list" | sed "s/\\*/\*/g")
|
||||
quoted=$(printf '%q' "$list" | sed -e 's/\\\*/\*/g' -e 's/\\\[/\[/g' -e 's/\\\]/\]/g')
|
||||
|
||||
printf "set-option -add global ui_options terminal_title=%s" "$quoted"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,133 +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
|
||||
// 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}"
|
||||
}
|
||||
},
|
||||
"custom/colcount": {
|
||||
"exec": "~/dev/niri-windows/niri-windows.py",
|
||||
"return-type": "json",
|
||||
"restart-interval": "never",
|
||||
"format": "{} "
|
||||
// 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
|
||||
}
|
||||
},
|
||||
"clock": {
|
||||
"format-alt": "{:%a, %d. %b %H:%M}"
|
||||
// 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": ""
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
// 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": ""
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
]
|
Loading…
Add table
Add a link
Reference in a new issue