Commit graph

956 commits

Author SHA1 Message Date
Tobias Witek
3638aa2420 [modules/various] Use new interval mechanism
Use generic interval mechanism in most of the modules that use slow
updates.

Only exception: getcrypto, as the interval is specified in seconds there
and I want to retain backwards-compatibility.

fixes #220
2018-01-07 20:27:11 +01:00
Tobias Witek
776be11137 [engine] Add generic interval mechanism
Add a generic mechanism to set a specific interval (in minutes, as this
is primarily intended for modules that want to "slow down" updates).

This gives *all* modules the parameter "interval" and allows each module
to set the default interval using the method "interval(<value>) in the
module constructor.

see #220
2018-01-07 20:25:32 +01:00
Tobias Witek
a6b7e329c7 [module/stock] Error message if stock service unavailable
If the stock rate cannot be retrieved for some reason, print an error
message in the log and present the value as "n/a".

fixes #219
2018-01-07 19:37:31 +01:00
Tobias Witek
13d27d4b81 [themes] Do not automatically download symbols.json
In order to use symbol files, symbol.json needs to be created manually
now.

Also, remove symbol usage from the prepackaged themes to avoid
breakage.

fixes #216
2018-01-03 15:58:57 +01:00
tobi-wan-kenobi
1a507ec0cd
Merge pull request #215 from zetxx/patch-1
fix: typo
2018-01-02 11:07:42 +01:00
Elin Angelov
77caccfde8
fix: typo 2018-01-02 10:30:40 +02:00
Tobias Witek
8f44a1bf63 [modules/redshift] Do not block status line
Redshift might block when no network connectivity is available (if it
tries to determine the location automatically). To avoid this blocking
the whole status line, immediately release the lock in the query thread.
2018-01-01 08:59:21 +01:00
Tobias Witek
9268d16a9f [travis] *py*yaml it is 2017-12-29 14:59:46 +01:00
Tobias Witek
883a4f83b4 [travis] Add YAML dependency 2017-12-29 14:56:42 +01:00
Tobias Witek
c7608f4bf2 [tests] Update runtests for Arch Linux compatibility 2017-12-29 14:52:07 +01:00
Tobias Witek
bac3d6bc57 [core/theme] Add FontAwesome name resolution
Theme writers are now able to use FontAwesome names and IDs instead of
the symbols itself!

The implementation itself is *slightly* hacky and might get improved in
the future: Upon the first start, a YAML file containing the FontAwesome
symbols is fetched from
https://raw.githubusercontent.com/FortAwesome/Font-Awesome/master/src/icons.yml

Note: This is only done once - to retrigger this (i.e. for an update),
please just delete the file and restart bumblebee-status.

Then, in the *icon* theme itself, you can use ${<name or id>} instead of
the actual symbol.

Names and IDs can be found here:
http://fontawesome.io/cheatsheet/

(simply remove the "fa-" prefix)

An example is provided in themes/icons/awesome-fonts.json.

(finally) fixes #20

sorry for taking so long :)
2017-12-29 14:49:13 +01:00
Tobias Witek
2a95e9fcc2 [modules/redshift] Update in separate thread
Move updating of redshift information into a separate thread so that
errors like missing network connectivity do not block the whole status
bar.

fixes #61
2017-12-29 11:18:07 +01:00
Tobias Witek
10df79ce9a [core] Disable debugging if "-d" is not specified
Do not print any debugging messages unless "-d" has been specified on
the commandline.
Also, introduce two "special" logfiles "stdout" and "stderr" to log to
stdout and stderr, respectively.

fixes #213
2017-12-19 18:29:39 +01:00
Tobias Witek
63ef6b0bf8 [core/themes] Fix new theme code for Python 3.x 2017-11-26 20:05:28 +01:00
Tobias Witek
197c4c92a9 Merge branch 'theme-directories'
fixes #203
2017-11-26 19:57:31 +01:00
Tobias Witek
3fe2088d06 [tests] fix unit tests 2017-11-26 19:56:57 +01:00
tobi-wan-kenobi
f353bf6f7a
Merge pull request #208 from adam-dej/master
[modules] Add zpool module
2017-11-26 19:56:00 +01:00
Adam Dej
5766fedc46 [modules] Add zpool module 2017-11-25 13:01:59 +01:00
Tobias Witek
56b2981379 [core/themes] Fix exception on missing theme
If no theme is found, raise an exception.

see #203
2017-11-18 14:59:30 +01:00
Tobias Witek
9d81d83d37 Merge branch 'master' into theme-directories 2017-11-18 14:57:41 +01:00
Tobias Witek
15c78cd6a6 [core/themes] Add theme merging from different locations
Theme files with the same name, but in different theme locations, are
now merged together.

see #203
2017-11-18 14:56:44 +01:00
Tobias Witek
9d7fc5c1d4 [core/themes] De-duplicate theme names
List themes only once, even if they are present multiple times in
different locations.

(Yes, I know that list(set(result)) would do the same, but here, I'd
like to not waste memory and be a bit faster).

see #203
2017-11-18 14:51:25 +01:00
Tobias Witek
8a0fae529a Revert "[modules/datetime] Rename datetime to date-time"
This reverts commit 4bc96987db.
2017-11-18 11:26:42 +01:00
tobi-wan-kenobi
edb53ca34a
Merge pull request #207 from fredj/absolute_import
Use absolute_import in uptime module
2017-11-18 11:25:49 +01:00
Frederic Junod
34ac317bfa Use absolute_import in uptime module 2017-11-18 09:27:12 +01:00
Tobias Witek
d698b58fd8 [doc] update number of user-contributed modules 2017-11-13 19:00:00 +01:00
Tobias Witek
4504f6fff3 [screenshots] Add new modules 2017-11-13 18:57:19 +01:00
Tobias Witek
4bc96987db [modules/datetime] Rename datetime to date-time
Finally fix the datetime import errors by renaming the bumblebee
datetime module (*bad* idea from the start).

Apologies to everyone for whom it now breaks.
2017-11-13 18:54:54 +01:00
tobi-wan-kenobi
a5154ded73
Merge pull request #205 from ccoors/master
[modules/uptime] Add uptime module
2017-11-13 18:44:42 +01:00
tobi-wan-kenobi
94f8f2e426
Merge pull request #204 from cacyss0807/new_shortcut_module
[modules] added new shortcut module
2017-11-13 18:41:35 +01:00
Christian F. Coors
6b61d43648 Add uptime module 2017-11-13 16:04:00 +01:00
Camilo Celis Guzman
c75518e8f7 [modules] added new shortcut module
This modules makes it very easy to create shortcuts as widgets, for which the user can define the command to be executed when left clicking on it. It supports single or multiple shortcuts
2017-11-13 15:54:25 +09:00
Tobias Witek
f72ac0ca99 [core/theme] Add ~/.config/bumblebee-status/themes to theme directories
Allow users to create themes outside the main theme tree.

see #203
2017-11-05 09:08:01 +01:00
tobi-wan-kenobi
760cc4252f
Merge pull request #202 from fredj/hipchat_icon
[modules/hipchat] Add ascii and awesome-fonts icon
2017-10-30 10:53:12 +01:00
Frederic Junod
1204d8058c [modules/hipchat] Add ascii and awesome-fonts icon 2017-10-30 09:17:42 +01:00
tobi-wan-kenobi
3455ad3da4
Merge pull request #199 from cacyss0807/title_bug_fix
[modules/title] fixed runtime exception
2017-10-27 18:21:20 +02:00
tobi-wan-kenobi
bd9ccfef47
Merge pull request #200 from fredj/hipchat
Add new hipchat module
2017-10-27 18:18:24 +02:00
Frederic Junod
f75d321b20 Add new hipchat module
Displays the unread messages count for an HipChat user
2017-10-27 15:05:38 +02:00
Camilo Celis Guzman
fb1ce0e9af [modules/title] fixed runtime exception
From i3ipc the find_focused().name can return  a None instead of a string, this will casue a runtime exception
2017-10-27 17:42:10 +09:00
tobi-wan-kenobi
d0877ae46c Merge pull request #198 from cacyss0807/modules_modifications
Minor modules modifications
2017-10-25 18:59:58 +02:00
Camilo Celis Guzman
28ee0b474d added format parameter to cpu module 2017-10-25 19:09:04 +09:00
Camilo Celis Guzman
a84e568746 [modules/rotation] create a widget per display once on refresh
* This module only updates some information on the screen when a new
display is added/removed, hence it makes sense to update it only when
the i3-bar is refreshed.
2017-10-25 18:37:54 +09:00
Tobias Witek
2bf89735fb [README] Update formatting 2017-10-23 17:14:57 +02:00
Tobias Witek
51f68ff382 [README] Add note on event handling
fixes #195
2017-10-23 17:14:00 +02:00
Tobias Witek
57064dcf54 [core/engine] Option to disable workspace wrap
Add a new parameter engine.workspacewrap (default to true) that, if set
to false, makes the workspace change via mouse wheel stop when hitting
the first/last workspace of an output (identical to how i3wm bar itself
behaves).

fixes #188
2017-10-21 13:06:36 +02:00
Tobias Witek
abd58d2fba [core/engine] Add parameter 'engine.workspacewheel'
Add a parameter that allows the user to enable/disable workspace
scrolling via the status bar.

By default, scrolling is enabled, to disable it, add the following
parameter to your bumblebee-status invokation:

-p <other parameters> engine.workspacewheel=false

see #188
2017-10-21 08:46:48 +02:00
Tobias Witek
34d9278c6e [modules/mpd] Add scrollable modifier 2017-10-21 08:21:37 +02:00
tobi-wan-kenobi
a40dde5812 Merge pull request #194 from max-kov/master
[modules/mpd] Fixed song duration parse bug
2017-10-21 08:21:00 +02:00
max-kov
36e7cc8dbb [modules/mpd] Removed unneeded if statement 2017-10-20 16:39:48 +01:00
max-kov
3c0d53831b [modules/mpd] Fixed song duration parse bug
After listening to an audio stream for longer than 10 minutes "mpc -f "tag artist %artist%\ntag title %title%"" will start producing lines with slightly different separation, which caused the bar to fail.
2017-10-20 12:22:42 +01:00