gkr09 / budgie-shutdown-timer Goto Github PK
View Code? Open in Web Editor NEWSchedule Shutdown/Restart etc. from your Budgie Desktop
License: GNU General Public License v3.0
Schedule Shutdown/Restart etc. from your Budgie Desktop
License: GNU General Public License v3.0
I think the notification need to be fixted, I made a slight change to the python code.
Hope to be usefull.
original notification command at line 213
subprocess.Popen(['notify-send', "{} at {}".format(self.selection,self.timestr),'-i','shutdown-timer']) # Send Notification.
and line 220
subprocess.Popen(['notify-send', "Scheduled {} cancelled".format(self.selection),'-i','shutdown-timer'])
changes aded:
line 213
subprocess.Popen(['notify-send', "Shutdown Timer",'-i','shutdown-timer', "{} at {}".format(self.selection,self.timestr)]) # Send Notification.
and line 220
subprocess.Popen(['notify-send',"Shutdown Timer",'-i','shutdown-timer',"Scheduled {} cancelled".format(self.selection)])
It`s not a big deal but I think it looks great
If the user initiates a suspension whilst the applet is running, after coming out of suspension the timer continues to work and then will initiate a second shutdown/suspension etc.
Kind of confusing.
Suggestion - disable suspension whilst running.
i.e. if the applet is running, read & store /org/gnome/settings-daemon/plugins/power/sleep-inactive-ac-type
, temporarily set it to nothing
EDIT: similar key for on battery of a laptop on battery, the key is (of course) /org/gnome/settings-daemon/plugins/power/sleep-inactive-battery-type
- both should be set to nothing.
Then reset to what was previously set afterwards when the applet ended its job but before initiating shutdown/suspension etc.
Can I make a suggestion to enhance the use-case?
In addition to the timer you can set a specific time to shutdown. This would be more useful so that you can say "turn me off at midnight if I've forgotten to shutdown".
Would be also very useful to make this a "always on" option so that you dont have to remember to go back into the applet to restart the shutdown sequence.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.