diff options
Diffstat (limited to 'scripts')
| -rwxr-xr-x | scripts/aur.sh | 9 | ||||
| -rwxr-xr-x | scripts/dev.sh | 12 | ||||
| -rwxr-xr-x | scripts/install_packages.sh | 9 | ||||
| -rwxr-xr-x | scripts/pnpm.sh | 10 | ||||
| -rwxr-xr-x | scripts/stow.sh | 2 | ||||
| -rw-r--r-- | scripts/system.sh | 24 |
6 files changed, 51 insertions, 15 deletions
diff --git a/scripts/aur.sh b/scripts/aur.sh new file mode 100755 index 0000000..81568e3 --- /dev/null +++ b/scripts/aur.sh @@ -0,0 +1,9 @@ +#/bin/bash + +# https://aur.archlinux.org/packages/yay + +GIT_PATH_YAY="/tmp/git_yay" + +git clone https://aur.archlinux.org/yay.git $GIT_PATH_YAY +cd $GIT_PATH_YAY && makepkg -si +yay -S wechat rapidraw xpadneo-dkms
\ No newline at end of file diff --git a/scripts/dev.sh b/scripts/dev.sh new file mode 100755 index 0000000..10cf726 --- /dev/null +++ b/scripts/dev.sh @@ -0,0 +1,12 @@ +#/bin/bash + +CURRENT_VERSION=24 +FNM_NODE_DIST_MIRROR=https://mirrors.nju.edu.cn/nodejs-release/ + +fnm install $CURRENT_VERSION +fnm use $CURRENT_VERSION +npm i -g pnpm +pnpm setup +pnpm i -g serve tiddlywiki @deepseek-ai/dsh + +rustup default stable
\ No newline at end of file diff --git a/scripts/install_packages.sh b/scripts/install_packages.sh index 2c648b3..d3ee0f3 100755 --- a/scripts/install_packages.sh +++ b/scripts/install_packages.sh @@ -1,8 +1,9 @@ #/bin/bash -PKG_BASE="kde-applications-meta chromium code shadowsocks-rust dae base-devel git git-delta vim uv fnm stow bind lsof eza bat bat-extras htop jq less unzip 7zip wget" -PKG_HARDWARE="usb_modeswitch solaar brightnessctl terminus-font" +PKG_BASE="kde-applications-meta chromium code shadowsocks-rust dae base-devel git git-delta sops age vim uv fnm stow fastfetch" +PKG_SYSTEM="bind lsof eza bat bat-extras htop jq less unzip 7zip wget usbutils nmap httpie" +PKG_HARDWARE="modemmanager usb_modeswitch solaar brightnessctl terminus-font fprintd libfprint" PKG_DEV="go rustup plantuml caddy docker docker-buildx docker-compose" -PKG_DESKTOP="bitwarden telegram-desktop darktable digikam obs-studio fcitx5 fcitx5-chinese-addons fcitx5-configtool fcitx5-pinyin-zhwiki" +PKG_DESKTOP="bitwarden telegram-desktop darktable digikam obs-studio blender haruna mpv fcitx5 fcitx5-chinese-addons fcitx5-configtool fcitx5-pinyin-zhwiki steam" -sudo pacman -Syu --needed $PKG_BASE $PKG_HARDWARE $PKG_DEV $PKG_DESKTOP
\ No newline at end of file +sudo pacman -Syu --needed $PKG_BASE $PKG_SYSTEM $PKG_HARDWARE $PKG_DEV $PKG_DESKTOP
\ No newline at end of file diff --git a/scripts/pnpm.sh b/scripts/pnpm.sh deleted file mode 100755 index 90259db..0000000 --- a/scripts/pnpm.sh +++ /dev/null @@ -1,10 +0,0 @@ -#/bin/bash - -CURRENT_VERSION=24 -export FNM_NODE_DIST_MIRROR=https://mirrors.nju.edu.cn/nodejs-release/ - -fnm install $CURRENT_VERSION -fnm use $CURRENT_VERSION -npm i -g pnpm -pnpm setup -pnpm i -g serve tiddlywiki @deepseek-ai/dsh
\ No newline at end of file diff --git a/scripts/stow.sh b/scripts/stow.sh index d4322e4..8bdcd5b 100755 --- a/scripts/stow.sh +++ b/scripts/stow.sh @@ -2,7 +2,7 @@ SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" DOTFILE_DIR="$(cd $SCRIPT_DIR && cd ../dotfiles && pwd)" -echo $DOTFILE_DIR +# echo $DOTFILE_DIR # add link cd $DOTFILE_DIR && stow -d $DOTFILE_DIR -t $HOME --no-folding --adopt */
\ No newline at end of file diff --git a/scripts/system.sh b/scripts/system.sh index 31864b9..fdd7e16 100644 --- a/scripts/system.sh +++ b/scripts/system.sh @@ -3,6 +3,10 @@ # 脏标记:0=不需要重建 UKI,1=需要 MKINITCPIO=0 +SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" +ETC_DIR="$(cd $SCRIPT_DIR && cd ../etc && pwd)" +echo $ETC_DIR + setup_vconsole_font() { sudo sed -i 's/^\(FONT=.*\)$/# \1\nFONT=ter-132n/' /etc/vconsole.conf @@ -111,9 +115,29 @@ routing { EOF } +setup_modem() { + sudo systemctl enable --now ModemManager.service +} + +setup_fprint() { + # --- system-local-login(KDE 锁屏/系统登录)--- + sudo sed -i '/pam_fprintd\.so/d' /etc/pam.d/system-local-login + sudo sed -i '/^auth[[:space:]]\+include[[:space:]]\+system-login/i auth sufficient pam_fprintd.so' /etc/pam.d/system-local-login + + # --- polkit-1 --- + [ -f /etc/pam.d/polkit-1 ] || sudo cp /usr/lib/pam.d/polkit-1 /etc/pam.d/polkit-1 + sudo sed -i '/pam_fprintd\.so/d' /etc/pam.d/polkit-1 + sudo sed -i '/^auth[[:space:]]\+include[[:space:]]\+system-auth/i auth sufficient pam_fprintd.so' /etc/pam.d/polkit-1 + + # --- kde-fingerprint --- + [ -f /etc/pam.d/kde-fingerprint ] || sudo cp /usr/lib/pam.d/kde-fingerprint /etc/pam.d/kde-fingerprint +} + setup_vconsole_font setup_shadowsocks setup_dae +setup_modem +setup_fprint # 统一重建一次 if [ "$MKINITCPIO" -eq 1 ]; then |
