mirror of
https://github.com/olexsmir/dotfiles.git
synced 2026-01-15 08:41:34 +02:00
waybar: add custom/timew to show current timeworrior "profile"
This commit is contained in:
parent
7173b669a8
commit
80b03aa7c1
3 changed files with 12 additions and 4 deletions
|
|
@ -11,11 +11,12 @@
|
||||||
"~/.config/waybar/modules/niri.json"
|
"~/.config/waybar/modules/niri.json"
|
||||||
],
|
],
|
||||||
"modules-left": ["niri/workspaces", "niri/window"],
|
"modules-left": ["niri/workspaces", "niri/window"],
|
||||||
"modules-center": ["clock", "temperature"],
|
"modules-center": ["clock"],
|
||||||
"modules-right": [
|
"modules-right": [
|
||||||
"niri/language",
|
"niri/language",
|
||||||
"tray",
|
"tray",
|
||||||
"battery",
|
"battery",
|
||||||
|
"temperature",
|
||||||
"power-profiles-daemon",
|
"power-profiles-daemon",
|
||||||
"idle_inhibitor",
|
"idle_inhibitor",
|
||||||
"backlight",
|
"backlight",
|
||||||
|
|
|
||||||
|
|
@ -12,7 +12,7 @@
|
||||||
"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
|
"tooltip": false
|
||||||
},
|
},
|
||||||
|
|
||||||
"battery": {
|
"battery": {
|
||||||
|
|
@ -88,6 +88,13 @@
|
||||||
"activated": "",
|
"activated": "",
|
||||||
"deactivated": ""
|
"deactivated": ""
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
|
||||||
|
"custom/timew": {
|
||||||
|
"exec": "~/bin/time.sh status",
|
||||||
|
"format": " {text}",
|
||||||
|
"interval": 5,
|
||||||
|
"tooltip": false
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// vim: ft=jsonc
|
// vim: ft=jsonc
|
||||||
|
|
|
||||||
|
|
@ -30,7 +30,7 @@ tooltip {
|
||||||
}
|
}
|
||||||
|
|
||||||
#language, #cpu, #memory, #workspaces, #window, #tray, #clock, #battery,
|
#language, #cpu, #memory, #workspaces, #window, #tray, #clock, #battery,
|
||||||
#pulseaudio, #network, #backlight, #temperature {
|
#pulseaudio, #network, #backlight, #temperature, #custom-timew {
|
||||||
background-color: @bg-darker-color;
|
background-color: @bg-darker-color;
|
||||||
color: @fg-color;
|
color: @fg-color;
|
||||||
border-radius: 16px;
|
border-radius: 16px;
|
||||||
|
|
@ -46,7 +46,7 @@ tooltip {
|
||||||
#idle_inhibitor { border-radius: 0 16px 16px 0; margin: 5px 5px 5px 0; }
|
#idle_inhibitor { border-radius: 0 16px 16px 0; margin: 5px 5px 5px 0; }
|
||||||
|
|
||||||
#network, #backlight { color: @blue; }
|
#network, #backlight { color: @blue; }
|
||||||
#cpu, #pulseaudio, #memory, #clock, #temperature { color: @active-bg-color; }
|
#cpu, #pulseaudio, #memory, #clock, #temperature, #custom-timew { color: @active-bg-color; }
|
||||||
#language { color: @red; }
|
#language { color: @red; }
|
||||||
|
|
||||||
#workspaces button { color: @active-bg-color; }
|
#workspaces button { color: @active-bg-color; }
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue