mirror of
https://github.com/donovanglover/nix-config.git
synced 2025-06-23 11:11:27 +02:00
waybar: Update config
This was my attempt at getting waybar to play nicely with both Hyprland and river, although I prefer yambar now.
This commit is contained in:
parent
51a3e26332
commit
3ed20a4ae8
@ -1,25 +1,37 @@
|
||||
{
|
||||
"layer": "top",
|
||||
"position": "top",
|
||||
"height": 30,
|
||||
"modules-left": ["sway/workspaces", "sway/mode", "tray"],
|
||||
"modules-center": ["sway/window"],
|
||||
"modules-right": ["pulseaudio", "network", "backlight", "memory", "battery", "clock"],
|
||||
"sway/workspaces": {
|
||||
"modules-left": [ "wlr/workspaces", "hyprland/submap", "river/tags"],
|
||||
"modules-center": ["hyprland/window"],
|
||||
"modules-right": ["hyprland/submap", "tray", "pulseaudio", "network", "backlight", "memory", "battery", "clock"],
|
||||
"river/tags": {
|
||||
"num-tags": 5
|
||||
},
|
||||
"wlr/workspaces": {
|
||||
"format": "{icon}",
|
||||
"on-click": "activate",
|
||||
"format-icons": {
|
||||
"1": "",
|
||||
"2": "",
|
||||
"3": "",
|
||||
"4": "",
|
||||
"5": "五",
|
||||
"6": "六",
|
||||
"7": "七",
|
||||
"8": "八",
|
||||
"9": "九",
|
||||
"10": "十"
|
||||
"sort-by-number": true,
|
||||
"persistent_workspaces": {
|
||||
"1": [],
|
||||
"2": [],
|
||||
"3": [],
|
||||
"4": [],
|
||||
"5": [],
|
||||
"6": []
|
||||
}
|
||||
},
|
||||
"sway/mode": {
|
||||
"wlr/taskbar": {
|
||||
"format": "{icon}",
|
||||
"icon-size": 32,
|
||||
"tooltip-format": "{title}",
|
||||
"on-click": "activate",
|
||||
// "on-click-middle": "close",
|
||||
"app_ids-mapping": {
|
||||
"mullvadbrowser": "mullvad-browser"
|
||||
}
|
||||
},
|
||||
"wlr/mode": {
|
||||
"format": "<span style=\"italic\">{}</span>"
|
||||
},
|
||||
"tray": {
|
||||
@ -39,12 +51,14 @@
|
||||
},
|
||||
"battery": {
|
||||
"states": {
|
||||
"full": 100,
|
||||
"warning": 20,
|
||||
"critical": 10
|
||||
},
|
||||
"format": "{icon} {capacity}%",
|
||||
"format-charging": "{capacity}% ",
|
||||
"format-plugged": "{capacity}% ",
|
||||
"format-full": "",
|
||||
"format-alt": "{time} {icon}",
|
||||
"format-icons": ["", "", "", "", ""]
|
||||
},
|
||||
@ -62,6 +76,11 @@
|
||||
"default": ["", "", ""]
|
||||
},
|
||||
"on-click": "pavucontrol"
|
||||
},
|
||||
"hyprland/submap": {
|
||||
"format": "{}",
|
||||
"max-length": 8,
|
||||
"tooltip": false
|
||||
}
|
||||
}
|
||||
// vim:syn=json
|
||||
|
Loading…
x
Reference in New Issue
Block a user