You are not logged in.
Pages: 1
Hi! i only use dwm as wm without any desktop environment, and im wondering if there is out there a clean, light and centralized way to play system sounds, "the arch way" pretty useless but maybe cool
Because the other day i discover that in pebrot i can play sounds when certain events ocurr, and i realize that i love some star trek sounds i have, because they are very unintrusive, and today i was thinking that maybe there is a way to make those little sounds play "system-wide"
for example when:
- rtorrent: a torrent completes
- Irssi: someone talks to me in the channel, like hiligh plugin but with sound
- Cronjob: i have script in dwm statusbar that show the amount of emails in my gmail account and updates available in pacman, maybe a way to play a sound when new mail/update is available
And maybe for some system events:
- used cpu <90% or cpu temperature high
- usb-device/cdrom plugged in/out or inserted/mounted
- disk capacity on one partition nearly full
- low system ram
statusbar script:
dwm-status
#!/bin/bash
while true
do
echo $(get_uptime)/$(get_citytemp | grep Temperature | awk '{print $3 $4}') '|' $(get_cputemp Core0)C '|' $(get_freemem)/$(get_freeswap) '|' /sdb1:$(get_diskinfo sdb1) /sdd1:$(get_diskinfo sdd1) /cdrom:$(get_cdrominfo cdrom) '|' $(get_volume PCM)% '|' $(get_gmail)/$(get_updates) '|' $(date +'%R %d/%m/%Y')
sleep 60
done
get_gmail
#!/bin/bash
gmail_login="gmail_login"
gmail_password="gmail_pass"
dane="$(wget --secure-protocol=TLSv1 --timeout=3 -t 1 -q -O - \
https://${gmail_login}:${gmail_password}@mail.google.com/mail/feed/atom \
--no-check-certificate | grep 'fullcount' \
| sed -e 's/.*<fullcount>//;s/<\/fullcount>.*//' 2>/dev/null)"
if [ -z "$dane" ]; then
echo "!"
else
echo "$dane"
fi
get_uptades
#! /usr/bin/perl -w
use strict;
# November 15, 2006
# Daniel Vredenburg (Vredfreak)
# This is a program that checks for package updates for Arch Linux users.
open (MYINPUTFILE, "/home/aleyscha/bin/arch-updates/updates.log") or die "No such file or directory: $!";
my $i = 0;
while(<MYINPUTFILE>)
{
if (/^(.*)\/(.*)(\..*\..*\.)/) {
#print " \n";
$i++;
}
}
if ($i == 0) {
print "0";
} else {
print "$i";
}
close(MYINPUTFILE);
Perfection is achieved, not when there is nothing more to add, but when there is nothing left to take away.
-- Antoine de Saint-Exupery
Offline
Pages: 1