forked from ahurac/dotfiles
Ajout : config eww ahrc-laptop
This commit is contained in:
parent
cad9fea16b
commit
1ccd4132f4
2 changed files with 49 additions and 0 deletions
9
config/eww-ahrc--laptop/eww.scss
Normal file
9
config/eww-ahrc--laptop/eww.scss
Normal file
|
@ -0,0 +1,9 @@
|
|||
window {
|
||||
background-color: rgba(0, 0, 0, 0);
|
||||
color: #ffffff;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
window > box {
|
||||
margin: 0px 15px;
|
||||
}
|
40
config/eww-ahrc--laptop/eww.yuck
Normal file
40
config/eww-ahrc--laptop/eww.yuck
Normal file
|
@ -0,0 +1,40 @@
|
|||
(defwidget time []
|
||||
(eventbox :class "time"
|
||||
"${formattime(EWW_TIME, "%Y-%m-%d | %H:%M:%S")}"
|
||||
)
|
||||
)
|
||||
|
||||
(defwidget battery []
|
||||
(box
|
||||
(label
|
||||
:text "${EWW_BATTERY.BAT0.status == "Discharging" ? "" : ""}"
|
||||
)
|
||||
(label :text "${EWW_BATTERY.BAT0.capacity} %")
|
||||
)
|
||||
)
|
||||
|
||||
(defwindow bar
|
||||
:monitor 0
|
||||
:geometry (geometry
|
||||
:x "0%"
|
||||
:y "0%"
|
||||
:width "100%"
|
||||
:height "2.5%"
|
||||
:anchor "bottom center"
|
||||
)
|
||||
:stacking "fg"
|
||||
:reserve (struts :distance "0px" :side "top")
|
||||
:windowtype "dock"
|
||||
:wm-ignore false
|
||||
:exclusive true
|
||||
:focusable false
|
||||
(centerbox
|
||||
(box :class "left")
|
||||
(box :class "center"
|
||||
(time)
|
||||
)
|
||||
(box :class "right" :halign "end"
|
||||
(battery)
|
||||
)
|
||||
)
|
||||
)
|
Loading…
Reference in a new issue