summaryrefslogtreecommitdiff
path: root/.config/eww/eww.yuck
blob: 7dad079460b3b49f8c20c68cce08b088a67cc274 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
(defwidget revealer-on-hover [var varname ?class ?duration ?transition]
  (box :class "${class} revealer-on-hover"
       :orientation "h"
       :space-evenly false
    (eventbox :class "eventbox"
              :onhover "${EWW_CMD} update ${varname}=true"
              :onhoverlost "${EWW_CMD} update ${varname}=false"
      (box :space-evenly false
        (revealer :reveal var
                  :transition {transition ?: "slideright"}
                  :duration {duration ?: "500ms"}
          (children :nth 0))
        (children :nth 1)))))

(include "./bar.yuck")
(include "./wall.yuck")
(include "./applauncher.yuck")
(include "./powermenu.yuck")