xfce4-notifyd 0.3.4 released – Do not disturb and per application settings
I’ve finally gotten round to doing a 0.3.4 release to get some of the features I’ve had ready for a while “out there”. On the way a lot of translation updates have trickled in and Christian Hesse supplied a patch to fix internal themes with Gtk+3.22.
Features:
As announced already a while ago, this release features a “Do not disturb” mode so you can suppress notification bubbles when in/convenient. So this should satisfy users who want to silence all notifications for a limited time-frame.
For users who want to suppress certain applications, they can now do so with a list of “known applications” – which gets populated over the life-time of xfce4-notifyd by all apps that send notifications.
If an application does not show up in this list it simply hasn’t sent a notification since you have upgraded to 0.3.4
Another – slightly hidden – feature is defining a screen for notification bubbles to appear. While by default notifications are shown on the screen where the mouse-pointer resides, you can now select the “primary monitor” – the “primary monitor” can be set globally e.g. through xfce4-display-settings – as default place for notification bubbles to end up on.
To enable this feature in xfce4-notifyd, add the (Boolean) property “/primary-monitor” to the xfce4-notifyd channel and set it to True.
In a future release this option may be moved to the settings dialog.
Bugfixes
The only real bugfix in this release makes sure that internal themes work with Gtk+3.22, which dropped support for the “font” css shorthand in favor of “font-weight”, “font-family” etc.
Outlook
Finally I’ll soon merge my “logging” branch – which brings the persistence feature to xfce4-notifyd – to master to give people a chance to test and translators some time to do their magic.
Another bugfix release for xfce4-notifyd: 0.3.3 is out!
While I had planned to make the next release about features, I ended up fixing a few issues and doing a bugfix release instead. So 0.3.3 is about getting things right.
Test-driven development
Generally speaking Xfce has very few unit tests – or tests at all – but since Jerome had laid a foundation for notification tests in xfce4-notifyd I decided to extend that to testing the icons in notifications. What inspired me to do so was that I noticed that notifyd was not in line with the fd.o notifications specification in two aspects:
- it didn’t support the “image-path” hint and
- the priorities of how to handle the icons were mixed up.
So my new “test-icons” test – which I wrote before(!) I implemented the fix for the priorities, even if I checked it into git only until later – checks whether the server handles all icon-related properties, hints and features and also checks whether the priority is in accordance with the specification. I also started some documentation on what parts of the freedesktop.org specification are implemented in xfce4-notifyd and which ones are not (prominent example which is not implemented: sound).
Other than that a thank-you goes to Olivier for contributing another build-fix. Finally I managed to get a few more bugs fixed, most notably a general theming issue (action buttons were sometimes mis-styled) and hiding notification buttons without label. Together with the translation updates I think this makes 0.3.3 a worthwhile release.
Final note: currently there are only 12 bugs open on the tracker, of which several are feature requests so things seem to be going quite well!
Improved media-key handling with xfce4-volumed-pulse 0.2.2
Background
So xfce4-volumed has been around a while and automagically handling your media keys – originally written by Steve around 2009 – but lingering unmaintained in Xfce’s Git repository. This version of the media-key daemon uses gstreamer 0.10’s mixer interface, which has been deprecated in gstreamer 1.0.
It’s been almost as long that Lionel forked the project into xfce4-volumed-pulse in 2012 – hosted on Launchpad ever since – notably adding support for PulseAudio.
Migration to xfce.org
Not much has happened since then, until Sean and me decided to move the project over to the official Xfce infrastructure for more distributions to enjoy. This means the code is now on git.xfce.org and bugs are tracked on bugs.xfce.org.
I also went ahead and added some small features to it (all documented in the Readme). Amongst others I merged a feature branch adding support for the Microphone Mute key (thanks goes to Christian Pointner for the feature). I also added support for symbolic icons, which means your audio volume change notifications can now be shown – presuming you have at least xfce4-notifyd 0.3.2 installed – with always correctly colored monochrome icons. This latter feature has been made optional through an “icon-style” xfconf property in the newly created xfce4-volumed-pulse channel. This same channel now also handles the “volume-step-size” property, which used to live in the xfce4-mixer channel (this really didn’t make sense to me anymore with xfce4-mixer not supporting PulseAudio). Finally we cleaned up the repository a bit and Sean was kind enough to knock out the 0.2.2 release while I was afk.
Anyway, without further ado here’s the code:
https://git.xfce.org/apps/xfce4-volumed-pulse
PS: It might be worth noting that if you’re using the xfce4-pulseaudio-plugin you already have your volume keys handled by it.
xfce4-clipman 1.4.0 (Gtk3 port) and libxfce4ui 4.13.1 released!
xfce4-clipman-plugin 1.4.0 released
So finally I’ve decided to release xfce4-clipman-plugin 1.4.0, which is the Gtk+3 port of the plugin. For a while I was unsure whether to do a development or a stable release – to be clear: this was not a decision based on the stability of the product itself but the fact that it relied on the development release of a Xfce core component (libxfce4ui-4.13.0). However I decided to revert the commit that introduced the dependency (I will apply it again latest when 4.14 is out).
As the port is a 1:1 port there are practically no new features. The only notable difference is that the panel plugin’s icon is now a symbolic icon.
Thanks to Eric, Steve and Florian for helping me get this off the ground!
This is only a smaller bugfix release that replaces a deprecated call and – more importantly – fixes the default theming of XfceHeading in all Gtk+3 settings dialogs of Xfce.
Greybird 3.20.1 released (mostly bugfixes)
So the first bugfix release for Greybird 3.20 is here and while the changelog isn’t an overly exciting read, there are some goodies in this one!
The single new feature in this – otherwise – bugfix release is a Greybirdy theme for Plank (a simple dock), contributed by Sean.
Other than that I have tweaked or fixed the following:
- less padding on some widgets, e.g. buttons (makes the whole theme feel more like the original and matches Gtk2)
- less bold input focus line on GtkEntries
- improved progressbar theming (no more tiny artifacts when the fraction is 0.00), also fixes LP #1617705
- tweak the look of OSDs
- mention librsvg build-dependency in the README
Download
https://github.com/shimmerproject/Greybird/releases/tag/v3.20.1
Featurette: xfce4-notifyd 0.3.2 released
This release came a bit sooner than expected, but it’s primary goal is to fix a showstopper regression which slipped into 0.3.1 and practically rendered xfce4-notifyd useless on systems with Gtk+3 <=3.18 (i.e. not showing any notifications). Thanks to Olivier for noticing immediately and posting a patch!
But while this had to be a fast release I still managed to put in some feature-goodness. For instance I came through on my promise to add more default themes and in this release I added “Retro” and “Bright“.
The biggest feature in this release however is the support for symbolic icons. For those of you who haven’t heard of the feature before: it’s basically Gtk+ coloring your icon with the color of the font of that particular context, so the icon will color-wise match the font. This is especially useful for monochrome icons and (usually) prevents white-on-white scenarios. It also gives users and theme-makers more freedom (instead of having a “dark panel” or a separate “dark notifications” variant of an icon-theme). Note that your notification-sending application also has to request a symbolic icon, xfce4-notifyd is not enforcing symbolic icons.
Another notable fix (that I forgot to mention in the release notes) is the fix of styles of the progressbars in notifications. Those were not styled according to the notifyd-theme selected but always used the style of the base (as in: screen-wide) Gtk+ theme.
Finally, a minor improvement is that all themes are now sorted alphabetically in the Settings Dialog.
With this bugfix release out of the way it won’t be long until I merge my feature branch and get more testing for the “Do not disturb” mode.
Enjoy!
Bugfixes incoming: xfce4-notifyd 0.3.1 released!
More good news in notification-land: I just released a new version of xfce4-notifyd – aka 0.3.1 – which fixes some nasty issues, amongst others
- memory leaks (thanks Tony!)
- an issue which caused build problems on Gtk<=3.18 systems (thanks Michał!)
I also added a Help button which links to the docs I wrote for notifyd a while ago: http://docs.xfce.org/apps/notifyd/start
I hope this will make 0.3 smoother in everyone’s daily usage and the Gtk+3 port more regression-free.
Read more here: https://mail.xfce.org/pipermail/xfce-announce/2016-September/000457.html
Upcoming changes
On the plate for the next release are more default themes (hint: “Retro” has already been pushed to git master) and potentially the per-application settings and “Do not disturb” mode which I previously teased. The latter might also warrant a major version number bump so we’ll see whether it’ll really end up in 0.3.2.
Stay tuned!
Preview: Per application settings and Do-not-disturb mode in xfce4-notifyd
As previously announced I’ve been working on per-application settings and a “Do not disturb” mode for xfce4-notifyd, which is Xfce’s notification daemon.
Finally I’ve come to a point where I’m ok with pointing to the code and encouraging people to try it and spot potential issues with it. As both of these features have been long-time requested I hope it’ll make quite a few people happy. I know I’ve been quite happy myself since I can use it
The way that the “known applications” are handled by xfce4-notifyd is that they are remembered once they have sent a notification. This means that you can only mute applications which have – at some point since you’ve been running the code from the branch – actually sent notifications. I’ve been previously thinking about trying to collect all potential candidates somehow but this turned out too pesky and personally I think most users will want to mute those applications that send notifications often and those will quickly appear in that (alphabetically sorted) list.
Caveats: Some of this isn’t final – I might still be updating the wording on some of the labels or even some of the functionality might be amended a little, but generally I’m quite pleased with how things are working. Furthermore there may be memory leaks, I just haven’t had the time to really get to that (bugreports and patches are warmly welcomed ;)).
If you have feedback or suggestions please feel free to add some comments to this post or contact me on other communication channels.
So here’s the code: https://git.xfce.org/users/ochosi/xfce4-notifyd/log/?h=private/per_app_settings
Related bugreports:
Greybird 3.20.0 (to be clear: with support for Gtk+3.20) released
Finally – 5 months after the release of Gtk+3.20 – I’m happy to announce the release of the first version of Greybird supporting it.
Why has it taken so long? – you
may ask yourselves – and one reason was certainly me being totally busy with other things, but another one was that Ubuntu didn’t ship it in its 16.04 LTS release (which was a totally sane decision, by the way). Because of the latter it took some time before the issue of having a theme that supports Gtk+3.20 became pressing enough for me to take action.
Anyway, now it is done. (At least mostly.)
While porting the theme (in this case really: porting, not just: adding support for) I also decided to rebase it on Adwaita. Over the last releases so much stuff had piled up, so many quick fixes or patching up visual nuisances to support “the next Gtk+ release” that the theme had become an unmaintainable jungle – I frankly couldn’t have told you which line mattered anymore. While rebasing, I also went from CSS to SASS, which was the only right decision, as I’m sure now after having gone through with it. It made the code so much more maintainable and readable (kind of reminding me of the first Gtk+3 releases, when themes were still a lot leaner in terms of LOC).
So yeah, I’m pretty happy with where this has been going. There are still some rough edges (e.g. progressbars are probably not 100% greybirdy) and things I haven’t added support back for (e.g. elementary’s Granite widgets), but I think what is there now warrants an initial release as things still look consistent between Gtk+2 and Gtk+3 applications.
One final note: Greybird has recently switched to a new versioning scheme, which basically mirrors the Gtk+3 release numbers the theme works best with.
Download
https://github.com/shimmerproject/Greybird/releases/tag/v3.20.0
Xfce goings on (Gtk+3 port etc.)
So I’ve been busy lately porting Xfce apps and components to Gtk+3 (you can see on the roadmap page for 4.14 that we’ve come some way already – only the really uncomfortable behemoths are missing ) and since I’ve been working on apps which I haven’t touched before (and which haven’t really seen much or any development in a while).
I thought I’d do a quick overview of some of my recent activities so everyone knows Xfce is still alive.
clipman
I have ported clipman to Gtk+3 mostly as an exercise, to get back to coding and to re-acquaint myself with the “fun” that is porting to Gtk+3 (including the obligatory #ifdefs for different Gtk+3 releases).
I didn’t really have the energy to add any new features there (apart from general Gtk+3 stuff like symbolic icons, which is nice for the panel plugin), but it had the intended effect for me plus Eric and Florian helped out, which made it more fun. In the end we even got Steve to sit down and crank out a very nice fix for an extremely widespread issue in Xfce.
notifyd
Basically Ali did all the hard work of porting notifyd to Gtk+3. I was left with the hard work of polishing the edges and making it release-ready (which ended up being much more work than I anticipated and now that I’m mostly familiar with the codebase I’ve also started to add – for now: small – features). So yeah, 0.3.0 is out! Hooray!
I also managed to write down some basic docs for notifyd (they’ll be linked to in the 0.3.1 release) which also explains the theming aspect a little bit.
For now I’ve planned some features – we’ll see when and if I get to them, but amongst others:
- “Do not disturb” mode (still have to figure out where and how to display the “missed” stuff or whether to bother with that at all)
- More themes by default (currently we only have good ‘ol Smoke and evergreen ZOMG PONIES!)
- More bugfixing
- Better docs
settings
This is actually Sean’s project and he already ported most of the dialogs (only display missing at the time of writing) and this is really exciting as it is one of the core components. Can’t wait to install this beast on a productive machine to see what will happen
libxfce4ui
I didn’t do much here apart from handling the release and fixing the theming of XfceTitledDialog for Gtk3.20 (and below) in accordance with the Gtk+ Devs (still unreleased, will come with libxfce4ui-4.13.1). Generally speaking now that Glade support is fixed and we have working dialogs I guess there’s not much more to do in that lib (I may be wrong though).
terminal
This is Igor’s playground now, I merely helped with porting the settings dialog and getting rid of some rough edges there. I’m using the Gtk+3 port of the terminal on a daily basis though and am very happy with it – nice work Igor!