summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorzachir <zachir@librem.one>2022-08-12 03:18:43 -0500
committerzachir <zachir@librem.one>2022-08-12 03:18:43 -0500
commit4e21cbd8ce3913ccd62fc041b93fce1d01c373c6 (patch)
tree6b010840a35407245906a5a2989e3597566974f4
initialize repo with auto-cpufreq and greetd
-rw-r--r--README.md3
-rwxr-xr-xauto-cpufreq/log/run3
-rwxr-xr-xauto-cpufreq/run3
-rw-r--r--config/greetd/config.toml16
-rwxr-xr-xgreetd/log/run3
-rwxr-xr-xgreetd/run3
-rw-r--r--install.sh22
7 files changed, 53 insertions, 0 deletions
diff --git a/README.md b/README.md
new file mode 100644
index 0000000..33dbdf7
--- /dev/null
+++ b/README.md
@@ -0,0 +1,3 @@
+# Artix Runit Scripts
+
+A collection of Runit scripts for programs not in the Artix repos.
diff --git a/auto-cpufreq/log/run b/auto-cpufreq/log/run
new file mode 100755
index 0000000..da64a3a
--- /dev/null
+++ b/auto-cpufreq/log/run
@@ -0,0 +1,3 @@
+#!/bin/sh
+
+exec svlogd -ttt /var/log/auto-cpufreq
diff --git a/auto-cpufreq/run b/auto-cpufreq/run
new file mode 100755
index 0000000..a6228d8
--- /dev/null
+++ b/auto-cpufreq/run
@@ -0,0 +1,3 @@
+#!/bin/sh
+
+exec /usr/bin/auto-cpufreq --daemon
diff --git a/config/greetd/config.toml b/config/greetd/config.toml
new file mode 100644
index 0000000..f0b1b47
--- /dev/null
+++ b/config/greetd/config.toml
@@ -0,0 +1,16 @@
+[terminal]
+# The VT to run the greeter on. Can be "next", "current" or a number
+# designating the VT.
+vt = 1
+
+# The default session, also known as the greeter.
+[default_session]
+
+# `agreety` is the bundled agetty/login-lookalike. You can replace `$SHELL`
+# with whatever you want started, such as `sway`.
+command = "tuigreet --cmd dwm"
+
+# The user to run the command as. The privileges this user must have depends
+# on the greeter. A graphical greeter may for example require the user to be
+# in the `video` group.
+user = "greeter"
diff --git a/greetd/log/run b/greetd/log/run
new file mode 100755
index 0000000..fa70738
--- /dev/null
+++ b/greetd/log/run
@@ -0,0 +1,3 @@
+#!/bin/sh
+
+exec svlogd -ttt /var/log/greetd
diff --git a/greetd/run b/greetd/run
new file mode 100755
index 0000000..a9d6983
--- /dev/null
+++ b/greetd/run
@@ -0,0 +1,3 @@
+#!/bin/sh
+
+exec greetd
diff --git a/install.sh b/install.sh
new file mode 100644
index 0000000..f109db2
--- /dev/null
+++ b/install.sh
@@ -0,0 +1,22 @@
+#!/bin/sh
+
+installifexists () {
+ if type $1 >/dev/null; then
+ printf "$1 found. Installing service dir to /etc/runit/sv...\n"
+ sudo cp -rn $1 /etc/runit/sv/
+ if [ -n "$(ls -A config/$1)" ]; then
+ printf "and config to /etc...\n"
+ sudo cp -rn config/$1/ /etc/
+ fi
+ fi
+}
+
+printf "Installing services if they exist...\n\n\n"
+
+for i in `ls`; do
+ [ -f "$i" ] && continue
+ [ "$i" = "config" ] && continue
+ printf "$i...\n"
+ installifexists "$i"
+ printf "\n"
+done