From d5835873604028c86d5dc07b46f637f43f2f042f Mon Sep 17 00:00:00 2001 From: ItsDrike Date: Sun, 29 Jan 2023 17:23:23 +0100 Subject: [PATCH] Use icons from Material font in workspaces --- home/.config/eww/css/modules/_workspaces.scss | 12 +++++++----- home/.config/eww/modules/workspaces.yuck | 2 +- home/.config/eww/scripts/workspaces.py | 12 ++++++------ 3 files changed, 14 insertions(+), 12 deletions(-) diff --git a/home/.config/eww/css/modules/_workspaces.scss b/home/.config/eww/css/modules/_workspaces.scss index 040ad77..e97b513 100644 --- a/home/.config/eww/css/modules/_workspaces.scss +++ b/home/.config/eww/css/modules/_workspaces.scss @@ -2,18 +2,20 @@ background-color: $bg1-a; border-radius: 25px; + .icon, .icon label { + font-family: "Material Symbols Outlined"; + font-size: 1.15rem; + } + .value { - margin-left: 10px; - margin-right: 10px; + margin: 0 9px; } .focused { // text-decoration: underline; // text-decoration-color: red; // text-decoration-style: double; - font-weight: 900; - // color: $sapphire; - color: #fff; + color: $fg; } .active { diff --git a/home/.config/eww/modules/workspaces.yuck b/home/.config/eww/modules/workspaces.yuck index cfbaf66..e9f902e 100644 --- a/home/.config/eww/modules/workspaces.yuck +++ b/home/.config/eww/modules/workspaces.yuck @@ -20,7 +20,7 @@ :onclick `scripts/workspaces --switch ${workspace.id}` (label - :class "value" + :class "value icon" :text {workspace.format_name})) ) )) diff --git a/home/.config/eww/scripts/workspaces.py b/home/.config/eww/scripts/workspaces.py index 2273035..6d30fba 100755 --- a/home/.config/eww/scripts/workspaces.py +++ b/home/.config/eww/scripts/workspaces.py @@ -49,12 +49,12 @@ class OutputWorkspaceInfo(WorkspaceInfo): # workspace id -> remapped name REMAPS = { - 1: "", - 2: "", - 3: "", - 4: "", - 5: "", - 6: "", + 1: "󰞷", + 2: "󰈹", + 3: "󱕂", + 4: "󰭹", + 5: "󰝚", + 6: "󰋹", 7: "7", 8: "8", 9: "9",