~scripts
51 itemsDownload ./*

51 itemsDownload ./*

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


scriptsscreen-dim
2 041•  7 years ago•  DownloadRawClose
7 years ago•  2 041

{}
#!/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.info 2013 - 2023
twily at twily dot info



1 852 695 visits
... ^ v