This commit is contained in:
iris committed 2023-07-29 18:56:09 -04:00
1 parent 0d5900b551
commit a89b397a91
9 files changed
+96 -67

No files matched your search

+2 -2
View File
@@ -12,7 +12,7 @@
(defwidget bar-left [] (defwidget bar-left []
(box :class "bar-left" :space-evenly false :halign "start" (box :class "bar-left" :space-evenly false :halign "start"
(bat) (cpu) (temp) (mem) (disk))) (bat) (sep) (cpu) (sep) (temp) (sep) (mem) (sep) (disk)))
(defwidget bar-center [monitor] (defwidget bar-center [monitor]
(box :class "bar-center" :space-evenly false (box :class "bar-center" :space-evenly false
@@ -20,5 +20,5 @@
(defwidget bar-right [] (defwidget bar-right []
(box :class "bar-right" :space-evenly false :halign "end" (box :class "bar-right" :space-evenly false :halign "end"
(brightness) (vol) (net) (date) (time))) (brightness) (vol) (net) (sep) (date) (time)))
+12 -9
View File
@@ -50,13 +50,16 @@
(box :class "text mod" (box :class "text mod"
poll)) poll))
(defwidget circle [value ?icon class] (defwidget circle [value icon class]
(box :class "mod" (box :class "mod circle-progress"
(circular-progress :value value (label :text icon
:width 30 :class "${class}")
:class "circle-bar ${class}" (circular-progress :value value
:thickness 4 :width 25
:start-at 75 :class "circle-bar ${class} bg"
(label :text {icon ?: ""} :thickness 4
:class "circle ${class}")))) :start-at 75)))
(defwidget sep []
(label :text "" :class "sep"))
+3 -3
View File
@@ -6,7 +6,7 @@
(defwidget vol [] (defwidget vol []
(hover-metric :icon {vol < 33 ? "" : vol < 66 ? "" : "󰕾"} (hover-metric :icon {vol < 33 ? "" : vol < 66 ? "" : "󰕾"}
:value vol :value vol
:class "green" :class "purple"
:revealname "vol_reveal" :revealname "vol_reveal"
:reveal vol_reveal :reveal vol_reveal
:onchange "wpctl set-volume @DEFAULT_SINK@ {}% && eww update vol={}")) :onchange "wpctl set-volume @DEFAULT_SINK@ {}% && eww update vol={}"))
@@ -15,7 +15,7 @@
(defwidget brightness [] (defwidget brightness []
(hover-metric :icon "" (hover-metric :icon ""
:value bright :value bright
:class "yellow" :class "magenta"
:revealname "bright_reveal" :revealname "bright_reveal"
:reveal bright_reveal :reveal bright_reveal
:onchange "light -S {}%")) :onchange "light -S {}%"))
@@ -24,7 +24,7 @@
(defwidget net [] (defwidget net []
(hover-text :icon " " (hover-text :icon " "
:value net :value net
:class "cyan" :class "blue"
:revealname "net_reveal" :revealname "net_reveal"
:reveal net_reveal)) :reveal net_reveal))
+8 -8
View File
@@ -1,21 +1,21 @@
(defwidget cpu [] (defwidget cpu []
(circle :value {EWW_CPU.avg} (circle :value {EWW_CPU.avg}
:icon "" :icon ""
:class "cyan")) :class "blue"))
(defwidget temp [] (defwidget temp []
(circle :value {EWW_TEMPS.CORETEMP_PACKAGE_ID_0} (circle :value {EWW_TEMPS.CORETEMP_PACKAGE_ID_0}
:icon "" :icon ""
:class "magenta")) :class "purple"))
(defwidget mem [] (defwidget mem []
(circle :value {EWW_RAM.used_mem_perc} (circle :value {EWW_RAM.used_mem_perc}
:icon "" :icon ""
:class "yellow")) :class "magenta"))
(defwidget disk [] (defwidget disk []
(circle :value {round((1 - (EWW_DISK["/"].free / EWW_DISK["/"].total)) * 100, 0)} (circle :value "${round((1 - (EWW_DISK["/"].free / EWW_DISK["/"].total)) * 100, 0)}"
:icon "" :icon ""
:class "red")) :class "red"))
(defpoll bat_stat :interval "30s" "cat /") (defpoll bat_stat :interval "30s" "cat /")
@@ -24,9 +24,9 @@
(circle :value {EWW_BATTERY.BAT0.capacity} (circle :value {EWW_BATTERY.BAT0.capacity}
;; :icon "⏻" ;; :icon "⏻"
:icon { :icon {
EWW_BATTERY.BAT0.status == "Charging" ? "󱐋" EWW_BATTERY.BAT0.status == "Charging" ? "󰂄"
: EWW_BATTERY.BAT0.status == "Not charging" ? "" : EWW_BATTERY.BAT0.status == "Not charging" ? ""
: "󰁹" : EWW_BATTERY.BAT0.capacity < 15 ? "󰂃" : "󰁹"
} }
:class "green"))) :class "cyan")))
+2 -2
View File
@@ -3,9 +3,9 @@
;; (deflisten wslist1 ;; (deflisten wslist1
;; "scripts/getwsss DP-") ;; "scripts/getwsss DP-")
(deflisten wslist0 (deflisten wslist0
"scripts/getwss 0") "scripts/wmws 0")
(deflisten wslist1 (deflisten wslist1
"scripts/getwss 1") "scripts/wmws 1")
(defwidget workspaces [monitor] (defwidget workspaces [monitor]
(box :class "workspaces" (box :class "workspaces"
(for entry in {monitor == 0 ? wslist0 : wslist1} (for entry in {monitor == 0 ? wslist0 : wslist1}
+60 -43
View File
@@ -9,30 +9,39 @@ $magenta: #F5C2E7;
$cyan: #94E2D5; $cyan: #94E2D5;
$magenta3: #e6aaee; $magenta3: #e6aaee;
$black3: #686B80;
$purple: #b0b0e8; $purple: #b0b0e8;
$text: $white; $text: $white;
$mod-bg: #505060; $mod-bg: #505060;
$trough: #464666; $trough: #464666;
$bg: rgba(#1e1e2e, .7); $bg: #2e2e3e;
$hover-bg: $black; $hover-bg: $black;
$bg-darken: 40%;
$bg-desat: 50%;
* { * {
all: unset; all: unset;
} }
.bar { .bar {
margin-top: 10px; margin-top: 15px;
color: $text; color: $text;
font-size: 20px; font-size: 20px;
font-family: "Symbols Nerd Font", "Comic Code Ligatures"; font-family: "Symbols Nerd Font Mono", "Comic Code Ligatures";
margin-left: 15px; margin-left: 15px;
margin-right: 15px; margin-right: 15px;
} }
.bar-right, .bar-left, .bar-center {
background-color: rgba($bg, 0.8);
border-radius: 20px;
}
.mod { .mod {
padding-left: 10px; margin: 5px 10px;
padding-right: 10px;
} }
.metric scale trough highlight { .metric scale trough highlight {
@@ -48,83 +57,91 @@ $hover-bg: $black;
margin-left: 10px; margin-left: 10px;
} }
.workspaces button:hover {
background-color: $hover-bg;
}
.workspaces { .workspaces {
// un... un bro momento // un... un bro momento
.id1 {
font-size: 15px;
}
.id2 {
font-size: 16px;
}
.id3 {
font-size: 15px;
}
.id6 {
font-size: 13px;
}
.id7 {
font-size: 14px;
}
.id8 {
font-size: 15px;
}
button { button {
padding: 0 7px; padding: 0 10px;
margin: 0 3px; color: $black3;
border-radius: 50%; }
color: $text; button:hover {
border: 2px solid; color: $black
border-color: $black2;
} }
button.focused { button.focused {
border-color: $magenta3; color: $magenta;
color: $purple;
} }
button.urgent { button.urgent {
background-color: $magenta; color: $yellow;
color: $black;
} }
} }
.sep {
font-size: 10px;
color: $black2;
}
.circle { .circle {
font-size: 14px; font-size: 6px;
margin: 8px; margin: 8px;
} }
.circle-progress {
border-radius: 20px;
}
.circle-bar {
background-color: $trough;
margin-left: 5px;
}
.red { .red {
color: $red; color: $red;
} }
.red.bg {
background-color: desaturate(darken($red, $bg-darken), $bg-desat);
}
.green { .green {
color: $green; color: $green;
} }
.green.bg {
background-color: desaturate(darken($green, $bg-darken), $bg-desat);
}
.yellow { .yellow {
color: $yellow; color: $yellow;
} }
.yellow.bg {
background-color: desaturate(darken($yellow, $bg-darken), $bg-desat);
}
.blue { .blue {
color: $blue; color: $blue;
} }
.blue.bg {
background-color: desaturate(darken($blue, $bg-darken), $bg-desat);
}
.magenta { .magenta {
color: $magenta; color: $magenta;
} }
.magenta.bg {
background-color: desaturate(darken($magenta, $bg-darken), $bg-desat);
}
.cyan { .cyan {
color: $cyan; color: $cyan;
} }
.cyan.bg {
background-color: desaturate(darken($cyan, $bg-darken), $bg-desat);
}
.purple { .purple {
color: $purple; color: $purple;
} }
.circle-bar {
background-color: $bg;
}
+9
View File
@@ -1,5 +1,14 @@
(include "bar/bar.yuck") (include "bar/bar.yuck")
(defwindow bar
:exclusive true
:geometry (geometry :x "0%"
:y "0%"
:width "100%"
:height "30px"
:anchor "top center")
(bar :monitor 0))
(defwindow bar-eDP (defwindow bar-eDP
:monitor 0 :monitor 0
:exclusive true :exclusive true
BIN
View File
Binary file not shown.
Executable
BIN
View File
Binary file not shown.