Eww reformatting and fixes

This commit is contained in:
marc
2024-03-02 18:06:17 +01:00
parent 466ddf2cd9
commit d1b63fe326
8 changed files with 23 additions and 47 deletions

View File

@@ -1,5 +1,3 @@
@import './colour-scheme.scss'
*{ *{
all: unset; all: unset;
font-family: Iosevka; font-family: Iosevka;
@@ -42,7 +40,7 @@ tooltip label {
/** Wifi **/ /** Wifi **/
.wifi { .wifi {
color: $base0C; color: $base0D;
} }
.wifi-text { .wifi-text {

View File

@@ -22,7 +22,6 @@
(bar-center) (bar-center)
(bar-right))) (bar-right)))
(defwidget bar-left [] (defwidget bar-left []
(box :halign "start" (box :halign "start"
:orientation "h" :orientation "h"
@@ -32,7 +31,6 @@
(box :halign "center" (box :halign "center"
:orientation "h")) :orientation "h"))
(defwidget bar-right [] (defwidget bar-right []
(box :halign "end" (box :halign "end"
:orientation "h" :orientation "h"

View File

@@ -1,16 +0,0 @@
$base00: #1c2735;
$base01: #3e4856;
$base02: #616a76;
$base03: #838c97;
$base04: #a5adb7;
$base05: #c7cfd7;
$base06: #cfd6dd;
$base07: #d8dde3;
$base08: #ec5b5c;
$base09: #667b87;
$base0A: #547f87;
$base0B: #7c7399;
$base0C: #b25b8e;
$base0D: #b75a80;
$base0E: #d4445b;
$base0F: #5d7aa2;

View File

@@ -1 +1,2 @@
@import './colour-scheme.scss'
@import './bars/top-bar.scss' @import './bars/top-bar.scss'

View File

@@ -4,23 +4,18 @@
(defvar date-reveal false) (defvar date-reveal false)
(defwidget clock-module [] (defwidget clock-module []
(eventbox (eventbox :onhover "${EWW_CMD} update date-reveal=true"
:onhover "${EWW_CMD} update date-reveal=true" :onhoverlost "${EWW_CMD} update date-reveal=false"
:onhoverlost "${EWW_CMD} update date-reveal=false" (box :class "module clock"
(box :orientation "h"
:class "module clock" :space-evenly "false"
:orientation "h" (label :text clock-time
:space-evenly "false" :class "clock-time")
(label (revealer :transition "slideleft"
:text clock-time :duration "750ms"
:class "clock-time") :reveal {date-reveal}
(revealer (box :orientation "h"
:transition "slideleft" (label :text clock-date
:duration "750ms" :class "clock-date")
:reveal {date-reveal} (label :text clock-year
(box :class "clock-year"))))))
:orientation "h"
(label :text clock-date
:class "clock-date")
(label :text clock-year
:class "clock-year"))))))

View File

@@ -2,9 +2,9 @@
(deflisten current_workspace :initial "1" "bash ~/.config/eww/scripts/get-active-workspace.sh") (deflisten current_workspace :initial "1" "bash ~/.config/eww/scripts/get-active-workspace.sh")
(defwidget workspaces-module [] (defwidget workspaces-module []
(box :space-evenly true (box :space-evenly true
(label :text "${workspaces}${current_workspace}" (label :text "${workspaces}${current_workspace}"
:visible false) :visible false)
(for workspace in workspaces (for workspace in workspaces
(eventbox :onclick "hyprctl dispatch workspace ${workspace.id}" (eventbox :onclick "hyprctl dispatch workspace ${workspace.id}"
(box :class "workspace-entry ${workspace.id == current_workspace ? "current" : ""} ${workspace.windows > 0 ? "occupied" : "empty"}" (label :text "${workspace.id == current_workspace ? "" : ""}"
(label :text "${workspace.id == current_workspace ? "" : ""}")))))) :class "workspace-entry ${workspace.id == current_workspace ? "current" : ""} ${workspace.windows > 0 ? "occupied" : "empty"}")))))

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.0 MiB

View File

@@ -3,7 +3,7 @@
with lib; with lib;
let let
nix-colors-lib = inputs.nix-colors.lib-contrib { inherit pkgs; }; nix-colors-lib = inputs.nix-colors.lib-contrib { inherit pkgs; };
wallpaper = ../../data/wallpapers/globus.jpg; wallpaper = ../../data/wallpapers/wallhaven/canyon.jpg;
in in
{ {
imports = [ imports = [