You are not logged in.

#51 2011-09-03 18:01:50

boli
Member
Registered: 2011-08-16
Posts: 19

Re: [twmn] Notification system for tiling window managers.

@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

#52 2011-10-29 00:20:04

hellomynameisphil
Member
From: /home/phil/Vancouver
Registered: 2009-10-02
Posts: 257
Website

Re: [twmn] Notification system for tiling window managers.

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

#53 2011-10-31 17:00:40

jsteel
Trusted User (TU)
From: England
Registered: 2008-03-18
Posts: 115

Re: [twmn] Notification system for tiling window managers.

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

#54 2011-10-31 17:46:37

hellomynameisphil
Member
From: /home/phil/Vancouver
Registered: 2009-10-02
Posts: 257
Website

Re: [twmn] Notification system for tiling window managers.

jsteel wrote:

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

#55 2011-10-31 18:11:32

jsteel
Trusted User (TU)
From: England
Registered: 2008-03-18
Posts: 115

Re: [twmn] Notification system for tiling window managers.

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

#56 2011-11-11 15:56:57

Doomcide
Member
Registered: 2011-08-22
Posts: 221

Re: [twmn] Notification system for tiling window managers.

boli wrote:

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

#57 2012-02-04 13:13:08

mutantpineapple
Member
From: UK
Registered: 2009-12-16
Posts: 29

Re: [twmn] Notification system for tiling window managers.

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

#58 2012-02-04 14:50:14

knopwob
Member
From: Hannover, Germany
Registered: 2010-01-30
Posts: 237
Website

Re: [twmn] Notification system for tiling window managers.

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.

Offline

#59 2012-02-04 18:02:42

mutantpineapple
Member
From: UK
Registered: 2009-12-16
Posts: 29

Re: [twmn] Notification system for tiling window managers.

knopwob wrote:
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

#60 2013-02-14 18:23:44

BaconPie
Member
Registered: 2010-08-11
Posts: 209

Re: [twmn] Notification system for tiling window managers.

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

#61 2013-02-23 07:32:03

cheamh
Member
From: Ottawa
Registered: 2012-01-20
Posts: 23

Re: [twmn] Notification system for tiling window managers.

BaconPie wrote:

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

#62 2013-10-24 10:29:48

vvo
Member
Registered: 2013-09-01
Posts: 6

Re: [twmn] Notification system for tiling window managers.

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

Board footer

Powered by FluxBB