Commit Graph

1627 Commits

Author SHA1 Message Date
Simon Désaulniers 1d2f4a102e menu_iterator: generic menu creator function
A simple example usage is given over on the amh project~[1]

[1]: dcf101c8ef/exec/mpv.lua (L32)
2018-02-16 16:14:13 -05:00
Simon Désaulniers 2bb4741bb4 helpers: powerset and trivial_partition_set
- the powerset is the set of all combinations of a given set;
- the trivial partition set is the simplest partition of a set. For e.g., the
  trivial partition set of {a, b, c}, is simply {{a}, {b}, {c}}.
2018-02-16 15:26:41 -05:00
Simon Désaulniers b94e701ff2 menu_iterator: naughty.notify based menu utility 2018-02-16 15:26:35 -05:00
Luca CPZ d99ce8fdba helpers: async_with_shell added 2017-12-19 17:20:59 +01:00
Luca CPZ 5f1d675dfa Merge branch 'alfunx-calendar-rm-newline' 2017-12-15 11:49:24 +01:00
Alphonse Mariya 1b4f7d7722 calendar: remove trailing newlines of output 2017-12-15 01:07:56 +01:00
Luca CPZ b9d55e2853
Merge pull request #371 from medivhok/master
added awful library require
2017-12-09 17:20:05 +01:00
Jean Gregory 7d0611cc40
added awful library require
setting the 'followtag' option of the imap widget to true was causing the update function to fail. The function was calling awful.screen.focused(), which failed because the awful library wasn't included.
2017-12-09 09:28:25 -05:00
Luke Bonham 055e663772 pulseaudio -> pulse; scallback merged into cmd (read wiki) 2017-10-05 11:32:01 +02:00
Luke Bonham c2b186467c Merge pull request #362 from 2009/fix/pulse-sink
Add devicetype to pulsebar to match pulseaudio and update sed command
2017-09-13 11:13:44 +02:00
Justin Endacott 614b4b6396 Merge branch 'master' of http://github.com/copycat-killer/lain into fix/pulse-sink 2017-09-13 11:51:20 +10:00
Justin Endacott c7616e3ded Add devicetype to pulsbar to match pulseaudio and update sed command 2017-09-13 11:46:43 +10:00
Aleksandr Beliaev 794f5d3220 Weather widget working without utc_offset 2017-09-11 11:08:34 +02:00
Luke Bonham d070b7bd35 quake: iterate on all screens; #339 2017-09-05 22:34:09 +02:00
Luke Bonham 62edd22cdb util.quake: removed onlyone parameters; wiki updated; counters #339 2017-09-05 16:34:52 +02:00
Luke Bonham 1b12fd2319 removed whitespaced signatures; wiki updated 2017-09-04 12:43:00 +02:00
Luke Bonham 1ebfa854f9 revert a5b05fa; #310 2017-08-29 13:13:35 +02:00
Luke Bonham 9b99234aca Merge pull request #359 from rohieb/mpd-port-from-environment-for-master
mpd: respect MPD_HOST and MPD_PORT environment variables
2017-08-28 14:04:23 +02:00
Roland Hieber 4785632d85 mpd: respect MPD_HOST and MPD_PORT environment variables
As mentioned by the mpc(1) man page, these seem kind of standard
variables for non-standard port configuration, so they are probably set
anyways by the user.

Signed-off-by: Roland Hieber <rohieb@rohieb.name>
2017-08-28 12:35:16 +02:00
Luke Bonham 12f0258dc8 {alsa,pulse}bar: show percentage even when muted 2017-08-25 10:26:30 +02:00
Luke Bonham a5b05fa479 weather: set UTC directly #310 2017-08-24 12:49:17 +02:00
Luke Bonham 6d7d6aad54 optimised PNGs 2017-08-18 11:53:08 +02:00
Nick Diego Yamane c846e5e31a task widget: Check if mouse is still over attached widget in aync show
This fixes issue #356. Using an approach similar
to what is implemented in other lain widgets (e.g:
calendar). That is, checking the mouse is still over
the target widget inside the `helpers.async` function
call in `task.show()`.

Signed-off-by: Nick Diego Yamane <nick.diego@gmail.com>
2017-08-18 11:35:26 +02:00
Luke Bonham 252df73e57 widget.contrib.gpmdp: moved to awesome-www recipes; closes #354 #343 #342 2017-08-14 18:34:46 +02:00
Luke Bonham 0ef7864227 imap: add notify option to disable notifications (read the wiki) 2017-07-25 21:34:07 +02:00
Luke Bonham 721ae4b7b5 weather: added showpopup option; closes #352 2017-07-25 17:21:36 +02:00
Luke Bonham 81c816eb8d remove old screenshots 2017-07-21 14:06:33 +02:00
Luke Bonham de72508c78 calendar: let ability to disable icon (see notes section in the wiki); closes #351 2017-07-21 13:59:06 +02:00
Luke Bonham 5b266ecf16 widget.contrib.task: use shell for spawn_cmd, set title to static 'task next' 2017-07-15 14:35:45 +02:00
Luke Bonham c89fc17636 quake: avoid calling compute_size whenever possible 2017-07-10 12:00:49 +02:00
Luke Bonham adccf47bdf readme updated 2017-06-27 13:24:08 +02:00
Luke Bonham 245ab7c33a alsabar: rename flag 'mute' to 'playback' in order to avoid confusion; fixes #345 2017-06-27 13:11:27 +02:00
Luke Bonham 6f2b39a266 counter pull #344: don't rely on awful.layout.layouts array, but point directly to tile layout 2017-06-25 13:16:10 +02:00
Luke Bonham a99a67608e Merge branch 'master' of github.com:copycat-killer/lain 2017-06-25 13:11:40 +02:00
Luke Bonham 56a603ef28 {alsa,pulse}bar: notification fixes and logic simplified 2017-06-25 13:11:30 +02:00
Luke Bonham 1542a800fd Merge pull request #344 from 2009/patch-5
Fix issue with `add_tag` when not using floating layout
2017-06-21 13:01:26 +02:00
2009 8a433a285b Fix issue with `add_tag` when not using floating layout
Using `awful.layout.layouts[0]` was causing `add_tag` to always be set to floating rather than the first entry in `awful.layout.layouts`. This would be fine for users who were using the floating layout, but would otherwise break the layoutbox widget and changing layouts.
2017-06-21 11:02:41 +10:00
Oli Desborough 29dd7ad6fc fs: fix short circuit notification 2017-05-19 15:12:47 +02:00
Jure Varlec 2ddb55bc44 quake: add a new option `onlyone`.
This option allows using a single instance of the app with multiple
screens instead of having a separate app for each screen. It works
better if there is only one instance of the quake object, i.e.

  local quake = lain.util.quake({onlyone=true})

and

  awful.key({ modkey, }, "z", function () quake:toggle() end),
2017-05-06 11:29:59 +02:00
Luke Bonham 0f2cbcb567 wiki updated 2017-04-29 16:19:37 +02:00
Luke Bonham f584555fcf watch removed: use awful.widget.watch 2017-04-29 16:14:02 +02:00
Luke Bonham 86690fdacc Merge pull request #338 from klaernie/master
scripts/dfs: specify bash instead of sh
2017-04-27 12:31:21 +02:00
Andre Klärner 78f122fcf7 scripts/dfs: specify bash instead of sh
The `sh` on e.g. Debian is `dash`, but the script requires bash features by using `+=`. Until #272 is complete I think this is the best way to ensure that dfs works by default (excluding the gawk requirement).
2017-04-27 09:34:43 +02:00
Luke Bonham fc6e880da4 pulsebar: fix factory return 2017-04-03 00:53:31 +02:00
Luke Bonham 3a0b51ee57 contrib.gpmdp: instantiate in factory 2017-04-02 21:28:49 +02:00
Luke Bonham 8f948b52eb widgets: no global tables, but one instance per call; closes #336; closes #337 2017-04-02 19:35:03 +02:00
Luke Bonham 2a5d13920f bat: critical/low levels notification configurable; closes #335 2017-04-01 12:49:58 +02:00
Luke Bonham fa326477dd Merge pull request #332 from aajjbb/fix-fs-typo
fixing typo mentioned in #331
2017-03-14 19:42:47 +01:00
aajjbb d9fcd8880c fixing typo mentioned in #331 2017-03-14 10:43:44 -03:00
Luke Bonham 1ece7c35b7 calendar: mouse.current_widgets safety check 2017-03-10 20:48:11 +01:00