summaryrefslogtreecommitdiff
path: root/.config/eww/powermenu.yuck
blob: ce3c0a8ec1cc602f8f9dc68ab731ebf13e11c93f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
(defwindow powermenu
           :monitor 0
           :geometry (geometry :x "0%"
                               :y "0%"
                               :width "100%"
                               :height "100%"
                               :anchor "top left")
           :stacking "overlay"
           :exclusive false
           :focusable false
  (box :orientation "v"
       :class "powermenu"
    (box :orientation "h"
         :class "powermenu-buttons"
         :spacing "20"
      (box :orientation "v" :space-evenly false
        (button :vexpand "true" "󰐥")
        (label :text "Power Off"))
      (box :orientation "v" :space-evenly false
        (button :vexpand "true" "󰜉")
        (label :text "Reboot"))
      (box :orientation "v" :space-evenly false
        (button :vexpand "true" "󰍁")
        (label :text "Lock"))
      (box :orientation "v" :space-evenly false
        (button :vexpand "true" "󰤄")
        (label :text "Sleep"))
      (box :orientation "v" :space-evenly false
        (button :vexpand "true" "󰗽")
        (label :text "Log Out"))
      (box :orientation "v" :space-evenly false
        (button :vexpand "true" :timeout "5000" :onclick `eww close powermenu` "󰅖")
        (label :text "Cancel")))))