Page 1 of 1

dunst

Posted: Sun Feb 09, 2014 12:03 am
by dkeg
small lightweight notification application. use it for irc mainly. Both weechat and irssi have scripts out there to send notifications to dunst. Works for other stuff too though.

available in the repos.

Code: Select all

sudo apt-get install dunst
path

Code: Select all

~/.config/dunst/dunstrc
or get from github

https://github.com/knopwob/dunst

Also required is dbus and dbus-x11

Edit: Weechat notify.rb script https://gist.github.com/madhatter/49869 ... -notify-rb. Place in ~/.weechat/ruby/. Load with /script load notify.rb

scrot
dunst.png
and my dunstrc

Code: Select all

[global]
    font = "Terminus 10"
    transparency = yes
    word_wrap = yes
    padding = 5
    horizontal_padding = 5
    geometry = "300x0-50+100"
    format = "%a: %s - %b"
    #format = "%a: %s\n%b"
    sort = yes
    indicate_hidden = no
    modifier = ctrl
    key = space
    history_key = grave
    idle_threshold = 120

[urgency_low]
    # IMPORTANT: colors have to be defined in quotation marks.
    # Otherwise the '#' and following  would be interpreted as a comment.
    background = "#182a3b"
    foreground = "#d3d3d3"
    timeout = 10 

[urgency_normal]
    background = "#182a3b"
    foreground = "#d3d3d3"
    timeout = 10 

[urgency_critical]
    background = "#252525"
    foreground = "#cc7511"
    timeout = 20

[frame]
    width = 3
    color = "#222222"
Edit2: install details

Re: dunst

Posted: Sun Feb 09, 2014 12:54 am
by bones
^Lovin' that wallpaper! In your posted collection, or where?

Re: dunst

Posted: Sun Feb 09, 2014 1:06 am
by dkeg
Haha, yeah should be. Elegant

Re: dunst

Posted: Sun Feb 09, 2014 3:08 am
by machinebacon
Thanks for the config :)

Re: dunst

Posted: Sun Feb 09, 2014 12:42 pm
by ivanovnegro
Thanks Drew.

Re: dunst

Posted: Sun Feb 09, 2014 3:12 pm
by dkeg
sure thing all, my pleasure

Re: dunst

Posted: Mon Feb 10, 2014 9:34 am
by rhowaldt
aaah nice, dunst is Good, thanks for posting a config :)

Re: dunst

Posted: Sat Jul 12, 2014 12:36 am
by dkeg
latest dunstrc file, nothing real special here but here we go

Code: Select all

[global]
    font = "Terminus 10"
    format = "%a: %s %b"
    transparency = no
    word_wrap = no
    padding = 3 
    horizontal_padding = 3 
    geometry = "0x25+105+10"

    # The format of the message. Possible variables are:
    #   %a  appname, %s  summary, %b  body, %i  iconname (including its path), %I  iconname (without its path)
    format = "%s - %b"

    # Sort messages by urgency
    sort = yes

    # Show how many messages are currently hidden (because of geometry)
    indicate_hidden = no

    # keybindings to remove notification
    # available modifiers are 'ctrl', 'mod1' (the alt-key), 'mod2', 'mod3'
    # and 'mod4' (windows-key)
    modifier = ctrl

    # use xev to find the names for keys
    key = space
    # key to redisplay last message(s) (grave = ~)
    history_key = grave

    # Don't remove messages, if the user is idle (no mouse or keyboard input)
    # for longer than idle_threshold seconds.
    # Set to 0 to disable.
    idle_threshold = 120

[urgency_low]
    background = "#181513"
    foreground = "#b9ae9e"
    timeout = 15 

[urgency_normal]
    foreground = "#b9ae9e"
    background = "#181513"
    timeout = 15 

[urgency_critical]
    background = "#181513"
    foreground = "#cc7511"
    timeout = 20

[frame]
    width = 2 
    color = "#35312f"

Re: dunst

Posted: Sat Jul 12, 2014 2:17 am
by machinebacon
Thanks.

How about a little script that sends to Xresources background/foreground/background color to dunstrc foreground/background/frame? :)

Re: dunst

Posted: Sat Jul 12, 2014 2:52 am
by dkeg
Hmmm, good idea

Re: dunst

Posted: Tue Jul 15, 2014 4:02 pm
by wuxmedia
nice dunst. it would be easier if the config could use variables, not sure if that works.

BTW, for a weechat dunst notification, one needs to install "weechat-plugins" and "ruby" if you haven't already, makes it work better :)
then follow dkegs instructions up top.

Re: dunst

Posted: Tue Jul 15, 2014 5:26 pm
by dkeg
Ah, good catch, i usually install by default and didnt realize

Re: dunst

Posted: Tue Jul 15, 2014 6:39 pm
by wuxmedia
took me long enough to realise 8)

Re: dunst

Posted: Sat Oct 04, 2014 8:38 am
by stark
Thanks for sharing this great config.

And if you compile weechat from source then you need the respective dev packages for the plugins.I always check if have the dev packages for python,ruby and perl but you may also need tcl-dev,libtolua-dev,etc.Depends on what you use :)