aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYaroslav <contact@yaroslavps.com>2020-08-07 13:33:20 +0300
committerYaroslav <contact@yaroslavps.com>2020-08-07 13:33:20 +0300
commit342c1e47790d71e097ae10cfe67212401e1e46b9 (patch)
tree52a28d1c78440df08e204dfdef9670bc76a23e16
parent916163d1b7cb06438aa3c0285c515061d0480dd0 (diff)
downloadswayrice-342c1e47790d71e097ae10cfe67212401e1e46b9.tar.gz
swayrice-342c1e47790d71e097ae10cfe67212401e1e46b9.zip
Added some runit startup scripts
-rwxr-xr-xrunit/powertune/run5
-rwxr-xr-xrunit/startupsound/run7
2 files changed, 12 insertions, 0 deletions
diff --git a/runit/powertune/run b/runit/powertune/run
new file mode 100755
index 0000000..ce203cf
--- /dev/null
+++ b/runit/powertune/run
@@ -0,0 +1,5 @@
+#!/bin/sh -e
+
+powertop --auto-tune
+
+exec chpst -b powertune pause
diff --git a/runit/startupsound/run b/runit/startupsound/run
new file mode 100755
index 0000000..b625d63
--- /dev/null
+++ b/runit/startupsound/run
@@ -0,0 +1,7 @@
+#!/bin/sh -e
+
+sv start agetty-tty2 || exit 1
+
+mpv --audio-device='<DESIRED_AUDIO_DEVICE>' --volume=100 --really-quiet /home/yaroslav/.local/share/soundalerts/start.ogg&
+
+exec chpst -b startupsound pause