notification interview questions
Top notification frequently asked interview questions
I would like to remove the bubble notifications of spotify that are shown when a new song is being played. This is quite distracting while you are working.
I still like the integration within the volume-menu.
Ubuntu Version: 14.04
Spotify Version: 0.9.10.17.g4129e1c9
Thanks
Source: (StackOverflow)
Every time I turn on my computer, I see a message saying something like:
Your battery may be old or broken.
I am already aware that my battery is bad. How do I suppress this message?
Source: (StackOverflow)
Is there a fancy way to get the volume notification OSD to work with both pulseaudio and ALSA? Right now the standard desktop ones only work with pulseaudio for me. How about a vertical OSD that I can use as a drop in replacement or call from the command line to report changes in arbitrary percentages graphically, as a bar that moves up and down?
The reason why I need it to work with both ALSA and pulseaudio is that I'm using a WINE application which doesn't play well with pulse, so I kill pulse before starting up the Windows app to use ALSA without the extra abstraction layer. When I realized that the volume keys on my keyboard didn't work without pulse, I wrote some bash scripts that I call with either Compiz or Openbox (configured through CCSM and lxde-rc.xml, respectively) to catch the exit signal from pulseaudio --check
and then adjust the volume accordingly:
vol_step_up
#!/bin/bash
pulseaudio --check
if [ $? -eq 0 ] ; then
pactl set-sink-volume 0 -- +3db
else
amixer -c0 set Master playback 3+
fi
vol_step_down
#!/bin/bash
pulseaudio --check
if [ $? -eq 0 ] ; then
pactl set-sink-volume 0 -- -3db
else
amixer -c0 set Master playback 3-
fi
The scripts work great and map to the buttons just fine, but I don't have a good way of seeing the visual feedback anymore--not even with the pulseaudio ones since I' m catching the button events (XF86AudioLowerVolume, etc.). Obviously I could just map the ALSA volume keys to something else, but there's no sense in duplicating shortcut keys.
I did find a python volume control that I can call in the scripts above:
https://github.com/fishman/utils/blob/master/pvol.py
pvol.py -s
shows the current volume level on screen for both ALSA and pulseaudio, but it's awfully tiny compared to the gnome OSD I had been using, and it isn't vertical (bar on top, old OSD at bottom):
So, I made it bigger and flopped it around:
But, even with switching the orientation to a vertical one, the blue default GTK theme isn't quite as slick as VLC (see below).
Much of what I've found in searching for OSD implementations are posts about notify-send commands which lack the whole progress bar concept. Otherwise, it's mostly horizontal bars (and lots of counting placeholders within bash scripts). Really all I need to do is call amix & pactl, so something simple like the gtk progress bar in pvol.py would be great--just not so blue and not right in the middle of the screen.
VLC has a good example of what I have in mind when you scroll the mouse wheel in full-screen mode:
It's a lot less obstructive than the usual boxes that sit in the center of the screen:
The whole horizontal slider analogy has never made much sense to me outside of panning audio between the left and right speakers.
Anyway, how is it that the default desktop notifications get called (especially LXDE)? I see a lot of posts about configuring key press events, but not much on what scripts those events trigger. What other options are out there in the vertically fancy department?
Also, is there some package I should uninstall to prevent conflicts from springing up between the events I'm handling through scripting and compiz or openbox commands?
Update: For the sake of figuring out what OSD I'm currently using, I didn't change the way I handle the mute button right away. Killing xfce4-notifyd and then pressing the mute button spawns a new xfce4-notifyd process, so I was guessing the big speaker icon came from something like xfce4-volumed, but I don't actually have that package installed...Ah ha! Killing gnome-settings-daemon stops the big OSD in the center of the screen.
Source: (StackOverflow)
When I use notify-send
to show a notification on the desktop, and then use it again to show a different notification, I have noticed that the second one only shows after the first one has disappeared.
Is there a way to get notify-send
to immediately replace an existing notification with a different one?
Source: (StackOverflow)
There was a tool to configure notifications in earlier versions of Ubuntu as described here. I tried to install it in Ubuntu 12.04 too but I failed.
I want to have the notifications dynamically located (e.g. notifications for music player and volume control will be shown at the same place) and to reduce the notification duration.
How do I change settings of notifications?
Source: (StackOverflow)
We are running more than 600 Ubuntu systems in our company. It is a data centre so we have certain policies. We have disabled the usage of storage devices in all the Ubuntu systems. However we would like to configure email alerts. If someone inserts storage devices, we should get an email Alert with subject as below,
Email Alert:
STORAGE DEVICE FOUND on IP: 172.29.35.18
Note:
- Where as for Windows system, we have certain policies applied in our DC. So there is no problem with Windows system.
- We need to receive alerts for Ubuntu system also. Any way to accomplish the above task would be great.
Update:
- Few things i would like to clarify, If the user disconnects the network cable and if the user uses usb for data transfer? I know that i wont get any intimations but later if they connect network is it possible to get those pending notifications??
- Some uses usb for charging their mobile phones, is it possible get email notifications for that also??
Source: (StackOverflow)
Can i disable all libnotify related notification from Network Manager ? 'Edit Connection' dialog doesn't help out
Source: (StackOverflow)
In my Ubuntu 12.04, I have two monitors: left is the laptop and the right one is an external and big monitor. My vision is generally focused on the laptop monitor, but the notifications appears in the right one, therefore, I lose the notifications.
Is possible to change the location of the notifications? For example, the notifications appear on the top-right corner of the laptop/left monitor.
Source: (StackOverflow)
Can I somehow put Viber notification icon on top of the Unity panel (near Dropbox and others)?! It's pretty ugly to stay in top left corner...
Source: (StackOverflow)
After installing gm-notify I see the option of hearing a sound every time a new e-mail arrives in my Gmail inbox, but I don't know where Ubuntu (10.4) stores the system sounds to assign one. Any ideas? Thanks.
Source: (StackOverflow)
Is there a way to clear the pop up notifications I get from changing the volume, brightness, dropbox updates, etc...?
Sometimes I have to sit and wait for them to go away so that I can continue to work, as they are blocking something I want to click or look at.
I know this question might seem a little naggy but it does indeed lower my productivity sometimes. I don't mind getting the notificatoins, I do mind not having a option to clear them.
Any idea how I can do that?
Thanks.
P.S. I am using Ubuntu 11.10 (Gnome)
Source: (StackOverflow)
The problem
I have the Chrome notifications popping up in the lower left corner of my main screen. This is quite annoying, 'cause the cursor of my terminal windows are right there, and they cover completly the command line.
I'm on Ubuntu 14.04 and Chrome 42
I've already tried:
- making my secondary (on the right) screen as primary: it still display notifications on the lower left angle of my left monitor
- Activate Chrome native notifications
- Libnotify Notifications in Chrome doesn't work, even with the modifications proposed by the accepted answer
- Linux Native Notification is incompatible, needs Unity plugin (what's that???)
- Chromify-OSD requires NPAPI, that I can't install, it's deprecated
Question
What can I try? I will accept any of those solutions:
- redirect the notifications to Unity
- move them in an other angle of my screen
- move to an other monitor (I'm using Chrome on the secondary monitor)
Also...
I also found this on Chromium FAQs:
Q. Why don't Chromium notifications use the D-BUS-based notifications
system (aka libnotify / notification-daemon)?
A1. HTML5 notifications can contain arbitrary HTML, which is not
supported by the notification protocol. (This is the same reason we
don't use Growl on OS X.)
A2. Chromium's notifications include a button that brings up an
options menu, which is also not supported by the notification
protocol.
A3. The glitzy Ubuntu notifications daemon, by design, does not allow
the user to interact with notifications at all, which doesn't work
when the notification HTML includes clickable links.
A4. It would be nice to extend the protocol to allow Chromium to
integrate. Any takers?
Source: (StackOverflow)
I use Jupiter as a power manager. Now I get a good number of notifications from it. I do not have problem with the fact that I get all these notifications.
I do however, want to be able to clear all gnome shell notifications with a few clicks. Currently, my entire bottom edge of the screen is filled with notifications and I do not wish to clear each item one by one.
So my question is, how do I clear these notifications? If this is not possible in the ui, is it possible to write an extension to do it? Where should I suggest this feature to gnome developers? Gnome forums are almost dead now, the administrator has not activated my created account since 5 days!
Source: (StackOverflow)
The Pidgin icon won't appear in the notification area. I have already checked if the "Show system tray icon option" is set to "Always" in the Pidgin Preferences.
I didn't find an equivalent solution as those in the case of Unity.
Source: (StackOverflow)
I have started a long process through a terminal. Is it possible to make the Ubuntu terminal make a sound once the process is complete? This way, I don’t need to keep checking, but will instead be notified through a sound.
Source: (StackOverflow)