Coder Social home page Coder Social logo

ulauncher-timer's Introduction

Made in Ukraine Code style: black Test Status

⚠️ This is the branch for the unreleased v6 release. If you want the v5 branch version, go here.

We are currently working on Ulauncher v6, which is a huge rewrite. Until then we're only supporting the existing functionality in v5. No new features or improvements.

We are making pre-releases for Ulauncher 6, but the new extension API is not yet 100% set and further major changes may come.

Ulauncher is a fast application launcher for Linux. It's written in Python using GTK+, and features: App Search (fuzzy matching), Calculator, Extensions, Shortcuts, File browser mode and Custom Color Themes

App Search File Browser Color Themes
screenshot screenshot screenshot

For more info or download links see ulauncher.io

Run Ulauncher on startup

If your distribution uses Systemd and the packages includes ulauncher.service, then you can run ulauncher on startup by running:

systemctl --user enable --now ulauncher

If not, then you can open Ulauncher and enable "Launch at Login" in the preferences.

Troubleshooting

Please read our Troubleshooting discussion category if you run into issues, and also check our other discussions and issues if you still need help after this.

Code Contributions

Please see our Code Contributions documentation.

Project Contributor-friendly Issues
Ulauncher App GitHub issues by-label
GitHub issues by-label
GitHub issues by-label
GitHub issues by-label
Frontend for extensions website
Uses ReactJS
GitHub issues by-label
API for extensions website
Uses Python and bottle library
GitHub issues by-label

License

See the LICENSE file for license rights and limitations (GNU GPL v3.0).

ulauncher-timer's People

Contributors

brunetton avatar csicar avatar draggonfantasy avatar gornostal avatar millerdev 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  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

ulauncher-timer's Issues

Parser fails to recognize '12p'

System details

  • OS: Ubuntu 21.10
  • Desktop: Ubuntu on Xorg
  • Version (ulauncher-timer): 4262fc2 (2020-11-3)

Steps to reproduce

  1. Invoke Ulauncher Timer extension
  2. Enter time 12p

Observe

Action shows "Incorrect request".
image

Expected

Action shows "Set timer for 12p".

Support 24h clock

Hi, when trying to use the timer using eg. ti 18:50 Hello it states that it is an incorrect request. Only am/pm seems to be supported.

Time formatting: why harcoded 12h-format ?

Hi. First of all thanks for this little piece of software; I'm using it with joy :)

One minor thing: I noticed that time format is 12h-format. Is there any reason for that ? I'm a French user, and here we're used to read "14:00" for 2PM.

Changing the date representation in Timer.description() from '%-I:%M %p' to '%-H:%M %p' solves the problem for me.

I think we Timer should refer to system for time format (en_US.UTF-8 will result is 12-hour format, and fr_FR.UTF-8 in 24h-format)

What do you think about it ?

Thanks

crash on Pop!_OS 21.10 with ulauncher v5.14.2

The crash happens on installation:

Message: Extension ID: com.github.ulauncher.ulauncher-emoji
Error Name: UnhandledError
Type: ExtensionIsRunningError

Stacktrace:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/ulauncher/ui/windows/PreferencesUlauncherDialog.py", line 202, in on_scheme_callback
    resp = rt.dispatch(self, scheme_request.get_uri())
  File "/usr/lib/python3/dist-packages/ulauncher/utils/Router.py", line 49, in dispatch
    return callback(context, url_params)
  File "/usr/lib/python3/dist-packages/ulauncher/ui/windows/PreferencesUlauncherDialog.py", line 446, in prefs_extension_add
    ExtensionRunner.get_instance().run(ext_id)
  File "/usr/lib/python3/dist-packages/ulauncher/api/server/ExtensionRunner.py", line 68, in run
    raise ExtensionIsRunningError('Extension ID: %s' % extension_id)
ulauncher.api.server.ExtensionRunner.ExtensionIsRunningError: Extension ID: com.github.ulauncher.ulauncher-emoji

Resume capabilities

It will be a nice addition to have the ability of resuming timers in case of a system/user-session restart.
Its easy to save the information in form of timestamps in a json file for incompleted timers, which could also be used to show up past timers which got interrupted and expired before session resume.

Timer doesn't fire

Hi, whenever I set a timer, the event doesn't actually fire.

System Info:
Linux Mint 18.3 Sylvia
Python v2.7.12

I can make a notification fire using the following code (cobbled together) which suggests my system has all the required modules/functionality, but it won't fire using the Ulauncher extension.

I do note that the threading.Timer event doesn't fire if the script ends before the timeout (hence the sleep(6) in my example), I'm not a Python dev so can't really figure out any more.

import os
import subprocess
import gi
import time

gi.require_version('Notify', '0.7')

from gi.repository import Notify
from threading import Timer

def show_notification(text):
	print "Notification fired" + text
	Notify.init("TimerExtension")
	Notify.Notification.new("Timer", text).show()
	subprocess.call(("paplay", "/usr/share/sounds/freedesktop/stereo/complete.oga"))

def start_timer(delay, text):
	timer = Timer(delay, lambda:show_notification(text))
	timer.setDaemon(True)
	timer.start()

print "starting timer"
start_timer(5.0, "test")
time.sleep(6) #without this, the timer doesn't fire
print "timer should have completed by now"

Last update crashes

With the last updated build, it crashes with the following:

Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/ulauncher/ui/windows/UlauncherWindow.py", line 161, in on_input_changed
ModeHandler.get_instance().on_query_change(self.app.query)
File "/usr/lib/python3/dist-packages/ulauncher/modes/ModeHandler.py", line 39, in on_query_change
results = self.search(query)
File "/usr/lib/python3/dist-packages/ulauncher/modes/ModeHandler.py", line 64, in search
sorted_ = sorted(searchables, key=lambda i: i.search_score(query), reverse=True)[:limit]
File "/usr/lib/python3/dist-packages/ulauncher/modes/ModeHandler.py", line 64, in
sorted_ = sorted(searchables, key=lambda i: i.search_score(query), reverse=True)[:limit]
File "/usr/lib/python3/dist-packages/ulauncher/api/result.py", line 105, in search_score
return max(get_score(query, field) * weight for field, weight in self.get_searchable_fields() if field)
File "/usr/lib/python3/dist-packages/ulauncher/modes/apps/AppResult.py", line 62, in get_searchable_fields
frequency_weight = 1 - (index / count * 0.1) + 0.05
ZeroDivisionError: division by zero

"Time is up!" set up notification creates confusion

Hi! Great extension!

Issue

With the default timer message — "Time is up!" — the notification that tells me the timer has been set looks like this:

image

Which doesn't read much differently from the notification when the alarm fires:
image

So, if I don't immediately close the notification, it stays in the notifications panel and, at a quick glance, the text "Time is up!" with the text "Just now" makes it seem like the timer has just fired.

Suggestion

Change the text of this first notification that tells me the timer has been set up, to simply:
"Timer set at 11:30 am."

Port extension to Ulauncher 5

Ulauncher 5 (of which development builds are already available) will ship the Python 3 version only. As a result, all extensions have to be ported to Python 3, and also the new Ulauncher Extension API v2.

See more details here

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.