From 3572c830ee09731cbe71a2217b779f88f0fbccba Mon Sep 17 00:00:00 2001 From: Blake Romero Date: Thu, 17 Jul 2025 12:37:35 +0100 Subject: Refactor yambar backlight module --- dot-config/yambar/config.yml | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-) (limited to 'dot-config') diff --git a/dot-config/yambar/config.yml b/dot-config/yambar/config.yml index 97620d7..c22ca65 100755 --- a/dot-config/yambar/config.yml +++ b/dot-config/yambar/config.yml @@ -201,13 +201,23 @@ workspace: &workspace backlight: &backlight name: intel_backlight content: - string: - text: "{percent}% " - margin: *margin - foreground: *fg + map: on-click: wheel-up: *brightness-up wheel-down: *brightness-down + margin: *margin + foreground: *fg + conditions: + percent <= 10: {string: {text: "{percent} 󱩎"}} + percent <= 20: {string: {text: "{percent} 󱩏"}} + percent <= 30: {string: {text: "{percent} 󱩐"}} + percent <= 40: {string: {text: "{percent} 󱩑"}} + percent <= 50: {string: {text: "{percent} 󱩒"}} + percent <= 60: {string: {text: "{percent} 󱩓"}} + percent <= 70: {string: {text: "{percent} 󱩔"}} + percent <= 80: {string: {text: "{percent} 󱩕"}} + percent <= 90: {string: {text: "{percent} 󱩖"}} + percent <= 100: {string: {text: "{percent} 󰛨"}} pacman: &pacman path: ~/.config/yambar/scripts/pacman -- cgit