Add set_audio_sink, weather, grade
This commit is contained in:
6
.local/bin/grade
Executable file
6
.local/bin/grade
Executable file
@ -0,0 +1,6 @@
|
||||
#!/usr/bin/env sh
|
||||
|
||||
git checkout -b grade
|
||||
git add grade.adoc
|
||||
git commit -m "Add grade"
|
||||
git push --set-upstream origin grade
|
19
.local/bin/set_audio_sink
Executable file
19
.local/bin/set_audio_sink
Executable file
@ -0,0 +1,19 @@
|
||||
#!/bin/sh
|
||||
|
||||
# Load the module until it fails
|
||||
while pactl load-module module-detect; do
|
||||
:
|
||||
done
|
||||
|
||||
|
||||
if [ "$DISPLAY" = ":0" ]; then
|
||||
if ! pactl set-default-sink alsa_output.0.hdmi-stereo; then
|
||||
pactl set-default-sink alsa_output.1.hdmi-stereo
|
||||
fi
|
||||
echo "$DISPLAY set audio"
|
||||
elif [ "$DISPLAY" = ":10.0" ]; then
|
||||
pactl set-default-sink xrdp-sink
|
||||
echo "$DISPLAY set audio"
|
||||
else
|
||||
echo "The DISPLAY variable is set to: $DISPLAY, but not to :0 or :10.0"
|
||||
fi
|
3
.local/bin/weather
Executable file
3
.local/bin/weather
Executable file
@ -0,0 +1,3 @@
|
||||
#!/usr/bin/env sh
|
||||
|
||||
curl wttr.in/Grovetown
|
Reference in New Issue
Block a user