mirror of
https://github.com/LukeHagar/omarchy.git
synced 2025-12-06 04:20:23 +00:00
Merge branch 'dev' into snapper-existing-configs
This commit is contained in:
@@ -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
|
||||||
@@ -33,6 +33,11 @@ install_php() {
|
|||||||
done
|
done
|
||||||
}
|
}
|
||||||
|
|
||||||
|
install_node() {
|
||||||
|
echo -e "Installing Node.js...\n"
|
||||||
|
mise use --global node@lts
|
||||||
|
}
|
||||||
|
|
||||||
case "$1" in
|
case "$1" in
|
||||||
ruby)
|
ruby)
|
||||||
echo -e "Installing Ruby on Rails...\n"
|
echo -e "Installing Ruby on Rails...\n"
|
||||||
@@ -42,8 +47,7 @@ ruby)
|
|||||||
echo -e "\nYou can now run: rails new myproject"
|
echo -e "\nYou can now run: rails new myproject"
|
||||||
;;
|
;;
|
||||||
node)
|
node)
|
||||||
echo -e "Installing Node.js...\n"
|
install_node
|
||||||
mise use --global node@lts
|
|
||||||
;;
|
;;
|
||||||
bun)
|
bun)
|
||||||
echo -e "Installing Bun...\n"
|
echo -e "Installing Bun...\n"
|
||||||
@@ -64,6 +68,7 @@ php)
|
|||||||
laravel)
|
laravel)
|
||||||
echo -e "Installing PHP and Laravel...\n"
|
echo -e "Installing PHP and Laravel...\n"
|
||||||
install_php
|
install_php
|
||||||
|
install_node
|
||||||
composer global require laravel/installer
|
composer global require laravel/installer
|
||||||
echo -e "\nYou can now run: laravel new myproject"
|
echo -e "\nYou can now run: laravel new myproject"
|
||||||
;;
|
;;
|
||||||
|
|||||||
@@ -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 --noconfirm steam
|
||||||
setsid gtk-launch steam >/dev/null 2>&1 &
|
setsid gtk-launch steam >/dev/null 2>&1 &
|
||||||
|
|||||||
4
bin/omarchy-launch-floating-terminal-with-presentation
Executable file
4
bin/omarchy-launch-floating-terminal-with-presentation
Executable file
@@ -0,0 +1,4 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
cmd="$*"
|
||||||
|
setsid alacritty --class Omarchy -e bash -c "omarchy-show-logo; $cmd; omarchy-show-done"
|
||||||
@@ -26,7 +26,7 @@ terminal() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
present_terminal() {
|
present_terminal() {
|
||||||
alacritty --class Omarchy -e bash -c "omarchy-show-logo; eval \"$1\"; omarchy-show-done;"
|
omarchy-launch-floating-terminal-with-presentation $1
|
||||||
}
|
}
|
||||||
|
|
||||||
edit_in_nvim() {
|
edit_in_nvim() {
|
||||||
@@ -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() {
|
||||||
@@ -377,11 +377,12 @@ go_to_menu() {
|
|||||||
*screenrecord*) show_screenrecord_menu ;;
|
*screenrecord*) show_screenrecord_menu ;;
|
||||||
*toggle*) show_toggle_menu ;;
|
*toggle*) show_toggle_menu ;;
|
||||||
*setup*) show_setup_menu ;;
|
*setup*) show_setup_menu ;;
|
||||||
|
*power*) show_setup_power_menu ;;
|
||||||
*install*) show_install_menu ;;
|
*install*) show_install_menu ;;
|
||||||
*remove*) show_remove_menu ;;
|
*remove*) show_remove_menu ;;
|
||||||
*update*) show_update_menu ;;
|
*update*) show_update_menu ;;
|
||||||
*system*) show_system_menu ;;
|
|
||||||
*about*) alacritty --class Omarchy -o font.size=9 -e bash -c 'fastfetch; read -n 1 -s' ;;
|
*about*) alacritty --class Omarchy -o font.size=9 -e bash -c 'fastfetch; read -n 1 -s' ;;
|
||||||
|
*system*) show_system_menu ;;
|
||||||
esac
|
esac
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
7
bin/omarchy-pkg-ignored
Executable file
7
bin/omarchy-pkg-ignored
Executable file
@@ -0,0 +1,7 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
IGNORED_PACKAGES_FILE="$OMARCHY_PATH/install/packages.ignored"
|
||||||
|
|
||||||
|
if [[ -f $IGNORED_PACKAGES_FILE ]]; then
|
||||||
|
tr '\r\n' ',' <"$IGNORED_PACKAGES_FILE" | sed 's/,$//'
|
||||||
|
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
|
||||||
|
|||||||
7
bin/omarchy-pkg-pinned
Executable file
7
bin/omarchy-pkg-pinned
Executable file
@@ -0,0 +1,7 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
PINNED_PACKAGES_FILE="$OMARCHY_PATH/install/packages.pinned"
|
||||||
|
|
||||||
|
if [[ -f $PINNED_PACKAGES_FILE ]]; then
|
||||||
|
tr '\r\n' ',' <"$PINNED_PACKAGES_FILE" | sed 's/,$//'
|
||||||
|
fi
|
||||||
3
bin/omarchy-refresh-fastfetch
Executable file
3
bin/omarchy-refresh-fastfetch
Executable file
@@ -0,0 +1,3 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
omarchy-refresh-config fastfetch/config.jsonc
|
||||||
@@ -1,4 +1,4 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
echo "Resetting sudo lockout for user: $USER"
|
# Resetting sudo lockout for user
|
||||||
su -c "faillock --reset --user $USER"
|
su -c "faillock --reset --user $USER"
|
||||||
|
|||||||
@@ -16,12 +16,15 @@ case "$COMMAND" in
|
|||||||
create)
|
create)
|
||||||
DESC="$(omarchy-version)"
|
DESC="$(omarchy-version)"
|
||||||
|
|
||||||
|
echo -e "\e[32mCreate system snapshot\e[0m"
|
||||||
|
|
||||||
# Get existing snapper config names from CSV output
|
# Get existing snapper config names from CSV output
|
||||||
mapfile -t CONFIGS < <(sudo snapper --csvout list-configs | awk -F, 'NR>1 {print $1}')
|
mapfile -t CONFIGS < <(sudo snapper --csvout list-configs | awk -F, 'NR>1 {print $1}')
|
||||||
|
|
||||||
for config in "${CONFIGS[@]}"; do
|
for config in "${CONFIGS[@]}"; do
|
||||||
sudo snapper -c "$config" create -c number -d "$DESC"
|
sudo snapper -c "$config" create -c number -d "$DESC"
|
||||||
done
|
done
|
||||||
|
echo
|
||||||
;;
|
;;
|
||||||
restore)
|
restore)
|
||||||
sudo limine-snapper-restore
|
sudo limine-snapper-restore
|
||||||
|
|||||||
@@ -1,13 +1,18 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
# Ensure remote is reachable
|
# Get remote tag
|
||||||
if ! git -C "$OMARCHY_PATH" ls-remote &>/dev/null; then
|
latest_tag=$(git -C "$OMARCHY_PATH" ls-remote --tags origin | grep -v "{}" | awk '{print $2}' | sed 's#refs/tags/##' | sort -V | tail -n 1)
|
||||||
echo "Error: Unable to reach remote repository."
|
if [[ -z "$latest_tag" ]]; then
|
||||||
|
echo "Error: Could not retrieve latest tag."
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
latest_tag=$(git -C "$OMARCHY_PATH" ls-remote --tags origin | grep -v "{}" | awk '{print $2}' | sed 's#refs/tags/##' | sort -V | tail -n 1)
|
# Get local tag
|
||||||
current_tag=$(git -C "$OMARCHY_PATH" describe --tags $(git -C "$OMARCHY_PATH" rev-list --tags --max-count=1))
|
current_tag=$(git -C "$OMARCHY_PATH" describe --tags $(git -C "$OMARCHY_PATH" rev-list --tags --max-count=1))
|
||||||
|
if [[ -z "$current_tag" ]]; then
|
||||||
|
echo "Error: Could not retrieve current tag."
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
if [[ "$current_tag" != "$latest_tag" ]]; then
|
if [[ "$current_tag" != "$latest_tag" ]]; then
|
||||||
echo "Omarchy update available ($latest_tag)"
|
echo "Omarchy update available ($latest_tag)"
|
||||||
|
|||||||
@@ -1,12 +1,13 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
echo -e "\e[32m\nUpdate system packages\e[0m"
|
echo -e "\e[32m\nUpdate system packages\e[0m"
|
||||||
sudo pacman -Syu --noconfirm
|
echo "sudo pacman -Syu --noconfirm --ignore \"$(omarchy-pkg-ignored)\""
|
||||||
echo
|
sudo pacman -Syu --noconfirm --ignore "$(omarchy-pkg-ignored)"
|
||||||
|
|
||||||
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"
|
||||||
yay -Syu --noconfirm
|
echo "yay -Syu --noconfirm --ignore \"$(omarchy-pkg-ignored)\""
|
||||||
|
yay -Syu --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"
|
||||||
|
|||||||
3
bin/omarchy-version-branch
Executable file
3
bin/omarchy-version-branch
Executable file
@@ -0,0 +1,3 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
echo $(git -C "$OMARCHY_PATH" rev-parse --abbrev-ref HEAD)
|
||||||
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}"
|
||||||
|
|||||||
@@ -66,7 +66,13 @@
|
|||||||
"type": "command",
|
"type": "command",
|
||||||
"key": "\ue900 OS",
|
"key": "\ue900 OS",
|
||||||
"keyColor": "blue",
|
"keyColor": "blue",
|
||||||
"text": "version=$(git -C ~/.local/share/omarchy describe --tags --abbrev=0 2>/dev/null); echo \"Omarchy $version\""
|
"text": "version=$(omarchy-version); echo \"Omarchy $version\""
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "command",
|
||||||
|
"key": "│ ├",
|
||||||
|
"keyColor": "blue",
|
||||||
|
"text": "branch=$(omarchy-version-branch); echo \"$branch\""
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"type": "kernel",
|
"type": "kernel",
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
$terminal = uwsm app -- alacritty
|
$terminal = uwsm app -- alacritty
|
||||||
$browser = omarchy-launch-browser
|
$browser = omarchy-launch-browser
|
||||||
|
|
||||||
bindd = SUPER, return, Terminal, exec, $terminal --working-directory $(omarchy-cmd-terminal-cwd)
|
bindd = SUPER, return, Terminal, exec, $terminal --working-directory=$(omarchy-cmd-terminal-cwd)
|
||||||
bindd = SUPER, F, File manager, exec, uwsm app -- nautilus --new-window
|
bindd = SUPER, F, File manager, exec, uwsm app -- nautilus --new-window
|
||||||
bindd = SUPER, B, Browser, exec, $browser
|
bindd = SUPER, B, Browser, exec, $browser
|
||||||
bindd = SUPER, M, Music, exec, uwsm app -- spotify
|
bindd = SUPER, M, Music, exec, uwsm app -- spotify
|
||||||
|
|||||||
@@ -46,7 +46,7 @@
|
|||||||
"custom/update": {
|
"custom/update": {
|
||||||
"format": "",
|
"format": "",
|
||||||
"exec": "omarchy-update-available",
|
"exec": "omarchy-update-available",
|
||||||
"on-click": "alacritty --class Omarchy --title Omarchy -e omarchy-update",
|
"on-click": "omarchy-launch-floating-terminal-with-presentation omarchy-update",
|
||||||
"tooltip-format": "Omarchy update available",
|
"tooltip-format": "Omarchy update available",
|
||||||
"interval": 3600
|
"interval": 3600
|
||||||
},
|
},
|
||||||
@@ -88,6 +88,7 @@
|
|||||||
"tooltip-format-discharging": "{power:>1.0f}W↓ {capacity}%",
|
"tooltip-format-discharging": "{power:>1.0f}W↓ {capacity}%",
|
||||||
"tooltip-format-charging": "{power:>1.0f}W↑ {capacity}%",
|
"tooltip-format-charging": "{power:>1.0f}W↑ {capacity}%",
|
||||||
"interval": 5,
|
"interval": 5,
|
||||||
|
"on-click": "omarchy-menu power",
|
||||||
"states": {
|
"states": {
|
||||||
"warning": 20,
|
"warning": 20,
|
||||||
"critical": 10
|
"critical": 10
|
||||||
|
|||||||
@@ -38,6 +38,7 @@ source $OMARCHY_INSTALL/config/xcompose.sh
|
|||||||
source $OMARCHY_INSTALL/config/mise-ruby.sh
|
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/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
|
||||||
@@ -51,12 +52,6 @@ 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
|
||||||
|
|
||||||
# Updates
|
|
||||||
sudo updatedb
|
|
||||||
|
|
||||||
# Update system packages
|
|
||||||
sudo pacman -Syu --noconfirm
|
|
||||||
|
|
||||||
# Reboot
|
# Reboot
|
||||||
clear
|
clear
|
||||||
tte -i ~/.local/share/omarchy/logo.txt --frame-rate 920 laseretch
|
tte -i ~/.local/share/omarchy/logo.txt --frame-rate 920 laseretch
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
# Copy over the keyboard layout that's been set in Arch during install to Hyprland
|
# Copy over the keyboard layout that's been set in Arch during install to Hyprland
|
||||||
conf="/etc/vconsole.conf"
|
conf="/etc/vconsole.conf"
|
||||||
hyprconf="$HOME/.config/hypr/hyprland.conf"
|
hyprconf="$HOME/.config/hypr/input.conf"
|
||||||
|
|
||||||
layout=$(grep '^XKBLAYOUT=' "$conf" | cut -d= -f2 | tr -d '"')
|
layout=$(grep '^XKBLAYOUT=' "$conf" | cut -d= -f2 | tr -d '"')
|
||||||
variant=$(grep '^XKBVARIANT=' "$conf" | cut -d= -f2 | tr -d '"')
|
variant=$(grep '^XKBVARIANT=' "$conf" | cut -d= -f2 | tr -d '"')
|
||||||
|
|||||||
@@ -4,7 +4,7 @@
|
|||||||
# This can happen if archinstall used ethernet
|
# This can happen if archinstall used ethernet
|
||||||
if ! command -v iwctl &>/dev/null; then
|
if ! command -v iwctl &>/dev/null; then
|
||||||
sudo pacman -S --noconfirm --needed iwd
|
sudo pacman -S --noconfirm --needed iwd
|
||||||
chrootable_systemctl_enable iwd.service
|
sudo systemctl enable iwd.service
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Prevent systemd-networkd-wait-online timeout on boot
|
# Prevent systemd-networkd-wait-online timeout on boot
|
||||||
|
|||||||
@@ -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 --noconfirm
|
||||||
|
|
||||||
# Install packages
|
# Install packages
|
||||||
PACKAGES_TO_INSTALL=(
|
PACKAGES_TO_INSTALL=(
|
||||||
|
|||||||
2
install/config/localdb.sh
Executable file
2
install/config/localdb.sh
Executable file
@@ -0,0 +1,2 @@
|
|||||||
|
# Update localdb so that locate will find everything installed
|
||||||
|
sudo updatedb
|
||||||
0
install/packages.ignored
Normal file
0
install/packages.ignored
Normal file
0
install/packages.pinned
Normal file
0
install/packages.pinned
Normal file
@@ -95,7 +95,6 @@ sudo pacman -S --noconfirm --needed \
|
|||||||
tldr \
|
tldr \
|
||||||
tree-sitter-cli \
|
tree-sitter-cli \
|
||||||
ttf-cascadia-mono-nerd \
|
ttf-cascadia-mono-nerd \
|
||||||
ttf-font-awesome \
|
|
||||||
ttf-ia-writer \
|
ttf-ia-writer \
|
||||||
ttf-jetbrains-mono \
|
ttf-jetbrains-mono \
|
||||||
typora \
|
typora \
|
||||||
@@ -113,6 +112,7 @@ sudo pacman -S --noconfirm --needed \
|
|||||||
wl-clip-persist \
|
wl-clip-persist \
|
||||||
wl-clipboard \
|
wl-clipboard \
|
||||||
wl-screenrec \
|
wl-screenrec \
|
||||||
|
woff2-font-awesome \
|
||||||
xdg-desktop-portal-gtk \
|
xdg-desktop-portal-gtk \
|
||||||
xdg-desktop-portal-hyprland \
|
xdg-desktop-portal-hyprland \
|
||||||
xmlstarlet \
|
xmlstarlet \
|
||||||
|
|||||||
13
install/packaging/pins.sh
Executable file
13
install/packaging/pins.sh
Executable file
@@ -0,0 +1,13 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
# We pin explicit packages that are bad upstream here
|
||||||
|
pinned_packages=$(omarchy-pkg-pinned)
|
||||||
|
|
||||||
|
if [[ -n $pinned_packages ]]; then
|
||||||
|
echo -e "\e[32m\nInstall pinned system packages\e[0m"
|
||||||
|
|
||||||
|
for pinned in $pinned_packages; do
|
||||||
|
echo "sudo pacman -U --noconfirm $pinned"
|
||||||
|
sudo pacman -U --noconfirm $pinned
|
||||||
|
done
|
||||||
|
fi
|
||||||
@@ -1,16 +1,16 @@
|
|||||||
#!/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
|
||||||
sudo sed -i '/^\[options\]/a Color\nILoveCandy\nVerbosePkgLists' /etc/pacman.conf
|
sudo sed -i '/^\[options\]/a Color\nILoveCandy\nVerbosePkgLists' /etc/pacman.conf
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Add the Omarchy repository as first choice
|
# Add the Omarchy 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
|
echo -e "\n[omarchy]\nSigLevel = Optional TrustAll\nServer = https://pkgs.omarchy.org/\$arch/\n" | sudo tee -a /etc/pacman.conf >/dev/null
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Set mirrors to global ones only
|
# Set mirrors to global ones only
|
||||||
@@ -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 --noconfirm
|
||||||
$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 --noconfirm
|
||||||
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 --noconfirm
|
||||||
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,3 +1,5 @@
|
|||||||
echo "Use current terminal shell cwd for new terminal working directories"
|
echo "Use current terminal shell cwd for new terminal working directories"
|
||||||
|
|
||||||
sed -i 's|bindd = SUPER, return, Terminal, exec, \$terminal|bindd = SUPER, return, Terminal, exec, $terminal --working-directory $(omarchy-cmd-terminal-cwd)|' ~/.config/hypr/bindings.conf
|
if ! grep -q "working-directory" ~/.config/hypr/bindings.conf; then
|
||||||
|
sed -i '/bindd = SUPER, return, Terminal, exec, \$terminal/ s|$| --working-directory=$(omarchy-cmd-terminal-cwd)|' ~/.config/hypr/bindings.conf
|
||||||
|
fi
|
||||||
|
|||||||
@@ -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/1756284863.sh
Normal file
3
migrations/1756284863.sh
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
echo "Pin abseil-cpp as the latest package is broken"
|
||||||
|
|
||||||
|
sudo pacman -U --noconfirm https://archive.archlinux.org/packages/u/uwsm/uwsm-0.23.0-1-any.pkg.tar.zst
|
||||||
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
|
||||||
6
migrations/1756360551.sh
Normal file
6
migrations/1756360551.sh
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
echo "Move Omarchy Package Repository after Arch core/extra/multilib for extra security on resolution"
|
||||||
|
|
||||||
|
sudo cp /etc/pacman.conf /etc/pacman.conf.bak
|
||||||
|
sudo sed -i '/\[omarchy\]/,+2 d' /etc/pacman.conf
|
||||||
|
sudo sed -i '/\[chaotic-aur\]/i\[omarchy]\nSigLevel = Optional TrustAll\nServer = https://pkgs.omarchy.org/$arch/\n' /etc/pacman.conf ||
|
||||||
|
sudo bash -c 'echo -e "\n[omarchy]\nSigLevel = Optional TrustAll\nServer = https://pkgs.omarchy.org/$arch/" >> /etc/pacman.conf'
|
||||||
3
migrations/1756363651.sh
Normal file
3
migrations/1756363651.sh
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
echo "Update About config to include the Omarchy branch name"
|
||||||
|
|
||||||
|
omarchy-refresh-fastfetch
|
||||||
4
migrations/1756365707.sh
Normal file
4
migrations/1756365707.sh
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
# FIXME: This really shouldn't happen, need to find out why!
|
||||||
|
echo "Ensure walker is present"
|
||||||
|
|
||||||
|
sudo pacman -Syu --needed --noconfirm walker-bin
|
||||||
Reference in New Issue
Block a user