Merge branch 'basecamp:dev' into dev
@ -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
|
||||||
|
@ -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/
|
||||||
|
@ -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
|
||||||
|
@ -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
|
||||||
|
# Get current background from symlink
|
||||||
|
if [[ -L "$CURRENT_BACKGROUND_LINK" ]]; then
|
||||||
|
CURRENT_BACKGROUND=$(readlink "$CURRENT_BACKGROUND_LINK")
|
||||||
|
else
|
||||||
# Default to first background if no symlink exists
|
# Default to first background if no symlink exists
|
||||||
CURRENT_BACKGROUND="${BACKGROUNDS[0]}"
|
CURRENT_BACKGROUND="${BACKGROUNDS[0]}"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Find current background index
|
# Find current background index
|
||||||
INDEX=0
|
INDEX=-1
|
||||||
for i in "${!BACKGROUNDS[@]}"; do
|
for i in "${!BACKGROUNDS[@]}"; do
|
||||||
if [[ "${BACKGROUNDS[$i]}" == "$CURRENT_BACKGROUND" ]]; then
|
if [[ "${BACKGROUNDS[$i]}" == "$CURRENT_BACKGROUND" ]]; then
|
||||||
INDEX=$i
|
INDEX=$i
|
||||||
break
|
break
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
||||||
# Get next background (wrap around)
|
# Get next background (wrap around)
|
||||||
NEXT_INDEX=$(((INDEX + 1) % TOTAL))
|
if [[ $INDEX -eq -1 ]]; then
|
||||||
NEW_BACKGROUND="${BACKGROUNDS[$NEXT_INDEX]}"
|
# 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
|
||||||
|
|
||||||
# Set new background symlink
|
# Set new background symlink
|
||||||
ln -nsf "$NEW_BACKGROUND" "$CURRENT_BACKGROUND_LINK"
|
ln -nsf "$NEW_BACKGROUND" "$CURRENT_BACKGROUND_LINK"
|
||||||
|
|
||||||
# Relaunch swaybg
|
# Relaunch swaybg
|
||||||
pkill -x swaybg
|
pkill -x swaybg
|
||||||
setsid swaybg -i "$NEW_BACKGROUND" -m fill >/dev/null 2>&2 &
|
setsid swaybg -i "$NEW_BACKGROUND" -m fill >/dev/null 2>&2 &
|
||||||
|
fi
|
||||||
|
@ -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
|
|
||||||
|
@ -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
|
||||||
|
@ -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
|
|
@ -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
|
||||||
|
@ -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
@ -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
|
@ -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"
|
|
BIN
themes/catppuccin/backgrounds/1-catppuccin.png
Normal file
After Width: | Height: | Size: 353 KiB |
@ -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"
|
|
BIN
themes/everforest/backgrounds/1-everforest.jpg
Normal file
After Width: | Height: | Size: 315 KiB |
@ -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"
|
|
BIN
themes/gruvbox/backgrounds/1-grubox.jpg
Normal file
After Width: | Height: | Size: 434 KiB |
@ -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"
|
|
BIN
themes/kanagawa/backgrounds/1-kanagawa.jpg
Normal file
After Width: | Height: | Size: 1.5 MiB |
@ -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"
|
|
BIN
themes/matte-black/backgrounds/1-matte-black.jpg
Normal file
After Width: | Height: | Size: 1010 KiB |
@ -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"
|
|
BIN
themes/nord/backgrounds/1-nord.png
Normal file
After Width: | Height: | Size: 384 KiB |
@ -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"
|
|
After Width: | Height: | Size: 4.6 MiB |
After Width: | Height: | Size: 263 KiB |