Reroganize repository

Signed-off-by: Severin Kaderli <severin.kaderli@gmail.com>
This commit is contained in:
Severin Kaderli 2018-12-12 21:41:12 +01:00
parent 0a4424d25e
commit cd781c174e
40 changed files with 113 additions and 22 deletions

4
system/bin/increase_volume.sh Executable file
View file

@ -0,0 +1,4 @@
#!/bin/bash
if [[ $(pamixer --get-volume) -lt 150 ]]; then
pamixer -i 5 --allow-boost
fi

2
system/bin/resolution.sh Executable file
View file

@ -0,0 +1,2 @@
#!/bin/sh
xrandr --output VIRTUAL1 --off --output DP3 --off --output eDP1 --mode 1920x1080 --pos 1400x472 --rotate normal --output DP1 --off --output HDMI3 --off --output HDMI2 --off --output HDMI1 --mode 1280x1024 --pos 120x528 --rotate normal --output DP2 --off

2
system/bin/screenlock.sh Executable file
View file

@ -0,0 +1,2 @@
#!/bin/bash
dm-tool lock

16
system/bin/server.sh Executable file
View file

@ -0,0 +1,16 @@
#!/bin/bash
#
# This script allows me to quickly start or stop apache2 and mysql.
#
# Usage: ./server.sh [start|stop]
if [ "$1" == "start" ]; then
sudo systemctl start httpd.service
sudo systemctl start mariadb.service
elif [ "$1" == "stop" ]; then
sudo systemctl stop httpd.service
sudo systemctl stop mariadb.service
else
echo "'$1' is an unknown option"
exit 0
fi

20
system/bin/twitch.sh Executable file
View file

@ -0,0 +1,20 @@
#!/bin/bash
#
# This script simply uses livestreamer <http://docs.livestreamer.io/> to
# stream a twitch stream. It's only a little shortcut, so I don't have to
# type so much.
#
# Usage: ./twitch.sh USERNAME [RESOLUTION]
if [[ -z $1 ]]; then
echo "Please enter a username!"
exit 1
fi
if [[ -z $2 ]]; then
resolution="best"
else
resolution="$2"
fi
streamlink -v -l debug "twitch.tv/$1" "$resolution"