Is it possible to run a script on power button press with systemd?

I looked around and didn’t found anything on this, for what I’ve seen, people always have been satisfied with what logind.conf is offering, here is the interesting part of man logind.conf: HandlePowerKey=, HandleSuspendKey=, HandleHibernateKey=, HandleLidSwitch=, HandleLidSwitchDocked= Controls how logind shall handle the system power and sleep keys and the lid switch to trigger actions such…

Details

How can I run a script on power button press with systemd? [duplicate]

I looked around and didn’t found anything on this, for what I’ve seen, people always have been satisfied with what logind.conf is offering, here is the interesting part of man logind.conf: HandlePowerKey=, HandleSuspendKey=, HandleHibernateKey=, HandleLidSwitch=, HandleLidSwitchDocked= Controls how logind shall handle the system power and sleep keys and the lid switch to trigger actions such…

Details

Magento 2: show list of all customers in custom grid

I created modal window similar functionality of when click on Add related products on product edit page, now in the modal window I need a list of all customers in grid. Currently its showing Error: Fatal error: Uncaught Error: Call to a member function setPageSize() on null in /var/www/html/magento/vendor/magento/module-ui/DataProvider/AbstractDataProvider.php:220 Stack trace: #0 Here is my…

Details