34 lines
682 B
Plaintext
34 lines
682 B
Plaintext
; Command prompt
|
|
(defwindow executioner []
|
|
:geometry (
|
|
geometry
|
|
:x "0%"
|
|
:y "0%"
|
|
:height "70px"
|
|
:width "450px"
|
|
:anchor "center center"
|
|
)
|
|
:monitor 0
|
|
:stacking "fg"
|
|
:windowtype "dialog"
|
|
:wm-ignore false
|
|
:active true
|
|
:focusable true
|
|
:class "cmd_window"
|
|
|
|
(cmd_input)
|
|
)
|
|
|
|
(defwidget cmd_input []
|
|
(input
|
|
:class "cmd_input_field"
|
|
:active true
|
|
:halign "fill"
|
|
:height "70"
|
|
:width "450"
|
|
:value "cmd:"
|
|
:password false
|
|
:onaccept "eww close executioner && exec {}"
|
|
:timeout "1s"
|
|
)
|
|
) |