full swayosd integration

This commit is contained in:
Alexandru Ifrim
2025-07-23 01:38:05 +03:00
parent 778a69897b
commit 1ebf88bac0
15 changed files with 108 additions and 1 deletions

View File

@ -24,12 +24,13 @@ main_menu() {
update_menu() { update_menu() {
show_ascii_art show_ascii_art
local menu=("Omarchy" "Waybar" "Walker" "Plymouth" "Desktop apps" "Back") local menu=("Omarchy" "Waybar" "Walker" "Plymouth" "SwayOSD" "Desktop apps" "Back")
local commands=( local commands=(
"omarchy-update" "omarchy-update"
"omarchy-refresh-waybar" "omarchy-refresh-waybar"
"omarchy-refresh-walker" "omarchy-refresh-walker"
"omarchy-refresh-plymouth" "omarchy-refresh-plymouth"
"omarchy-refresh-swayosd"
"omarchy-refresh-applications" "omarchy-refresh-applications"
"main_menu" "main_menu"
) )

13
bin/omarchy-refresh-swayosd Executable file
View 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 &

View File

@ -46,6 +46,7 @@ pkill -SIGUSR2 btop
# Restart components to apply new theme # Restart components to apply new theme
pkill -SIGUSR2 waybar pkill -SIGUSR2 waybar
pkill -SIGUSR2 swayosd-server
makoctl reload makoctl reload
hyprctl reload hyprctl reload

View File

@ -0,0 +1,4 @@
[server]
show_percentage = true
max_volume = 150
style = "./style.css"

28
config/swayosd/style.css Normal file
View File

@ -0,0 +1,28 @@
@import "../omarchy/current/theme/swayosd.css";
window {
border-radius: 0;
opacity: 0.97;
border: 2px solid @border-color;
background-color: @background-color;
}
label {
font-family: 'CaskaydiaMono Nerd Font', monospace;
font-size: 11pt;
color: @label;
}
image {
color: @image;
}
progressbar {
border-radius: 0;
}
progress {
background-color: @progress;
}

6
migrations/1753224615.sh Executable file
View File

@ -0,0 +1,6 @@
echo "Adding SwayOSD"
if [[ ! -d ~/.config/swayosd ]]; then
mkdir -p ~/.config/swayosd
cp -r ~/.local/share/omarchy/config/swayosd/* ~/.config/swayosd/
fi

View File

@ -0,0 +1,6 @@
@define-color background-color #eff1f5;
@define-color border-color #4c4f69;
@define-color label #4c4f69;
@define-color image #4c4f69;
@define-color progress #4c4f69;

View File

@ -0,0 +1,6 @@
@define-color background-color #24273a;
@define-color border-color #c6d0f5;
@define-color label #c6d0f5;
@define-color image #c6d0f5;
@define-color progress #c6d0f5;

View File

@ -0,0 +1,6 @@
@define-color background-color #2d353b;
@define-color border-color #d3c6aa;
@define-color label #d3c6aa;
@define-color image #d3c6aa;
@define-color progress #d3c6aa;

View File

@ -0,0 +1,6 @@
@define-color background-color #282828;
@define-color border-color #ebdbb2;
@define-color label #ebdbb2;
@define-color image #ebdbb2;
@define-color progress #ebdbb2;

View File

@ -0,0 +1,6 @@
@define-color background-color #1f1f28;
@define-color border-color #dcd7ba;
@define-color label #dcd7ba;
@define-color image #dcd7ba;
@define-color progress #dcd7ba;

View File

@ -0,0 +1,6 @@
@define-color background-color #121212;
@define-color border-color #EAEAEA;
@define-color label #EAEAEA;
@define-color image #EAEAEA;
@define-color progress #EAEAEA;

6
themes/nord/swayosd.css Normal file
View File

@ -0,0 +1,6 @@
@define-color background-color #2E3440;
@define-color border-color #D8DEE9;
@define-color label #D8DEE9;
@define-color image #D8DEE9;
@define-color progress #D8DEE9;

View File

@ -0,0 +1,6 @@
@define-color background-color #faf4ed;
@define-color border-color #575279;
@define-color label #575279;
@define-color image #575279;
@define-color progress #575279;

View File

@ -0,0 +1,6 @@
@define-color background-color #1a1b26;
@define-color border-color #33ccff;
@define-color label #33ccff;
@define-color image #33ccff;
@define-color progress #33ccff;