scorpion-26 / gBar

Blazingly fast status bar written with GTK
MIT License
495 stars 20 forks source link

Feature request: confirmation buttons for shutdown, reboot... #17

Closed dontlookherepls closed 1 year ago

dontlookherepls commented 1 year ago

Hi ! Imo it could be nice to add a confirmation button for each power option (shutdown, reboot, log out etc...), 'cause a couple of time i shutdown the computer for mistake 😅. I hope that my request isn't an "idiot request".

scorpion-26 commented 1 year ago

I hope that my request isn't an "idiot request".

No, not at all. I've misclicked myself multiple times causing an annoying reboot. So, thanks for the suggestion to implement a better system.

I just pushed a new commit which adds a confirmation step for all buttons in the power slideout. When first clicked, the clicked button is made green and you need to click again within 2 seconds (when its still green) for the thing to happen. This is a bit ad-hoc, but it works. Please let me know if this works as requested.

dontlookherepls commented 1 year ago

sorry for the late reply ! Btw It seems to work really well, now i just need to add to my current css conf.

scorpion-26 commented 1 year ago

Cool! If you have any other concerns, let me know.