From 8fd096d2cd583df4e0d133e21a9a8b4dab0bda8d Mon Sep 17 00:00:00 2001 From: Thomas Voss Date: Fri, 24 Nov 2023 18:54:38 +0100 Subject: eww: Remove date onclick behavior --- .config/eww/eww.scss | 32 -------------------------------- .config/eww/eww.yuck | 3 +-- .config/eww/scripts/toggle | 15 --------------- 3 files changed, 1 insertion(+), 49 deletions(-) delete mode 100755 .config/eww/scripts/toggle (limited to '.config/eww') diff --git a/.config/eww/eww.scss b/.config/eww/eww.scss index 4c846be..d34d3c0 100644 --- a/.config/eww/eww.scss +++ b/.config/eww/eww.scss @@ -25,38 +25,6 @@ } } -.cal { - $bg: rgba(43, 48, 59, 1); - $blue: #9CDCFE; - $yellow: #F0E68C; - - font-size: 28px; - - .button { - -gtk-icon-source: none; - } - - .view { - background-color: $bg; - border-radius: 4px; - border: 3px solid rgba(100, 114, 125, .5); - } - - .highlight { - color: $blue; - font-weight: bold; - } - - :indeterminate { - color: #999; - } - - :selected { - background-color: #414859; - border-radius: 4px; - } -} - .workspaces button { label { padding: 0 13px; diff --git a/.config/eww/eww.yuck b/.config/eww/eww.yuck index 49a0a11..8937f26 100644 --- a/.config/eww/eww.yuck +++ b/.config/eww/eww.yuck @@ -84,8 +84,7 @@ id)))) (defwidget clock [] - (box (button :onclick `scripts/toggle calendar-1 calendar-2 calendar-3` - {datetime.pretty}))) + {datetime.pretty}) (defwidget wireless [] (pair :icon "" :text wireless)) diff --git a/.config/eww/scripts/toggle b/.config/eww/scripts/toggle deleted file mode 100755 index 0a4d389..0000000 --- a/.config/eww/scripts/toggle +++ /dev/null @@ -1,15 +0,0 @@ -#!/bin/sh - -# Open a file descriptor for writing to create the lock if it doesn’t exist. We -# need a lock because of race-conditions that could occur if you spam a toggle -# over and over. -exec 3>"${XDG_RUNTIME_DIR:-/run/user/`id -u`}/eww-toggle.lock" -flock 3 - -for arg in "$@"; do - { - eww windows | grep -q "^\\*$arg$" && f=close || f=open - eww $f "$arg" - } & -done -wait -- cgit v1.2.3