You are not logged in.
@Pank : You can specify a command either with activate_command from the config file, of with the --ac parameter from twmnc.
I also use these two scripts which are called when i change the volume with hardware buttons. XBindkeys call the scripts.
volume_up.sh
#!/bin/bash
amixer -c 0 sset Master 2%+ > /dev/null
twmnc -c "raised to `amixer -c 0 get Master | grep -oe '[[:digit:]]*%'`" -t 'Volume' --sc "" --id 99
volume_down.sh
#!/bin/bash
amixer -c 0 sset Master 2%- > /dev/null
twmnc -c "lowered to `amixer -c 0 get Master | grep -oe '[[:digit:]]*%'`" -t 'Volume' --sc "" --id 99
Offline
When I use twmnc with xmonad while in the simple decoration layout, the notification leaves behind a mark on the window decoration if the former, while active, overlaps the latter. I don't know if this is an issue with simpleDecoration or with twmn, as when I am in the tabbed layout and the notification overlaps a tab while active, no mark is left behind.
Offline
twmnd constantly chews at my CPU; only around 1% but still... is that normal?
PGP key: F40D2072
Key fingerprint: 8742 F753 5E7B 394A 1B04 8163 332C 9C40 F40D 2072
Offline
twmnd constantly chews at my CPU; only around 1% but still... is that normal?
Probably depends on your CPU. :-) On my netbook, which is hardly a powerhouse, twmnd claims between 0 and 1% cpu, according to top.
Offline
I just wonder what it's doing; I'm using xfce4-notifyd and that doesn't appear on top unless I send a notification.
PGP key: F40D2072
Key fingerprint: 8742 F753 5E7B 394A 1B04 8163 332C 9C40 F40D 2072
Offline
I also use these two scripts which are called when i change the volume with hardware buttons. XBindkeys call the scripts.
volume_up.sh
#!/bin/bash amixer -c 0 sset Master 2%+ > /dev/null twmnc -c "raised to `amixer -c 0 get Master | grep -oe '[[:digit:]]*%'`" -t 'Volume' --sc "" --id 99
volume_down.sh
#!/bin/bash amixer -c 0 sset Master 2%- > /dev/null twmnc -c "lowered to `amixer -c 0 get Master | grep -oe '[[:digit:]]*%'`" -t 'Volume' --sc "" --id 99
I wrote a little script that toggles the mute-status, based on yours. Hope someone finds it useful:
#!/bin/bash
# twmn > volume mute
amixer set Master toggle
STAT=$(amixer -c 0 sget Master | grep -F -e "[on]" -e "[off]" | cut -d ' ' -f 8 | tr -d [:punct:] )
case $STAT in
on)
twmnc -c "`amixer -c 0 get Master | grep -oe '[[:digit:]]*%'`" -t 'Vol. ' --id 99 --l twmn-sound.conf
;;
off)
twmnc -c "MUTE" -t 'Vol. ' --id 97 --l twmn-sound.conf --fg "#BD9074"
;;
esac
EDIT: Modfied the volup/down scripts to check for mute-status see here: http://crunchbanglinux.org/forums/post/161532/#p161532
Last edited by Doomcide (2011-11-12 16:21:53)
Offline
I've never used any sort of notification system before so I might be missing something really obvious, but I can't get twmn to work with pidgin. Other programs like Filezilla use twmn straight away without any configuration needed. Is there a particular problem with the way that pidgin handles notifications, and/or a special workaround?
Offline
I've never used any sort of notification system before so I might be missing something really obvious, but I can't get twmn to work with pidgin. Other programs like Filezilla use twmn straight away without any configuration needed. Is there a particular problem with the way that pidgin handles notifications, and/or a special workaround?
you have to install pidgin-libnotify and enable the plugin in pidgin.
Offline
mutantpineapple wrote:I've never used any sort of notification system before so I might be missing something really obvious, but I can't get twmn to work with pidgin. Other programs like Filezilla use twmn straight away without any configuration needed. Is there a particular problem with the way that pidgin handles notifications, and/or a special workaround?
you have to install pidgin-libnotify and enable the plugin in pidgin.
Thanks, but I've done that and I still don't get any notifications.
Offline
I'm getting errors to do with libboost libraries when I try to run twmnc since a recent update. Has any one else had this issue?
$ twmnc -t foo -c bar
twmnc: error while loading shared libraries: libboost_system.so.1.50.0: cannot open shared object file: No such file or directory
twmnd is running:
$ ps a | grep twmnd
518 tty1 S 1:47 twmnd
699 pts/1 S+ 0:00 grep --color=auto twmnd
libboost_system is slightly newer:
$ l /usr/lib/libboost_system.*
-rw-r--r-- 1 root root 32K Jan 21 17:30 /usr/lib/libboost_system.a
lrwxrwxrwx 1 root root 25 Jan 21 17:28 /usr/lib/libboost_system.so -> libboost_system.so.1.52.0*
-rwxr-xr-x 1 root root 13K Jan 21 17:28 /usr/lib/libboost_system.so.1.52.0*
Will I have to roll back? Does twmn need updating? Symlinking doesn't work.
Offline
I'm getting errors to do with libboost libraries when I try to run twmnc since a recent update. Has any one else had this issue?
$ twmnc -t foo -c bar twmnc: error while loading shared libraries: libboost_system.so.1.50.0: cannot open shared object file: No such file or directory
twmnd is running:
$ ps a | grep twmnd 518 tty1 S 1:47 twmnd 699 pts/1 S+ 0:00 grep --color=auto twmnd
libboost_system is slightly newer:
$ l /usr/lib/libboost_system.* -rw-r--r-- 1 root root 32K Jan 21 17:30 /usr/lib/libboost_system.a lrwxrwxrwx 1 root root 25 Jan 21 17:28 /usr/lib/libboost_system.so -> libboost_system.so.1.52.0* -rwxr-xr-x 1 root root 13K Jan 21 17:28 /usr/lib/libboost_system.so.1.52.0*
Will I have to roll back? Does twmn need updating? Symlinking doesn't work.
I can confirm the same problem. I was hoping that twmn will get updated by Boli to look for the new libboost (1.52).
Anyway, I downgraded boost and boost-libs back to 1.5 and twmn is working now.
"I'm not competent to judge. But no doubt he was a great man."...Paul Erdős
Offline
Hello,
how do I completely replace all notify-send commands with twmn?
I am using https://github.com/abiczo/github-notifier and want to have notifications through twmn
Offline