Giter Site home page Giter Site logo

fsobolev / timeswitch Goto Github PK

View Code? Open in Web Editor NEW
35.0 35.0 8.0 907 KB

Power off, reboot, suspend, send a notification or execute any command on timer. ⏲️ Written in Python using LibAdwaita.

Home Page: https://flathub.org/apps/details/io.github.fsobolev.TimeSwitch

License: Other

CSS 0.14% Meson 5.16% Python 94.70%
flatpak gnome gtk gtk4 libadwaita python timer

timeswitch's People

Contributors

albanobattistella avatar deltaveintiuno avatar eson57 avatar flipflop97 avatar fsobolev avatar g020b avatar gregorni avatar igor-dyatlov avatar phaerrax avatar plasmus777 avatar poipoipoipoipoipoipoipoipoi avatar rene-coty avatar rezaalmanda avatar roepluke avatar santossi avatar sekalengrengginang avatar tygyh avatar vistaus avatar weblate avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

timeswitch's Issues

Improve headerbar and save window state

While the headerbar looks good with default GNOME settings for window controls (:close), having different window controls setup can cause timer mode dropdown to move off center or even increase the window width to get enough space. This is not critical, the app is completely useful, but this doesn't look good.
I think that the best solution will be to move dropdown to the end of headerbar instead of center, increase default window width (not minimal, but default) to make it look good at least for EN locale and :minimize,maximize,close controls, and also save window size so a user can resize the window how they want and this will be remembered.

Can it run at the background ?

Hello,

Can the program schedule a shutdown in the background, then quit the program and the shutdown still happens at the pre-selected time ?

Thanks
Chris

[Feature] Send TimeSwitch to system tray when closing the app with active timer

Hey!

What do you think of sending the app to the system tray after we start a timer and close the app, so that it gives visual confirmation that a timer is running? Similar to when we set an alarm on mobile phones and an alarm clock icon shows up in the top bar so we are aware that an alarm is set.

This system tray menu could even contain some labels and options such as:

  • A label containing Action type of the active timer + time remaining countdown (examples: "Power off in 5:37"; "Run Command in 0:23"; "Notification in 1:45")
  • An option to stop/cancel the timer

And the app could stay there in the system tray until the timer rings or when we press "Stop". Then it disappears from the system tray.

Translations on Weblate

Feb 4th will be 3 month since the first release of Time Switch, I will be able to setup a project on Weblate.

GNOME HIG icon

I want to offer a new icon following GNOME HIG. The emoji from the description is taken as a basis ⏲️

time

[Feature] Save last used Action settings

Hi, great app!

It would be really handy if the app saved the last action settings I've selected. I often use the "Notification" action with "Sound" on, but, by default, "Power Off" is selected and "Sound" is off, so I have to set it up again every time.

Application displays nothing

When starting timeswitch it only displays a round blob with no UI, no window controls and nothing else.

afbeelding

This happens on Fedora 37 Workstation and GNOME OS in a virtual machine.

Multiple reminders

Hello!

Thanks for this simple but very helpful app!

Would it be possible to support multiple parallel countdowns?

I understand this will require significant changes in the user interface. Not sure if it helps, but Alarm and Timer view from Gnome Clock can be taken as an inspiration.

image
image

Or maybe an Android 12 alarm view (details accessible from the list view, no secondary window opened for details):

Screenshot_20230217-133740

Make the app easy to use with only keyboard

I want to provide keyboard shortcuts to easily access most of UI elements in the app. Probably something like this:

  • Ctrl+W - close window (if timer is running, this will only hide the window)
  • Ctrl+Q - quit (if timer is running, a dialog will appear to confirm stopping the timer and quit)
  • Ctrl+? - shortcuts dialog

Setup

  • Alt+H, Alt+M, Alt+S - focus hours/minutes/seconds spin
  • Alt+R - reset
  • Ctrl+M - change mode
  • Ctrl+Enter - start timer

Actions

  • Ctrl+O - power off
  • Ctrl+R - reboot
  • Ctrl+S - suspend
  • Ctrl+N - notification, text entry gets focused
  • Ctrl+B - play sound
  • Ctrl+U - until stopped
  • Ctrl+C - commands

Commands

  • Ctrl+1..0 - select command 1..10
  • Ctrl+A - add command
  • Ctrl+D - remove selected command
  • Ctrl+Backspace, Esc - back

Running

  • Ctrl+P - toggle pause
  • Ctrl+S - stop

About button will be replaced with menu button, the menu will contain "Keyboard shortcuts", "About" and "Quit" (same as Ctrl+Q shortcut).

[Feature] Ability to Save & Load Presets

Hi again!

First of all, I just want to say thank you for making such an excellent app! Great job! I've been using it everyday.

Now, I just had an idea:
What do you think of adding a presets option? That way we can save timers we use often, making it even quicker to use the app.
I usually use the same settings for different timers throughout the day. Cooking, for example, certain recipes take the same amount time to cook, so being able to save a preset for "beans", "rice", etc. would make save some time.

Be able to create and add them to categories — like "Recipes", "Maintenance", etc. — would make it even nicer.

Example:

Time Switch Presets Concept

[Feature] Continue timer after restarting the system

Hi!

Suggestion:
Make timer continue after restarting the system.

Right now, if I restart the system, the timer is lost.

Idea on how it could work (maybe there's a better or proper way):

  1. When timer starts, add command to the Startup folder to launch the app with a flag to start "minimized";
  2. Constantly save a snapshot of the current time into a log;
  3. On system startup, remove command to launch the app from the Startup folder; and take current time and calculate how much time has passed since last time saved to the log;
  4. If there is still time left, continue timer as usual; else: ring the timer

Allow execution of multiple commands

If you want to run several commands after a countdown, the only way to do that right now is to make a bash script and then run that. It would be nice if you could just enter & select the commands you want to run.

I guess you could use ; to put several commands in a single line, but that's not as organized.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.