refactor eww

This commit is contained in:
2025-03-08 06:03:52 +01:00
parent 12c472dfc6
commit 7cbb426544
4 changed files with 99 additions and 97 deletions

View File

@@ -1,47 +1 @@
@import 'widgets'; @import 'topbar_dp2.scss';
* {
all: unset;
}
tooltip {
background: #2E3440;
color: #E5E6E7;
border-radius: 1.5rem 1rem;
border: 1px solid #6F7175;
}
.popup {
background: #2E3440;
color: #E5E6E7;
border: 1px solid #6F7175;
}
.popup menuitem:hover {
background: grey;
}
window {
background: transparent;
color: transparent;
* {
font-family: 'Inconsolata Go Nerd Font';
font-size: 0.85rem;
border-radius: 1.5rem 1rem;
padding: 2px 6px;
}
/* Modules */
.left {
//background: orange;
}
.center {
//background: blue;
}
.right {
//background: yellow;
}
}

View File

@@ -1,50 +1 @@
(include "./widgets.yuck") (include "./topbar_dp2.yuck")
(defwindow topbar_DP-2
:monitor "DP-2"
:geometry (geometry :x "0%"
:y "0%"
:width "90%"
:height "10px"
:anchor "top center")
:stacking "bg"
:exclusive true
:reserve (struts :side "top" :distance "4%")
:windowtype "dock"
(bar0))
(defwidget bar0 []
(centerbox :orientation "h"
(left)
(center)
(right)))
(defwidget left []
(box :orientation 'h'
:class: 'left'
:space-evenly false
:spacing 5
:halign 'start'
(hypr_workspaces)
(hypr_active_window)))
(defwidget center []
(box :orientation 'h'
:class 'center'
:space-evenly false
:spacing 5
(media)
(sysmon)))
(defwidget right []
(box
:orientation 'h'
:class 'right'
:space-evenly false
:spacing 5
:halign 'end'
(hyprsunset)
(datetime)
(stray)
(swaync)))

47
eww/topbar_dp2.scss Normal file
View File

@@ -0,0 +1,47 @@
@import 'widgets';
* {
all: unset;
}
tooltip {
background: #2E3440;
color: #E5E6E7;
border-radius: 1.5rem 1rem;
border: 1px solid #6F7175;
}
.popup {
background: #2E3440;
color: #E5E6E7;
border: 1px solid #6F7175;
}
.popup menuitem:hover {
background: grey;
}
window {
background: transparent;
color: transparent;
* {
font-family: 'Inconsolata Go Nerd Font';
font-size: 0.85rem;
border-radius: 1.5rem 1rem;
padding: 2px 6px;
}
/* Modules */
.left {
//background: orange;
}
.center {
//background: blue;
}
.right {
//background: yellow;
}
}

50
eww/topbar_dp2.yuck Normal file
View File

@@ -0,0 +1,50 @@
(include "./widgets.yuck")
(defwindow topbar_DP-2
:monitor "DP-2"
:geometry (geometry :x "0%"
:y "0%"
:width "90%"
:height "10px"
:anchor "top center")
:stacking "bg"
:exclusive true
:reserve (struts :side "top" :distance "4%")
:windowtype "dock"
(bar0))
(defwidget bar0 []
(centerbox :orientation "h"
(left)
(center)
(right)))
(defwidget left []
(box :orientation 'h'
:class: 'left'
:space-evenly false
:spacing 5
:halign 'start'
(hypr_workspaces)
(hypr_active_window)))
(defwidget center []
(box :orientation 'h'
:class 'center'
:space-evenly false
:spacing 5
(media)
(sysmon)))
(defwidget right []
(box
:orientation 'h'
:class 'right'
:space-evenly false
:spacing 5
:halign 'end'
(hyprsunset)
(datetime)
(stray)
(swaync)))