Skip to content

Conversation

@JonAnderBeroz
Copy link

Widget to be able to shutdown , restart or lock the computer

@Pimiovdb
Copy link

how do you style? can you give some documentation?

@Welpyes
Copy link

Welpyes commented Jun 11, 2024

how do you style? can you give some documentation?

you can do this by having a custom widget in the config.yaml


  shutdown:
    type: "yasb.custom.CustomWidget"
    options: 
      label: "\uf011"
      label_alt: "\uf011"
      class_name: "shutdown-button"
      callbacks:
        on_left: "exec cmd /c shutdown /s /t 5"

this shuts down your computer by clicking on it, but i suggest putting the callback as on_right instead of on_left to avoid accidents

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants