You are not logged in.
Pages: 1
I’ve started creating something similar to gshutdown for XFCE in GTK3 and C++. For now it supports scheduling calling org.xfce.SessionManager commands like shutdown, suspend or reboot after specified amount of seconds/minutes/hours. In future I want to add support for notifications and adding own command to run besides shutdown etc.
Link to repo: https://git.sr.ht/~leinnan/timeOut
Any comments are more than welcome
Offline
The only thing I think I could use this for, and it would be a benefit, would be to shutdown my laptop at a specified time after I go to sleep, as I often leave it on overnight.
What are other reasons to use it?
Offline
Thats main reason to use it and I use it for it.
Offline
Great. Tool like that is very needed. I hope you'll add in the future a function to shutdown at a specific time/date, not just after X Minutes/Hours. Like in GShutdown.
To this point I was using GShutdown, but I had to add my own custom commands in the options. So "xfce4-session-logout --halt --fast" for shutdown, "xfce4-session-logout --reboot --fast" for reboot and "xfce4-session-logout --suspend" for suspend. It worked fine, but I'm not sure it still does. From what I remember it required "consolekit" and I don't see it in the repos any more.
Offline
Leinnan could you give instructions on how to install it, or is it private at this point? I don't see a download package.
Offline
i would like to be able to schedule the shutdown/reboot time by local time and UTC time in addition to time delta from now.
Offline
Leinnan could you give instructions on how to install it, or is it private at this point? I don't see a download package.
For now you need to build executable by yourself. It will require meson build system and gtkmm packages installed. You can try:
git clone https://git.sr.ht/~leinnan/timeOut
cd timeOut
meson build
cd build
ninja
ninja install
I am thinking about replacing it with simple Makefile, but for now it works fine IMO.
i would like to be able to schedule the shutdown/reboot time by local time and UTC time in addition to time delta from now.
Something like Spass mentioned?
Also- adding some sort of calendar like in GShutdown is on ToDo but first I would like to add notifications and clean up code, make it follow more MVC concept.
Offline
Thanks. I have a problem when I get to the ninja step:
build$ ninja
ninja: error: loading 'build.ninja': No such file or directory
Offline
Can you provide full output from console and ls maybe?
Update- refactored code a little, also added spinButton to provide way for setting time without keyboard
Offline
Pages: 1
[ Generated in 0.015 seconds, 8 queries executed - Memory usage: 545.2 KiB (Peak: 546.04 KiB) ]