mirror of
https://github.com/elenapan/dotfiles.git
synced 2026-01-11 03:32:38 +08:00
27 lines
952 B
Text
27 lines
952 B
Text
(defwindow split-indicator [revealer-duration]
|
|
:monitor 0
|
|
:geometry (geometry :x 0
|
|
:y 0
|
|
:anchor "center")
|
|
:stacking "fg"
|
|
:exclusive false
|
|
(revealer
|
|
:transition "crossfade"
|
|
:reveal "${split-indicator-visible}"
|
|
:duration "${revealer-duration}"
|
|
(eventbox
|
|
:onclick "${eww-scripts}/manage hide split-indicator &"
|
|
:onmiddleclick "${eww-scripts}/manage hide split-indicator &"
|
|
(box
|
|
:halign "fill"
|
|
:valign "fill"
|
|
:orientation "vertical"
|
|
:space-evenly true
|
|
:class "split-indicator ${split-direction}"
|
|
(box :class "symbol" "${split-direction-icons-json[split-direction]}"))
|
|
)
|
|
))
|
|
|
|
(defvar split-indicator-visible false)
|
|
(defvar split-direction-icons-json "{ \"splith\": \"\", \"splitv\": \"\", \"tabbed\": \"\", \"stacked\": \"\" }")
|
|
(defvar split-direction "splith") ; updated by sway-split-indicator.py
|