summaryrefslogtreecommitdiff
path: root/.zshrc
diff options
context:
space:
mode:
Diffstat (limited to '.zshrc')
-rw-r--r--.zshrc4
1 files changed, 4 insertions, 0 deletions
diff --git a/.zshrc b/.zshrc
index 647cf23..ff3f3be 100644
--- a/.zshrc
+++ b/.zshrc
@@ -24,6 +24,10 @@ share () {
}
bright () {
+ if [[ $1 == 10 ]]; then
+ xrandr --output HDMI-A-0 --brightness 1
+ return 0
+ fi
xrandr --output HDMI-A-0 --brightness "0.$1"
}