about summary refs log tree commit diff
path: root/pkgs/aszlig
diff options
context:
space:
mode:
authoraszlig <aszlig@nix.build>2020-12-20 17:31:32 +0100
committeraszlig <aszlig@nix.build>2020-12-20 17:31:32 +0100
commitdb064ddf183a01d81a9cc39e96bb0085f12c14d4 (patch)
tree9a3ead648a9aa40417ed9b94ee8fe24b68ae7159 /pkgs/aszlig
parent0ef84d81e2e186b2d77db9314381f3a89ce8f86a (diff)
pkgs/psi: Keep urgency hint indefinitely
One thing that has annoyed me since quite a while but ultimately didn't
fix yet, was that the urgency hint was only set for one millisecond.

I don't know how this would look like in a desktop environment, but in
my environment the corresponding workspace only flashes red and then
turns back to blue (the default color) whenever I get a new message.

Since I do not constantly switch to Psi to check whether there is
something new, I sometimes responded very late to messages even though I
didn't want to (eg. not actively working on something).

Of course, I also don't want to be interrupted when I'm actually in
zone, but luckily the way urgency hints are displayed in my environment
is pretty unobtrusive and there is no flashing, blinking or even sounds.

So the only difference is that I do not need to switch to Psi anymore,
to check whether there are new messages.

Signed-off-by: aszlig <aszlig@nix.build>
Diffstat (limited to 'pkgs/aszlig')
-rw-r--r--pkgs/aszlig/psi/default.nix1
-rw-r--r--pkgs/aszlig/psi/keep-urgency-hint.patch13
2 files changed, 14 insertions, 0 deletions
diff --git a/pkgs/aszlig/psi/default.nix b/pkgs/aszlig/psi/default.nix
index 6b53daca..17a85fc4 100644
--- a/pkgs/aszlig/psi/default.nix
+++ b/pkgs/aszlig/psi/default.nix
@@ -52,6 +52,7 @@ in stdenv.mkDerivation rec {
   patches = [
     ./disable-xep-0232.patch
     ./darkstyle.patch
+    ./keep-urgency-hint.patch
     (substituteAll {
       src = ./config.patch;
       inherit jid resource;
diff --git a/pkgs/aszlig/psi/keep-urgency-hint.patch b/pkgs/aszlig/psi/keep-urgency-hint.patch
new file mode 100644
index 00000000..f2b1757b
--- /dev/null
+++ b/pkgs/aszlig/psi/keep-urgency-hint.patch
@@ -0,0 +1,13 @@
+diff --git a/src/tools/advwidget/advwidget.cpp b/src/tools/advwidget/advwidget.cpp
+index c1f896e2..c4c6ca83 100644
+--- a/src/tools/advwidget/advwidget.cpp
++++ b/src/tools/advwidget/advwidget.cpp
+@@ -216,7 +216,7 @@ void GAdvancedWidget::Private::doFlash(bool yes)
+ 
+ #else
+ 
+-    QApplication::alert(parentWidget_, yes ? 0 : 1);
++    QApplication::alert(parentWidget_, 0);
+ 
+ #endif
+ }