mirror of
https://github.com/basecamp/omarchy.git
synced 2025-08-03 15:19:24 +00:00
Compare commits
54 Commits
Author | SHA1 | Date | |
---|---|---|---|
f4b684f588 | |||
631b62927a | |||
e923be3f0b | |||
d0c93e3b8a | |||
54d22e9720 | |||
f6a459b26b | |||
f729004306 | |||
63840c6e9a | |||
34f24cb38a | |||
6ecc09abdb | |||
4db468a450 | |||
2823792ba2 | |||
b0b2bf30d8 | |||
343a948ffc | |||
ceee999853 | |||
d56a2bce2b | |||
0a16d502f2 | |||
97dc9e8d50 | |||
8aa8d99d8d | |||
0efd63f021 | |||
06d61be018 | |||
7bca5c1903 | |||
3d22840543 | |||
95de571809 | |||
8673fa41ba | |||
07d88a4b9a | |||
88e62994d1 | |||
f0b1dd286b | |||
7f66623317 | |||
41c40e0e1d | |||
c1a7f5a4e4 | |||
a0aa6862f5 | |||
231438b2ea | |||
a98adc499a | |||
74552b9f6e | |||
49c154cb1f | |||
51f3d15ead | |||
ff5630c64f | |||
d4f6859022 | |||
8c2f51c08c | |||
91f5c4646c | |||
25f4513feb | |||
4c46c2208a | |||
b09d2d68cd | |||
5c98de75d1 | |||
66db3867a6 | |||
4f56efe0e9 | |||
5405d383dc | |||
8ab18c1d38 | |||
c95d14e5e2 | |||
bdf5540cf3 | |||
033b638992 | |||
eb74d4cb6f | |||
1b576eb7f8 |
@ -1,10 +1,20 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
trap "exit" SIGINT
|
if command -v tte &>/dev/null; then
|
||||||
|
while true; do
|
||||||
|
effect=$(tte 2>&1 | grep -oP '{\K[^}]+' | tr ',' ' ' | tr ' ' '\n' | sed -n '/^beams$/,$p' | sort -u | shuf -n1)
|
||||||
|
tte -i ~/.local/share/omarchy/logo.txt \
|
||||||
|
--frame-rate 240 --canvas-width 0 --canvas-height $(($(tput lines) - 2)) --anchor-canvas c --anchor-text c \
|
||||||
|
"$effect" &
|
||||||
|
|
||||||
|
while pgrep tte >/dev/null; do
|
||||||
|
if read -n 1 -t 0.01; then
|
||||||
|
pkill tte 2>/dev/null
|
||||||
|
exit 0
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
done
|
||||||
|
else
|
||||||
|
gum spin --title "Can't find tte. Try: pip install terminaltexteffects" -- sleep 2
|
||||||
|
fi
|
||||||
|
|
||||||
while true; do
|
|
||||||
effect=$(tte 2>&1 | grep -oP '{\K[^}]+' | tr ',' ' ' | tr ' ' '\n' | sed -n '/^beams$/,$p' | sort -u | shuf -n1)
|
|
||||||
tte -i ~/.local/share/omarchy/logo.txt \
|
|
||||||
--frame-rate 240 --canvas-width 0 --canvas-height 0 --anchor-canvas c --anchor-text c \
|
|
||||||
"$effect"
|
|
||||||
done
|
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
pkill -f "alacritty --class Screensaver" ||
|
pgrep -f "alacritty --class Screensaver" ||
|
||||||
alacritty --class Screensaver --title Screensaver -o 'colors.primary.background="#000000"' \
|
alacritty --class Screensaver --title Screensaver -o 'colors.primary.background="#000000"' \
|
||||||
-e ~/.local/share/omarchy/bin/omarchy-cmd-screensaver
|
-o 'colors.cursor.cursor="#000000"' -e ~/.local/share/omarchy/bin/omarchy-cmd-screensaver
|
||||||
|
@ -2,15 +2,17 @@
|
|||||||
|
|
||||||
show_power_menu() {
|
show_power_menu() {
|
||||||
# The first characters are invisible sort keys.
|
# The first characters are invisible sort keys.
|
||||||
local menu_options="\u200B Lock
|
local menu_options=" Lock
|
||||||
\u200C Suspend
|
Save
|
||||||
\u200D Relaunch
|
Suspend
|
||||||
\u2060 Restart
|
Relaunch
|
||||||
\u2063 Shutdown"
|
Restart
|
||||||
|
Shutdown"
|
||||||
local selection=$(echo -e "$menu_options" | walker --dmenu --theme dmenu_150)
|
local selection=$(echo -e "$menu_options" | walker --dmenu --theme dmenu_150)
|
||||||
|
|
||||||
case "$selection" in
|
case "$selection" in
|
||||||
*Lock*) hyprlock ;;
|
*Lock*) hyprlock ;;
|
||||||
|
*Save*) ~/.local/share/omarchy/bin/omarchy-launch-screensaver ;;
|
||||||
*Suspend*) systemctl suspend ;;
|
*Suspend*) systemctl suspend ;;
|
||||||
*Relaunch*) uwsm stop ;;
|
*Relaunch*) uwsm stop ;;
|
||||||
*Restart*) systemctl reboot ;;
|
*Restart*) systemctl reboot ;;
|
||||||
|
26
bin/omarchy-migrate
Executable file
26
bin/omarchy-migrate
Executable file
@ -0,0 +1,26 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
# Exit immediately if a command exits with a non-zero status
|
||||||
|
set -e
|
||||||
|
|
||||||
|
# Create the migrations state directory, we will store an empty file for each migration that has already been performed.
|
||||||
|
STATE_DIR="$HOME/.local/state/omarchy/migrations"
|
||||||
|
mkdir -p "$STATE_DIR"
|
||||||
|
|
||||||
|
# Run any pending migrations
|
||||||
|
cd ~/.local/share/omarchy
|
||||||
|
|
||||||
|
for file in migrations/*.sh; do
|
||||||
|
filename=$(basename "$file")
|
||||||
|
migrate_at="${filename%.sh}"
|
||||||
|
|
||||||
|
# Migration already applied, to re-run it simply delete the state file and try again
|
||||||
|
[ -e "${STATE_DIR}/$filename" ] && continue
|
||||||
|
|
||||||
|
echo -e "\e[32m\nRunning migration (${filename%.sh})\e[0m"
|
||||||
|
source $file
|
||||||
|
touch "${STATE_DIR}/$filename"
|
||||||
|
done
|
||||||
|
|
||||||
|
# Back to where we came from
|
||||||
|
cd - >/dev/null
|
@ -4,7 +4,7 @@
|
|||||||
config_file=$1
|
config_file=$1
|
||||||
|
|
||||||
if [[ -z "$config_file" ]]; then
|
if [[ -z "$config_file" ]]; then
|
||||||
cat << USAGE
|
cat <<USAGE
|
||||||
Usage: $0 [config_file]
|
Usage: $0 [config_file]
|
||||||
|
|
||||||
Must provide a file path from the .config directory to be refreshed.
|
Must provide a file path from the .config directory to be refreshed.
|
||||||
@ -16,15 +16,20 @@ USAGE
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
# Backup the destination file (with timestamp) to avoid clobbering (Ex: hyprlock.conf.bak.1753817951)
|
# Backup the destination file (with timestamp) to avoid clobbering (Ex: hyprlock.conf.bak.1753817951)
|
||||||
backup_file="${HOME}/.config/${config_file}.bak.$(date +%s)"
|
user_config_file="${HOME}/.config/$config_file"
|
||||||
cp -f "${HOME}/.config/${config_file}" "$backup_file" 2>/dev/null
|
default_config_file="${HOME}/.local/share/omarchy/config/$config_file"
|
||||||
|
backup_config_file="$user_config_file.bak.$(date +%s)"
|
||||||
|
|
||||||
# Deploy the source file
|
# Create preliminary backup
|
||||||
cp -f "${HOME}/.local/share/omarchy/config/${config_file}" "${HOME}/.config/${config_file}" 2>/dev/null
|
cp -f "$user_config_file" "$backup_config_file" 2>/dev/null
|
||||||
|
|
||||||
|
# Replace config with new default
|
||||||
|
cp -f "$default_config_file" "$user_config_file" 2>/dev/null
|
||||||
|
|
||||||
# Compare and delete/inform accordingly
|
# Compare and delete/inform accordingly
|
||||||
if cmp -s "${HOME}/.config/${config_file}" "$backup_file"; then
|
if cmp -s "$user_config_file" "$backup_config_file"; then
|
||||||
rm $backup_file
|
rm "$backup_config_file"
|
||||||
else
|
else
|
||||||
echo -e "\e[31mExisting "${HOME}/.config/${config_file}" replaced with new Omarchy default, but ${backup_file} file was made.\e[0m"
|
echo -e "\e[31mReplaced $user_config_file with new Omarchy default.\nSaved backup as ${backup_config_file}.\n\n\e[32mChanges:\e[0m"
|
||||||
|
diff "$user_config_file" "$backup_config_file"
|
||||||
fi
|
fi
|
||||||
|
6
bin/omarchy-refresh-hypridle
Executable file
6
bin/omarchy-refresh-hypridle
Executable file
@ -0,0 +1,6 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
omarchy-refresh-config hypr/hypridle.conf
|
||||||
|
pkill -x hypridle
|
||||||
|
uwsm app -- hypridle >/dev/null 2>&1 &
|
||||||
|
|
@ -4,4 +4,4 @@ omarchy-refresh-config waybar/config.jsonc
|
|||||||
omarchy-refresh-config waybar/style.css
|
omarchy-refresh-config waybar/style.css
|
||||||
|
|
||||||
# Restart waybar
|
# Restart waybar
|
||||||
pkill -SIGUSR2 waybar
|
omarchy-restart-waybar
|
||||||
|
4
bin/omarchy-restart-waybar
Executable file
4
bin/omarchy-restart-waybar
Executable file
@ -0,0 +1,4 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
killall waybar || true
|
||||||
|
setsid uwsm app -- waybar &>/dev/null &
|
@ -32,12 +32,19 @@ else
|
|||||||
gsettings set org.gnome.desktop.interface gtk-theme "Adwaita-dark"
|
gsettings set org.gnome.desktop.interface gtk-theme "Adwaita-dark"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# Change gnome icon theme color
|
||||||
|
if [[ -f ~/.config/omarchy/current/theme/icons.theme ]]; then
|
||||||
|
gsettings set org.gnome.desktop.interface icon-theme "$(<~/.config/omarchy/current/theme/icons.theme)"
|
||||||
|
else
|
||||||
|
gsettings set org.gnome.desktop.interface icon-theme "Yaru-blue"
|
||||||
|
fi
|
||||||
|
|
||||||
# Trigger alacritty config reload
|
# Trigger alacritty config reload
|
||||||
touch "$HOME/.config/alacritty/alacritty.toml"
|
touch "$HOME/.config/alacritty/alacritty.toml"
|
||||||
|
|
||||||
# Restart components to apply new theme
|
# Restart components to apply new theme
|
||||||
pkill -SIGUSR2 btop
|
pkill -SIGUSR2 btop
|
||||||
pkill -SIGUSR2 waybar
|
"$HOME/.local/share/omarchy/bin/omarchy-restart-waybar"
|
||||||
pkill swayosd-server
|
pkill swayosd-server
|
||||||
setsid uwsm app -- swayosd-server &>/dev/null &
|
setsid uwsm app -- swayosd-server &>/dev/null &
|
||||||
makoctl reload
|
makoctl reload
|
||||||
|
@ -3,34 +3,23 @@
|
|||||||
# Exit immediately if a command exits with a non-zero status
|
# Exit immediately if a command exits with a non-zero status
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
STATE_DIR="$HOME/.local/state/omarchy/migrations"
|
# Show logo
|
||||||
|
clear
|
||||||
cd ~/.local/share/omarchy
|
cat <~/.local/share/omarchy/logo.txt
|
||||||
|
|
||||||
# Create the migrations state directory, we will store an empty file for each migration that has already been performed.
|
|
||||||
mkdir -p "$STATE_DIR"
|
|
||||||
|
|
||||||
# Get the latest while trying to preserve any modifications
|
# Get the latest while trying to preserve any modifications
|
||||||
git pull --autostash
|
omarchy_path=~/.local/share/omarchy
|
||||||
git diff --check || git reset --merge
|
git -C $omarchy_path pull --autostash
|
||||||
|
git -C $omarchy_path diff --check || git -C $omarchy_path reset --merge
|
||||||
|
|
||||||
# Run any pending migrations
|
# Run migrations
|
||||||
for file in migrations/*.sh; do
|
"$HOME/.local/share/omarchy/bin/omarchy-migrate"
|
||||||
filename=$(basename "$file")
|
|
||||||
migrate_at="${filename%.sh}"
|
|
||||||
|
|
||||||
# Migration already applied, to re-run it simply delete the state file and try again
|
|
||||||
[ -e "${STATE_DIR}/$filename" ] && continue
|
|
||||||
|
|
||||||
echo -e "\e[32m\nRunning migration (${filename%.sh})\e[0m"
|
|
||||||
source $file
|
|
||||||
touch "${STATE_DIR}/$filename"
|
|
||||||
done
|
|
||||||
|
|
||||||
# Update system packages
|
# Update system packages
|
||||||
echo -e "\e[32m\nUpdate system packages\e[0m"
|
echo -e "\e[32m\nUpdate system packages\e[0m"
|
||||||
yay -Syu --noconfirm
|
yay -Syu --noconfirm
|
||||||
|
|
||||||
# Back to where we came from
|
# Offer to reboot if the kernel has been changed
|
||||||
cd - >/dev/null
|
if [ "$(uname -r | sed 's/-arch/\.arch/')" != "$(pacman -Q linux | awk '{print $2}')" ]; then
|
||||||
|
gum confirm "Linux kernel has been updated. Reboot?" && sudo reboot now
|
||||||
|
fi
|
||||||
|
13
bin/omarchy-update-available
Executable file
13
bin/omarchy-update-available
Executable file
@ -0,0 +1,13 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
omarchy_path="$HOME/.local/share/omarchy"
|
||||||
|
latest_tag=$(git -C $omarchy_path ls-remote --tags origin | grep -v "{}" | awk '{print $2}' | sed 's#refs/tags/##' | sort -V | tail -n 1)
|
||||||
|
current_tag=$(git -C $omarchy_path describe --tags $(git -C $omarchy_path rev-list --tags --max-count=1))
|
||||||
|
|
||||||
|
if [[ "$current_tag" != "$latest_tag" ]]; then
|
||||||
|
echo "Omarchy update available ($latest_tag)"
|
||||||
|
exit 0
|
||||||
|
else
|
||||||
|
echo "Omarchy is up to date ($current_tag)"
|
||||||
|
exit 1
|
||||||
|
fi
|
@ -1,8 +1,14 @@
|
|||||||
general {
|
general {
|
||||||
lock_cmd = pidof hyprlock || hyprlock # avoid starting multiple hyprlock instances.
|
lock_cmd = pidof hyprlock || hyprlock # avoid starting multiple hyprlock instances.
|
||||||
before_sleep_cmd = loginctl lock-session # lock before suspend.
|
before_sleep_cmd = loginctl lock-session # lock before suspend.
|
||||||
after_sleep_cmd = hyprctl dispatch dpms on # to avoid having to press a key twice to turn on the display.
|
after_sleep_cmd = hyprctl dispatch dpms on # to avoid having to press a key twice to turn on the display.
|
||||||
on_unlock_cmd = pkill -SIGUSR2 waybar # prevent stacking of waybar when waking
|
on_lock_cmd = pkill -f "alacritty --class Screensaver" # avoid running screensaver when locked
|
||||||
|
on_unlock_cmd = omarchy-restart-waybar # prevent stacking of waybar when waking
|
||||||
|
}
|
||||||
|
|
||||||
|
listener {
|
||||||
|
timeout = 60 # 1min
|
||||||
|
on-timeout = omarchy-launch-screensaver # start screensaver
|
||||||
}
|
}
|
||||||
|
|
||||||
listener {
|
listener {
|
||||||
|
@ -213,7 +213,7 @@ concurrency = 8
|
|||||||
show_icon_when_single = true
|
show_icon_when_single = true
|
||||||
preview_images = true
|
preview_images = true
|
||||||
hidden = false
|
hidden = false
|
||||||
prefix = '.'
|
prefix = "."
|
||||||
|
|
||||||
[builtins.runner]
|
[builtins.runner]
|
||||||
eager_loading = true
|
eager_loading = true
|
||||||
|
@ -8,7 +8,8 @@
|
|||||||
"hyprland/workspaces"
|
"hyprland/workspaces"
|
||||||
],
|
],
|
||||||
"modules-center": [
|
"modules-center": [
|
||||||
"clock"
|
"clock",
|
||||||
|
"custom/update"
|
||||||
],
|
],
|
||||||
"modules-right": [
|
"modules-right": [
|
||||||
"group/tray-expander",
|
"group/tray-expander",
|
||||||
@ -42,6 +43,12 @@
|
|||||||
"5": []
|
"5": []
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"custom/update": {
|
||||||
|
"format": "",
|
||||||
|
"exec": "~/.local/share/omarchy/bin/omarchy-update-available",
|
||||||
|
"on-click": "alacritty --class Omarchy --title Omarchy -e omarchy-update",
|
||||||
|
"interval": 3600
|
||||||
|
},
|
||||||
"cpu": {
|
"cpu": {
|
||||||
"interval": 5,
|
"interval": 5,
|
||||||
"format": "",
|
"format": "",
|
||||||
|
@ -26,6 +26,10 @@
|
|||||||
min-width: 9px;
|
min-width: 9px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#workspaces button.empty {
|
||||||
|
opacity: 0.5;
|
||||||
|
}
|
||||||
|
|
||||||
#tray,
|
#tray,
|
||||||
#cpu,
|
#cpu,
|
||||||
#battery,
|
#battery,
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
# Editor used by CLI
|
# Editor used by CLI
|
||||||
export EDITOR="nvim"
|
export EDITOR="nvim"
|
||||||
export SUDO_EDITOR="$EDITOR"
|
export SUDO_EDITOR="$EDITOR"
|
||||||
|
export BAT_THEME=ansi
|
||||||
|
@ -8,7 +8,7 @@ windowrule = tile, class:^(Chromium)$
|
|||||||
windowrule = float, class:^(blueberry.py|Impala|Wiremix|org.gnome.NautilusPreviewer|Omarchy|About)$
|
windowrule = float, class:^(blueberry.py|Impala|Wiremix|org.gnome.NautilusPreviewer|Omarchy|About)$
|
||||||
windowrule = center, class:^(blueberry.py|Impala|Wiremix|org.gnome.NautilusPreviewer|Omarchy|About)$
|
windowrule = center, class:^(blueberry.py|Impala|Wiremix|org.gnome.NautilusPreviewer|Omarchy|About)$
|
||||||
windowrule = size 800 600, class:^(blueberry.py|Impala|Wiremix|org.gnome.NautilusPreviewer|com.gabm.satty)$
|
windowrule = size 800 600, class:^(blueberry.py|Impala|Wiremix|org.gnome.NautilusPreviewer|com.gabm.satty)$
|
||||||
windowrule = size 590 450, class:Omarchy
|
windowrule = size 600 470, class:Omarchy
|
||||||
windowrule = size 700 470 class:About
|
windowrule = size 700 470 class:About
|
||||||
|
|
||||||
# Float and center file pickers
|
# Float and center file pickers
|
||||||
|
@ -5,8 +5,8 @@ Window.SetBackgroundBottomColor(0.101, 0.105, 0.149);
|
|||||||
|
|
||||||
logo.image = Image("logo.png");
|
logo.image = Image("logo.png");
|
||||||
logo.sprite = Sprite(logo.image);
|
logo.sprite = Sprite(logo.image);
|
||||||
logo.sprite.SetX (Window.GetX() + Window.GetWidth() / 2 - logo.image.GetWidth() / 2);
|
logo.sprite.SetX (Window.GetWidth() / 2 - logo.image.GetWidth() / 2);
|
||||||
logo.sprite.SetY (Window.GetY() + Window.GetHeight() / 2 - logo.image.GetHeight() / 2);
|
logo.sprite.SetY (Window.GetHeight() / 2 - logo.image.GetHeight() / 2);
|
||||||
logo.sprite.SetOpacity (1);
|
logo.sprite.SetOpacity (1);
|
||||||
|
|
||||||
# Use these to adjust the progress bar timing
|
# Use these to adjust the progress bar timing
|
||||||
@ -119,7 +119,7 @@ entry.image = Image("entry.png");
|
|||||||
bullet.image = Image("bullet.png");
|
bullet.image = Image("bullet.png");
|
||||||
|
|
||||||
entry.sprite = Sprite(entry.image);
|
entry.sprite = Sprite(entry.image);
|
||||||
entry.x = Window.GetX() + Window.GetWidth()/2 - entry.image.GetWidth() / 2;
|
entry.x = Window.GetWidth()/2 - entry.image.GetWidth() / 2;
|
||||||
entry.y = logo.sprite.GetY() + logo.image.GetHeight() + 40;
|
entry.y = logo.sprite.GetY() + logo.image.GetHeight() + 40;
|
||||||
entry.sprite.SetPosition(entry.x, entry.y, 10001);
|
entry.sprite.SetPosition(entry.x, entry.y, 10001);
|
||||||
entry.sprite.SetOpacity(0);
|
entry.sprite.SetOpacity(0);
|
||||||
@ -171,8 +171,13 @@ fun display_password_callback (prompt, bullets)
|
|||||||
for (index = 0; bullet.sprites[index]; index++)
|
for (index = 0; bullet.sprites[index]; index++)
|
||||||
bullet.sprites[index].SetOpacity(0);
|
bullet.sprites[index].SetOpacity(0);
|
||||||
|
|
||||||
# Create and show bullets for current password
|
# Create and show bullets for current password (max 21)
|
||||||
for (index = 0; index < bullets; index++)
|
max_bullets = 21;
|
||||||
|
bullets_to_show = bullets;
|
||||||
|
if (bullets_to_show > max_bullets)
|
||||||
|
bullets_to_show = max_bullets;
|
||||||
|
|
||||||
|
for (index = 0; index < bullets_to_show; index++)
|
||||||
{
|
{
|
||||||
if (!bullet.sprites[index])
|
if (!bullet.sprites[index])
|
||||||
{
|
{
|
||||||
@ -195,7 +200,7 @@ Plymouth.SetDisplayPasswordFunction(display_password_callback);
|
|||||||
progress_box.image = Image("progress_box.png");
|
progress_box.image = Image("progress_box.png");
|
||||||
progress_box.sprite = Sprite(progress_box.image);
|
progress_box.sprite = Sprite(progress_box.image);
|
||||||
|
|
||||||
progress_box.x = Window.GetX() + Window.GetWidth() / 2 - progress_box.image.GetWidth() / 2;
|
progress_box.x = Window.GetWidth() / 2 - progress_box.image.GetWidth() / 2;
|
||||||
progress_box.y = entry.y + entry.image.GetHeight() / 2 - progress_box.image.GetHeight() / 2;
|
progress_box.y = entry.y + entry.image.GetHeight() / 2 - progress_box.image.GetHeight() / 2;
|
||||||
progress_box.sprite.SetPosition(progress_box.x, progress_box.y, 0);
|
progress_box.sprite.SetPosition(progress_box.x, progress_box.y, 0);
|
||||||
progress_box.sprite.SetOpacity(0);
|
progress_box.sprite.SetOpacity(0);
|
||||||
@ -204,7 +209,7 @@ progress_bar.original_image = Image("progress_bar.png");
|
|||||||
progress_bar.sprite = Sprite();
|
progress_bar.sprite = Sprite();
|
||||||
progress_bar.image = progress_bar.original_image.Scale(1, progress_bar.original_image.GetHeight());
|
progress_bar.image = progress_bar.original_image.Scale(1, progress_bar.original_image.GetHeight());
|
||||||
|
|
||||||
progress_bar.x = Window.GetX() + Window.GetWidth() / 2 - progress_bar.original_image.GetWidth() / 2;
|
progress_bar.x = Window.GetWidth() / 2 - progress_bar.original_image.GetWidth() / 2;
|
||||||
progress_bar.y = progress_box.y + (progress_box.image.GetHeight() - progress_bar.original_image.GetHeight()) / 2;
|
progress_bar.y = progress_box.y + (progress_box.image.GetHeight() - progress_bar.original_image.GetHeight()) / 2;
|
||||||
progress_bar.sprite.SetPosition(progress_bar.x, progress_bar.y, 1);
|
progress_bar.sprite.SetPosition(progress_bar.x, progress_bar.y, 1);
|
||||||
progress_bar.sprite.SetOpacity(0);
|
progress_bar.sprite.SetOpacity(0);
|
||||||
|
@ -38,6 +38,7 @@ source $OMARCHY_INSTALL/config/detect-keyboard-layout.sh
|
|||||||
source $OMARCHY_INSTALL/config/fix-fkeys.sh
|
source $OMARCHY_INSTALL/config/fix-fkeys.sh
|
||||||
source $OMARCHY_INSTALL/config/network.sh
|
source $OMARCHY_INSTALL/config/network.sh
|
||||||
source $OMARCHY_INSTALL/config/power.sh
|
source $OMARCHY_INSTALL/config/power.sh
|
||||||
|
source $OMARCHY_INSTALL/config/timezones.sh
|
||||||
source $OMARCHY_INSTALL/config/login.sh
|
source $OMARCHY_INSTALL/config/login.sh
|
||||||
source $OMARCHY_INSTALL/config/nvidia.sh
|
source $OMARCHY_INSTALL/config/nvidia.sh
|
||||||
|
|
||||||
|
@ -10,8 +10,14 @@ if ! yay -Q gnome-themes-extra &>/dev/null; then
|
|||||||
yay -S --noconfirm gnome-themes-extra # Adds Adwaita-dark theme
|
yay -S --noconfirm gnome-themes-extra # Adds Adwaita-dark theme
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# Allow icons to match the theme
|
||||||
|
if ! yay -! yaru-icon-theme &>/dev/null; then
|
||||||
|
yay -S --noconfirm yaru-icon-theme
|
||||||
|
fi
|
||||||
|
|
||||||
gsettings set org.gnome.desktop.interface gtk-theme "Adwaita-dark"
|
gsettings set org.gnome.desktop.interface gtk-theme "Adwaita-dark"
|
||||||
gsettings set org.gnome.desktop.interface color-scheme "prefer-dark"
|
gsettings set org.gnome.desktop.interface color-scheme "prefer-dark"
|
||||||
|
gsettings set org.gnome.desktop.interface icon-theme "Yaru-blue"
|
||||||
|
|
||||||
# Setup theme links
|
# Setup theme links
|
||||||
mkdir -p ~/.config/omarchy/themes
|
mkdir -p ~/.config/omarchy/themes
|
||||||
|
@ -2,5 +2,5 @@ echo "Fixing persistent workspaces in waybar config"
|
|||||||
|
|
||||||
if [[ -f ~/.config/waybar/config ]]; then
|
if [[ -f ~/.config/waybar/config ]]; then
|
||||||
sed -i 's/"persistent_workspaces":/"persistent-workspaces":/' ~/.config/waybar/config
|
sed -i 's/"persistent_workspaces":/"persistent-workspaces":/' ~/.config/waybar/config
|
||||||
pkill -SIGUSR2 waybar
|
omarchy-restart-waybar
|
||||||
fi
|
fi
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
echo "Update Walker config to include . as the leader key for the finder"
|
echo "Update Walker config to include . as the leader key for the finder"
|
||||||
if ! grep -q 'prefix = "."' ~/.config/walker/config.toml; then
|
if ! grep -q 'prefix = "\."' ~/.config/walker/config.toml; then
|
||||||
omarchy-refresh-walker
|
omarchy-refresh-walker
|
||||||
fi
|
fi
|
9
migrations/1754047941.sh
Normal file
9
migrations/1754047941.sh
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
echo "Add icon theme coloring"
|
||||||
|
|
||||||
|
if ! yay -! yaru-icon-theme &>/dev/null; then
|
||||||
|
yay -S --noconfirm yaru-icon-theme
|
||||||
|
|
||||||
|
if [[ -f ~/.config/omarchy/current/theme/icons.theme ]]; then
|
||||||
|
gsettings set org.gnome.desktop.interface icon-theme "$(<~/.config/omarchy/current/theme/icons.theme)"
|
||||||
|
fi
|
||||||
|
fi
|
2
migrations/1754108993.sh
Normal file
2
migrations/1754108993.sh
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
echo "Fix Plymouth login positioning in multi-monitor setups + limit password from overflowing"
|
||||||
|
omarchy-refresh-plymouth
|
10
migrations/1754113760.sh
Normal file
10
migrations/1754113760.sh
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
echo "Change reload Waybar on unlock command to prevent stacking"
|
||||||
|
|
||||||
|
if ! grep -q 'on_unlock_cmd *= *omarchy-restart-waybar' ~/.config/hypr/hypridle.conf; then
|
||||||
|
sed -i \
|
||||||
|
'/^ on_unlock_cmd = pkill -SIGUSR2 waybar[[:space:]]*# prevent stacking of waybar when waking$/c\
|
||||||
|
on_unlock_cmd = omarchy-restart-waybar # prevent stacking of waybar when waking' \
|
||||||
|
~/.config/hypr/hypridle.conf
|
||||||
|
|
||||||
|
omarchy-restart-waybar
|
||||||
|
fi
|
6
migrations/1754133148.sh
Normal file
6
migrations/1754133148.sh
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
echo "Update Waybar CSS to dim unused workspaces"
|
||||||
|
|
||||||
|
if ! grep -q "#workspaces button\.empty" ~/.config/waybar/style.css; then
|
||||||
|
omarchy-refresh-config waybar/style.css
|
||||||
|
omarchy-restart-waybar
|
||||||
|
fi
|
6
migrations/1754136581.sh
Normal file
6
migrations/1754136581.sh
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
echo "Start screensaver automatically after 1 minute and stop before locking"
|
||||||
|
|
||||||
|
if ! grep -q "omarchy-launch-screensaver" ~/.config/hypr/hypridle.conf; then
|
||||||
|
omarchy-refresh-hypridle
|
||||||
|
omarchy-refresh-hyprlock
|
||||||
|
fi
|
1
themes/catppuccin-latte/icons.theme
Normal file
1
themes/catppuccin-latte/icons.theme
Normal file
@ -0,0 +1 @@
|
|||||||
|
Yaru-blue
|
1
themes/catppuccin/icons.theme
Normal file
1
themes/catppuccin/icons.theme
Normal file
@ -0,0 +1 @@
|
|||||||
|
Yaru-purple
|
1
themes/everforest/icons.theme
Normal file
1
themes/everforest/icons.theme
Normal file
@ -0,0 +1 @@
|
|||||||
|
Yaru-sage
|
1
themes/gruvbox/icons.theme
Normal file
1
themes/gruvbox/icons.theme
Normal file
@ -0,0 +1 @@
|
|||||||
|
Yaru-olive
|
1
themes/kanagawa/icons.theme
Normal file
1
themes/kanagawa/icons.theme
Normal file
@ -0,0 +1 @@
|
|||||||
|
Yaru-blue
|
1
themes/matte-black/icons.theme
Normal file
1
themes/matte-black/icons.theme
Normal file
@ -0,0 +1 @@
|
|||||||
|
Yaru-red
|
1
themes/nord/icons.theme
Normal file
1
themes/nord/icons.theme
Normal file
@ -0,0 +1 @@
|
|||||||
|
Yaru-blue
|
1
themes/ristretto/icons.theme
Normal file
1
themes/ristretto/icons.theme
Normal file
@ -0,0 +1 @@
|
|||||||
|
Yaru-yellow
|
@ -1,22 +1,31 @@
|
|||||||
return {
|
return {
|
||||||
{
|
{
|
||||||
"gthelding/monokai-pro.nvim",
|
"gthelding/monokai-pro.nvim",
|
||||||
config = function()
|
config = function()
|
||||||
require("monokai-pro").setup({
|
require("monokai-pro").setup({
|
||||||
filter = "ristretto",
|
filter = "ristretto",
|
||||||
override = function()
|
override = function()
|
||||||
return {
|
return {
|
||||||
NonText = { fg = "#948a8b" },
|
NonText = { fg = "#948a8b" },
|
||||||
}
|
MiniIconsGrey = { fg = "#948a8b" },
|
||||||
end,
|
MiniIconsRed = { fg = "#fd6883" },
|
||||||
})
|
MiniIconsBlue = { fg = "#85dacc" },
|
||||||
vim.cmd([[colorscheme monokai-pro]])
|
MiniIconsGreen = { fg = "#adda78" },
|
||||||
end,
|
MiniIconsYellow = { fg = "#f9cc6c" },
|
||||||
},
|
MiniIconsOrange = { fg = "#f38d70" },
|
||||||
{
|
MiniIconsPurple = { fg = "#a8a9eb" },
|
||||||
"LazyVim/LazyVim",
|
MiniIconsAzure = { fg = "#a8a9eb" },
|
||||||
opts = {
|
MiniIconsCyan = { fg = "#85dacc" }, -- same value as MiniIconsBlue for consistency
|
||||||
colorscheme = "monokai-pro",
|
}
|
||||||
},
|
end,
|
||||||
},
|
})
|
||||||
|
vim.cmd([[colorscheme monokai-pro]])
|
||||||
|
end,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"LazyVim/LazyVim",
|
||||||
|
opts = {
|
||||||
|
colorscheme = "monokai-pro",
|
||||||
|
},
|
||||||
|
},
|
||||||
}
|
}
|
||||||
|
1
themes/rose-pine/icons.theme
Normal file
1
themes/rose-pine/icons.theme
Normal file
@ -0,0 +1 @@
|
|||||||
|
Yaru-blue
|
1
themes/tokyo-night/icons.theme
Normal file
1
themes/tokyo-night/icons.theme
Normal file
@ -0,0 +1 @@
|
|||||||
|
Yaru-magenta
|
Reference in New Issue
Block a user