Hot answers tagged

9

This is probably the urgency hint which can be set on windows. This hint is recognized by most window managers. Most terminals can be configured to set the urgency hint when receiving a bell. (u)xterm for example has the bellIsUrgent option and (u)rxvt has urgentOnBell. To ring the bell in a terminal just run tput bel or echo "\a" (depending on the shell ...


9

"A package manager is working" means that something is holding a lock on /var/lib/dpkg/lock and/or/var /cache/apt/archives/lock. You can find out which process this is with the fuser command: dennis@lightning:~$ sudo fuser /var/lib/dpkg/lock /var/cache/apt/archives/lock /var/lib/dpkg/lock: 18049 /var/cache/apt/archives/lock: 18049 dennis@lightning:~$ cat ...


8

You can send a message to all consoles with the command wall. For sending notifications under X there is notify-send which sends a notification to the current user on the current display. (From your question, I guess you already know this one.) You can build upon this with some bash scripting. Basically you have to find out which users are on which ...


6

There used to be a lot of broken routers out there that would drop any packets with the ECN bits set. I remember trying it and experiencing this personally. This site gives you a taste of how things used to be, particularly the "8% of the internet unreachable!" link. It's of roughly the same vintage as the article you linked; as Mat pointed out, the article ...


6

hey you can always write your own! #!/usr/bin/python import imaplib M = imaplib.IMAP4_SSL('imap.gmail.com') if (M.login('YOU@gmail.com','PASSWORD')[0] != 'OK'): exit("no conn") c = (M.select('Inbox'))[1][0] if (c != '0'):print c M.shutdown() you can emit this into dmenu or another wm notification tool


6

Depending on your distribution you could add a custom notification script. On e.g. Ubuntu you could use inotify-send. Add some short cut key combination to write status to a file. E.g. Alt+Shift+M Then configure Skype to use this script instead of internal: Select notifications Enable Advanced View Un-check Display pop-up notification Enable Execute the ...


6

You can can use HFP to let the laptop act as bluetooth hands free device and configure such notifications. From the homepage: HFP for Linux is a Bluetooth Hands-Free Profile server. It allows your Linux system to act as a speakerphone for your mobile phone. It aims to be a compliant Bluetooth HFP 1.5 Hands Free implementation, supporting all ...


5

You can try wall. On my KDE machine, a small panel pops up with the message sent with wall. Of course, the message also appears in all terminals, but maybe your users do not have a terminal open. Example: echo "It is 9 o'clock and all is well." | wall


5

You do it the other way around: $ pushover-notify "This is my message" command arg1 arg2 Your script pushover-notify could be something like this: #!/bin/sh TOKEN=your_token USER=your_user MSG="$1" COMMAND="$2" shift 2 if "$COMMAND" "$@" ; then # here run your send-message script, with message "$MSG". for example: curl -s \ -F ...


5

I think you would be better off just removing libnotify and notify-send from the equation, given your stated requirements they do not provide any additional flexibility of functionality. If you are looking for a minimal status bar, conky has a comprehensive amount of functionality, all of which can be updated in real time (depending upon how resource ...


5

Well, after many hours of googling and asking on forums, I got it working (it seems). Anyone who wants to get nice visual and/or audio notification when some USB device is plugged/unplugged can install my script, see installation details below. First of all, answers on my own questions. 1. How to get actual title of the device attached, the same as I can ...


5

AFAICT, you are right in attributing the system tray icon to notification-daemon. If you are not happy with the icon, try another notification daemon. Notifications work on the basis of client server. Any notification client can communicate with any compatible server. I myself am using dunst and I am very happy with that. It does not have any system tray ...


4

You can the pam_lastlog module to display the date of last login upon successful logon. You can refer to the pam_lastlog man page for more options, but to accomplish what you want just add the following to the /etc/pam.d/login file session required pam_lastlog.so nowtmp


4

Udev support running external programs KERNEL=="sdb", RUN+="/usr/bin/my_program"


4

I am now using Trysterobiff. It is a non-polling IMAP mail notifier for the systray. It implements the requirements, including the execution of external commands and does not crash. I've written it using Qt, thus Trysterobiff is quite portable. The non-polling operation is implemented using the IDLE extension of IMAP, i.e. you are immedialtely notified of ...


4

This report indicates it's sudo apt-get install notification-daemon.


4

In KDE 4.8 (sorry I don't have access to anything older ) you can click on the "show hidden icons button" in your panel, then right click on "notifications", click "notification settings". Here you will see some options on what to show. However each application has it's own menu for what events it has send notifications. An even Better option might be to ...


4

There is old school console tool: nethogs - Net top tool grouping bandwidth per process e.g. run in this manner: # nethogs eth0 NetHogs version 0.8.0 PID USER PROGRAM DEV SENT RECEIVED 11173 user rtorrent eth0 111.001 4.358 KB/sec 13159 user rtorrent eth0 125.673 3.734 ...


4

To run the mail through a script you can modify your rule like so using 2 rules: :0: c * ^X-Spam-Status: Yes Spam/ :0: fw * ^X-Spam-Status: Yes | /usr/bin/python /work/scripts/process_mail.bash Your program will receive the mail on STDIN. You'll have to 'echo' the possibly transformed mail on STDOUT. fw means: f Consider the pipe as a filter. w Wait ...


4

That icon has nothing, nothing to do with libnotify, nor dbus. This is entirely dependent of your DM/WM (I'm guessing cinnamon, but could be wrong) and dbus/libnotify can't do anything to control it. For comparison: XFCE doesn't use such icon, and I'm aware that GNOME Shell does show a icon independently what method you use. If you need to get rid of the ...


4

man wall will give you what you need. You execute wall with either a filename, or you pipe content to it. For example, either, wall file.name to broadcast the content of the file file.name or echo "Dive\!" | wall to send the message Dive! Update: As Stephen points out in this answer, later versions of wall can send messages by simply typing, wall ...


3

Partial answer: as SL uses GNOME, this tells you the gconf keys for disabling at least the power management's notifcations. So in case these are your "annoying" ones... Edit another part, I think you're done with notifications if you disable the Notification Area Applet, probably via some GUI panel options.


3

On Arch Linux I removed exec permission on notification-daemon lib. I found this temporary quick fix when I was searching for solution to this same problem. $ sudo chmod -x /usr/lib/notification-daemon-1.0/notification-daemon Some of annoying notifications you can disable here: $ gnome-session-properties For example you can disable "Print Queue ...


3

About the only thing that I can suggest is to create a named pipe and have cron write to the pipe and have a little script started by the session manager that reads from the pipe and calls notify-send: while read line < /tmp/.cron2notify.s # pipe name in /tmp do notify-send "Cron message" "$line" done Then in the crontab, have the program write to ...


3

The Power thingy and the user chat bubble thingy are both the same applet called "Indicator Applet Session".


3

Use update method and call show method again: #!/usr/bin/python # -*- coding: utf-8 -*- import pynotify import time pynotify.init("Basic") n = pynotify.Notification("Title1", "body1", "dialog-warning") n.show() time.sleep(1) n.update("Title2", "body2", "dialog-warning") n.show() Update: There is close method but... it doesn't work at all. ...


3

From CLI, you can display and close a notification pop-up via gdbus/qdbus. Here's how to that with gdbus: gdbus call --session --dest org.freedesktop.Notifications --object-path /org/freedesktop/Notifications --method org.freedesktop.Notifications.Notify my_app_name 42 audio-card "Message" "Body" [] {} 20 this will output something like: (uint32 72,) ...


3

system crons Did you look through these files & directories to make sure there isn't a duplicate cronjob present? /etc/crontab /etc/cron.hourly/ /etc/cron.d/ /etc/cron.daily/ /etc/cron.hourly/ /etc/cron.monthly/ /etc/cron.weekly/ Also any files present in these directories that's executable will be run. Doesn't matter if it's a .placeholder name or ...


3

If I understand your logic correctly, how about this: while true; do highest_cpu="$(ps -eo %C --sort -%cpu | awk 'NR==2 {print $1}')" if [ "$highest_cpu" -gt 8 ]; then notify-send 'CPU alert!' "$highest_cpu" ... fi ... done If you need a non-integer CPU usage threshold, the following Bash-only solution should work: if [[ ...


3

You can write a custom script that checks /proc/acpi/battery/BAT0/state and gives you the feedback on the line charging state: changing to charged. On newer systems you should use /sys/class/power_supply/BAT0/status if available. You only would need to check every minute or so, but since you want to know what the previous state was (so it won't beep every ...



Only top voted, non community-wiki answers of a minimum length are eligible