mirror of
https://github.com/basecamp/omarchy.git
synced 2026-02-17 15:25:37 +00:00
Compare commits
9 Commits
polkit-err
...
follow-arc
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
fc82476f24 | ||
|
|
dd719051cb | ||
|
|
18aef9fd86 | ||
|
|
3d1e9ced81 | ||
|
|
c677098165 | ||
|
|
ca455c434a | ||
|
|
2e8a57fac4 | ||
|
|
20ab2ee81e | ||
|
|
4cbc8eef43 |
@@ -6,7 +6,7 @@ if [[ -z "$1" ]]; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
install_php() {
|
install_php() {
|
||||||
sudo pacman -Sy php composer php-sqlite --noconfirm
|
sudo pacman -S php composer php-sqlite --noconfirm
|
||||||
|
|
||||||
# Install Path for Composer
|
# Install Path for Composer
|
||||||
if [[ ":$PATH:" != *":$HOME/.config/composer/vendor/bin:"* ]]; then
|
if [[ ":$PATH:" != *":$HOME/.config/composer/vendor/bin:"* ]]; then
|
||||||
|
|||||||
@@ -2,8 +2,7 @@
|
|||||||
|
|
||||||
echo "Adding multilib repository for 32-bit compatibility"
|
echo "Adding multilib repository for 32-bit compatibility"
|
||||||
sudo sed -i '/^\s*#\[multilib\]/,/^$/{s/^\s*#//}' /etc/pacman.conf
|
sudo sed -i '/^\s*#\[multilib\]/,/^$/{s/^\s*#//}' /etc/pacman.conf
|
||||||
sudo pacman -Sy
|
|
||||||
|
|
||||||
echo "Now pick dependencies matching your graphics card"
|
echo "Now pick dependencies matching your graphics card"
|
||||||
sudo pacman -S steam
|
sudo pacman -Syu steam
|
||||||
setsid gtk-launch steam >/dev/null 2>&1 &
|
setsid gtk-launch steam >/dev/null 2>&1 &
|
||||||
|
|||||||
@@ -35,23 +35,23 @@ edit_in_nvim() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
install() {
|
install() {
|
||||||
present_terminal "echo 'Installing $1...'; sudo pacman -Sy --noconfirm $2"
|
present_terminal "echo 'Installing $1...'; sudo pacman -S --noconfirm $2"
|
||||||
}
|
}
|
||||||
|
|
||||||
install_and_launch() {
|
install_and_launch() {
|
||||||
present_terminal "echo 'Installing $1...'; sudo pacman -Sy --noconfirm $2 && setsid gtk-launch $3"
|
present_terminal "echo 'Installing $1...'; sudo pacman -S --noconfirm $2 && setsid gtk-launch $3"
|
||||||
}
|
}
|
||||||
|
|
||||||
install_font() {
|
install_font() {
|
||||||
present_terminal "echo 'Installing $1...'; sudo pacman -Sy --noconfirm --needed $2 && sleep 2 && omarchy-font-set '$3'"
|
present_terminal "echo 'Installing $1...'; sudo pacman -S --noconfirm --needed $2 && sleep 2 && omarchy-font-set '$3'"
|
||||||
}
|
}
|
||||||
|
|
||||||
aur_install() {
|
aur_install() {
|
||||||
present_terminal "echo 'Installing $1 from AUR...'; yay -Sy --noconfirm $2"
|
present_terminal "echo 'Installing $1 from AUR...'; yay -S --noconfirm $2"
|
||||||
}
|
}
|
||||||
|
|
||||||
aur_install_and_launch() {
|
aur_install_and_launch() {
|
||||||
present_terminal "echo 'Installing $1 from AUR...'; yay -Sy --noconfirm $2 && setsid gtk-launch $3"
|
present_terminal "echo 'Installing $1 from AUR...'; yay -S --noconfirm $2 && setsid gtk-launch $3"
|
||||||
}
|
}
|
||||||
|
|
||||||
show_learn_menu() {
|
show_learn_menu() {
|
||||||
|
|||||||
@@ -18,7 +18,7 @@ pkg_names=$(yay -Slqa | fzf "${fzf_args[@]}")
|
|||||||
|
|
||||||
if [[ -n "$pkg_names" ]]; then
|
if [[ -n "$pkg_names" ]]; then
|
||||||
# Convert newline-separated selections to space-separated for yay
|
# Convert newline-separated selections to space-separated for yay
|
||||||
echo "$pkg_names" | tr '\n' ' ' | xargs yay -Sy --noconfirm
|
echo "$pkg_names" | tr '\n' ' ' | xargs yay -S --noconfirm
|
||||||
sudo updatedb
|
sudo updatedb
|
||||||
omarchy-show-done
|
omarchy-show-done
|
||||||
fi
|
fi
|
||||||
|
|||||||
@@ -14,12 +14,11 @@ fzf_args=(
|
|||||||
--color 'pointer:green,marker:green'
|
--color 'pointer:green,marker:green'
|
||||||
)
|
)
|
||||||
|
|
||||||
sudo pacman -Sy
|
|
||||||
pkg_names=$(pacman -Slq | fzf "${fzf_args[@]}")
|
pkg_names=$(pacman -Slq | fzf "${fzf_args[@]}")
|
||||||
|
|
||||||
if [[ -n "$pkg_names" ]]; then
|
if [[ -n "$pkg_names" ]]; then
|
||||||
# Convert newline-separated selections to space-separated for yay
|
# Convert newline-separated selections to space-separated for yay
|
||||||
echo "$pkg_names" | tr '\n' ' ' | xargs sudo pacman -Sy --noconfirm
|
echo "$pkg_names" | tr '\n' ' ' | xargs sudo pacman -S --noconfirm
|
||||||
sudo updatedb
|
sudo updatedb
|
||||||
omarchy-show-done
|
omarchy-show-done
|
||||||
fi
|
fi
|
||||||
|
|||||||
2
boot.sh
2
boot.sh
@@ -14,7 +14,7 @@ ansi_art=' ▄▄▄
|
|||||||
clear
|
clear
|
||||||
echo -e "\n$ansi_art\n"
|
echo -e "\n$ansi_art\n"
|
||||||
|
|
||||||
sudo pacman -Sy --noconfirm --needed git
|
sudo pacman -Syu --noconfirm --needed git
|
||||||
|
|
||||||
# Use custom repo if specified, otherwise default to basecamp/omarchy
|
# Use custom repo if specified, otherwise default to basecamp/omarchy
|
||||||
OMARCHY_REPO="${OMARCHY_REPO:-basecamp/omarchy}"
|
OMARCHY_REPO="${OMARCHY_REPO:-basecamp/omarchy}"
|
||||||
|
|||||||
@@ -36,7 +36,7 @@ if [ -n "$(lspci | grep -i 'nvidia')" ]; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
# force package database refresh
|
# force package database refresh
|
||||||
sudo pacman -Syy
|
sudo pacman -Syu
|
||||||
|
|
||||||
# Install packages
|
# Install packages
|
||||||
PACKAGES_TO_INSTALL=(
|
PACKAGES_TO_INSTALL=(
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
# Install build tools
|
# Install build tools
|
||||||
sudo pacman -Sy --needed --noconfirm base-devel
|
sudo pacman -S --needed --noconfirm base-devel
|
||||||
|
|
||||||
# Add fun and color and verbosity to the pacman installer
|
# Add fun and color and verbosity to the pacman installer
|
||||||
if ! grep -q "ILoveCandy" /etc/pacman.conf; then
|
if ! grep -q "ILoveCandy" /etc/pacman.conf; then
|
||||||
@@ -30,16 +30,10 @@ if [[ "$(uname -m)" == "x86_64" ]] && [ -z "$DISABLE_CHAOTIC" ]; then
|
|||||||
if ! grep -q "chaotic-aur" /etc/pacman.conf; then
|
if ! grep -q "chaotic-aur" /etc/pacman.conf; then
|
||||||
echo -e '\n[chaotic-aur]\nInclude = /etc/pacman.d/chaotic-mirrorlist' | sudo tee -a /etc/pacman.conf >/dev/null
|
echo -e '\n[chaotic-aur]\nInclude = /etc/pacman.d/chaotic-mirrorlist' | sudo tee -a /etc/pacman.conf >/dev/null
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Refresh all repos
|
|
||||||
sudo pacman -Sy
|
|
||||||
else
|
else
|
||||||
echo -e "Failed to install Chaotic-AUR, so won't include it in pacman config!"
|
echo -e "Failed to install Chaotic-AUR, so won't include it in pacman config!"
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Allow repository index updates without sudo
|
# Refresh all repos
|
||||||
sudo tee /etc/sudoers.d/repositories >/dev/null <<EOF
|
sudo pacman -Syu
|
||||||
$USER ALL=(ALL) NOPASSWD: /usr/bin/pacman -Sy
|
|
||||||
EOF
|
|
||||||
sudo chmod 440 /etc/sudoers.d/repositories
|
|
||||||
|
|||||||
@@ -3,5 +3,5 @@ echo "Add Omarchy Package Repository"
|
|||||||
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
|
||||||
sudo pacman -Sy
|
sudo pacman -Syu
|
||||||
fi
|
fi
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
echo "Install Plymouth splash screen"
|
echo "Install Plymouth splash screen"
|
||||||
|
|
||||||
sudo pacman -Sy --needed --noconfirm uwsm plymouth
|
sudo pacman -S --needed --noconfirm uwsm plymouth
|
||||||
source "$HOME/.local/share/omarchy/install/login/plymouth.sh"
|
source "$HOME/.local/share/omarchy/install/login/plymouth.sh"
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
echo "Replace wofi with walker as the default launcher"
|
echo "Replace wofi with walker as the default launcher"
|
||||||
|
|
||||||
if ! command -v walker &>/dev/null; then
|
if ! command -v walker &>/dev/null; then
|
||||||
sudo pacman -Sy --noconfirm --needed walker-bin libqalculate
|
sudo pacman -S --noconfirm --needed walker-bin libqalculate
|
||||||
|
|
||||||
sudo pacman -Rns --noconfirm wofi
|
sudo pacman -Rns --noconfirm wofi
|
||||||
rm -rf ~/.config/wofi
|
rm -rf ~/.config/wofi
|
||||||
|
|||||||
@@ -11,7 +11,7 @@ if [[ "$(uname -m)" == "x86_64" ]] && ! grep -q '^\[chaotic-aur\]' /etc/pacman.c
|
|||||||
echo -e '\n[chaotic-aur]\nInclude = /etc/pacman.d/chaotic-mirrorlist' | sudo tee -a /etc/pacman.conf >/dev/null
|
echo -e '\n[chaotic-aur]\nInclude = /etc/pacman.d/chaotic-mirrorlist' | sudo tee -a /etc/pacman.conf >/dev/null
|
||||||
|
|
||||||
# Refresh pacman package databases
|
# Refresh pacman package databases
|
||||||
sudo pacman -Sy
|
sudo pacman -Syu
|
||||||
else
|
else
|
||||||
echo "Failed to install Chaotic-AUR, so won't include it in pacman config!"
|
echo "Failed to install Chaotic-AUR, so won't include it in pacman config!"
|
||||||
fi
|
fi
|
||||||
|
|||||||
@@ -1,3 +1,3 @@
|
|||||||
echo "Add xmlstarlet needed for updating fonts via Omarchy menu"
|
echo "Add xmlstarlet needed for updating fonts via Omarchy menu"
|
||||||
|
|
||||||
sudo pacman -Sy --noconfirm --needed xmlstarlet
|
sudo pacman -S --noconfirm --needed xmlstarlet
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
echo "Update and restart Walker to resolve stuck Omarchy menu"
|
echo "Update and restart Walker to resolve stuck Omarchy menu"
|
||||||
|
|
||||||
sudo pacman -Sy --noconfirm walker-bin
|
sudo pacman -Syu --noconfirm walker-bin
|
||||||
omarchy-restart-walker
|
omarchy-restart-walker
|
||||||
|
|||||||
@@ -11,7 +11,7 @@ set_theme_colors() {
|
|||||||
|
|
||||||
if command -v chromium &>/dev/null; then
|
if command -v chromium &>/dev/null; then
|
||||||
sudo pacman -Rns --noconfirm chromium || true
|
sudo pacman -Rns --noconfirm chromium || true
|
||||||
sudo pacman -Sy --noconfirm omarchy-chromium
|
sudo pacman -S --noconfirm omarchy-chromium
|
||||||
|
|
||||||
if pgrep -x chromium; then
|
if pgrep -x chromium; then
|
||||||
if gum confirm "Chromium must be restarted. Ready?"; then
|
if gum confirm "Chromium must be restarted. Ready?"; then
|
||||||
|
|||||||
@@ -1,3 +1,3 @@
|
|||||||
echo "Ensure latest uwsm is installed"
|
echo "Ensure latest uwsm is installed"
|
||||||
|
|
||||||
sudo pacman -Sy --noconfirm uwsm
|
sudo pacman -Syu --noconfirm uwsm
|
||||||
|
|||||||
@@ -1,6 +0,0 @@
|
|||||||
echo "Allow pacman -Sy without sudo to easier installs"
|
|
||||||
|
|
||||||
sudo tee /etc/sudoers.d/repositories >/dev/null <<EOF
|
|
||||||
$USER ALL=(ALL) NOPASSWD: /usr/bin/pacman -Sy
|
|
||||||
EOF
|
|
||||||
sudo chmod 440 /etc/sudoers.d/repositories
|
|
||||||
3
migrations/1756300740.sh
Normal file
3
migrations/1756300740.sh
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
echo "Remove no-longer-needed sudoless package listing updates"
|
||||||
|
|
||||||
|
sudo rm -f /etc/sudoers.d/repositories
|
||||||
Reference in New Issue
Block a user