mirror of
https://github.com/olexsmir/dotfiles.git
synced 2026-01-15 08:41:34 +02:00
waybar: add idle_inhibitor; disable most of tooltips; fix startup warnings
This commit is contained in:
parent
d72083420c
commit
d14c4fccfb
4 changed files with 25 additions and 4 deletions
|
|
@ -1,7 +1,7 @@
|
||||||
{
|
{
|
||||||
"position": "top",
|
"position": "top",
|
||||||
"layer": "top",
|
"layer": "top",
|
||||||
"height": 14,
|
"height": 38,
|
||||||
"margin-top": 0,
|
"margin-top": 0,
|
||||||
"margin-bottom": 0,
|
"margin-bottom": 0,
|
||||||
"margin-left": 0,
|
"margin-left": 0,
|
||||||
|
|
@ -18,6 +18,7 @@
|
||||||
"battery",
|
"battery",
|
||||||
"power-profiles-daemon",
|
"power-profiles-daemon",
|
||||||
"backlight",
|
"backlight",
|
||||||
|
"idle_inhibitor",
|
||||||
"pulseaudio",
|
"pulseaudio",
|
||||||
"network"
|
"network"
|
||||||
]
|
]
|
||||||
|
|
|
||||||
|
|
@ -6,11 +6,13 @@
|
||||||
|
|
||||||
"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": false
|
||||||
},
|
},
|
||||||
|
|
||||||
"temperature": {
|
"temperature": {
|
||||||
"hwmon-path": "/sys/devices/pci0000:00/0000:00:08.1/0000:03:00.0/hwmon/hwmon3/temp1_input",
|
"hwmon-path": "/sys/devices/pci0000:00/0000:00:08.1/0000:03:00.0/hwmon/hwmon3/temp1_input",
|
||||||
"format": " {temperatureC}°C"
|
"format": " {temperatureC}°C",
|
||||||
|
"tooltip": false
|
||||||
},
|
},
|
||||||
|
|
||||||
"battery": {
|
"battery": {
|
||||||
|
|
@ -78,6 +80,14 @@
|
||||||
"tooltip": false,
|
"tooltip": false,
|
||||||
"on-scroll-up": "wpctl set-volume -l 1.4 @DEFAULT_AUDIO_SINK@ 5%+",
|
"on-scroll-up": "wpctl set-volume -l 1.4 @DEFAULT_AUDIO_SINK@ 5%+",
|
||||||
"on-scroll-down": "wpctl set-volume -l 1.4 @DEFAULT_AUDIO_SINK@ 5%-"
|
"on-scroll-down": "wpctl set-volume -l 1.4 @DEFAULT_AUDIO_SINK@ 5%-"
|
||||||
|
},
|
||||||
|
|
||||||
|
"idle_inhibitor": {
|
||||||
|
"format": "{icon}",
|
||||||
|
"format-icons": {
|
||||||
|
"activated": " ",
|
||||||
|
"deactivated": " "
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// vim: ft=jsonc
|
// vim: ft=jsonc
|
||||||
|
|
|
||||||
|
|
@ -13,6 +13,11 @@
|
||||||
"niri/language": {
|
"niri/language": {
|
||||||
"format": " {}",
|
"format": " {}",
|
||||||
"format-uk": "укр",
|
"format-uk": "укр",
|
||||||
"format-en": "eng"
|
"format-en": "eng",
|
||||||
|
"tooltip": false
|
||||||
|
},
|
||||||
|
"niri/window": {
|
||||||
|
"swap-icon-label": true,
|
||||||
|
"tooltip": false
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -29,7 +29,9 @@ tooltip {
|
||||||
border: 1px solid @bg-darker-color;
|
border: 1px solid @bg-darker-color;
|
||||||
}
|
}
|
||||||
|
|
||||||
#language, #cpu, #memory, #workspaces, #window, #tray, #clock, #battery, #power-profiles-daemon, #pulseaudio, #network, #backlight, #temperature {
|
#language, #cpu, #memory, #workspaces, #window, #tray, #clock, #battery,
|
||||||
|
#power-profiles-daemon, #pulseaudio, #network, #backlight, #temperature,
|
||||||
|
#idle_inhibitor {
|
||||||
background-color: @bg-darker-color;
|
background-color: @bg-darker-color;
|
||||||
color: @fg-color;
|
color: @fg-color;
|
||||||
border-radius: 16px;
|
border-radius: 16px;
|
||||||
|
|
@ -69,3 +71,6 @@ tooltip {
|
||||||
#power-profiles-daemon.performance { color: @blue; }
|
#power-profiles-daemon.performance { color: @blue; }
|
||||||
#power-profiles-daemon.balanced { color: @green; }
|
#power-profiles-daemon.balanced { color: @green; }
|
||||||
#power-profiles-daemon.power-saver { color: @red; }
|
#power-profiles-daemon.power-saver { color: @red; }
|
||||||
|
|
||||||
|
#idle_inhibitor.activated { color: @red; }
|
||||||
|
#idle_inhibitor.deactivated { color: @green; }
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue