~scripts
40 itemsDownload ./*


..
dzen2
tiling
vosh
4cdl
4trips
alarm
ambient
battery-monitor
checkit
cleverbot.py
clock
color-gen
colors-hex
compton
dailywall
dmenu
importw
indexer
keep-on
mp3ogg
orage
pipes
pipes.x
rain
randwall
screen-dim
screencast
screencast2
scrot
scrotw
search
skull
slocker
starwars
streamit
sumnum
tty-colorize
usrmount
ytp
ytplay


scriptsscreen-dim
2 years agoDownloadRawClose


#!/bin/bash
#
# Description: Toggle screen dimming 0-100% with one keybinding
#              (Bind hotkey to execute this script; eg.: W-A-d)
# Requires:    xset, xbacklight
#

XBL=$(xbacklight -get)

if [[ "$XBL" == "0."* ]]; then
    xset dpms 600 600 600 && xset s on # reset dpms
    xbacklight -set 100
else
    xset dpms 0 0 0 && xset -dpms && xset s off # disable dpms (monitor 'off' timer)
    xbacklight -set 0
fi

exit 0

Top
twily at openmailbox dot org
©twily.info 2013 - 2017



744 041 visits
... ^ v