forked from BenziAhamed/alfred-battery
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added in some easy code to dynamically pick the icon set based on a command-line argument. (AWP made some automated changes to the files, so committing them as is).
- Loading branch information
Showing
15 changed files
with
6,259 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,108 @@ | ||
#!/usr/bin/env python | ||
# encoding: utf-8 | ||
# | ||
# Copyright (c) 2014 Dean Jackson <[email protected]> | ||
# | ||
# MIT Licence. See http://opensource.org/licenses/MIT | ||
# | ||
# Created on 2014-02-15 | ||
# | ||
|
||
"""A helper library for `Alfred <http://www.alfredapp.com/>`_ workflows.""" | ||
|
||
import os | ||
|
||
# Workflow objects | ||
from .workflow import Workflow, manager | ||
from .workflow3 import Variables, Workflow3 | ||
|
||
# Exceptions | ||
from .workflow import PasswordNotFound, KeychainError | ||
|
||
# Icons | ||
from .workflow import ( | ||
ICON_ACCOUNT, | ||
ICON_BURN, | ||
ICON_CLOCK, | ||
ICON_COLOR, | ||
ICON_COLOUR, | ||
ICON_EJECT, | ||
ICON_ERROR, | ||
ICON_FAVORITE, | ||
ICON_FAVOURITE, | ||
ICON_GROUP, | ||
ICON_HELP, | ||
ICON_HOME, | ||
ICON_INFO, | ||
ICON_NETWORK, | ||
ICON_NOTE, | ||
ICON_SETTINGS, | ||
ICON_SWIRL, | ||
ICON_SWITCH, | ||
ICON_SYNC, | ||
ICON_TRASH, | ||
ICON_USER, | ||
ICON_WARNING, | ||
ICON_WEB, | ||
) | ||
|
||
# Filter matching rules | ||
from .workflow import ( | ||
MATCH_ALL, | ||
MATCH_ALLCHARS, | ||
MATCH_ATOM, | ||
MATCH_CAPITALS, | ||
MATCH_INITIALS, | ||
MATCH_INITIALS_CONTAIN, | ||
MATCH_INITIALS_STARTSWITH, | ||
MATCH_STARTSWITH, | ||
MATCH_SUBSTRING, | ||
) | ||
|
||
|
||
__title__ = 'Alfred-Workflow' | ||
__version__ = open(os.path.join(os.path.dirname(__file__), 'version')).read() | ||
__author__ = 'Dean Jackson' | ||
__licence__ = 'MIT' | ||
__copyright__ = 'Copyright 2014-2019 Dean Jackson' | ||
|
||
__all__ = [ | ||
'Variables', | ||
'Workflow', | ||
'Workflow3', | ||
'manager', | ||
'PasswordNotFound', | ||
'KeychainError', | ||
'ICON_ACCOUNT', | ||
'ICON_BURN', | ||
'ICON_CLOCK', | ||
'ICON_COLOR', | ||
'ICON_COLOUR', | ||
'ICON_EJECT', | ||
'ICON_ERROR', | ||
'ICON_FAVORITE', | ||
'ICON_FAVOURITE', | ||
'ICON_GROUP', | ||
'ICON_HELP', | ||
'ICON_HOME', | ||
'ICON_INFO', | ||
'ICON_NETWORK', | ||
'ICON_NOTE', | ||
'ICON_SETTINGS', | ||
'ICON_SWIRL', | ||
'ICON_SWITCH', | ||
'ICON_SYNC', | ||
'ICON_TRASH', | ||
'ICON_USER', | ||
'ICON_WARNING', | ||
'ICON_WEB', | ||
'MATCH_ALL', | ||
'MATCH_ALLCHARS', | ||
'MATCH_ATOM', | ||
'MATCH_CAPITALS', | ||
'MATCH_INITIALS', | ||
'MATCH_INITIALS_CONTAIN', | ||
'MATCH_INITIALS_STARTSWITH', | ||
'MATCH_STARTSWITH', | ||
'MATCH_SUBSTRING', | ||
] |
Oops, something went wrong.