tried some styling

This commit is contained in:
2025-03-06 23:28:59 +01:00
parent 7a19bd41f4
commit 4ae7e1c9b4
4 changed files with 48 additions and 12 deletions

View File

@@ -0,0 +1,14 @@
.activewindow{
background: #98C379;
color: #ffffff;
&--xwayland{
background: red;
color: black;
}
&--tooltip{
background: darkgrey;
color: white;
}
}

View 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;
}

View File

@@ -1,21 +1,20 @@
(deflisten workspaces :initial "" "hyprman -w")
(defvar workspaceIcons '{
"empty": "",
"full": "",
"empty": "",
"full": "",
"focused": "󱓻"
}')
(defwidget hypr_workspaces []
(box
:class "workspacecontainer"
:space-evenly true
(for workspace in workspaces
(eventbox
:onclick "hyprctl dispatch workspace ${workspace.id}"
:tooltip "current: ${workspace.name}"
(label
:class "workspace${workspace.active == true ? '--activ' : ''}"
:text "${workspace.windows > 0 ? workspaceIcons.full : workspaceIcons.empty}")))))
:tooltip "${workspace.name}"
:class "workspace ${workspace.active == true ? 'wsactive' : 'wsinactive'}"
"${workspace.windows > 0 ? workspaceIcons.full : workspaceIcons.empty}"))))

View File

@@ -1,4 +1,4 @@
(defvar temperature "4500k")
(defvar temperature "3000K")
(defvar display-fix "off")
(defwidget hyprsunset []
(box
@@ -10,7 +10,7 @@
:onclick `${display-fix == "off"
? "eww update display-fix=on && nohup hyprsunset -t ${temperature} > /dev/null 2>&1 &"
: "eww update display-fix=off && pkill hyprsunset"}`
`${display-fix == "off" ? "󰛨 Off" : "󱩌 On"}`
)
)
)
`${display-fix == "off" ? "󰛨 Off" : "󱩌 On"}`)))