Added SwayOSD

This commit is contained in:
2025-07-09 15:49:52 +02:00
parent 79a1d4d3c1
commit 391416e9a5
3 changed files with 69 additions and 0 deletions

View File

@@ -0,0 +1,3 @@
[input]
## completely ignore the caps lock key (useful if it's rebound to something else like escape)
# ignore_caps_lock_key = false

View File

@@ -0,0 +1,19 @@
[server]
## style file for the OSD
# style = /etc/xdg/swayosd/style.css
## on which height to show the OSD
# top_margin = 0.85
## The maximum volume that can be reached in %
# max_volume = 150
## show percentage on the right of the OSD
# show_percentage = true
## set format for the media player OSD
# playerctl_format = "{artist} - {title}"
## Available values:
## artist, albumArtist, title, album, trackNumber, discNumber, autoRating
[client]

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

@@ -0,0 +1,47 @@
/* SwayOSD midnight-ocean theme */
/* Palette */
@define-color theme_bg_color rgba(11, 27, 43, 0.8); /* bg_main at 80% opacity */
@define-color theme_fg_color #CAD3E8; /* content_main */
/* OSD Window */
window#osd {
border-radius: 999px;
border: none;
background: alpha(@theme_bg_color, 0.8);
}
window#osd #container {
margin: 16px;
}
window#osd image,
window#osd label {
color: @theme_fg_color;
}
/* Disabled state */
window#osd progressbar:disabled,
window#osd image:disabled {
opacity: 0.5;
}
/* Progress bar track */
window#osd progressbar {
min-height: 6px;
border-radius: 999px;
background: transparent;
border: none;
}
window#osd trough {
min-height: inherit;
border-radius: inherit;
border: none;
background: alpha(@theme_fg_color, 0.5);
}
/* Progress fill */
window#osd progress {
min-height: inherit;
border-radius: inherit;
border: none;
background: @theme_fg_color;
}