Merge branch 'basecamp:dev' into dev

This commit is contained in:
Ryan Yogan
2025-07-17 18:36:03 -05:00
committed by GitHub
30 changed files with 54 additions and 65 deletions

View File

@ -104,9 +104,12 @@ remove_theme_prompt() {
setup_menu() { setup_menu() {
show_ascii_art show_ascii_art
local menu=("Fingerprint sensor" "Back") local menu=("Add fingerprint sensor" "Remove fingerprint sensor" "Add Fido2 device" "Remove Fido2 device" "Back")
local commands=( local commands=(
"omarchy-fingerprint-setup" "omarchy-setup-fingerprint"
"omarchy-setup-fingerprint --remove"
"omarchy-setup-fido2"
"omarchy-setup-fido2 --remove"
"main_menu" "main_menu"
) )
local choice local choice

View File

@ -4,5 +4,5 @@
ln -nsf ~/.local/share/omarchy/config/hypr/hyprland.conf ~/.config/hypr/ ln -nsf ~/.local/share/omarchy/config/hypr/hyprland.conf ~/.config/hypr/
ln -nsf ~/.local/share/omarchy/config/hypr/hypridle.conf ~/.config/hypr/ ln -nsf ~/.local/share/omarchy/config/hypr/hypridle.conf ~/.config/hypr/
ln -nsf ~/.local/share/omarchy/config/hypr/hyprlock.conf ~/.config/hypr/ ln -nsf ~/.local/share/omarchy/config/hypr/hyprlock.conf ~/.config/hypr/
ln -nsf ~/.local/share/omarchy/config/waybar/config ~/.config/waybar/ ln -nsf ~/.local/share/omarchy/config/waybar/config.jsonc ~/.config/waybar/
ln -nsf ~/.local/share/omarchy/config/wofi/config ~/.config/wofi/ ln -nsf ~/.local/share/omarchy/config/wofi/config ~/.config/wofi/

View File

@ -2,7 +2,7 @@
if gum confirm "Refresh Waybar config? This will replace your current settings with Omarchy defaults."; then if gum confirm "Refresh Waybar config? This will replace your current settings with Omarchy defaults."; then
# Overwrite local waybar settings with the latest in Omarchy # Overwrite local waybar settings with the latest in Omarchy
cp -f ~/.local/share/omarchy/config/waybar/config ~/.config/waybar/ 2>/dev/null cp -f ~/.local/share/omarchy/config/waybar/config.jsonc ~/.config/waybar/ 2>/dev/null
cp -f ~/.local/share/omarchy/config/waybar/style.css ~/.config/waybar/ 2>/dev/null cp -f ~/.local/share/omarchy/config/waybar/style.css ~/.config/waybar/ 2>/dev/null
# Restart waybar # Restart waybar

View File

@ -8,30 +8,41 @@ CURRENT_BACKGROUND_LINK="$HOME/.config/omarchy/current/background"
mapfile -d '' -t BACKGROUNDS < <(find "$BACKGROUNDS_DIR" -type f -print0 | sort -z) mapfile -d '' -t BACKGROUNDS < <(find "$BACKGROUNDS_DIR" -type f -print0 | sort -z)
TOTAL=${#BACKGROUNDS[@]} TOTAL=${#BACKGROUNDS[@]}
# Get current background from symlink if [[ $TOTAL -eq 0 ]]; then
if [[ -L "$CURRENT_BACKGROUND_LINK" ]]; then notify-send "No background was found for theme" -t 2000
CURRENT_BACKGROUND=$(readlink "$CURRENT_BACKGROUND_LINK") pkill -x swaybg
setsid swaybg --color '#000000' >/dev/null 2>&2 &
else else
# Default to first background if no symlink exists # Get current background from symlink
CURRENT_BACKGROUND="${BACKGROUNDS[0]}" if [[ -L "$CURRENT_BACKGROUND_LINK" ]]; then
fi CURRENT_BACKGROUND=$(readlink "$CURRENT_BACKGROUND_LINK")
else
# Find current background index # Default to first background if no symlink exists
INDEX=0 CURRENT_BACKGROUND="${BACKGROUNDS[0]}"
for i in "${!BACKGROUNDS[@]}"; do
if [[ "${BACKGROUNDS[$i]}" == "$CURRENT_BACKGROUND" ]]; then
INDEX=$i
break
fi fi
done
# Get next background (wrap around) # Find current background index
NEXT_INDEX=$(((INDEX + 1) % TOTAL)) INDEX=-1
NEW_BACKGROUND="${BACKGROUNDS[$NEXT_INDEX]}" for i in "${!BACKGROUNDS[@]}"; do
if [[ "${BACKGROUNDS[$i]}" == "$CURRENT_BACKGROUND" ]]; then
INDEX=$i
break
fi
done
# Set new background symlink # Get next background (wrap around)
ln -nsf "$NEW_BACKGROUND" "$CURRENT_BACKGROUND_LINK" if [[ $INDEX -eq -1 ]]; then
# Use the first background when no match was found
NEW_BACKGROUND="${BACKGROUNDS[0]}"
else
NEXT_INDEX=$(((INDEX + 1) % TOTAL))
NEW_BACKGROUND="${BACKGROUNDS[$NEXT_INDEX]}"
fi
# Relaunch swaybg # Set new background symlink
pkill -x swaybg ln -nsf "$NEW_BACKGROUND" "$CURRENT_BACKGROUND_LINK"
setsid swaybg -i "$NEW_BACKGROUND" -m fill >/dev/null 2>&2 &
# Relaunch swaybg
pkill -x swaybg
setsid swaybg -i "$NEW_BACKGROUND" -m fill >/dev/null 2>&2 &
fi

View File

@ -49,9 +49,4 @@ makoctl reload
hyprctl reload hyprctl reload
# Set new background # Set new background
first_bg=$(find "$HOME/.config/omarchy/current/backgrounds/" -type f | head -n 1) omarchy-theme-bg-next
if [[ -n "$first_bg" ]]; then
ln -nsf "$first_bg" "$HOME/.config/omarchy/current/background"
pkill -x swaybg
setsid swaybg -i "$HOME/.config/omarchy/current/background" -m fill >/dev/null &
fi

View File

@ -1,7 +1,6 @@
# Launching # Launching
bind = SUPER, space, exec, pkill wofi || wofi --show drun -O alphabetical bind = SUPER, space, exec, pkill wofi || wofi --show drun -O alphabetical
# bind = SUPER, space, exec, pkill wofi || uwsm app -- "$(wofi --show drun -O alphabetical --define=drun-print_desktop_file=true | sed -E "s/(\.desktop) /\1:/")" bind = SUPER, K, exec, pkill wofi || ~/.local/share/omarchy/bin/omarchy-menu-keybindings
bind = SUPER, K, exec, pkill wofi || ~/.local/share/omarchy/bin/omarchy-show-keybindings
# Aesthetics # Aesthetics
bind = SUPER SHIFT, SPACE, exec, pkill -SIGUSR1 waybar bind = SUPER SHIFT, SPACE, exec, pkill -SIGUSR1 waybar
@ -14,7 +13,7 @@ bind = SUPER SHIFT, comma, exec, makoctl dismiss --all
bind = SUPER CTRL, comma, exec, makoctl mode -t do-not-disturb && makoctl mode | grep -q 'do-not-disturb' && notify-send "Silenced notifications" || notify-send "Enabled notifications" bind = SUPER CTRL, comma, exec, makoctl mode -t do-not-disturb && makoctl mode | grep -q 'do-not-disturb' && notify-send "Silenced notifications" || notify-send "Enabled notifications"
# Power menu controls lock, suspend, relaunch, restart, shutdown # Power menu controls lock, suspend, relaunch, restart, shutdown
bind = SUPER, ESCAPE, exec, pkill wofi || ~/.local/share/omarchy/bin/omarchy-power-menu bind = SUPER, ESCAPE, exec, pkill wofi || ~/.local/share/omarchy/bin/omarchy-menu-power
# Toggle idling # Toggle idling
bind = SUPER CTRL, I, exec, ~/.local/share/omarchy/bin/omarchy-toggle-idle bind = SUPER CTRL, I, exec, ~/.local/share/omarchy/bin/omarchy-toggle-idle

View File

@ -1,11 +0,0 @@
#!/bin/bash
BACKGROUNDS_DIR=~/.config/omarchy/backgrounds/
download_background_image() {
local url="$1"
local path="$2"
gum spin --title "Downloading $url as $path..." -- curl -sL -o "$BACKGROUNDS_DIR/$path" "$url"
}
for t in ~/.local/share/omarchy/themes/*; do source "$t/backgrounds.sh"; done

View File

@ -15,13 +15,13 @@ for f in ~/.local/share/omarchy/themes/*; do ln -s "$f" ~/.config/omarchy/themes
# Set initial theme # Set initial theme
mkdir -p ~/.config/omarchy/current mkdir -p ~/.config/omarchy/current
ln -snf ~/.config/omarchy/themes/tokyo-night ~/.config/omarchy/current/theme ln -snf ~/.config/omarchy/themes/tokyo-night ~/.config/omarchy/current/theme
source ~/.local/share/omarchy/themes/tokyo-night/backgrounds.sh ln -snf ~/.config/omarchy/current/theme/backgrounds/1-Pawel-Czerwinski-Abstract-Purple-Blue.jpg ~/.config/omarchy/current/background
ln -snf ~/.config/omarchy/backgrounds/tokyo-night ~/.config/omarchy/current/backgrounds
ln -snf ~/.config/omarchy/current/backgrounds/1-Pawel-Czerwinski-Abstract-Purple-Blue.jpg ~/.config/omarchy/current/background
# Set specific app links for current theme # Set specific app links for current theme
ln -snf ~/.config/omarchy/current/theme/neovim.lua ~/.config/nvim/lua/plugins/theme.lua ln -snf ~/.config/omarchy/current/theme/neovim.lua ~/.config/nvim/lua/plugins/theme.lua
mkdir -p ~/.config/btop/themes mkdir -p ~/.config/btop/themes
ln -snf ~/.config/omarchy/current/theme/btop.theme ~/.config/btop/themes/current.theme ln -snf ~/.config/omarchy/current/theme/btop.theme ~/.config/btop/themes/current.theme
mkdir -p ~/.config/mako mkdir -p ~/.config/mako
ln -snf ~/.config/omarchy/current/theme/mako.ini ~/.config/mako/config ln -snf ~/.config/omarchy/current/theme/mako.ini ~/.config/mako/config

View File

@ -4,7 +4,10 @@ if [ -z "$OMARCHY_BARE" ]; then
yay -S --noconfirm --needed \ yay -S --noconfirm --needed \
gnome-calculator gnome-keyring signal-desktop \ gnome-calculator gnome-keyring signal-desktop \
obsidian-bin libreoffice obs-studio kdenlive \ obsidian-bin libreoffice obs-studio kdenlive \
pinta xournalpp localsend-bin xournalpp localsend-bin
yay -S --noconfirm --needed pinta ||
echo -e "\e[31mFailed to install Pinta. Continuing without!\e[0m"
yay -S --noconfirm --needed typora || yay -S --noconfirm --needed typora ||
echo -e "\e[31mFailed to install Typora. Continuing without!\e[0m" echo -e "\e[31mFailed to install Typora. Continuing without!\e[0m"

4
migrations/1752793122.sh Normal file
View File

@ -0,0 +1,4 @@
echo "Rename waybar config file for syntax highlighting"
if [[ -f ~/.config/waybar/config ]]; then
mv ~/.config/waybar/config ~/.config/waybar/config.jsonc
fi

View File

@ -1,2 +0,0 @@
mkdir -p "$BACKGROUNDS_DIR/catppuccin"
download_background_image "https://github.com/basecamp/omakub/raw/refs/heads/master/themes/catppuccin/background.png" "catppuccin/1-catppuccin.png"

Binary file not shown.

After

Width:  |  Height:  |  Size: 353 KiB

View File

@ -1,2 +0,0 @@
mkdir -p "$BACKGROUNDS_DIR/everforest"
download_background_image "https://github.com/basecamp/omakub/raw/refs/heads/master/themes/everforest/background.jpg" "everforest/1-everforest.jpg"

Binary file not shown.

After

Width:  |  Height:  |  Size: 315 KiB

View File

@ -1,2 +0,0 @@
mkdir -p "$BACKGROUNDS_DIR/gruvbox"
download_background_image "https://github.com/basecamp/omakub/raw/refs/heads/master/themes/gruvbox/background.jpg" "gruvbox/1-grubox.jpg"

Binary file not shown.

After

Width:  |  Height:  |  Size: 434 KiB

View File

@ -1,2 +0,0 @@
mkdir -p "$BACKGROUNDS_DIR/kanagawa"
download_background_image "https://github.com/basecamp/omakub/raw/refs/heads/master/themes/kanagawa/background.jpg" "kanagawa/1-kanagawa.jpg"

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 MiB

View File

@ -1,2 +0,0 @@
mkdir -p "$BACKGROUNDS_DIR/matte-black"
download_background_image "https://raw.githubusercontent.com/tahayvr/omarchy-matte-black/refs/heads/main/images/1-matte-black.jpg" "matte-black/1-matte-black.jpg"

Binary file not shown.

After

Width:  |  Height:  |  Size: 1010 KiB

View File

@ -1,2 +0,0 @@
mkdir -p "$BACKGROUNDS_DIR/nord"
download_background_image "https://github.com/basecamp/omakub/raw/refs/heads/master/themes/nord/background.png" "nord/1-nord.png"

Binary file not shown.

After

Width:  |  Height:  |  Size: 384 KiB

View File

@ -1,3 +0,0 @@
mkdir -p "$BACKGROUNDS_DIR/tokyo-night"
download_background_image "https://images.unsplash.com/photo-1651870364199-fc5f9f46ac85" "tokyo-night/1-Pawel-Czerwinski-Abstract-Purple-Blue.jpg"
download_background_image "https://images.unsplash.com/photo-1620207418302-439b387441b0" "tokyo-night/2-Milad-Fakurian-Abstract-Purple-Blue.jpg"

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.6 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 263 KiB