diff --git a/bin/omarchy b/bin/omarchy index ccb8564..bfcd3ae 100755 --- a/bin/omarchy +++ b/bin/omarchy @@ -126,7 +126,8 @@ setup_menu() { } open_manual() { - xdg-open "https://manuals.omamix.org/2/the-omarchy-manual" + setsid chromium --new-window --ozone-platform=wayland --app="https://manuals.omamix.org/2/the-omarchy-manual" >/dev/null 2>&1 & + clear } ack_command() { @@ -134,4 +135,3 @@ ack_command() { } main_menu - diff --git a/bin/omarchy-power-menu b/bin/omarchy-power-menu index b9989e4..6ada228 100755 --- a/bin/omarchy-power-menu +++ b/bin/omarchy-power-menu @@ -10,7 +10,7 @@ show_power_menu() { \u200D Relaunch \u2060󰜉 Restart \u2063󰐥 Shutdown" - local selection=$(echo -e "$menu_options" | wofi --show dmenu --prompt "Power Options" --width 150 --height 195 -O alphabetical --style ~/.local/share/omarchy/default/wofi/select.css) + local selection=$(echo -e "$menu_options" | wofi --show dmenu --prompt "Power Options" --width 150 --height 195 -O alphabetical --style ~/.config/wofi/select.css) case "$selection" in *Lock*) hyprlock ;; diff --git a/bin/omarchy-refresh-plymouth b/bin/omarchy-refresh-plymouth index e325974..deb2852 100755 --- a/bin/omarchy-refresh-plymouth +++ b/bin/omarchy-refresh-plymouth @@ -1,6 +1,6 @@ #!/bin/bash -if gum confirm "Refresh Plymouth theme? This will replace your current startup screen with Omarchy defaults."; then +if [[ "$1" == "-y" ]] || gum confirm "Refresh Plymouth theme? This will replace your current startup screen with Omarchy defaults."; then sudo cp ~/.local/share/omarchy/default/plymouth/* /usr/share/plymouth/themes/omarchy/ sudo plymouth-set-default-theme -R omarchy fi diff --git a/bin/omarchy-refresh-waybar b/bin/omarchy-refresh-waybar index 8317168..af2c1d2 100755 --- a/bin/omarchy-refresh-waybar +++ b/bin/omarchy-refresh-waybar @@ -6,6 +6,5 @@ if gum confirm "Refresh Waybar config? This will replace your current settings w cp -f ~/.local/share/omarchy/config/waybar/style.css ~/.config/waybar/ 2>/dev/null # Restart waybar - pkill waybar &>/dev/null - setsid waybar &>/dev/null & + pkill -SIGUSR2 waybar fi diff --git a/bin/omarchy-refresh-wofi b/bin/omarchy-refresh-wofi index d6d359c..3f2f9e3 100755 --- a/bin/omarchy-refresh-wofi +++ b/bin/omarchy-refresh-wofi @@ -1,7 +1,8 @@ #!/bin/bash -if gum confirm "Refresh Wofi config? This will replace your current settings with Omarchy defaults."; then +if [[ "$1" == "-y" ]] || gum confirm "Refresh Wofi config? This will replace your current settings with Omarchy defaults."; then # Overwrite local waybar settings with the latest in Omarchy cp -f ~/.local/share/omarchy/config/wofi/config ~/.config/wofi/ 2>/dev/null cp -f ~/.local/share/omarchy/config/wofi/style.css ~/.config/wofi/ 2>/dev/null + cp -f ~/.local/share/omarchy/config/wofi/select.css ~/.config/wofi/ 2>/dev/null fi diff --git a/bin/omarchy-show-keybindings b/bin/omarchy-show-keybindings index 6124355..8750e76 100755 --- a/bin/omarchy-show-keybindings +++ b/bin/omarchy-show-keybindings @@ -56,4 +56,4 @@ grep -h '^[[:space:]]*bind' $USER_HYPRLAND_CONF $OMARCHY_BINDINGS_CONF | printf "%-35s → %s\n", key_combo, action; } }' | - flock --nonblock /tmp/.wofi.lock -c "wofi -dmenu -i --width 60% --height 70% -p 'Hyprland Keybindings' -O alphabetical --style=\"$HOME/.local/share/omarchy/default/wofi/search.css\"" + wofi -dmenu -i --width 60% --height 70% -p 'Hyprland Keybindings' -O alphabetical diff --git a/bin/omarchy-theme-menu b/bin/omarchy-theme-menu index 433c954..70a32c6 100755 --- a/bin/omarchy-theme-menu +++ b/bin/omarchy-theme-menu @@ -25,7 +25,7 @@ selection=$(printf '%s\n' "${themes[@]}" | wofi \ --width 150 \ --height 300 \ -O alphabetical \ - --style ~/.local/share/omarchy/default/wofi/select.css) + --style ~/.config/wofi/select.css 2>/dev/null) # Remove any Pango markup before converting back to filename clean_selection=$(echo "$selection" | sed -E 's/<[^>]+>//g') @@ -35,4 +35,3 @@ selected_theme=$(echo "$clean_selection" | tr '[:upper:]' '[:lower:]' | tr ' ' ' # Apply the selected theme "$HOME/.local/share/omarchy/bin/omarchy-theme-set" "$selected_theme" - diff --git a/config/waybar/config b/config/waybar/config index 9349bba..47607a7 100644 --- a/config/waybar/config +++ b/config/waybar/config @@ -12,11 +12,11 @@ ], "modules-right": [ "group/tray-expander", - "bluetooth", - "network", - "pulseaudio", - "cpu", - "battery" + "bluetooth", + "network", + "pulseaudio", + "cpu", + "battery" ], "hyprland/workspaces": { "on-click": "activate", @@ -124,66 +124,4 @@ "icon-size": 12, "spacing": 12 } -}, - "cpu": { - "interval": 5, - "format": "󰍛", - "on-click": "alacritty -e btop" - }, - "clock": { - "format": "{:%A %H:%M}", - "format-alt": "{:%d %B W%V %Y}", - "tooltip": false - }, - "network": { - "format-icons": ["󰤯","󰤟","󰤢","󰤥","󰤨"], - "format" : "{icon}", - "format-wifi" : "{icon}", - "format-ethernet" : "󰀂", - "format-disconnected" : "󰖪", - "tooltip-format-wifi": "{essid} ({frequency} GHz)\n⇣{bandwidthDownBytes} ⇡{bandwidthUpBytes}", - "tooltip-format-ethernet": "⇣{bandwidthDownBytes} ⇡{bandwidthUpBytes}", - "tooltip-format-disconnected": "Disconnected", - "interval": 3, - "nospacing": 1, - "on-click": "alacritty --class=Impala -e impala" - }, - "battery": { - "format": "{capacity}% {icon}", - "format-discharging": "{icon}", - "format-charging": "{icon}", - "format-plugged": "", - "format-icons": { - "charging": [ - "󰢜", "󰂆", "󰂇", "󰂈", "󰢝", "󰂉", "󰢞", "󰂊", "󰂋", "󰂅" - ], - "default": [ - "󰁺", "󰁻", "󰁼", "󰁽", "󰁾", "󰁿", "󰂀", "󰂁", "󰂂", "󰁹" - ] - }, - "format-full": "󰂅", - "tooltip-format-discharging": "{power:>1.0f}W↓ {capacity}%", - "tooltip-format-charging": "{power:>1.0f}W↑ {capacity}%", - "interval": 5, - "states": { - "warning": 20, - "critical": 10 - } - }, - "bluetooth": { - "format": "", - "format-disabled": "󰂲", - "format-connected": "", - "tooltip-format": "Devices connected: {num_connections}", - "on-click": "GTK_THEME=Adwaita-dark blueberry" - }, - "pulseaudio": { - "format": "", - "format-muted": "󰝟", - "scroll-step": 5, - "on-click": "GTK_THEME=Adwaita-dark pavucontrol", - "tooltip-format": "Playing at {volume}%", - "on-click-right": "pamixer -t", - "ignored-sinks": ["Easy Effects Sink"] - } } diff --git a/default/wofi/select.css b/config/wofi/select.css similarity index 50% rename from default/wofi/select.css rename to config/wofi/select.css index 5f255c0..a55a7bb 100644 --- a/default/wofi/select.css +++ b/config/wofi/select.css @@ -1,8 +1,11 @@ -@import ".config/omarchy/current/theme/wofi.css"; -@import ".local/share/omarchy/default/wofi/search.css"; +/* Use by power menu, theme selector, and other menus without visible search bar */ + +@import ".config/wofi/style.css"; #input { display: none; opacity: 0; margin-top: -200px; } + +@import ".config/omarchy/current/theme/wofi.css"; diff --git a/config/wofi/style.css b/config/wofi/style.css index 97b3775..e6bb68f 100644 --- a/config/wofi/style.css +++ b/config/wofi/style.css @@ -1,4 +1,4 @@ -/* Colors are defined by theme files and can be referenced via @base, @text, @selected-text, and @border */ +/* Colors are defined by theme file and can be referenced via @base, @text, @selected-text, and @border */ * { font-family: 'CaskaydiaMono Nerd Font', monospace; @@ -71,3 +71,4 @@ window { -gtk-icon-transform: scale(0.7); } +@import ".config/omarchy/current/theme/wofi.css"; diff --git a/default/hypr/bindings/utilities.conf b/default/hypr/bindings/utilities.conf index fe985d4..e4c5f3a 100644 --- a/default/hypr/bindings/utilities.conf +++ b/default/hypr/bindings/utilities.conf @@ -1,11 +1,11 @@ # Launching -bind = SUPER, space, exec, pkill wofi || wofi --show drun --sort-order=alphabetical --style="$HOME/.local/share/omarchy/default/wofi/search.css" -bind = SUPER, K, exec, ~/.local/share/omarchy/bin/omarchy-show-keybindings +bind = SUPER, space, exec, pkill wofi || wofi --show drun -O alphabetical +bind = SUPER, K, exec, pkill wofi || ~/.local/share/omarchy/bin/omarchy-show-keybindings # Aesthetics bind = SUPER SHIFT, SPACE, exec, pkill -SIGUSR1 waybar bind = SUPER CTRL, SPACE, exec, ~/.local/share/omarchy/bin/omarchy-theme-bg-next -bind = SUPER SHIFT CTRL, SPACE, exec, ~/.local/share/omarchy/bin/omarchy-theme-menu +bind = SUPER SHIFT CTRL, SPACE, exec, pkill wofi || ~/.local/share/omarchy/bin/omarchy-theme-menu # Notifications bind = SUPER, comma, exec, makoctl dismiss @@ -13,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" # Power menu controls lock, suspend, relaunch, restart, shutdown -bind = SUPER, ESCAPE, exec, ~/.local/share/omarchy/bin/omarchy-power-menu +bind = SUPER, ESCAPE, exec, pkill wofi || ~/.local/share/omarchy/bin/omarchy-power-menu # Toggle idling bind = SUPER CTRL, I, exec, ~/.local/share/omarchy/bin/omarchy-toggle-idle diff --git a/default/wofi/search.css b/default/wofi/search.css deleted file mode 100644 index c6db56e..0000000 --- a/default/wofi/search.css +++ /dev/null @@ -1,73 +0,0 @@ -@import ".config/omarchy/current/theme/wofi.css"; -@import ".config/wofi/style.css"; - -* { - font-family: 'CaskaydiaMono Nerd Font', monospace; - font-size: 18px; -} - -window { - margin: 0px; - padding: 20px; - background-color: @base; - opacity: 0.95; -} - -#inner-box { - margin: 0; - padding: 0; - border: none; - background-color: @base; -} - -#outer-box { - margin: 0; - padding: 20px; - border: none; - background-color: @base; - border: 2px solid @border; -} - -#scroll { - margin: 0; - padding: 0; - border: none; - background-color: @base; -} - -#input { - margin: 0; - padding: 10px; - border: none; - background-color: @base; - color: @text; -} - -#input:focus { - outline: none; - box-shadow: none; - border: none; -} - -#text { - margin: 5px; - border: none; - color: @text; -} - -#entry { - background-color: @base; -} - -#entry:selected { - outline: none; - border: none; -} - -#entry:selected #text { - color: @selected-text; -} - -#entry image { - -gtk-icon-transform: scale(0.7); -} diff --git a/migrations/1752292967.sh b/migrations/1752292967.sh index 293d74a..8a6cde3 100644 --- a/migrations/1752292967.sh +++ b/migrations/1752292967.sh @@ -13,6 +13,6 @@ if [ -f "$HOME/.config/environment.d/fcitx.conf" ]; then sed -i 's/^GTK_IM_MODULE=fcitx$//' "$HOME/.config/environment.d/fcitx.conf" fi -omarchy-refresh-plymouth +omarchy-refresh-plymouth -y source ~/.local/share/omarchy/install/login.sh diff --git a/migrations/1752551006.sh b/migrations/1752551006.sh index b573001..efa955c 100644 --- a/migrations/1752551006.sh +++ b/migrations/1752551006.sh @@ -2,4 +2,5 @@ echo "Make wofi stylesheet user editable" if [[ -L "$HOME/.config/wofi/style.css" ]]; then rm "$HOME/.config/wofi/style.css" cp ~/.local/share/omarchy/config/wofi/style.css ~/.config/wofi/ + cp ~/.local/share/omarchy/config/wofi/search.css ~/.config/wofi/ fi diff --git a/migrations/1752249974.sh b/migrations/1752643269.sh similarity index 100% rename from migrations/1752249974.sh rename to migrations/1752643269.sh diff --git a/migrations/1752673060.sh b/migrations/1752673060.sh new file mode 100644 index 0000000..4e2df85 --- /dev/null +++ b/migrations/1752673060.sh @@ -0,0 +1,2 @@ +echo "Make all wofi stylesheets user editable" +omarchy-refresh-wofi -y diff --git a/migrations/1752676402.sh b/migrations/1752676402.sh new file mode 100644 index 0000000..5d75583 --- /dev/null +++ b/migrations/1752676402.sh @@ -0,0 +1,2 @@ +echo "Use latest Omarchy Waybar configuration" +omarchy-refresh-waybar