summaryrefslogtreecommitdiff
path: root/scripts/setup-config-alpine
diff options
context:
space:
mode:
authorSebastiano Tronto <sebastiano@tronto.net>2026-05-08 23:55:30 +0200
committerSebastiano Tronto <sebastiano@tronto.net>2026-05-08 23:55:30 +0200
commitc4d0e3de7ad04114797abb14368e4a6f8da04a60 (patch)
tree5ef72a5dfb5f6b1b15c1c3ac3e2e876bb9398ed2 /scripts/setup-config-alpine
parent453436ee53cd9935473cf1944dd072281d69a99f (diff)
downloadconfig-c4d0e3de7ad04114797abb14368e4a6f8da04a60.tar.gz
config-c4d0e3de7ad04114797abb14368e4a6f8da04a60.zip
Updates from alpine
Diffstat (limited to 'scripts/setup-config-alpine')
-rwxr-xr-xscripts/setup-config-alpine36
1 files changed, 34 insertions, 2 deletions
diff --git a/scripts/setup-config-alpine b/scripts/setup-config-alpine
index a9a63b9..9db2c35 100755
--- a/scripts/setup-config-alpine
+++ b/scripts/setup-config-alpine
@@ -42,11 +42,33 @@ for i in dmenu dwm st; do
42 cd $i 42 cd $i
43 cp ~/.config/$i/config.h ./config.h 43 cp ~/.config/$i/config.h ./config.h
44 make && doas make install 44 make && doas make install
45 cd ..
45done 46done
46cd 47cd
47 48
49tmp_xorg_file=$(mktemp)
50cat <<EOF > $tmp_xorg_file
51Section "InputClass"
52 Identifier "libinput touchpad catchall"
53 MatchIsTouchpad "on"
54 MatchDevicePath "/dev/input/event*"
55 Driver "libinput"
56 Option "Tapping" "on"
57EndSection
58EOF
59
60doas mkdir -p /etc/X11/xorg.conf.d
61doas mv $tmp_xorg_file /etc/X11/xorg.conf.d/40-libinput.conf
62
63tmp_doas_file=$(mktemp)
64cp /etc/doas.d/20-wheel.conf $tmp_doas_file
65for c in poweroff reboot; do
66 printf 'permit nopass :wheel as root cmd %s\n' "$c" >> $tmp_doas_file
67done
68doas cp $tmp_doas_file /etc/doas.d/20-wheel.conf
69
48 70
49print_log "Swapping Escape and Caps Lock in console" 71print_log "Configuring the console"
50 72
51tmp_kmap_file=$(mktemp) 73tmp_kmap_file=$(mktemp)
52tmp_loadkmap_file=$(mktemp) 74tmp_loadkmap_file=$(mktemp)
@@ -58,11 +80,18 @@ doas mv us-swapesc.bmap.gz /etc/keymap/
58printf 'KEYMAP=/etc/keymap/us-swapesc.bmap.gz\n' > $tmp_loadkmap_file 80printf 'KEYMAP=/etc/keymap/us-swapesc.bmap.gz\n' > $tmp_loadkmap_file
59doas mv $tmp_loadkmap_file /etc/conf.d/loadkmap 81doas mv $tmp_loadkmap_file /etc/conf.d/loadkmap
60 82
83tmp_blacklist_file=$(mktemp)
84cp /etc/modprobe.d/blacklist.conf $tmp_blacklist_file
85printf '\n# Disable PC speaker for real\nblacklist pcspkr\n' >> $tmp_blacklist_file
86doas cp $tmp_blacklist_file /etc/modprobe.d/blacklist.conf
87
61 88
62print_log "Setting up ACPI (see https://wiki.alpinelinux.org/wiki/Power_management)" 89print_log "Setting up ACPI (see https://wiki.alpinelinux.org/wiki/Power_management)"
63 90
64tmp_acpi_file=$(mktemp) 91tmp_acpi_file=$(mktemp)
65cat <<EOF > $tmp_acpi_file 92cat <<EOF > $tmp_acpi_file
93#!/bin/sh
94
66xhci="$(grep XHCI /proc/acpi/wakeup | awk '{print $3}')" 95xhci="$(grep XHCI /proc/acpi/wakeup | awk '{print $3}')"
67[ "$xhci" == '*enabled' ] && echo XHCI > /proc/acpi/wakeup 96[ "$xhci" == '*enabled' ] && echo XHCI > /proc/acpi/wakeup
68echo mem > /sys/power/state 97echo mem > /sys/power/state
@@ -74,6 +103,8 @@ for dir in LID PWRF; do
74 doas chmod +x /etc/acpi/$dir/00000080 103 doas chmod +x /etc/acpi/$dir/00000080
75done 104done
76 105
106doas rc-update add acpid
107
77 108
78print_log "Setting up WiFi (iwd) (see https://wiki.alpinelinux.org/wiki/Iwd)" 109print_log "Setting up WiFi (iwd) (see https://wiki.alpinelinux.org/wiki/Iwd)"
79 110
@@ -130,6 +161,7 @@ echo " 1c. github"
130echo " 3. Share folders in SyncThing, including but not limited to:" 161echo " 3. Share folders in SyncThing, including but not limited to:"
131echo " 2a. box with Artemisia, pizoc and phone" 162echo " 2a. box with Artemisia, pizoc and phone"
132echo " 2b. file-drop with phone" 163echo " 2b. file-drop with phone"
133echo " 4. Copy your mailbox.org password to .ssh/mailbox.org" 164echo " 4. Copy your mailbox.org password to .ssh/mailbox.org."
165echo " 5. Log into Firefox account and set up extensions, if needed."
134echo "" 166echo ""
135echo "Enjoy!" 167echo "Enjoy!"

Generated with cgit - Back to sebastiano.tronto.net