My configuration files for Debian/Ubuntu applications
Du kannst nicht mehr als 25 Themen auswählen Themen müssen entweder mit einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. ## Usage
  2. [Read here.](https://github.com/lcpz/lain/wiki/Widgets#usage)
  3. ### Description
  4. Attaches a [taskwarrior](http://taskwarrior.org) notifications to a widget, and lets you execute `task` commands from the promptbox.
  5. ```lua
  6. lain.widget.contrib.task.attach(widget, args)
  7. ```
  8. `args` is an optional table which can contain:
  9. Variable | Meaning | Type | Default
  10. --- | --- | --- | ---
  11. `show_cmd` | Taskwarrior command to show in the popup | string | "task next"
  12. `prompt_text` | Prompt text | string | "Enter task command: "
  13. `followtag` | Display the notification on currently focused screen | boolean | false
  14. `notification_preset` | Notification preset | table | See [default `notification_preset`](https://github.com/lcpz/lain/wiki/task#default-notification_preset)
  15. The tasks are shown in a notification popup when the mouse is moved over the attached `widget`, and the popup is hidden when the mouse is moved away. By default, the notification will show the output of `task next`. With `show_cmd`, the `task` popup command can be customized, for example if you want to [filter the tasks](https://taskwarrior.org/docs/filter.html) or show a [custom report](https://github.com/lcpz/lain/pull/213).
  16. With multiple screens, the default behaviour is to show a visual notification pop-up window on the first screen. By setting `followtag` to `true` it will be shown on the currently focused tag screen.
  17. You can call the notification with a keybinding like this:
  18. ```lua
  19. awful.key({ modkey, altkey }, "t", function () lain.widget.contrib.task.show(scr) end),
  20. ```
  21. where ``altkey = "Mod1"`` and `scr` (optional) indicates the screen which you want the notification in.
  22. And you can prompt to input a `task` command with a keybinding like this:
  23. ```lua
  24. awful.key({ altkey }, "t", lain.widget.contrib.task.prompt),
  25. ```
  26. ### Default `notification_preset`
  27. ```lua
  28. notification_preset = {
  29. font = "Monospace 10",
  30. icon = helpers.icons_dir .. "/taskwarrior.png"
  31. }
  32. ```
  33. ## Note
  34. * If your widget does not display `task next` output, try changing Taskwarrior verbose, for instance: `show_cmd = 'task rc.verbose:label'` or `show_cmd = 'task rc.verbose:nothing'`.