mirror of
https://github.com/olexsmir/dotfiles.git
synced 2026-01-15 08:41:34 +02:00
waybar: add more rice to it
This commit is contained in:
parent
e30bf568c8
commit
1707808710
4 changed files with 31 additions and 12 deletions
|
|
@ -13,13 +13,12 @@
|
||||||
"modules-left": ["niri/workspaces", "niri/window"],
|
"modules-left": ["niri/workspaces", "niri/window"],
|
||||||
"modules-center": ["clock"],
|
"modules-center": ["clock"],
|
||||||
"modules-right": [
|
"modules-right": [
|
||||||
"memory",
|
|
||||||
"cpu",
|
|
||||||
"tray",
|
|
||||||
"niri/language",
|
"niri/language",
|
||||||
"backlight",
|
"tray",
|
||||||
"battery",
|
|
||||||
"pulseaudio",
|
"pulseaudio",
|
||||||
|
"battery",
|
||||||
|
"backlight",
|
||||||
|
"power-profiles-daemon",
|
||||||
"network"
|
"network"
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,5 @@
|
||||||
// vim: ft=jsonc
|
// vim: ft=jsonc
|
||||||
|
// NOTE: hyprland config
|
||||||
{
|
{
|
||||||
"position": "top",
|
"position": "top",
|
||||||
"layer": "top",
|
"layer": "top",
|
||||||
|
|
|
||||||
|
|
@ -6,18 +6,15 @@
|
||||||
|
|
||||||
"clock": {
|
"clock": {
|
||||||
"format": " {:%a, %d %b %H:%M}", // replace %I with %H for 24h format
|
"format": " {:%a, %d %b %H:%M}", // replace %I with %H for 24h format
|
||||||
"tooltip": true,
|
|
||||||
"tooltip-format": "<big>{:%Y %B}</big>\n<tt><small>{calendar}</small></tt>",
|
|
||||||
"on-click": "morgen"
|
|
||||||
},
|
},
|
||||||
|
|
||||||
"battery": {
|
"battery": {
|
||||||
"format": "{icon} {capacity}%",
|
"format": "{icon} {capacity}%",
|
||||||
"format-charging": "{icon} {capacity}%",
|
"format-charging": "{icon} {capacity}%",
|
||||||
"format-plugged": "{capacity}% ",
|
"format-plugged": "{capacity}% ",
|
||||||
"format-alt": "{icon} {time}",
|
|
||||||
"format-icons": ["", "", "", "", ""],
|
"format-icons": ["", "", "", "", ""],
|
||||||
"tooltip": false,
|
"tooltip": true,
|
||||||
|
"tooltip-format": "Left {time} \nHealth: {health}",
|
||||||
"states": {
|
"states": {
|
||||||
"good": 95,
|
"good": 95,
|
||||||
"warning": 30,
|
"warning": 30,
|
||||||
|
|
@ -25,6 +22,18 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
"power-profiles-daemon": {
|
||||||
|
"format": "{icon}",
|
||||||
|
"tooltip-format": "{profile}",
|
||||||
|
"tooltip": true,
|
||||||
|
"format-icons": {
|
||||||
|
"default": "",
|
||||||
|
"performance": "",
|
||||||
|
"balanced": "",
|
||||||
|
"power-saver": ""
|
||||||
|
}
|
||||||
|
},
|
||||||
|
|
||||||
"memory": {
|
"memory": {
|
||||||
"format": " {used}",
|
"format": " {used}",
|
||||||
"interval": 5
|
"interval": 5
|
||||||
|
|
|
||||||
|
|
@ -24,7 +24,12 @@ window#waybar {
|
||||||
color: @fg-color;
|
color: @fg-color;
|
||||||
}
|
}
|
||||||
|
|
||||||
#language, #cpu, #memory, #workspaces, #window, #tray, #clock, #battery, #pulseaudio, #network, #backlight {
|
tooltip {
|
||||||
|
background: @bg-color;
|
||||||
|
border: 1px solid @bg-darker-color;
|
||||||
|
}
|
||||||
|
|
||||||
|
#language, #cpu, #memory, #workspaces, #window, #tray, #clock, #battery, #power-profiles-daemon, #pulseaudio, #network, #backlight {
|
||||||
background-color: @bg-darker-color;
|
background-color: @bg-darker-color;
|
||||||
color: @fg-color;
|
color: @fg-color;
|
||||||
border-radius: 16px;
|
border-radius: 16px;
|
||||||
|
|
@ -55,7 +60,12 @@ window#waybar {
|
||||||
color: black;
|
color: black;
|
||||||
}
|
}
|
||||||
|
|
||||||
#clock { font-weight: bold; }
|
|
||||||
#battery.charging { color: @green; }
|
#battery.charging { color: @green; }
|
||||||
#battery.warning:not(.charging) { color: @red; }
|
#battery.warning:not(.charging) { color: @red; }
|
||||||
|
|
||||||
|
#clock { font-weight: bold; }
|
||||||
#pulseaudio.muted { color: @red; }
|
#pulseaudio.muted { color: @red; }
|
||||||
|
|
||||||
|
#power-profiles-daemon.performance { color: @blue; }
|
||||||
|
#power-profiles-daemon.balanced { color: @green; }
|
||||||
|
#power-profiles-daemon.power-saver { color: @red; }
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue