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:
parent
53664cee57
commit
b98db6e80d
2 changed files with 19 additions and 1 deletions
|
@ -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
18
bin/brightness
Executable 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
|
Loading…
Reference in a new issue