refactor eww
This commit is contained in:
48
eww/eww.scss
48
eww/eww.scss
@@ -1,47 +1 @@
|
||||
@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;
|
||||
}
|
||||
}
|
||||
@import 'topbar_dp2.scss';
|
||||
|
51
eww/eww.yuck
51
eww/eww.yuck
@@ -1,50 +1 @@
|
||||
(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)))
|
||||
(include "./topbar_dp2.yuck")
|
||||
|
47
eww/topbar_dp2.scss
Normal file
47
eww/topbar_dp2.scss
Normal 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
50
eww/topbar_dp2.yuck
Normal 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)))
|
Reference in New Issue
Block a user