commit 78df83df798826c0c80aee751c2670a6c42ed50a Author: nathan Date: Wed Jun 3 15:47:41 2020 +0100 Added things I want to remember for the laptop. Not really scripts yet. diff --git a/audio_control.sh b/audio_control.sh new file mode 100755 index 0000000..034d5d1 --- /dev/null +++ b/audio_control.sh @@ -0,0 +1,4 @@ +#!/bin/bash + +# Using PulseAudio +pactl set-sink-volume 0 30% diff --git a/brightness.sh b/brightness.sh new file mode 100755 index 0000000..37362d5 --- /dev/null +++ b/brightness.sh @@ -0,0 +1,3 @@ +#!/bin/bash + +echo 350 > /sys/class/backlight/intel_backlight/brightness diff --git a/esc_caps.sh b/esc_caps.sh new file mode 100755 index 0000000..b5452e9 --- /dev/null +++ b/esc_caps.sh @@ -0,0 +1,6 @@ +#!/bin/bash + +# This can be added into a . file apparently, but for now + +# Switch the capslock and escape key around +/usr/bin/setxkbmap -option caps:swapescape diff --git a/keyboard_backlight.sh b/keyboard_backlight.sh new file mode 100755 index 0000000..8274721 --- /dev/null +++ b/keyboard_backlight.sh @@ -0,0 +1,11 @@ +#!/bin/bash + +# cat /sys/class/leds//max_brightness. Remember that + +# Was testing uer input, will change to flag or smth +read TEST +# Change the backlight of the keyboard +echo $TEST | sudo tee /sys/class/leds/smc::kbd_backlight/brightness + +# Apparently using Dbus is better +# because it doesn't involve modifications to device files