added new widgets
This commit is contained in:
32
.config/eww/widgets/hypr_activewindow.yuck
Normal file
32
.config/eww/widgets/hypr_activewindow.yuck
Normal file
@@ -0,0 +1,32 @@
|
||||
(deflisten activewindow :initial "..." "hyprman -a 2>>/tmp/eww_hyprman_activewindow.log")
|
||||
|
||||
(defvar windowIcons
|
||||
`{
|
||||
"generic": "",
|
||||
"spotify": "",
|
||||
"mpv": "",
|
||||
"firefox": "",
|
||||
"chromium": "",
|
||||
"zen": "",
|
||||
"Alacritty": "",
|
||||
"steam": "",
|
||||
"discord": ""
|
||||
}`)
|
||||
|
||||
(defwidget windowIcon []
|
||||
(image
|
||||
:icon-size: 12
|
||||
:icon {activewindow.class}))
|
||||
|
||||
(defwidget hypr_active_window []
|
||||
(tooltip
|
||||
(label :text {activewindow.title})
|
||||
(box
|
||||
:class "activewindow${activewindow.xwayland == true ? '--xwayland' : ''}"
|
||||
:halign "left"
|
||||
:valign "center"
|
||||
:spacing 3
|
||||
(label
|
||||
:limit-width 25
|
||||
:unindent true
|
||||
:text "${windowIcons[activewindow.class] ?: windowIcons['generic']} ${activewindow.class}"))))
|
Reference in New Issue
Block a user