aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBlake Romero <blake@blkrom.com>2025-07-17 12:37:35 +0100
committerBlake Romero <blake@blkrom.com>2025-07-17 12:37:35 +0100
commit3572c830ee09731cbe71a2217b779f88f0fbccba (patch)
tree15107c080024bfa44431660529dee7d618d514b2
parent84843389728617bb6ff7783c87c7193b89c7f612 (diff)
Refactor yambar backlight module
-rwxr-xr-xdot-config/yambar/config.yml18
1 files changed, 14 insertions, 4 deletions
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