mirror of
https://github.com/basecamp/omarchy.git
synced 2025-07-27 12:19:24 +00:00
Merge pull request #288 from aifrim/swayosd-cfg
full swayosd integration
This commit is contained in:
@ -24,12 +24,13 @@ main_menu() {
|
||||
|
||||
update_menu() {
|
||||
show_ascii_art
|
||||
local menu=("Omarchy" "Waybar" "Walker" "Plymouth" "Desktop apps" "Back")
|
||||
local menu=("Omarchy" "Waybar" "Walker" "Plymouth" "SwayOSD" "Desktop apps" "Back")
|
||||
local commands=(
|
||||
"omarchy-update"
|
||||
"omarchy-refresh-waybar"
|
||||
"omarchy-refresh-walker"
|
||||
"omarchy-refresh-plymouth"
|
||||
"omarchy-refresh-swayosd"
|
||||
"omarchy-refresh-applications"
|
||||
"main_menu"
|
||||
)
|
||||
|
13
bin/omarchy-refresh-swayosd
Executable file
13
bin/omarchy-refresh-swayosd
Executable file
@ -0,0 +1,13 @@
|
||||
#!/bin/bash
|
||||
|
||||
cp -f ~/.config/swayosd/config.toml ~/.config/swayosd/config.toml.back 2>/dev/null
|
||||
cp -f ~/.local/share/omarchy/config/walker/config.toml ~/.config/swayosd 2>/dev/null
|
||||
|
||||
if cmp -s ~/.config/swayosd/config.toml.bak ~/.config/swayosd/config.toml; then
|
||||
rm ~/.config/swayosd//config.toml.bak
|
||||
else
|
||||
echo -e "\e[31mExisting .config/swayosd/config.toml replaced with new Omarchy default, but a .bak file was made.\e[0m"
|
||||
fi
|
||||
|
||||
pkill swayosd-server
|
||||
uwsm app -- swayosd-server --gapplication-service &
|
@ -40,6 +40,7 @@ pkill -SIGUSR2 btop
|
||||
|
||||
# Restart components to apply new theme
|
||||
pkill -SIGUSR2 waybar
|
||||
pkill -SIGUSR2 swayosd-server
|
||||
makoctl reload
|
||||
hyprctl reload
|
||||
|
||||
|
Reference in New Issue
Block a user