Tag Info

Hot answers tagged

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

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 ...


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 ...


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

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


5

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 ...


5

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 ...


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 ...


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

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


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 ...


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

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

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

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 ...


3

If you're using KDE SC as desktop environment, just do this: Open System Settings Go to Application and System Notifications (Section: Common Appearance and Behavior) If not already selected, choose Manage Notifications from the list on the left side Select Power Management System from the Event source drop-down menu Click on the list entry Charge Complete ...


2

Have looked at gnubiff? I use it under GNOME for file mailbox, but it supports IMAP too.


2

I have my programs send me emails, or beep the console when they are finished. I use the && character which tells console to wait for the previous command to finish and I end the whole thing with another & to get control of the console back. So your example would look like this: apt-get -b source packagename && sleep 10 && ...


2

I've decided to turn them completely off: in advanced settings, shell extensions, disable notifications extension


2

A bit convoluted, but it works: #!/bin/bash now=`date +%s` max_age=10800 # 3 hours in seconds if [ $(($now - `stat -c '%Y' $1`)) -gt $max_age ]; then echo "file hasn't been updated in $max_age seconds" fi Call the script with the filename as the only argument.


2

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,) ...


2

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 ...


2

There are two low level interfaces that I'm aware of: One is simply to do a sleep() until that moment when you want to receive the notification. The sleep call is provided by glibc. The other method would be the alarm() system call. It allows you to tell the kernel that after a defined amount of time has passed it should send the calling process a SIGALRM. ...



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