repo.or.cz
/
dotfiles_afify.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
[feat] update, add scripts
[dotfiles_afify.git]
/
.scripts
/
x_dec.sh
blob
7011a5652fb9466e59b00d7ed31fbad637da0192
1
#!/usr/bin/env bash
2
3
mon_status
=
$
(
xbacklight
-get
|
bc
)
4
mon_status
=
${mon_status%.*}
5
6
if
[[
"mon_status"
-eq
"0"
]];
7
then
sleep
0.1
&&
xset dpms force off
8
else
xbacklight
-dec
10
;
fi