mirror of
https://github.com/basecamp/omarchy.git
synced 2026-02-17 15:25:37 +00:00
Compare commits
1 Commits
v2.1.0
...
revert-108
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
31b946c751 |
@@ -15,7 +15,7 @@ while true; do
|
|||||||
"$effect" &
|
"$effect" &
|
||||||
|
|
||||||
while pgrep -x tte >/dev/null; do
|
while pgrep -x tte >/dev/null; do
|
||||||
if read -n 1 -t 3; then
|
if read -n 1 -t 2; then
|
||||||
exit_screensaver
|
exit_screensaver
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|||||||
@@ -75,7 +75,7 @@ laravel)
|
|||||||
symfony)
|
symfony)
|
||||||
echo -e "Installing PHP and Symfony...\n"
|
echo -e "Installing PHP and Symfony...\n"
|
||||||
install_php
|
install_php
|
||||||
omarchy-pkg-add symfony-cli
|
yay -S symfony-cli --noconfirm
|
||||||
echo -e "\nYou can now run: symfony new --webapp myproject"
|
echo -e "\nYou can now run: symfony new --webapp myproject"
|
||||||
;;
|
;;
|
||||||
python)
|
python)
|
||||||
|
|||||||
@@ -1,7 +1,9 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
echo "Installing all dependencies..."
|
# FIXME: Should not use AUR dependencies when we can avoid it
|
||||||
omarchy-pkg-add dropbox dropbox-cli libappindicator-gtk3 python-gpgme nautilus-dropbox
|
echo "Installing all dependencies [from AUR]..."
|
||||||
|
yay -S --noconfirm --needed \
|
||||||
|
dropbox dropbox-cli libappindicator-gtk3 python-gpgme nautilus-dropbox
|
||||||
|
|
||||||
echo "Starting Dropbox..."
|
echo "Starting Dropbox..."
|
||||||
uwsm app -- dropbox-cli start &>/dev/null &
|
uwsm app -- dropbox-cli start &>/dev/null &
|
||||||
|
|||||||
@@ -200,18 +200,17 @@ show_install_menu() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
show_install_service_menu() {
|
show_install_service_menu() {
|
||||||
case $(menu "Install" " Dropbox\n Tailscale\n Bitwarden") in
|
case $(menu "Install" " Dropbox\n Tailscale") in
|
||||||
*Dropbox*) present_terminal omarchy-install-dropbox ;;
|
*Dropbox*) present_terminal omarchy-install-dropbox ;;
|
||||||
*Tailscale*) present_terminal omarchy-install-tailscale ;;
|
*Tailscale*) present_terminal omarchy-install-tailscale ;;
|
||||||
*Bitwarden*) install_and_launch "Bitwarden" "bitwarden bitwarden-cli" "bitwarden" ;;
|
|
||||||
*) show_install_menu ;;
|
*) show_install_menu ;;
|
||||||
esac
|
esac
|
||||||
}
|
}
|
||||||
|
|
||||||
show_install_editor_menu() {
|
show_install_editor_menu() {
|
||||||
case $(menu "Install" " VSCode\n Cursor\n Zed\n Sublime Text\n Helix\n Emacs") in
|
case $(menu "Install" " VSCode\n Cursor [AUR]\n Zed\n Sublime Text\n Helix\n Emacs") in
|
||||||
*VSCode*) install_and_launch "VSCode" "visual-studio-code-bin" "code" ;;
|
*VSCode*) install_and_launch "VSCode" "visual-studio-code-bin" "code" ;;
|
||||||
*Cursor*) install_and_launch "Cursor" "cursor-bin" "cursor" ;;
|
*Cursor*) aur_install_and_launch "Cursor" "cursor-bin" "cursor" ;;
|
||||||
*Zed*) install_and_launch "Zed" "zed" "dev.zed.Zed" ;;
|
*Zed*) install_and_launch "Zed" "zed" "dev.zed.Zed" ;;
|
||||||
*Sublime*) install_and_launch "Sublime Text" "sublime-text-4" "sublime_text" ;;
|
*Sublime*) install_and_launch "Sublime Text" "sublime-text-4" "sublime_text" ;;
|
||||||
*Helix*) install "Helix" "helix" ;;
|
*Helix*) install "Helix" "helix" ;;
|
||||||
@@ -227,14 +226,14 @@ show_install_ai_menu() {
|
|||||||
echo ollama
|
echo ollama
|
||||||
)
|
)
|
||||||
|
|
||||||
case $(menu "Install" " Claude Code\n Gemini\n OpenAI Codex [AUR]\n LM Studio\n Ollama\n Crush\n opencode") in
|
case $(menu "Install" " Claude Code [AUR]\n Gemini\n OpenAI Codex [AUR]\n LM Studio [AUR]\n Ollama\n Crush [AUR]\n opencode [AUR]") in
|
||||||
*Claude*) install "Claude Code" "claude-code" ;;
|
*Claude*) aur_install "Claude Code" "claude-code" ;;
|
||||||
*OpenAI*) aur_install "OpenAI Codex" "openai-codex-bin" ;;
|
*OpenAI*) aur_install "OpenAI Codex" "openai-codex-bin" ;;
|
||||||
*Gemini*) install "Gemini" "gemini-cli" ;;
|
*Gemini*) install "Gemini" "gemini-cli" ;;
|
||||||
*Studio*) install "LM Studio" "lmstudio" ;;
|
*Studio*) aur_install "LM Studio" "lmstudio" ;;
|
||||||
*Ollama*) install "Ollama" $ollama_pkg ;;
|
*Ollama*) install "Ollama" $ollama_pkg ;;
|
||||||
*Crush*) install "Crush" "crush-bin" ;;
|
*Crush*) aur_install "Crush" "crush-bin" ;;
|
||||||
*opencode*) install "opencode" "opencode-bin" ;;
|
*opencode*) aur_install "opencode" "opencode-bin" ;;
|
||||||
*) show_install_menu ;;
|
*) show_install_menu ;;
|
||||||
esac
|
esac
|
||||||
}
|
}
|
||||||
@@ -324,12 +323,11 @@ show_remove_menu() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
show_update_menu() {
|
show_update_menu() {
|
||||||
case $(menu "Update" " Omarchy\n Config\n Themes\n Process\n Hardware\n Timezone") in
|
case $(menu "Update" " Omarchy\n Config\n Themes\n Process\n Timezone") in
|
||||||
*Omarchy*) present_terminal omarchy-update ;;
|
*Omarchy*) present_terminal omarchy-update ;;
|
||||||
*Config*) show_update_config_menu ;;
|
*Config*) show_update_config_menu ;;
|
||||||
*Themes*) present_terminal omarchy-theme-update ;;
|
*Themes*) present_terminal omarchy-theme-update ;;
|
||||||
*Process*) show_update_process_menu ;;
|
*Process*) show_update_process_menu ;;
|
||||||
*Hardware*) show_update_hardware_menu ;;
|
|
||||||
*Timezone*) omarchy-cmd-tzupdate ;;
|
*Timezone*) omarchy-cmd-tzupdate ;;
|
||||||
*) show_main_menu ;;
|
*) show_main_menu ;;
|
||||||
esac
|
esac
|
||||||
@@ -342,7 +340,7 @@ show_update_process_menu() {
|
|||||||
*Swayosd*) omarchy-restart-swayosd ;;
|
*Swayosd*) omarchy-restart-swayosd ;;
|
||||||
*Walker*) omarchy-restart-walker ;;
|
*Walker*) omarchy-restart-walker ;;
|
||||||
*Waybar*) omarchy-restart-waybar ;;
|
*Waybar*) omarchy-restart-waybar ;;
|
||||||
*) show_update_menu ;;
|
*) show_main_menu ;;
|
||||||
esac
|
esac
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -356,15 +354,7 @@ show_update_config_menu() {
|
|||||||
*Swayosd*) present_terminal omarchy-refresh-swayosd ;;
|
*Swayosd*) present_terminal omarchy-refresh-swayosd ;;
|
||||||
*Walker*) present_terminal omarchy-refresh-walker ;;
|
*Walker*) present_terminal omarchy-refresh-walker ;;
|
||||||
*Waybar*) present_terminal omarchy-refresh-waybar ;;
|
*Waybar*) present_terminal omarchy-refresh-waybar ;;
|
||||||
*) show_update_menu ;;
|
*) show_main_menu ;;
|
||||||
esac
|
|
||||||
}
|
|
||||||
|
|
||||||
show_update_hardware_menu() {
|
|
||||||
case $(menu "Restart" " Wi-Fi\n Bluetooth") in
|
|
||||||
*Wi-Fi*) present_terminal omarchy-restart-wifi ;;
|
|
||||||
*Bluetooth*) present_terminal omarchy-restart-bluetooth ;;
|
|
||||||
*) show_update_menu ;;
|
|
||||||
esac
|
esac
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -1,9 +1,7 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
for pkg in "$@"; do
|
for pkg in "$@"; do
|
||||||
if ! pacman -Q "$pkg" &>/dev/null; then
|
pacman -Q "$pkg" &>/dev/null
|
||||||
sudo pacman -S --noconfirm "$pkg" || exit 1
|
|
||||||
fi
|
|
||||||
done
|
done
|
||||||
|
|
||||||
exit 0
|
exit 0
|
||||||
|
|||||||
@@ -1,3 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
|
|
||||||
sudo cp -f ~/.local/share/omarchy/default/pacman/mirrorlist /etc/pacman.d/mirrorlist
|
|
||||||
@@ -1,4 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
|
|
||||||
rfkill unblock bluetooth
|
|
||||||
rfkill list bluetooth
|
|
||||||
@@ -1,4 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
|
|
||||||
rfkill unblock wifi
|
|
||||||
rfkill list wifi
|
|
||||||
@@ -1,25 +1,18 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
# Used in package emergencies if a bad package has been pushed and we can't revoke.
|
|
||||||
# Requires manually installing the good package using sudo pacman -U <url>
|
|
||||||
ignored_packages=$(omarchy-pkg-ignored)
|
|
||||||
|
|
||||||
echo -e "\e[32m\nUpdate system packages\e[0m"
|
echo -e "\e[32m\nUpdate system packages\e[0m"
|
||||||
[[ -n $ignored_packages ]] && echo "sudo pacman -Syu --noconfirm --ignore \"$ignored_packages\""
|
echo "sudo pacman -Syu --noconfirm --ignore \"$(omarchy-pkg-ignored)\""
|
||||||
sudo pacman -Syu --noconfirm --ignore "$ignored_packages"
|
sudo pacman -Syu --noconfirm --ignore "$(omarchy-pkg-ignored)"
|
||||||
|
|
||||||
# Update AUR packages if any are installed
|
|
||||||
if pacman -Qem >/dev/null; then
|
|
||||||
if omarchy-pkg-aur-accessible; then
|
if omarchy-pkg-aur-accessible; then
|
||||||
echo -e "\e[32m\nUpdate AUR packages\e[0m"
|
echo -e "\e[32m\nUpdate AUR packages\e[0m"
|
||||||
[[ -n $ignored_packages ]] && echo "yay -Sua --noconfirm --ignore \"$ignored_packages\""
|
echo "yay -Sua --noconfirm --ignore \"$(omarchy-pkg-ignored)\""
|
||||||
yay -Sua --noconfirm --ignore "$ignored_packages"
|
yay -Sua --noconfirm --ignore "$(omarchy-pkg-ignored)"
|
||||||
echo
|
echo
|
||||||
else
|
else
|
||||||
echo -e "\e[31m\nAUR is unavailable (so skipping updates)\e[0m"
|
echo -e "\e[31m\nAUR is unavailable (so skipping updates)\e[0m"
|
||||||
echo
|
echo
|
||||||
fi
|
fi
|
||||||
fi
|
|
||||||
|
|
||||||
orphans=$(pacman -Qtdq)
|
orphans=$(pacman -Qtdq)
|
||||||
if [[ -n $orphans ]]; then
|
if [[ -n $orphans ]]; then
|
||||||
|
|||||||
@@ -1,12 +1,10 @@
|
|||||||
# App-specific tweaks
|
# App-specific tweaks
|
||||||
source = ~/.local/share/omarchy/default/hypr/apps/1password.conf
|
source = ~/.local/share/omarchy/default/hypr/apps/pip.conf
|
||||||
source = ~/.local/share/omarchy/default/hypr/apps/bitwarden.conf
|
|
||||||
source = ~/.local/share/omarchy/default/hypr/apps/browser.conf
|
source = ~/.local/share/omarchy/default/hypr/apps/browser.conf
|
||||||
source = ~/.local/share/omarchy/default/hypr/apps/hyprshot.conf
|
source = ~/.local/share/omarchy/default/hypr/apps/hyprshot.conf
|
||||||
source = ~/.local/share/omarchy/default/hypr/apps/jetbrains.conf
|
|
||||||
source = ~/.local/share/omarchy/default/hypr/apps/pip.conf
|
|
||||||
source = ~/.local/share/omarchy/default/hypr/apps/qemu.conf
|
|
||||||
source = ~/.local/share/omarchy/default/hypr/apps/retroarch.conf
|
source = ~/.local/share/omarchy/default/hypr/apps/retroarch.conf
|
||||||
source = ~/.local/share/omarchy/default/hypr/apps/steam.conf
|
source = ~/.local/share/omarchy/default/hypr/apps/steam.conf
|
||||||
source = ~/.local/share/omarchy/default/hypr/apps/system.conf
|
source = ~/.local/share/omarchy/default/hypr/apps/system.conf
|
||||||
source = ~/.local/share/omarchy/default/hypr/apps/walker.conf
|
source = ~/.local/share/omarchy/default/hypr/apps/walker.conf
|
||||||
|
source = ~/.local/share/omarchy/default/hypr/apps/1password.conf
|
||||||
|
source = ~/.local/share/omarchy/default/hypr/apps/jetbrains.conf
|
||||||
|
|||||||
@@ -1 +0,0 @@
|
|||||||
windowrule = noscreenshare, class:^(Bitwarden)$
|
|
||||||
@@ -1 +0,0 @@
|
|||||||
windowrule = opacity 1 1, class:qemu
|
|
||||||
@@ -1,4 +1,3 @@
|
|||||||
windowrule = fullscreen, class:com.libretro.RetroArch
|
windowrule = fullscreen, class:com.libretro.RetroArch
|
||||||
windowrule = opacity 1 1, class:com.libretro.RetroArch
|
windowrule = opacity 1 1, class:com.libretro.RetroArch
|
||||||
windowrule = idleinhibit fullscreen, class:com.libretro.RetroArch
|
|
||||||
|
|
||||||
|
|||||||
@@ -4,4 +4,3 @@ windowrule = center, class:steam, title:Steam
|
|||||||
windowrule = opacity 1 1, class:steam
|
windowrule = opacity 1 1, class:steam
|
||||||
windowrule = size 1100 700, class:steam, title:Steam
|
windowrule = size 1100 700, class:steam, title:Steam
|
||||||
windowrule = size 460 800, class:steam, title:Friends List
|
windowrule = size 460 800, class:steam, title:Friends List
|
||||||
windowrule = idleinhibit fullscreen, class:steam
|
|
||||||
|
|||||||
@@ -7,5 +7,8 @@ windowrule = opacity 0.97 0.9, class:.*
|
|||||||
# Fix some dragging issues with XWayland
|
# Fix some dragging issues with XWayland
|
||||||
windowrule = nofocus,class:^$,title:^$,xwayland:1,floating:1,fullscreen:0,pinned:0
|
windowrule = nofocus,class:^$,title:^$,xwayland:1,floating:1,fullscreen:0,pinned:0
|
||||||
|
|
||||||
|
# Prevent screensaver/lock while running apps fullscreen
|
||||||
|
windowrule = idleinhibit fullscreen, class:.*
|
||||||
|
|
||||||
# App-specific tweaks
|
# App-specific tweaks
|
||||||
source = ~/.local/share/omarchy/default/hypr/apps.conf
|
source = ~/.local/share/omarchy/default/hypr/apps.conf
|
||||||
|
|||||||
@@ -1,3 +0,0 @@
|
|||||||
Server = https://mirror.omarchy.org/$repo/os/$arch
|
|
||||||
Server = https://mirror.rackspace.com/archlinux/$repo/os/$arch
|
|
||||||
Server = https://geo.mirror.pkgbuild.com/$repo/os/$arch
|
|
||||||
@@ -1,30 +0,0 @@
|
|||||||
# See the pacman.conf(5) manpage for option and repository directives
|
|
||||||
|
|
||||||
[options]
|
|
||||||
Color
|
|
||||||
ILoveCandy
|
|
||||||
VerbosePkgLists
|
|
||||||
HoldPkg = pacman glibc
|
|
||||||
Architecture = auto
|
|
||||||
CheckSpace
|
|
||||||
ParallelDownloads = 5
|
|
||||||
DownloadUser = alpm
|
|
||||||
|
|
||||||
# By default, pacman accepts packages signed by keys that its local keyring
|
|
||||||
# trusts (see pacman-key and its man page), as well as unsigned packages.
|
|
||||||
SigLevel = Required DatabaseOptional
|
|
||||||
LocalFileSigLevel = Optional
|
|
||||||
|
|
||||||
# pacman searches repositories in the order defined here
|
|
||||||
[core]
|
|
||||||
Include = /etc/pacman.d/mirrorlist
|
|
||||||
|
|
||||||
[extra]
|
|
||||||
Include = /etc/pacman.d/mirrorlist
|
|
||||||
|
|
||||||
# [multilib]
|
|
||||||
# Include = /etc/pacman.d/mirrorlist
|
|
||||||
|
|
||||||
[omarchy]
|
|
||||||
SigLevel = Optional TrustAll
|
|
||||||
Server = https://pkgs.omarchy.org/$arch
|
|
||||||
25
install.sh
25
install.sh
@@ -3,21 +3,21 @@
|
|||||||
# Exit immediately if a command exits with a non-zero status
|
# Exit immediately if a command exits with a non-zero status
|
||||||
set -eE
|
set -eE
|
||||||
|
|
||||||
OMARCHY_PATH="$HOME/.local/share/omarchy"
|
export PATH="$HOME/.local/share/omarchy/bin:$PATH"
|
||||||
OMARCHY_INSTALL="$OMARCHY_PATH/install"
|
OMARCHY_INSTALL=~/.local/share/omarchy/install
|
||||||
export PATH="$OMARCHY_PATH/bin:$PATH"
|
|
||||||
|
|
||||||
# Preparation
|
# Preparation
|
||||||
source $OMARCHY_INSTALL/preflight/show-env.sh
|
source $OMARCHY_INSTALL/preflight/show-env.sh
|
||||||
source $OMARCHY_INSTALL/preflight/trap-errors.sh
|
source $OMARCHY_INSTALL/preflight/trap-errors.sh
|
||||||
source $OMARCHY_INSTALL/preflight/guard.sh
|
source $OMARCHY_INSTALL/preflight/guard.sh
|
||||||
source $OMARCHY_INSTALL/preflight/chroot.sh
|
source $OMARCHY_INSTALL/preflight/chroot.sh
|
||||||
source $OMARCHY_INSTALL/preflight/pacman.sh
|
source $OMARCHY_INSTALL/preflight/repositories.sh
|
||||||
source $OMARCHY_INSTALL/preflight/migrations.sh
|
source $OMARCHY_INSTALL/preflight/migrations.sh
|
||||||
source $OMARCHY_INSTALL/preflight/first-run-mode.sh
|
source $OMARCHY_INSTALL/preflight/first-run-mode.sh
|
||||||
|
|
||||||
# Packaging
|
# Packaging
|
||||||
source $OMARCHY_INSTALL/packages.sh
|
source $OMARCHY_INSTALL/packages.sh
|
||||||
|
source $OMARCHY_INSTALL/packaging/asdcontrol.sh
|
||||||
source $OMARCHY_INSTALL/packaging/fonts.sh
|
source $OMARCHY_INSTALL/packaging/fonts.sh
|
||||||
source $OMARCHY_INSTALL/packaging/lazyvim.sh
|
source $OMARCHY_INSTALL/packaging/lazyvim.sh
|
||||||
source $OMARCHY_INSTALL/packaging/webapps.sh
|
source $OMARCHY_INSTALL/packaging/webapps.sh
|
||||||
@@ -39,7 +39,6 @@ source $OMARCHY_INSTALL/config/mise-ruby.sh
|
|||||||
source $OMARCHY_INSTALL/config/docker.sh
|
source $OMARCHY_INSTALL/config/docker.sh
|
||||||
source $OMARCHY_INSTALL/config/mimetypes.sh
|
source $OMARCHY_INSTALL/config/mimetypes.sh
|
||||||
source $OMARCHY_INSTALL/config/localdb.sh
|
source $OMARCHY_INSTALL/config/localdb.sh
|
||||||
source $OMARCHY_INSTALL/config/sudoless-asdcontrol.sh
|
|
||||||
source $OMARCHY_INSTALL/config/hardware/network.sh
|
source $OMARCHY_INSTALL/config/hardware/network.sh
|
||||||
source $OMARCHY_INSTALL/config/hardware/fix-fkeys.sh
|
source $OMARCHY_INSTALL/config/hardware/fix-fkeys.sh
|
||||||
source $OMARCHY_INSTALL/config/hardware/bluetooth.sh
|
source $OMARCHY_INSTALL/config/hardware/bluetooth.sh
|
||||||
@@ -47,12 +46,22 @@ source $OMARCHY_INSTALL/config/hardware/printer.sh
|
|||||||
source $OMARCHY_INSTALL/config/hardware/usb-autosuspend.sh
|
source $OMARCHY_INSTALL/config/hardware/usb-autosuspend.sh
|
||||||
source $OMARCHY_INSTALL/config/hardware/ignore-power-button.sh
|
source $OMARCHY_INSTALL/config/hardware/ignore-power-button.sh
|
||||||
source $OMARCHY_INSTALL/config/hardware/nvidia.sh
|
source $OMARCHY_INSTALL/config/hardware/nvidia.sh
|
||||||
source $OMARCHY_INSTALL/config/hardware/fix-f13-amd-audio-input.sh
|
|
||||||
|
|
||||||
# Login
|
# Login
|
||||||
source $OMARCHY_INSTALL/login/plymouth.sh
|
source $OMARCHY_INSTALL/login/plymouth.sh
|
||||||
source $OMARCHY_INSTALL/login/limine-snapper.sh
|
source $OMARCHY_INSTALL/login/limine-snapper.sh
|
||||||
source $OMARCHY_INSTALL/login/alt-bootloaders.sh
|
source $OMARCHY_INSTALL/login/alt-bootloaders.sh
|
||||||
|
|
||||||
# Finishing
|
# Reboot
|
||||||
source $OMARCHY_INSTALL/reboot.sh
|
clear
|
||||||
|
tte -i ~/.local/share/omarchy/logo.txt --frame-rate 920 laseretch
|
||||||
|
echo
|
||||||
|
echo "You're done! So we're ready to reboot now..." | tte --frame-rate 640 wipe
|
||||||
|
|
||||||
|
if sudo test -f /etc/sudoers.d/99-omarchy-installer; then
|
||||||
|
sudo rm -f /etc/sudoers.d/99-omarchy-installer &>/dev/null
|
||||||
|
echo -e "\nRemember to remove USB installer!\n\n"
|
||||||
|
fi
|
||||||
|
|
||||||
|
sleep 5
|
||||||
|
reboot
|
||||||
|
|||||||
@@ -1,7 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
|
|
||||||
AMD_AUDIO_CARD=$(pactl list cards | grep -B20 "Family 17h/19h" | grep "Name: " | awk '{print $2}')
|
|
||||||
|
|
||||||
if [[ -n $AMD_AUDIO_CARD ]]; then
|
|
||||||
pactl set-card-profile "$AMD_AUDIO_CARD" "HiFi (Mic1, Mic2, Speaker)" 2>/dev/null || true
|
|
||||||
fi
|
|
||||||
@@ -1,7 +1,11 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
# Ensure iwd service will be started
|
# Install iwd explicitly if it wasn't included in archinstall
|
||||||
|
# This can happen if archinstall used ethernet
|
||||||
|
if ! command -v iwctl &>/dev/null; then
|
||||||
|
sudo pacman -S --noconfirm --needed iwd
|
||||||
sudo systemctl enable iwd.service
|
sudo systemctl enable iwd.service
|
||||||
|
fi
|
||||||
|
|
||||||
# Prevent systemd-networkd-wait-online timeout on boot
|
# Prevent systemd-networkd-wait-online timeout on boot
|
||||||
sudo systemctl disable systemd-networkd-wait-online.service
|
sudo systemctl disable systemd-networkd-wait-online.service
|
||||||
|
|||||||
@@ -1,5 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
|
|
||||||
# Setup sudo-less controls for controlling brightness on Apple Displays
|
|
||||||
echo "$USER ALL=(ALL) NOPASSWD: /usr/local/bin/asdcontrol" | sudo tee /etc/sudoers.d/asdcontrol
|
|
||||||
sudo chmod 440 /etc/sudoers.d/asdcontrol
|
|
||||||
@@ -1,9 +1,6 @@
|
|||||||
#!/bin/bash
|
|
||||||
|
|
||||||
sudo pacman -S --noconfirm --needed \
|
sudo pacman -S --noconfirm --needed \
|
||||||
1password-beta \
|
1password-beta \
|
||||||
1password-cli \
|
1password-cli \
|
||||||
asdcontrol-git \
|
|
||||||
alacritty \
|
alacritty \
|
||||||
avahi \
|
avahi \
|
||||||
bash-completion \
|
bash-completion \
|
||||||
@@ -29,7 +26,6 @@ sudo pacman -S --noconfirm --needed \
|
|||||||
fcitx5-qt \
|
fcitx5-qt \
|
||||||
fd \
|
fd \
|
||||||
ffmpegthumbnailer \
|
ffmpegthumbnailer \
|
||||||
fontconfig \
|
|
||||||
fzf \
|
fzf \
|
||||||
gcc14 \
|
gcc14 \
|
||||||
github-cli \
|
github-cli \
|
||||||
@@ -50,7 +46,6 @@ sudo pacman -S --noconfirm --needed \
|
|||||||
impala \
|
impala \
|
||||||
imv \
|
imv \
|
||||||
inetutils \
|
inetutils \
|
||||||
iwd \
|
|
||||||
jq \
|
jq \
|
||||||
kdenlive \
|
kdenlive \
|
||||||
kvantum-qt5 \
|
kvantum-qt5 \
|
||||||
@@ -88,7 +83,6 @@ sudo pacman -S --noconfirm --needed \
|
|||||||
python-gobject \
|
python-gobject \
|
||||||
python-poetry-core \
|
python-poetry-core \
|
||||||
python-terminaltexteffects \
|
python-terminaltexteffects \
|
||||||
qt5-wayland \
|
|
||||||
ripgrep \
|
ripgrep \
|
||||||
satty \
|
satty \
|
||||||
signal-desktop \
|
signal-desktop \
|
||||||
|
|||||||
15
install/packaging/asdcontrol.sh
Executable file
15
install/packaging/asdcontrol.sh
Executable file
@@ -0,0 +1,15 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
# Install asdcontrol for controlling brightness on Apple Displays
|
||||||
|
if ! command -v asdcontrol &>/dev/null; then
|
||||||
|
git clone https://github.com/nikosdion/asdcontrol.git /tmp/asdcontrol
|
||||||
|
cd /tmp/asdcontrol
|
||||||
|
make
|
||||||
|
sudo make install
|
||||||
|
cd -
|
||||||
|
rm -rf /tmp/asdcontrol
|
||||||
|
|
||||||
|
# Setup sudo-less controls
|
||||||
|
echo "$USER ALL=(ALL) NOPASSWD: /usr/local/bin/asdcontrol" | sudo tee /etc/sudoers.d/asdcontrol
|
||||||
|
sudo chmod 440 /etc/sudoers.d/asdcontrol
|
||||||
|
fi
|
||||||
@@ -1,11 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
|
|
||||||
# Install build tools
|
|
||||||
sudo pacman -S --needed --noconfirm base-devel
|
|
||||||
|
|
||||||
# Configure pacman
|
|
||||||
sudo cp -f ~/.local/share/omarchy/default/pacman/pacman.conf /etc/pacman.conf
|
|
||||||
sudo cp -f ~/.local/share/omarchy/default/pacman/mirrorlist /etc/pacman.d/mirrorlist
|
|
||||||
|
|
||||||
# Refresh all repos
|
|
||||||
sudo pacman -Syu --noconfirm
|
|
||||||
29
install/preflight/repositories.sh
Executable file
29
install/preflight/repositories.sh
Executable file
@@ -0,0 +1,29 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
# Install build tools
|
||||||
|
sudo pacman -S --needed --noconfirm base-devel
|
||||||
|
|
||||||
|
# Add fun and color and verbosity to the pacman installer
|
||||||
|
if ! grep -q "ILoveCandy" /etc/pacman.conf; then
|
||||||
|
sudo sed -i '/^\[options\]/a Color\nILoveCandy\nVerbosePkgLists' /etc/pacman.conf
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Add the Omarchy repository
|
||||||
|
if ! grep -q "omarchy" /etc/pacman.conf; then
|
||||||
|
sudo tee -a /etc/pacman.conf >/dev/null <<'EOF'
|
||||||
|
|
||||||
|
[omarchy]
|
||||||
|
SigLevel = Optional TrustAll
|
||||||
|
Server = https://pkgs.omarchy.org/$arch
|
||||||
|
EOF
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Set mirrors to global ones only
|
||||||
|
sudo tee /etc/pacman.d/mirrorlist >/dev/null <<'EOF'
|
||||||
|
Server = https://mirror.omarchy.org/$repo/os/$arch
|
||||||
|
Server = https://mirror.rackspace.com/archlinux/$repo/os/$arch
|
||||||
|
Server = https://geo.mirror.pkgbuild.com/$repo/os/$arch
|
||||||
|
EOF
|
||||||
|
|
||||||
|
# Refresh all repos
|
||||||
|
sudo pacman -Syu --noconfirm
|
||||||
@@ -24,11 +24,7 @@ catch_errors() {
|
|||||||
echo " ▀▀▀▀▀▀▀ ▀ ▀ ▀▀▀ ▀ ▀▀▀▀▀▀ "
|
echo " ▀▀▀▀▀▀▀ ▀ ▀ ▀▀▀ ▀ ▀▀▀▀▀▀ "
|
||||||
echo " "
|
echo " "
|
||||||
|
|
||||||
if command -v gum >/dev/null && gum confirm "Retry installation?"; then
|
echo "You can retry by running: bash ~/.local/share/omarchy/install.sh"
|
||||||
bash ~/.local/share/omarchy/install.sh
|
|
||||||
else
|
|
||||||
echo "You can retry later by running: bash ~/.local/share/omarchy/install.sh"
|
|
||||||
fi
|
|
||||||
}
|
}
|
||||||
|
|
||||||
trap catch_errors ERR
|
trap catch_errors ERR
|
||||||
|
|||||||
@@ -1,14 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
|
|
||||||
clear
|
|
||||||
tte -i ~/.local/share/omarchy/logo.txt --frame-rate 920 laseretch
|
|
||||||
echo
|
|
||||||
echo "You're done! So we're ready to reboot now..." | tte --frame-rate 640 wipe
|
|
||||||
|
|
||||||
if sudo test -f /etc/sudoers.d/99-omarchy-installer; then
|
|
||||||
sudo rm -f /etc/sudoers.d/99-omarchy-installer &>/dev/null
|
|
||||||
echo -e "\nRemember to remove USB installer!\n\n"
|
|
||||||
fi
|
|
||||||
|
|
||||||
sleep 5
|
|
||||||
reboot
|
|
||||||
@@ -1,7 +1,5 @@
|
|||||||
echo "Add Omarchy Package Repository"
|
echo "Add Omarchy Package Repository"
|
||||||
|
|
||||||
omarchy-refresh-pacman-mirrorlist
|
|
||||||
|
|
||||||
if ! grep -q "omarchy" /etc/pacman.conf; then
|
if ! grep -q "omarchy" /etc/pacman.conf; then
|
||||||
sudo sed -i '/^\[core\]/i [omarchy]\nSigLevel = Optional TrustAll\nServer = https:\/\/pkgs.omarchy.org\/$arch\n' /etc/pacman.conf
|
sudo sed -i '/^\[core\]/i [omarchy]\nSigLevel = Optional TrustAll\nServer = https:\/\/pkgs.omarchy.org\/$arch\n' /etc/pacman.conf
|
||||||
sudo systemctl restart systemd-timesyncd
|
sudo systemctl restart systemd-timesyncd
|
||||||
|
|||||||
@@ -1,8 +1,7 @@
|
|||||||
echo "Switch to Omarchy Chromium for synchronized theme switching"
|
echo "Switch to Omarchy Chromium for synchronized theme switching"
|
||||||
|
|
||||||
if omarchy-cmd-present chromium; then
|
|
||||||
set_theme_colors() {
|
set_theme_colors() {
|
||||||
if [[ -f ~/.config/omarchy/current/theme/chromium.theme ]]; then
|
if [[ -f ~/.config/omarchy/current/theme/chromium.theme ]] && command -v chromium &>/dev/null; then
|
||||||
chromium --no-startup-window --set-theme-color="$(<~/.config/omarchy/current/theme/chromium.theme)"
|
chromium --no-startup-window --set-theme-color="$(<~/.config/omarchy/current/theme/chromium.theme)"
|
||||||
else
|
else
|
||||||
# Use a default, neutral grey if theme doesn't have a color
|
# Use a default, neutral grey if theme doesn't have a color
|
||||||
@@ -10,6 +9,7 @@ if omarchy-cmd-present chromium; then
|
|||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if omarchy-cmd-present chromium; then
|
||||||
omarchy-pkg-drop chromium
|
omarchy-pkg-drop chromium
|
||||||
omarchy-pkg-add omarchy-chromium
|
omarchy-pkg-add omarchy-chromium
|
||||||
|
|
||||||
|
|||||||
@@ -1,3 +1,7 @@
|
|||||||
echo "Use new Omarchy mirror as default"
|
echo "Use new Omarchy mirror as default"
|
||||||
|
|
||||||
omarchy-refresh-pacman-mirrorlist
|
sudo tee /etc/pacman.d/mirrorlist >/dev/null <<'EOF'
|
||||||
|
Server = https://mirror.omarchy.org/$repo/os/$arch
|
||||||
|
Server = https://mirror.rackspace.com/archlinux/$repo/os/$arch
|
||||||
|
Server = https://geo.mirror.pkgbuild.com/$repo/os/$arch
|
||||||
|
EOF
|
||||||
|
|||||||
@@ -1,3 +0,0 @@
|
|||||||
echo "Ensure qt5-wayland is installed so KeepassXC, Nextcloud, Sqlite Browser, and other apps display correctly"
|
|
||||||
|
|
||||||
omarchy-pkg-add qt5-wayland
|
|
||||||
@@ -1,3 +0,0 @@
|
|||||||
echo "Fix audio input on AMD Framework laptops"
|
|
||||||
|
|
||||||
source $OMARCHY_PATH/install/config/hardware/fix-f13-amd-audio-input.sh || true
|
|
||||||
Reference in New Issue
Block a user