From d55e0d5ab68414c8511e07c86005af6fc5a51ef3 Mon Sep 17 00:00:00 2001 From: "E. Almqvist" Date: Fri, 30 Dec 2022 03:31:45 +0100 Subject: [PATCH] Minor tweak --- doomemacs/.doom.d/config.el | 2 ++ doomemacs/.doom.d/custom.el | 2 +- eww/.config/eww/eww.scss | 24 +++++++++++++----------- eww/.config/eww/eww.yuck | 3 ++- 4 files changed, 18 insertions(+), 13 deletions(-) diff --git a/doomemacs/.doom.d/config.el b/doomemacs/.doom.d/config.el index 8449862..9666f1a 100644 --- a/doomemacs/.doom.d/config.el +++ b/doomemacs/.doom.d/config.el @@ -78,3 +78,5 @@ ;; Indentation ;; (setq-default tab-width 4) ;; (setq-default indent-tabs-mode t) + +;; (elcord-mode) diff --git a/doomemacs/.doom.d/custom.el b/doomemacs/.doom.d/custom.el index 1a17221..1b9c59f 100644 --- a/doomemacs/.doom.d/custom.el +++ b/doomemacs/.doom.d/custom.el @@ -3,7 +3,7 @@ ;; If you edit it by hand, you could mess it up, so be careful. ;; Your init file should contain only one such instance. ;; If there is more than one, they won't work right. - '(package-selected-packages '(elcord))) + '(package-selected-packages '(quelpa elcord))) (custom-set-faces ;; custom-set-faces was added by Custom. ;; If you edit it by hand, you could mess it up, so be careful. diff --git a/eww/.config/eww/eww.scss b/eww/.config/eww/eww.scss index fbe98ed..b1d5ead 100644 --- a/eww/.config/eww/eww.scss +++ b/eww/.config/eww/eww.scss @@ -33,7 +33,8 @@ $anim-transition: 150ms; } tooltip { - background-color: $red; + color: $fg-alt-color; + background-color: $bg-alt-color; } .bar-1, .bar-2 { @@ -53,28 +54,29 @@ button { } // Workspaces -.ws-active { - font-weight: bold; - color: $blue; -} -.ws-inactive { opacity: 0.2; } - .workspaces { // background-color: $bg-alt-color; - // transition-property: all; - // transition-duration: 1s; + // padding: .3rem; + // border: solid 1px $black; + // border-radius: $font-size; } -button.ws { +.workspaces > button { font-size: $font-size; margin: 4px; } -button.ws:hover { +.workspaces > button:hover { color: $fg-accent; opacity: 0.8; } +button.active { + font-weight: bold; + color: $blue; +} +button.inactive { opacity: 0.2; } + // Generic stuff scale trough { all: unset; diff --git a/eww/.config/eww/eww.yuck b/eww/.config/eww/eww.yuck index b2b4ab7..fdcf5bb 100644 --- a/eww/.config/eww/eww.yuck +++ b/eww/.config/eww/eww.yuck @@ -160,6 +160,7 @@ ) (button :onclick "amixer -D pulse set Master 1+ toggle" :class "icon volume + ${muted-volume != 'on' ? 'red' : ''}" + :tooltip "Volume: ${current-volume}%" {muted-volume != "on" ? "ﱝ" : "墳"} ) ))) @@ -198,7 +199,7 @@ ;; Workspace widget (defwidget workspace [data] (button :onclick "wmctrl -s ${data['index']}" - :class {data["iscurrent"] == true ? "ws ws-active" : "ws ws-inactive"} + :class {data["iscurrent"] == true ? "active" : "inactive"} "${data['name']}" )) (deflisten workspaces-data "scripts/workspace.py")