Xfce Forum

Sub domains
 

You are not logged in.

#1 2019-03-11 22:56:20

Leinnan
Member
Registered: 2014-09-09
Posts: 30

xfTimeout- GShutdown in GTK3

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
AQhDpQ4.png
Any comments are more than welcome wink

Offline

#2 2019-03-12 00:03:46

yurbev
Member
Registered: 2016-04-18
Posts: 55

Re: xfTimeout- GShutdown in GTK3

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

#3 2019-03-12 06:09:10

Leinnan
Member
Registered: 2014-09-09
Posts: 30

Re: xfTimeout- GShutdown in GTK3

Thats main reason to use it and I use it for it.

Offline

#4 2019-03-12 09:05:44

Spass
Member
From: Poland
Registered: 2016-12-07
Posts: 133

Re: xfTimeout- GShutdown in GTK3

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

#5 2019-03-12 17:02:58

yurbev
Member
Registered: 2016-04-18
Posts: 55

Re: xfTimeout- GShutdown in GTK3

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

#6 2019-03-12 20:13:13

Skaperen
Member
From: right by Jesus, our Saviour
Registered: 2013-06-15
Posts: 862

Re: xfTimeout- GShutdown in GTK3

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

#7 2019-03-12 22:08:30

Leinnan
Member
Registered: 2014-09-09
Posts: 30

Re: xfTimeout- GShutdown in GTK3

yurbev wrote:

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.

Skaperen wrote:

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

#8 2019-03-12 23:07:08

yurbev
Member
Registered: 2016-04-18
Posts: 55

Re: xfTimeout- GShutdown in GTK3

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

#9 2019-05-18 11:29:47

Leinnan
Member
Registered: 2014-09-09
Posts: 30

Re: xfTimeout- GShutdown in GTK3

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 wink

VroP3XD.png

Offline

Registered users online in this topic: 0, guests: 1
[Bot] ClaudeBot

Board footer

Powered by FluxBB
Modified by Visman

[ Generated in 0.015 seconds, 8 queries executed - Memory usage: 545.2 KiB (Peak: 546.04 KiB) ]