Copied i3blocks scripts from orig dir
Some were modified from original but can't be bothered to check which. 'backlight' is custom. Changed both PC/laptop i3blocks config to reference new i3blocks-scripts location. system: Fixed keyboard repeat rate for PC/laptop. Git: Added amending commit and forcing push aliases. i3: Changed '$mod+F[1-3]' mappings to just 'F[1-3]'.
This commit is contained in:
9
configs/i3blocks-scripts/backlight
Executable file
9
configs/i3blocks-scripts/backlight
Executable file
@@ -0,0 +1,9 @@
|
||||
#!/bin/sh
|
||||
# https://askubuntu.com/a/179949/794515
|
||||
round()
|
||||
{
|
||||
echo $(printf %.$2f $(echo "scale=$2;(((10^$2)*$1)+0.5)/(10^$2)" | bc))
|
||||
};
|
||||
|
||||
cur_bl=$(xbacklight -get)
|
||||
echo "$(round "$cur_bl" 0)%"
|
||||
Reference in New Issue
Block a user