mirror of
https://github.com/rwinkhart/artix-install-script.git
synced 2026-09-05 16:37:17 -04:00
Removed dependencies on cpupower, as the functionality it was used for can be easily substituted
This commit is contained in:
+5
-6
@@ -54,10 +54,7 @@ $userpassword
|
|||||||
|
|
||||||
# opendoas configuration
|
# opendoas configuration
|
||||||
echo "permit persist keepenv $username as root
|
echo "permit persist keepenv $username as root
|
||||||
permit nopass $username as root cmd /usr/bin/cpupower args frequency-set -g powersave
|
permit nopass $username as root cmd /usr/local/bin/powerset.sh
|
||||||
permit nopass $username as root cmd /usr/bin/cpupower args frequency-set -g performance
|
|
||||||
permit nopass $username as root cmd /usr/bin/cpupower args frequency-set -g schedutil
|
|
||||||
permit nopass $username as root cmd /usr/bin/cpupower args frequency-set -g ondemand
|
|
||||||
permit nopass $username as root cmd /usr/bin/poweroff
|
permit nopass $username as root cmd /usr/bin/poweroff
|
||||||
permit nopass $username as root cmd /usr/bin/reboot
|
permit nopass $username as root cmd /usr/bin/reboot
|
||||||
" > /etc/doas.conf
|
" > /etc/doas.conf
|
||||||
@@ -117,12 +114,14 @@ fi
|
|||||||
if [ "$formfactor" -lt 4 ]; then
|
if [ "$formfactor" -lt 4 ]; then
|
||||||
pacman -S xorg pipewire pipewire-pulse pipewire-jack pipewire-alsa wireplumber libpulse plasma-desktop lightdm-openrc lightdm-gtk-greeter kscreen kdeplasma-addons spectacle gwenview plasma-nm plasma-pa breeze-gtk kde-gtk-config kio-extras khotkeys kwalletmanager pcmanfm-qt yakuake ark kate micro bluedevil bluez-openrc --needed --noconfirm
|
pacman -S xorg pipewire pipewire-pulse pipewire-jack pipewire-alsa wireplumber libpulse plasma-desktop lightdm-openrc lightdm-gtk-greeter kscreen kdeplasma-addons spectacle gwenview plasma-nm plasma-pa breeze-gtk kde-gtk-config kio-extras khotkeys kwalletmanager pcmanfm-qt yakuake ark kate micro bluedevil bluez-openrc --needed --noconfirm
|
||||||
rc-update add lightdm
|
rc-update add lightdm
|
||||||
|
curl https://raw.githubusercontent.com/rwinkhart/artix-install-script/main/programs/powerset/powerset.sh -o /usr/local/bin/powerset.sh
|
||||||
curl https://raw.githubusercontent.com/rwinkhart/artix-install-script/main/programs/xcaffeine/xcaffeine.py -o /usr/bin/xcaffeine.py
|
curl https://raw.githubusercontent.com/rwinkhart/artix-install-script/main/programs/xcaffeine/xcaffeine.py -o /usr/bin/xcaffeine.py
|
||||||
mkdir -p /home/"$username"/.config/autostart/
|
mkdir -p /home/"$username"/.config/autostart/
|
||||||
curl https://raw.githubusercontent.com/rwinkhart/artix-install-script/main/programs/xcaffeine/xcaffeine.desktop -o /home/"$username"/.config/autostart/xcaffeine.desktop
|
curl https://raw.githubusercontent.com/rwinkhart/artix-install-script/main/programs/xcaffeine/xcaffeine.desktop -o /home/"$username"/.config/autostart/xcaffeine.desktop
|
||||||
curl https://raw.githubusercontent.com/rwinkhart/artix-install-script/main/config-files/pipewire-start.sh -o /usr/bin/pipewire-start.sh
|
curl https://raw.githubusercontent.com/rwinkhart/artix-install-script/main/config-files/pipewire-start.sh -o /usr/bin/pipewire-start.sh
|
||||||
curl https://raw.githubusercontent.com/rwinkhart/artix-install-script/main/config-files/pipewire.desktop -o /home/"$username"/.config/autostart/pipewire.desktop
|
curl https://raw.githubusercontent.com/rwinkhart/artix-install-script/main/config-files/pipewire.desktop -o /home/"$username"/.config/autostart/pipewire.desktop
|
||||||
chmod 755 /usr/bin/xcaffeine.py /usr/bin/pipewire-start.sh
|
chmod 755 /usr/local/bin/powerset.sh /usr/bin/xcaffeine.py /usr/bin/pipewire-start.sh
|
||||||
|
chown -R root /usr/local/bin
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# ssh configuration
|
# ssh configuration
|
||||||
@@ -135,7 +134,7 @@ chown -R "$username" /home/"$username"/.ssh
|
|||||||
echo -e ""$username" soft memlock 64\n"$username" hard memlock 2097152\n"$username" hard nofile 524288\n# End of file" > /etc/security/limits.conf # increase memlock and add support for esync
|
echo -e ""$username" soft memlock 64\n"$username" hard memlock 2097152\n"$username" hard nofile 524288\n# End of file" > /etc/security/limits.conf # increase memlock and add support for esync
|
||||||
mkdir -p /home/"$username"/.gnupg
|
mkdir -p /home/"$username"/.gnupg
|
||||||
echo 'pinentry-program /usr/bin/pinentry-tty' > /home/"$username"/.gnupg/gpg-agent.conf # forces gpg prompts to use terminal input
|
echo 'pinentry-program /usr/bin/pinentry-tty' > /home/"$username"/.gnupg/gpg-agent.conf # forces gpg prompts to use terminal input
|
||||||
pacman -S neofetch htop cpupower --needed --noconfirm
|
pacman -S neofetch htop --needed --noconfirm
|
||||||
|
|
||||||
# setting home directory permissions
|
# setting home directory permissions
|
||||||
chmod -R 700 /home
|
chmod -R 700 /home
|
||||||
|
|||||||
+4
-4
@@ -7,10 +7,10 @@
|
|||||||
|
|
||||||
alias ls='ls --color=auto'
|
alias ls='ls --color=auto'
|
||||||
alias orphans='doas pacman -Rcns $(pacman -Qqdt)'
|
alias orphans='doas pacman -Rcns $(pacman -Qqdt)'
|
||||||
alias powersave='doas /usr/bin/cpupower frequency-set -g powersave; cat /sys/devices/system/cpu/cpu*/cpufreq/scaling_governor'
|
alias powersave='doas /usr/local/bin/powerset.sh powersave'
|
||||||
alias performance='doas /usr/bin/cpupower frequency-set -g performance; cat /sys/devices/system/cpu/cpu*/cpufreq/scaling_governor'
|
alias performance='doas /usr/local/bin/powerset.sh performance'
|
||||||
alias schedutil='doas /usr/bin/cpupower frequency-set -g schedutil; cat /sys/devices/system/cpu/cpu*/cpufreq/scaling_governor'
|
alias schedutil='doas /usr/local/bin/powerset.sh schedutil'
|
||||||
alias ondemand='doas /usr/bin/cpupower frequency-set -g ondemand; cat /sys/devices/system/cpu/cpu*/cpufreq/scaling_governor'
|
alias ondemand='doas /usr/local/bin/powerset.sh ondemand'
|
||||||
alias poweroff='doas /usr/bin/poweroff'
|
alias poweroff='doas /usr/bin/poweroff'
|
||||||
alias reboot='doas /usr/bin/reboot'
|
alias reboot='doas /usr/bin/reboot'
|
||||||
|
|
||||||
|
|||||||
Executable
+5
@@ -0,0 +1,5 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
for CPU in $(seq 0 $(($(nproc) - 1))); do
|
||||||
|
echo $1 > /sys/devices/system/cpu/cpu"$CPU"/cpufreq/scaling_governor
|
||||||
|
cat /sys/devices/system/cpu/cpu"$CPU"/cpufreq/scaling_governor
|
||||||
|
done
|
||||||
Reference in New Issue
Block a user