2024-10-11 23:27:07 +03:00
|
|
|
{ ... }:
|
|
|
|
{
|
|
|
|
text = ''
|
|
|
|
# Set display brightness to a minimum.
|
|
|
|
function brmin() {
|
|
|
|
light -S 0.01
|
|
|
|
}
|
2024-04-06 03:03:58 +03:00
|
|
|
|
2024-10-11 23:27:07 +03:00
|
|
|
# Set display brightness to a maximum.
|
|
|
|
function brmax() {
|
|
|
|
light -S 100
|
|
|
|
}
|
2024-04-06 03:03:58 +03:00
|
|
|
|
2024-10-11 23:27:07 +03:00
|
|
|
# Set display brightness in percent, 50% default.
|
|
|
|
# Usage: brset [LEVEL]
|
|
|
|
function brset() {
|
|
|
|
local level=''${1}
|
|
|
|
[[ "''${level}" = "" ]] && level=50
|
2024-04-06 03:03:58 +03:00
|
|
|
|
2024-10-11 23:27:07 +03:00
|
|
|
light -S ''${level}
|
|
|
|
}
|
|
|
|
'';
|
2024-04-06 03:03:58 +03:00
|
|
|
}
|