~scriptsdisplay
10 itemsDownload ./*

10 itemsDownload ./*

..
ana-wall-login.sh
ana-wall-next.sh
ana-wall-refresh.sh
ana-wall.sh
brightness.sh
brightness_change
keep-on.sh
screen-dim
screenshot.sh
xorient.sh


displayscreen-dim
2 550•  9 years ago•  DownloadRawClose
9 years ago•  2 550

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



2 158 899 visits
... ^ v