summaryrefslogtreecommitdiff
path: root/static/thesiah.sh
diff options
context:
space:
mode:
Diffstat (limited to 'static/thesiah.sh')
-rwxr-xr-xstatic/thesiah.sh30
1 files changed, 15 insertions, 15 deletions
diff --git a/static/thesiah.sh b/static/thesiah.sh
index 139942b..7782e01 100755
--- a/static/thesiah.sh
+++ b/static/thesiah.sh
@@ -121,11 +121,11 @@ refreshkeys() {
pacman --noconfirm --needed -S \
artix-keyring artix-archlinux-support >/dev/null 2>&1
grep -q "^\[extra\]" /etc/pacman.conf ||
- echo "[extra]
+ printf '[extra]
Include = /etc/pacman.d/mirrorlist-arch
[multilib]
-Include = /etc/pacman.d/mirrorlist-arch" >>/etc/pacman.conf
+Include = /etc/pacman.d/mirrorlist-arch' >>/etc/pacman.conf
pacman -Sy --noconfirm >/dev/null 2>&1
pacman-key --populate archlinux >/dev/null 2>&1
installpkg artools-base
@@ -269,7 +269,7 @@ makeuserjs() {
chown root:root /usr/local/lib/arkenfox-auto-update
chmod 755 /usr/local/lib/arkenfox-auto-update
# Trigger the update when needed via a pacman hook.
- echo "[Trigger]
+ printf '[Trigger]
Operation = Upgrade
Type = Package
Target = firefox
@@ -279,7 +279,7 @@ Target = librewolf-bin
Description=Update Arkenfox user.js
When=PostTransaction
Depends=arkenfox-user.js
-Exec=/usr/local/lib/arkenfox-auto-update" >/etc/pacman.d/hooks/arkenfox.hook
+Exec=/usr/local/lib/arkenfox-auto-update' >/etc/pacman.d/hooks/arkenfox.hook
}
installffaddons() {
@@ -491,14 +491,14 @@ cronsetup() {
pacman -Qq cronie-"$initsys" >/dev/null 2>&1 || installpkg cronie-"$initsys"
}
sleep 1
- echo "*/3 * * * * /usr/bin/mailsync
+ printf '*/3 * * * * /usr/bin/mailsync
*/15 * * * * /home/$name/.local/bin/cron/newsup
0 0 * * * /usr/bin/pacman -Sy
-0 0 * * * NVIM_APPNAME=Starter nvim --headless \"+Lazy! sync\" +qa
-0 * * * * NVIM_APPNAME=LazyVim nvim --headless \"+Lazy! sync\" +qa
-0 0 * * * NVIM_APPNAME=NvChad nvim --headless \"+Lazy! sync\" +qa
-0 * * * * /usr/bin/nvim --headless \"+Lazy! sync\" +qa
-@daily /usr/bin/trash-empty 30" | crontab -u $name -
+0 0 * * * NVIM_APPNAME=Starter nvim --headless "+Lazy! sync" +qa
+0 * * * * NVIM_APPNAME=LazyVim nvim --headless "+Lazy! sync" +qa
+0 0 * * * NVIM_APPNAME=NvChad nvim --headless "+Lazy! sync" +qa
+0 * * * * /usr/bin/nvim --headless "+Lazy! sync" +qa
+@daily /usr/bin/trash-empty 30' | crontab -u $name -
sleep 3
case "$initsys" in
"runit")
@@ -532,9 +532,8 @@ tlpsetup() {
START_CHARGE_THRESH_BAT0=20
STOP_CHARGE_THRESH_BAT0=80
START_CHARGE_THRESH_BAT1=50
-STOP_CHARGE_THRESH_BAT1=75
-USB_AUTOSUSPEND=0
-RUNTIME_PM_DRIVER_DENYLIST="nouveau nvidia"' > /etc/tlp.d/01-tlp.conf 2>/dev/null
+STOP_CHARGE_THRESH_BAT1=75' > /etc/tlp.d/01-battery.conf 2>/dev/null
+ echo 'USB_AUTOSUSPEND=0' > /etc/tlp.d/02-usb.conf 2>/dev/null
case "$initsys" in
"runit")
ln -sf /etc/runit/sv/tlp /run/runit/service/ >/dev/null 2>&1
@@ -562,8 +561,9 @@ bbswitchsetup() {
whiptail --infobox "Setting up bbswitch..." 7 50
pacman -Qq bbswitch >/dev/null 2>&1 || installpkg bbswitch
sleep 1
- echo "bbswitch" > /etc/modules-load.d/bbswitch.conf >/dev/null 2>&1
- echo "options bbswitch load_state=0 unload_state=1" > /etc/modprobe.d/bbswitch.conf >/dev/null 2>&1
+ echo 'bbswitch' > /etc/modules-load.d/bbswitch.conf >/dev/null 2>&1
+ echo 'options bbswitch load_state=0 unload_state=1' > /etc/modprobe.d/bbswitch.conf >/dev/null 2>&1
+ echo 'RUNTIME_PM_DRIVER_DENYLIST="nouveau nvidia"' > /etc/tlp.d/03-driver.conf 2>/dev/null
}
sshsetup() {