mirror of
https://github.com/GRFreire/dotfiles.git
synced 2026-07-05 00:09:39 +00:00
add brightness to xob
This commit is contained in:
parent
c47fd16c5e
commit
eda2e3d871
6
.config/xob/brightness-watcher.sh
Executable file
6
.config/xob/brightness-watcher.sh
Executable file
@ -0,0 +1,6 @@
|
||||
#!/bin/bash
|
||||
|
||||
inotifywait -m -q -e modify /sys/class/backlight/intel_backlight/brightness |
|
||||
while read -r; do
|
||||
./brightness_pct.sh
|
||||
done
|
||||
5
.config/xob/brightness.sh
Executable file
5
.config/xob/brightness.sh
Executable file
@ -0,0 +1,5 @@
|
||||
#!/bin/sh
|
||||
|
||||
cd "${0%/*}" || exit
|
||||
|
||||
./brightness-watcher.sh | xob -s brightness
|
||||
6
.config/xob/brightness_pct.sh
Executable file
6
.config/xob/brightness_pct.sh
Executable file
@ -0,0 +1,6 @@
|
||||
#!/bin/sh
|
||||
|
||||
max=$(cat /sys/class/backlight/intel_backlight/max_brightness)
|
||||
curr=$(cat /sys/class/backlight/intel_backlight/brightness)
|
||||
|
||||
echo "$curr*100/$max" | bc
|
||||
@ -37,3 +37,43 @@ volume = {
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
brightness = {
|
||||
thickness = 20;
|
||||
outline = 2;
|
||||
border = 3;
|
||||
padding = 1;
|
||||
orientation = "vertical";
|
||||
|
||||
x = {
|
||||
relative = 0;
|
||||
offset = 24;
|
||||
}
|
||||
y = {
|
||||
relative = 0.5;
|
||||
offset = 0;
|
||||
}
|
||||
|
||||
color = {
|
||||
normal = {
|
||||
fg = "#49659C";
|
||||
bg = "#272A34";
|
||||
border = "#49659C";
|
||||
};
|
||||
alt = {
|
||||
fg = "#363D54";
|
||||
bg = "#272A34";
|
||||
border = "#49659C";
|
||||
};
|
||||
overflow = {
|
||||
fg = "#900000";
|
||||
bg = "#272A34";
|
||||
border = "#933333";
|
||||
};
|
||||
altoverflow = {
|
||||
fg = "#900000";
|
||||
bg = "#272A34";
|
||||
border = "#49659C";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
Loading…
Reference in New Issue
Block a user