tried some styling
This commit is contained in:
14
eww/widgets/hypr_activewindow.scss
Normal file
14
eww/widgets/hypr_activewindow.scss
Normal file
@@ -0,0 +1,14 @@
|
|||||||
|
.activewindow{
|
||||||
|
background: #98C379;
|
||||||
|
color: #ffffff;
|
||||||
|
|
||||||
|
&--xwayland{
|
||||||
|
background: red;
|
||||||
|
color: black;
|
||||||
|
}
|
||||||
|
|
||||||
|
&--tooltip{
|
||||||
|
background: darkgrey;
|
||||||
|
color: white;
|
||||||
|
}
|
||||||
|
}
|
23
eww/widgets/hypr_workspaces.scss
Normal file
23
eww/widgets/hypr_workspaces.scss
Normal file
@@ -0,0 +1,23 @@
|
|||||||
|
.workspacecontainer{
|
||||||
|
background: orange;
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
.workspace{
|
||||||
|
border-radius: 1rem 1rem;
|
||||||
|
margin: 6px;
|
||||||
|
padding: 6px;
|
||||||
|
font-family: 'Symbols Nerd Font Mono';
|
||||||
|
font-size: 16px;
|
||||||
|
border: 1px solid blue;
|
||||||
|
}
|
||||||
|
|
||||||
|
.wsactive{
|
||||||
|
background: pink;
|
||||||
|
color: red;
|
||||||
|
}
|
||||||
|
|
||||||
|
.wsinactive{
|
||||||
|
background: yellow;
|
||||||
|
color: red;
|
||||||
|
}
|
@@ -1,21 +1,20 @@
|
|||||||
(deflisten workspaces :initial "" "hyprman -w")
|
(deflisten workspaces :initial "" "hyprman -w")
|
||||||
|
|
||||||
(defvar workspaceIcons '{
|
(defvar workspaceIcons '{
|
||||||
"empty": "",
|
"empty": "",
|
||||||
"full": "",
|
"full": "",
|
||||||
"focused": ""
|
"focused": ""
|
||||||
}')
|
}')
|
||||||
|
|
||||||
(defwidget hypr_workspaces []
|
(defwidget hypr_workspaces []
|
||||||
(box
|
(box
|
||||||
|
:class "workspacecontainer"
|
||||||
:space-evenly true
|
:space-evenly true
|
||||||
(for workspace in workspaces
|
(for workspace in workspaces
|
||||||
(eventbox
|
(eventbox
|
||||||
:onclick "hyprctl dispatch workspace ${workspace.id}"
|
:onclick "hyprctl dispatch workspace ${workspace.id}"
|
||||||
:tooltip "current: ${workspace.name}"
|
:tooltip "${workspace.name}"
|
||||||
(label
|
:class "workspace ${workspace.active == true ? 'wsactive' : 'wsinactive'}"
|
||||||
:class "workspace${workspace.active == true ? '--activ' : ''}"
|
"${workspace.windows > 0 ? workspaceIcons.full : workspaceIcons.empty}"))))
|
||||||
:text "${workspace.windows > 0 ? workspaceIcons.full : workspaceIcons.empty}")))))
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
@@ -1,4 +1,4 @@
|
|||||||
(defvar temperature "4500k")
|
(defvar temperature "3000K")
|
||||||
(defvar display-fix "off")
|
(defvar display-fix "off")
|
||||||
(defwidget hyprsunset []
|
(defwidget hyprsunset []
|
||||||
(box
|
(box
|
||||||
@@ -10,7 +10,7 @@
|
|||||||
:onclick `${display-fix == "off"
|
:onclick `${display-fix == "off"
|
||||||
? "eww update display-fix=on && nohup hyprsunset -t ${temperature} > /dev/null 2>&1 &"
|
? "eww update display-fix=on && nohup hyprsunset -t ${temperature} > /dev/null 2>&1 &"
|
||||||
: "eww update display-fix=off && pkill hyprsunset"}`
|
: "eww update display-fix=off && pkill hyprsunset"}`
|
||||||
`${display-fix == "off" ? " Off" : " On"}`
|
`${display-fix == "off" ? " Off" : " On"}`)))
|
||||||
)
|
|
||||||
)
|
|
||||||
)
|
|
||||||
|
Reference in New Issue
Block a user