Laptop files
This commit is contained in:
17
eww/widgets/quick_power.yuck
Normal file
17
eww/widgets/quick_power.yuck
Normal file
@ -0,0 +1,17 @@
|
||||
(defvar power_reveal false)
|
||||
|
||||
(defwidget quickpower []
|
||||
(eventbox :onhover "${eww} update power_reveal=true" :onhoverlost "${eww} update power_reveal=false"
|
||||
(box :space-evenly "false"
|
||||
(revealer :reveal power_reveal :transition "slideright"
|
||||
(box
|
||||
;(button :class "power sleep" :onclick "systemctl suspend" :tooltip "Sleep" " ")
|
||||
(button :class "power lock" :onclick "bash ./scripts/lock.sh" :tooltip "Lock" " ")
|
||||
(button :class "power logout" :onclick "hyprctl dispatch exit" :tooltip "Logout" " ")
|
||||
(button :class "power restart" :onclick "reboot" :tooltip "Restart" " ")
|
||||
)
|
||||
)
|
||||
(button :class "power shutdown" :onclick "shutdown now" :tooltip "Shut Down" "")
|
||||
)
|
||||
)
|
||||
)
|
Reference in New Issue
Block a user