~kota/dots

b59771ec452e3e1d3f1797e7ef525eb7f2b3f257 — Dakota Walsh 1 year, 9 months ago 014beae
create xob light-theme
4 files changed, 47 insertions(+), 3 deletions(-)

R xob/.config/xob/styles.cfg => xob-dark/.config/xob/styles.cfg
R xob/bin/xob-get-mute => xob-dark/bin/xob-get-mute
A xob-light/.config/xob/styles.cfg
A xob-light/bin/xob-get-mute
R xob/.config/xob/styles.cfg => xob-dark/.config/xob/styles.cfg +3 -3
@@ 12,9 12,9 @@ default = {

    color = {
        normal = {
            fg     = "#F24353FF";
            fg     = "#888aca";
            bg     = "#000000";
            border = "#F24353FF";
            border = "#888aca";
        };
        alt = {
            fg     = "#565656";


@@ 24,7 24,7 @@ default = {
        overflow = {
            fg     = "#f7ca88";
            bg     = "#000000";
            border = "#F24353FF";
            border = "#888aca";
        };
        altoverflow = {
            fg     = "#666666";

R xob/bin/xob-get-mute => xob-dark/bin/xob-get-mute +0 -0
A xob-light/.config/xob/styles.cfg => xob-light/.config/xob/styles.cfg +35 -0
@@ 0,0 1,35 @@
default = {
    x         = {relative = 1; offset = -32;};
    y         = {relative = 0; offset = 32;};
    length    = {relative = 0.14; offset = 0;};
    thickness = 36;
    outline   = 0;
    border    = 6;
    padding   = 6;
    orientation = "horizontal";

    overflow = "proportional";

    color = {
        normal = {
            fg     = "#57bda0";
            bg     = "#ffffff";
            border = "#57bda0";
        };
        alt = {
            fg     = "#cccccc";
            bg     = "#ffffff";
            border = "#cccccc";
        };
        overflow = {
            fg     = "#ffb35b";
            bg     = "#000000";
            border = "#57bda0";
        };
        altoverflow = {
            fg     = "#aaaaaa";
            bg     = "#ffffff";
            border = "#cccccc";
        };
    };
};

A xob-light/bin/xob-get-mute => xob-light/bin/xob-get-mute +9 -0
@@ 0,0 1,9 @@
#!/bin/sh
VOL=$(pamixer --get-volume)
MUTE=$(pamixer --get-mute)

if [ "$MUTE" = "true" ]; then
  echo "$VOL"! > "$XOBSOCK"
else
  echo "$VOL" > "$XOBSOCK"
fi