1678 Commits

Author SHA1 Message Date
Nikos Tsipinakis
6ba430a818 Add dunstctl man page 2020-05-01 15:35:23 +02:00
Nikos Tsipinakis
5aa1863762 Rename status commands to running 2020-05-01 15:35:23 +02:00
Nikos Tsipinakis
94aa427a1b Fix dunstctl help alignment 2020-05-01 15:35:23 +02:00
Nikos Tsipinakis
23fa204e69 Use set -e 2020-05-01 15:35:23 +02:00
Nikos Tsipinakis
a91adf9c80 Implement error handling in NotificationAction call 2020-05-01 15:35:23 +02:00
Nikos Tsipinakis
36eed785d2 dunstctl: Fix alignment in help message 2020-05-01 15:35:23 +02:00
Nikos Tsipinakis
ec421f1ea1 Properly handle error conditions from dunstctl 2020-05-01 15:35:23 +02:00
Nikos Tsipinakis
9049bf15b2 Remove live status checking (for now) 2020-05-01 15:35:23 +02:00
Nikos Tsipinakis
ee11dfa8fe Don't wake up after doing an action 2020-05-01 15:35:23 +02:00
Nikos Tsipinakis
936dbb039c dunstctl: Print help message on dbus communication failure 2020-05-01 15:35:23 +02:00
Nikos Tsipinakis
b1f64b266b Wake up after changing status via dunstctl 2020-05-01 15:35:23 +02:00
Nikos Tsipinakis
e14160bda6 dunstctl: Apply shellcheck suggestions 2020-05-01 15:35:23 +02:00
Nikos Tsipinakis
6a8401d85a dunstctl: Use = rather than == for string equality
`==` is not supported in plain sh
2020-05-01 15:35:23 +02:00
Nikos Tsipinakis
d45d26e257 dunstctl: Don't use function keyword
Plain `foo()` is more portable, `function` doesn't appear to be
supported in sh.
2020-05-01 15:35:23 +02:00
Benedikt Heine
7e92619967 Add ability to trigger action of latest notification
Currently triggers only the latest notification. TODO: implement it
either with ActionsAll or more favorable: with an optional paramter,
which should trigger only the action of a single notification.

The problem currently: I have got no ability to check the DBus docs, as
I'm on a bad internet connection.
2020-05-01 15:35:23 +02:00
Nikos Tsipinakis
6b60c52ee1
Merge pull request #708 from cdown/mouse_fallback
follow=keyboard: Fall back to follow=mouse instead of XDefaultScreen()
2020-04-27 17:40:49 +02:00
Chris Down
e8fc45da63 follow=keyboard: Fall back to follow=mouse instead of XDefaultScreen()
In dwm and similar window managers, it's common to often have empty
tags, and navigate to them with the intent to create clients there. If I
navigate to one of those empty tags with a dunst notification visible
and follow=keyboard set, the notification warps over to the default
screen.  If I then open a client, it then warps back, which is pretty
jarring.

This is mostly an artefact of the implementation of follow=keyboard --
if we fail to get a focused window, we use the default screen. However
this case isn't necessarily really a "failure" on window managers like
dwm where it's a common occurrence to end up with no clients on the
screen, whereas that would be significantly rarer on (say) GNOME or KDE.

A guess that's more likely to fit user expectations is falling back to
where the mouse pointer currently is, since this indicates the currently
focused monitor that the window manager would create a client on. This
avoids warping back to that monitor again when a client is created.
2020-04-27 16:34:53 +01:00
Benedikt Heine
a3342d0ced Add debug command 2020-04-10 10:48:47 +02:00
Benedikt Heine
e80e8e9eb5 Install dunstctl via make automatically 2020-04-10 10:48:37 +02:00
Benedikt Heine
72d68fcec4 Overhaul dunstctl 2020-04-10 10:47:12 +02:00
Felix Buehler
305ab6c4e6 Add dunstctl shell script 2020-04-10 10:47:12 +02:00
Benedikt Heine
55f4971a92 Add DBus interface to control dunst 2020-04-10 10:47:12 +02:00
Nikos Tsipinakis
523d5e199e Make all target build dunstify as well 2020-04-06 10:03:12 +02:00
Nikos Tsipinakis
b4633a0061
Merge pull request #705 from mkrasnitski/list-conf-options
Allow for multiple actions per mouse event
2020-04-06 09:56:46 +02:00
Michael Krasnitski
92a21487b2 Make some changes to default dunstrc
These make it more clear to the user that the mouse_click
options can be defined as lists.
2020-04-05 21:46:07 -04:00
Michael Krasnitski
8bcc3070fb Use g_strsplit instead of homebrewing a solution
Lesson: don't reinvent the wheel.
Additionally, changed a `g_malloc` call to `g_malloc_n` for safety.
2020-04-05 19:35:36 -04:00
Michael Krasnitski
a4a1a1ac9e Add tests for parsing lists from conf/cmdline. 2020-04-05 15:29:28 -04:00
Michael Krasnitski
506b4f2cfa Allow a mouse button to perform 1 or more actions in series.
The user provides a comma-separated list of valid mouse actions
that will be performed one after another when a notification is
clicked. If any one of the provided actions is invalid, the value
reverts to its default state.
2020-04-05 15:29:24 -04:00
Michael Krasnitski
94be674cf8 Add parsing of comma-separated list options from conf/cmdline. 2020-04-05 12:15:35 -04:00
Nikos Tsipinakis
0d038021a6 Update README to mention libnotify dependency 2020-04-04 15:40:47 +02:00
Nikos Tsipinakis
8fafc456cb
Merge pull request #702 from braunbearded/fix-dunstify-installation
Fix dunstify installation
2020-04-04 15:38:16 +02:00
braunbearded
c6f1f169a7 Always add libnotify as build dependency 2020-04-04 14:15:37 +02:00
Nikos Tsipinakis
520c36ad7a
Replace coveralls badge with codecov 2020-04-03 17:22:07 +02:00
Nikos Tsipinakis
12873ccd78
Merge pull request #701 from braunbearded/install-dunstify
Install dunstify
2020-04-03 17:03:59 +02:00
stefan
697db7198d Uninstall dunstify 2020-04-03 14:16:53 +02:00
stefan
7e2b148262 Install dunstify 2020-04-03 13:53:15 +02:00
Nikos Tsipinakis
9e5a647092
Merge pull request #700 from bebehei/ci
Update CI to Github actions
2020-04-02 12:47:52 +02:00
Benedikt Heine
c4fe74df37 Use Codecov, coveralls doesn't work at all
The docs of the Github action aren't working at all and are not deemed
to work. The "parallels" feature is completely broken and others have
solved it by switching to Codecov.

See coverallsapp/github-action#13
2020-03-31 23:54:38 +02:00
Benedikt Heine
db76fff1ca Add coveralls settings 2020-03-31 23:51:26 +02:00
Benedikt Heine
29e02c2a29 Introduce Github Actions as CI 2020-03-31 23:51:20 +02:00
Benedikt Heine
ef88e39de6
Merge pull request #699 from tsipinakis/invalidate_actions
Invalidate actions after notification is closed
2020-03-31 16:43:29 +02:00
Benedikt Heine
b3e640a8ef Remove CircleCI and Travis CI
Those will get replaced by Github Actions
2020-03-31 15:27:42 +02:00
Nikos Tsipinakis
69e319c729 Invalidate actions after notification is closed 2020-03-31 15:27:16 +02:00
Nikos Tsipinakis
43c614559c Remove WantedBy in systemd unit file
This avoids dunst starting automatically on session start, since it
usually happens before the graphical session is brought up and ends up
cluttering the journal with errors.

Either way, dunst is autostarted by dbus when a notification is sent.

See #314
2020-03-21 21:24:54 +01:00
Nikos Tsipinakis
fbdef7b58a
Merge pull request #694 from bebehei/issue-693-unset-home
Retrieve user's home from passwd entry as fallback
2020-03-13 16:45:31 +01:00
Benedikt Heine
9591af02a8 Retrieve user's home from passwd entry as fallback
For weird reasons, the HOME-variable might not always be set. So we
should fallback on something more reliable.

Fixes #693
2020-03-10 16:29:20 +01:00
Nikos Tsipinakis
dfd6e76de5
Merge pull request #684 from chronus7/master
Adding vertical content alignment control.
2020-01-30 15:07:52 +02:00
chronus
4c09883ef6 adding changes according to review
- adding default to config.h#defaults
- changing naming from content_* to vertical_*
- replacing switch-case with if-else-if
2020-01-29 23:02:00 +01:00
chronus
e665eea97e adding content_alignment to config and documentation 2020-01-26 11:44:31 +01:00
chronus
f9b6f6a066 fixing comparison issue in bottom alignment 2020-01-25 16:43:42 +01:00