mirror of
https://github.com/basecamp/omarchy.git
synced 2025-07-27 04:09:23 +00:00
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 &
|
@ -46,6 +46,7 @@ pkill -SIGUSR2 btop
|
||||
|
||||
# Restart components to apply new theme
|
||||
pkill -SIGUSR2 waybar
|
||||
pkill -SIGUSR2 swayosd-server
|
||||
makoctl reload
|
||||
hyprctl reload
|
||||
|
||||
|
4
config/swayosd/config.toml
Normal file
4
config/swayosd/config.toml
Normal file
@ -0,0 +1,4 @@
|
||||
[server]
|
||||
show_percentage = true
|
||||
max_volume = 150
|
||||
style = "./style.css"
|
28
config/swayosd/style.css
Normal file
28
config/swayosd/style.css
Normal 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
6
migrations/1753224615.sh
Executable 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
|
6
themes/catppuccin-latte/swayosd.css
Normal file
6
themes/catppuccin-latte/swayosd.css
Normal 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;
|
||||
|
6
themes/catppuccin/swayosd.css
Normal file
6
themes/catppuccin/swayosd.css
Normal 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;
|
||||
|
6
themes/everforest/swayosd.css
Normal file
6
themes/everforest/swayosd.css
Normal 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;
|
||||
|
6
themes/gruvbox/swayosd.css
Normal file
6
themes/gruvbox/swayosd.css
Normal 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;
|
||||
|
6
themes/kanagawa/swayosd.css
Normal file
6
themes/kanagawa/swayosd.css
Normal 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;
|
||||
|
6
themes/matte-black/swayosd.css
Normal file
6
themes/matte-black/swayosd.css
Normal 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
6
themes/nord/swayosd.css
Normal 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;
|
||||
|
6
themes/rose-pine/swayosd.css
Normal file
6
themes/rose-pine/swayosd.css
Normal 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;
|
||||
|
6
themes/tokyo-night/swayosd.css
Normal file
6
themes/tokyo-night/swayosd.css
Normal 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;
|
||||
|
Reference in New Issue
Block a user