From 4e21cbd8ce3913ccd62fc041b93fce1d01c373c6 Mon Sep 17 00:00:00 2001 From: zachir Date: Fri, 12 Aug 2022 03:18:43 -0500 Subject: initialize repo with auto-cpufreq and greetd --- README.md | 3 +++ auto-cpufreq/log/run | 3 +++ auto-cpufreq/run | 3 +++ config/greetd/config.toml | 16 ++++++++++++++++ greetd/log/run | 3 +++ greetd/run | 3 +++ install.sh | 22 ++++++++++++++++++++++ 7 files changed, 53 insertions(+) create mode 100644 README.md create mode 100755 auto-cpufreq/log/run create mode 100755 auto-cpufreq/run create mode 100644 config/greetd/config.toml create mode 100755 greetd/log/run create mode 100755 greetd/run create mode 100644 install.sh 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 -- cgit v1.2.3