1
0
Fork 0
mirror of https://github.com/kastdeur/dotfiles.git synced 2024-12-22 09:13:33 +01:00

Merge from faraway monitor screen

This commit is contained in:
Eric Teunis de Boone 2016-12-22 02:01:03 +01:00
parent 53664cee57
commit b98db6e80d
2 changed files with 19 additions and 1 deletions

View file

@ -35,5 +35,5 @@ alias ~='cd ~'
alias ..='cd ..' alias ..='cd ..'
# Computer control # Computer control
alias blank='xset dpms force off' alias blank='sleep 1s && xset dpms force off'
alias lock='blank; xscreensaver-command --lock' alias lock='blank; xscreensaver-command --lock'

18
bin/brightness Executable file
View file

@ -0,0 +1,18 @@
#!/bin/bash
if [ ! -z $2 ];
then
disp=$1
bright=$2
else
echo "Available displays:"
xrandr -q | grep " connected"
echo "What display to use?"
read disp
echo "Brightness[0-1]:"
read bright
fi
xrandr --output $disp --brightness $bright