mirror of
https://github.com/basecamp/omarchy.git
synced 2025-08-01 14:29:26 +00:00
Compare commits
34 Commits
Author | SHA1 | Date | |
---|---|---|---|
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 |
@ -2,9 +2,22 @@
|
||||
|
||||
trap "exit" SIGINT
|
||||
|
||||
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
|
||||
screensaver() {
|
||||
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
|
||||
}
|
||||
|
||||
if command -v tte &>/dev/null; then
|
||||
screensaver
|
||||
else
|
||||
if command -v pip &>/dev/null; then
|
||||
pip install terminaltexteffects
|
||||
screensaver
|
||||
else
|
||||
gum spin --title "Can't find tte or pip. Install pip, then try: pip install terminaltexteffects" -- sleep 2
|
||||
fi
|
||||
fi
|
||||
|
@ -2,11 +2,11 @@
|
||||
|
||||
show_power_menu() {
|
||||
# The first characters are invisible sort keys.
|
||||
local menu_options="\u200B Lock
|
||||
\u200C Suspend
|
||||
\u200D Relaunch
|
||||
\u2060 Restart
|
||||
\u2063 Shutdown"
|
||||
local menu_options=" Lock
|
||||
Suspend
|
||||
Relaunch
|
||||
Restart
|
||||
Shutdown"
|
||||
local selection=$(echo -e "$menu_options" | walker --dmenu --theme dmenu_150)
|
||||
|
||||
case "$selection" in
|
||||
|
@ -32,6 +32,13 @@ else
|
||||
gsettings set org.gnome.desktop.interface gtk-theme "Adwaita-dark"
|
||||
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
|
||||
touch "$HOME/.config/alacritty/alacritty.toml"
|
||||
|
||||
|
@ -213,7 +213,7 @@ concurrency = 8
|
||||
show_icon_when_single = true
|
||||
preview_images = true
|
||||
hidden = false
|
||||
prefix = '.'
|
||||
prefix = "."
|
||||
|
||||
[builtins.runner]
|
||||
eager_loading = true
|
||||
|
@ -38,6 +38,7 @@ source $OMARCHY_INSTALL/config/detect-keyboard-layout.sh
|
||||
source $OMARCHY_INSTALL/config/fix-fkeys.sh
|
||||
source $OMARCHY_INSTALL/config/network.sh
|
||||
source $OMARCHY_INSTALL/config/power.sh
|
||||
source $OMARCHY_INSTALL/config/timezones.sh
|
||||
source $OMARCHY_INSTALL/config/login.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
|
||||
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 color-scheme "prefer-dark"
|
||||
gsettings set org.gnome.desktop.interface icon-theme "Yaru-blue"
|
||||
|
||||
# Setup theme links
|
||||
mkdir -p ~/.config/omarchy/themes
|
||||
|
@ -1,4 +1,4 @@
|
||||
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
|
||||
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
|
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
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