add utilities module
This commit is contained in:
parent
ba6c689491
commit
80c4cd5ed4
1 changed files with 33 additions and 0 deletions
33
wayland/config/eww/modules/bar/utilities.yuck
Normal file
33
wayland/config/eww/modules/bar/utilities.yuck
Normal file
|
|
@ -0,0 +1,33 @@
|
||||||
|
|
||||||
|
(defvar reveal_utilities false)
|
||||||
|
|
||||||
|
(defwidget utilities []
|
||||||
|
(revealer-on-hover :class "${reveal_utilities} utilities"
|
||||||
|
:revealvar reveal_utilities
|
||||||
|
:revealvar-name "reveal_utilities"
|
||||||
|
(button :onclick 'notify-send "test"'
|
||||||
|
:class "revealer-preview active"
|
||||||
|
"")
|
||||||
|
(utilities_children)))
|
||||||
|
|
||||||
|
(defwidget utilities_children []
|
||||||
|
(box :class "reveal-children"
|
||||||
|
:orientation "h"
|
||||||
|
:space-evenly true
|
||||||
|
:halign "start"
|
||||||
|
; (for device in array
|
||||||
|
; (button :onclick {(device.connected == "yes") ? 'bluetoothctl disconnect "${device.address}"' : 'bluetoothctl connect "${device.address}"'}
|
||||||
|
; :class {(device.connected == "yes") ? "active" : "inactive"}
|
||||||
|
; :tooltip "${device.name}"
|
||||||
|
; "${device.icon}"))
|
||||||
|
(button :onclick 'wl-color-picker.sh clipboard'
|
||||||
|
:onrightclick 'wl-color-picker.sh'
|
||||||
|
:tooltip 'colorpicker'
|
||||||
|
''
|
||||||
|
)
|
||||||
|
(button :onclick 'qr-generator.sh'
|
||||||
|
:onrightclick 'qr-generator.sh -c'
|
||||||
|
:tooltip 'QR Generator'
|
||||||
|
''
|
||||||
|
)
|
||||||
|
))
|
||||||
Loading…
Add table
Reference in a new issue