mirror of
https://github.com/basecamp/omarchy.git
synced 2026-02-17 15:25:37 +00:00
Compare commits
11 Commits
c19fc1593a
...
69dbee75cd
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
69dbee75cd | ||
|
|
d9c5df29d1 | ||
|
|
7c9708d647 | ||
|
|
5a9f0318e8 | ||
|
|
ab4694e3f5 | ||
|
|
bebf14a18c | ||
|
|
ff2a47c67e | ||
|
|
d9bd4a8db3 | ||
|
|
8fc5b6e346 | ||
|
|
7265c22728 | ||
|
|
32d187eab0 |
@@ -3,14 +3,15 @@
|
|||||||
# Set the branch for Omarchy's git repository.
|
# Set the branch for Omarchy's git repository.
|
||||||
|
|
||||||
if (($# == 0)); then
|
if (($# == 0)); then
|
||||||
echo "Usage: omarchy-branch-set [master|dev]"
|
echo "Usage: omarchy-branch-set [master|rc|dev]"
|
||||||
exit 1
|
exit 1
|
||||||
else
|
else
|
||||||
branch="$1"
|
branch="$1"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
case "$branch" in
|
if [[ "$branch" != "master" && "$branch" != "rc" && "$branch" != "edge" ]]; then
|
||||||
"master") git -C $OMARCHY_PATH switch master ;;
|
echo "Error: Invalid branch '$branch'. Must be one of: master, rc, edge"
|
||||||
"dev") git -C $OMARCHY_PATH switch dev ;;
|
exit 1
|
||||||
*) echo "Unknown branch: $branch"; exit 1; ;;
|
fi
|
||||||
esac
|
|
||||||
|
git -C $OMARCHY_PATH switch $branch
|
||||||
|
|||||||
@@ -14,7 +14,7 @@
|
|||||||
# and people with a lot of experience managing Linux systems.
|
# and people with a lot of experience managing Linux systems.
|
||||||
|
|
||||||
if (($# == 0)); then
|
if (($# == 0)); then
|
||||||
echo "Usage: omarchy-channel-set [stable|edge|dev]"
|
echo "Usage: omarchy-channel-set [stable|rc|edge|dev]"
|
||||||
exit 1
|
exit 1
|
||||||
else
|
else
|
||||||
channel="$1"
|
channel="$1"
|
||||||
@@ -22,6 +22,7 @@ fi
|
|||||||
|
|
||||||
case "$channel" in
|
case "$channel" in
|
||||||
"stable") omarchy-branch-set "master" && omarchy-refresh-pacman "stable" && sudo pacman -Suu --noconfirm ;;
|
"stable") omarchy-branch-set "master" && omarchy-refresh-pacman "stable" && sudo pacman -Suu --noconfirm ;;
|
||||||
|
"rc") omarchy-branch-set "rc" && omarchy-refresh-pacman "rc" && sudo pacman -Suu --noconfirm ;;
|
||||||
"edge") omarchy-branch-set "master" && omarchy-refresh-pacman "edge" ;;
|
"edge") omarchy-branch-set "master" && omarchy-refresh-pacman "edge" ;;
|
||||||
"dev") omarchy-branch-set "dev" && omarchy-refresh-pacman "edge" ;;
|
"dev") omarchy-branch-set "dev" && omarchy-refresh-pacman "edge" ;;
|
||||||
*) echo "Unknown channel: $channel"; exit 1; ;;
|
*) echo "Unknown channel: $channel"; exit 1; ;;
|
||||||
|
|||||||
@@ -506,8 +506,9 @@ show_update_menu() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
show_update_channel_menu() {
|
show_update_channel_menu() {
|
||||||
case $(menu "Update channel" "🟢 Stable\n🟡 Edge\n🔴 Dev") in
|
case $(menu "Update channel" "🟢 Stable\n🟡 RC\n🟠 Edge\n🔴 Dev") in
|
||||||
*Stable*) present_terminal "omarchy-channel-set stable" ;;
|
*Stable*) present_terminal "omarchy-channel-set stable" ;;
|
||||||
|
*RC*) present_terminal "omarchy-channel-set rc" ;;
|
||||||
*Edge*) present_terminal "omarchy-channel-set edge" ;;
|
*Edge*) present_terminal "omarchy-channel-set edge" ;;
|
||||||
*Dev*) present_terminal "omarchy-channel-set dev" ;;
|
*Dev*) present_terminal "omarchy-channel-set dev" ;;
|
||||||
*) show_update_menu ;;
|
*) show_update_menu ;;
|
||||||
@@ -555,6 +556,10 @@ show_update_password_menu() {
|
|||||||
esac
|
esac
|
||||||
}
|
}
|
||||||
|
|
||||||
|
show_about() {
|
||||||
|
omarchy-launch-about
|
||||||
|
}
|
||||||
|
|
||||||
show_system_menu() {
|
show_system_menu() {
|
||||||
local options=" Lock\n Screensaver"
|
local options=" Lock\n Screensaver"
|
||||||
[ -f ~/.local/state/omarchy/toggles/suspend-on ] && options="$options\n Suspend"
|
[ -f ~/.local/state/omarchy/toggles/suspend-on ] && options="$options\n Suspend"
|
||||||
@@ -592,7 +597,7 @@ go_to_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 ;;
|
||||||
*about*) omarchy-launch-about ;;
|
*about*) show_about ;;
|
||||||
*system*) show_system_menu ;;
|
*system*) show_system_menu ;;
|
||||||
esac
|
esac
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -7,17 +7,18 @@
|
|||||||
sudo cp -f /etc/pacman.conf /etc/pacman.conf.bak
|
sudo cp -f /etc/pacman.conf /etc/pacman.conf.bak
|
||||||
sudo cp -f /etc/pacman.d/mirrorlist /etc/pacman.d/mirrorlist.bak
|
sudo cp -f /etc/pacman.d/mirrorlist /etc/pacman.d/mirrorlist.bak
|
||||||
|
|
||||||
if [[ $1 == "edge" ]]; then
|
channel="${1:-stable}"
|
||||||
sudo cp -f ~/.local/share/omarchy/default/pacman/pacman-edge.conf /etc/pacman.conf
|
|
||||||
sudo cp -f ~/.local/share/omarchy/default/pacman/mirrorlist-edge /etc/pacman.d/mirrorlist
|
if [[ "$channel" != "stable" && "$channel" != "rc" && "$channel" != "edge" ]]; then
|
||||||
echo "Setting channel to edge"
|
echo "Error: Invalid channel '$channel'. Must be one of: stable, rc, edge"
|
||||||
else
|
exit 1
|
||||||
sudo cp -f ~/.local/share/omarchy/default/pacman/pacman-stable.conf /etc/pacman.conf
|
|
||||||
sudo cp -f ~/.local/share/omarchy/default/pacman/mirrorlist-stable /etc/pacman.d/mirrorlist
|
|
||||||
echo "Setting channel to stable"
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
echo "Setting channel to $channel"
|
||||||
echo
|
echo
|
||||||
|
|
||||||
|
sudo cp -f "$OMARCHY_PATH/default/pacman/pacman-$channel.conf" /etc/pacman.conf
|
||||||
|
sudo cp -f "$OMARCHY_PATH/default/pacman/mirrorlist-$channel" /etc/pacman.d/mirrorlist
|
||||||
|
|
||||||
# Reset all package DBs and then update
|
# Reset all package DBs and then update
|
||||||
sudo pacman -Syyu --noconfirm
|
sudo pacman -Syyu --noconfirm
|
||||||
|
|||||||
@@ -2,6 +2,8 @@
|
|||||||
|
|
||||||
if grep -q "https://stable-mirror.omarchy.org/" /etc/pacman.d/mirrorlist; then
|
if grep -q "https://stable-mirror.omarchy.org/" /etc/pacman.d/mirrorlist; then
|
||||||
mirror="stable"
|
mirror="stable"
|
||||||
|
elif grep -q "https://rc-mirror.omarchy.org/" /etc/pacman.d/mirrorlist; then
|
||||||
|
mirror="rc"
|
||||||
elif grep -q "https://mirror.omarchy.org/" /etc/pacman.d/mirrorlist; then
|
elif grep -q "https://mirror.omarchy.org/" /etc/pacman.d/mirrorlist; then
|
||||||
mirror="edge"
|
mirror="edge"
|
||||||
else
|
else
|
||||||
@@ -12,6 +14,8 @@ if grep -q "https://pkgs.omarchy.org/stable/" /etc/pacman.conf; then
|
|||||||
pkgs="stable"
|
pkgs="stable"
|
||||||
elif grep -q "https://pkgs.omarchy.org/edge/" /etc/pacman.conf; then
|
elif grep -q "https://pkgs.omarchy.org/edge/" /etc/pacman.conf; then
|
||||||
pkgs="edge"
|
pkgs="edge"
|
||||||
|
elif grep -q "https://pkgs.omarchy.org/rc/" /etc/pacman.conf; then
|
||||||
|
pkgs="rc"
|
||||||
else
|
else
|
||||||
pkgs="unknown"
|
pkgs="unknown"
|
||||||
fi
|
fi
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
# Application bindings
|
# Application bindings
|
||||||
bindd = SUPER, RETURN, Terminal, exec, uwsm-app -- xdg-terminal-exec --dir="$(omarchy-cmd-terminal-cwd)"
|
bindd = SUPER, RETURN, Terminal, exec, uwsm-app -- xdg-terminal-exec --dir="$(omarchy-cmd-terminal-cwd)"
|
||||||
bindd = SUPER SHIFT, F, File manager, exec, uwsm-app -- nautilus --new-window
|
bindd = SUPER SHIFT, F, File manager, exec, uwsm-app -- nautilus --new-window
|
||||||
|
bindd = SUPER ALT SHIFT, F, File manager (cwd), exec, uwsm-app -- nautilus --new-window "$(omarchy-cmd-terminal-cwd)"
|
||||||
bindd = SUPER SHIFT, B, Browser, exec, omarchy-launch-browser
|
bindd = SUPER SHIFT, B, Browser, exec, omarchy-launch-browser
|
||||||
bindd = SUPER SHIFT ALT, B, Browser (private), exec, omarchy-launch-browser --private
|
bindd = SUPER SHIFT ALT, B, Browser (private), exec, omarchy-launch-browser --private
|
||||||
bindd = SUPER SHIFT, M, Music, exec, omarchy-launch-or-focus spotify
|
bindd = SUPER SHIFT, M, Music, exec, omarchy-launch-or-focus spotify
|
||||||
|
|||||||
@@ -12,3 +12,9 @@
|
|||||||
# *) back_to show_main_menu ;;
|
# *) back_to show_main_menu ;;
|
||||||
# esac
|
# esac
|
||||||
# }
|
# }
|
||||||
|
#
|
||||||
|
# Example of overriding just the about menu action: (Using zsh instead of bash (default))
|
||||||
|
#
|
||||||
|
# show_about() {
|
||||||
|
# exec omarchy-launch-or-focus-tui "zsh -c 'fastfetch; read -k 1'"
|
||||||
|
# }
|
||||||
|
|||||||
@@ -1,2 +1,6 @@
|
|||||||
windowrule = no_screen_share on, match:class ^(Bitwarden)$
|
windowrule = no_screen_share on, match:class ^(Bitwarden)$
|
||||||
windowrule = tag +floating-window, match:class ^(Bitwarden)$
|
windowrule = tag +floating-window, match:class ^(Bitwarden)$
|
||||||
|
|
||||||
|
# Bitwarden Chrome Extension
|
||||||
|
windowrule = no_screen_share on, match:class chrome-nngceckbapebfimnlniiiahkandclblb-Default
|
||||||
|
windowrule = tag +floating-window, match:class chrome-nngceckbapebfimnlniiiahkandclblb-Default
|
||||||
@@ -1,7 +1,7 @@
|
|||||||
# Float Steam
|
# Float Steam
|
||||||
windowrule = float on, match:class steam
|
windowrule = float on, match:class steam
|
||||||
windowrule = center on, match:class steam, match:title Steam
|
windowrule = center on, match:class steam, match:title Steam
|
||||||
windowrule = opacity 1 1, match:class steam
|
windowrule = opacity 1 1, match:class steam.*
|
||||||
windowrule = size 1100 700, match:class steam, match:title Steam
|
windowrule = size 1100 700, match:class steam, match:title Steam
|
||||||
windowrule = size 460 800, match:class steam, match:title Friends List
|
windowrule = size 460 800, match:class steam, match:title Friends List
|
||||||
windowrule = idle_inhibit fullscreen, match:class steam
|
windowrule = idle_inhibit fullscreen, match:class steam
|
||||||
|
|||||||
1
default/pacman/mirrorlist-rc
Normal file
1
default/pacman/mirrorlist-rc
Normal file
@@ -0,0 +1 @@
|
|||||||
|
Server = https://rc-mirror.omarchy.org/$repo/os/$arch
|
||||||
30
default/pacman/pacman-rc.conf
Normal file
30
default/pacman/pacman-rc.conf
Normal file
@@ -0,0 +1,30 @@
|
|||||||
|
# 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/edge/$arch
|
||||||
@@ -80,6 +80,7 @@ mariadb-libs
|
|||||||
mise
|
mise
|
||||||
mpv
|
mpv
|
||||||
nautilus
|
nautilus
|
||||||
|
nautilus-python
|
||||||
gnome-disk-utility
|
gnome-disk-utility
|
||||||
noto-fonts
|
noto-fonts
|
||||||
noto-fonts-cjk
|
noto-fonts-cjk
|
||||||
|
|||||||
3
migrations/1769183359.sh
Normal file
3
migrations/1769183359.sh
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
echo "Add nautilus-python package for 'Open in Ghostty' shortcut in Nautilus"
|
||||||
|
|
||||||
|
omarchy-pkg-add nautilus-python
|
||||||
6
migrations/1769543550.sh
Normal file
6
migrations/1769543550.sh
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
echo "Add SUPER+ALT+SHIFT+F shortcut to open nautilus in cwd"
|
||||||
|
|
||||||
|
# Add the new CWD binding if it doesn't exist
|
||||||
|
if ! grep -q "SUPER ALT SHIFT, F" ~/.config/hypr/bindings.conf; then
|
||||||
|
sed -i '/bindd = SUPER SHIFT, F, File manager, exec, uwsm-app -- nautilus --new-window/a bindd = SUPER ALT SHIFT, F, File manager (cwd), exec, uwsm-app -- nautilus --new-window "$(omarchy-cmd-terminal-cwd)"' ~/.config/hypr/bindings.conf
|
||||||
|
fi
|
||||||
Reference in New Issue
Block a user