diff --git a/.config/swayosd/backend.toml b/.config/swayosd/backend.toml new file mode 100644 index 0000000..bc739e4 --- /dev/null +++ b/.config/swayosd/backend.toml @@ -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 diff --git a/.config/swayosd/config.toml b/.config/swayosd/config.toml new file mode 100644 index 0000000..fd0ea23 --- /dev/null +++ b/.config/swayosd/config.toml @@ -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] diff --git a/.config/swayosd/style.css b/.config/swayosd/style.css new file mode 100644 index 0000000..a621b59 --- /dev/null +++ b/.config/swayosd/style.css @@ -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; +}