dunst

Forum rules
Share your brain ;)
User avatar
dkeg
Configurator
Posts: 3782
Joined: Sun Nov 18, 2012 9:23 pm
Location: Mid-Atlantic Grill

dunst

Unread post by dkeg » Sun Feb 09, 2014 12:03 am

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

Work hard; Complain less

User avatar
bones
Clooney
Posts: 2385
Joined: Fri Jun 28, 2013 11:47 pm
Location: Cascadia

Re: dunst

Unread post by bones » Sun Feb 09, 2014 12:54 am

^Lovin' that wallpaper! In your posted collection, or where?

User avatar
dkeg
Configurator
Posts: 3782
Joined: Sun Nov 18, 2012 9:23 pm
Location: Mid-Atlantic Grill

Re: dunst

Unread post by dkeg » Sun Feb 09, 2014 1:06 am

Haha, yeah should be. Elegant

Work hard; Complain less

machinebacon
Baconator
Posts: 10253
Joined: Thu Sep 16, 2010 11:03 am
Location: Pfälzerwald
Contact:

Re: dunst

Unread post by machinebacon » Sun Feb 09, 2014 3:08 am

Thanks for the config :)
..gnutella..

User avatar
ivanovnegro
Minister of Truth
Posts: 5448
Joined: Wed Oct 17, 2012 11:12 pm

Re: dunst

Unread post by ivanovnegro » Sun Feb 09, 2014 12:42 pm

Thanks Drew.

User avatar
dkeg
Configurator
Posts: 3782
Joined: Sun Nov 18, 2012 9:23 pm
Location: Mid-Atlantic Grill

Re: dunst

Unread post by dkeg » Sun Feb 09, 2014 3:12 pm

sure thing all, my pleasure

Work hard; Complain less

User avatar
rhowaldt
Dog
Posts: 4565
Joined: Wed Oct 17, 2012 9:01 am
Contact:

Re: dunst

Unread post by rhowaldt » Mon Feb 10, 2014 9:34 am

aaah nice, dunst is Good, thanks for posting a config :)
All statements are true in some sense, false in some sense, meaningless in some sense, true and false in some sense, true and meaningless in some sense, false and meaningless in some sense, and true and false and meaningless in some sense.

User avatar
dkeg
Configurator
Posts: 3782
Joined: Sun Nov 18, 2012 9:23 pm
Location: Mid-Atlantic Grill

Re: dunst

Unread post by dkeg » Sat Jul 12, 2014 12:36 am

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"
Attachments
dunst.png

Work hard; Complain less

machinebacon
Baconator
Posts: 10253
Joined: Thu Sep 16, 2010 11:03 am
Location: Pfälzerwald
Contact:

Re: dunst

Unread post by machinebacon » Sat Jul 12, 2014 2:17 am

Thanks.

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

User avatar
dkeg
Configurator
Posts: 3782
Joined: Sun Nov 18, 2012 9:23 pm
Location: Mid-Atlantic Grill

Re: dunst

Unread post by dkeg » Sat Jul 12, 2014 2:52 am

Hmmm, good idea

Work hard; Complain less

User avatar
wuxmedia
Grasshopper
Posts: 6445
Joined: Wed Oct 17, 2012 11:32 am
Location: Back in Blighty
Contact:

Re: dunst

Unread post by wuxmedia » Tue Jul 15, 2014 4:02 pm

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.
"Seek, and Ye shall find"
"Github | Chooons | Site"

User avatar
dkeg
Configurator
Posts: 3782
Joined: Sun Nov 18, 2012 9:23 pm
Location: Mid-Atlantic Grill

Re: dunst

Unread post by dkeg » Tue Jul 15, 2014 5:26 pm

Ah, good catch, i usually install by default and didnt realize

Work hard; Complain less

User avatar
wuxmedia
Grasshopper
Posts: 6445
Joined: Wed Oct 17, 2012 11:32 am
Location: Back in Blighty
Contact:

Re: dunst

Unread post by wuxmedia » Tue Jul 15, 2014 6:39 pm

took me long enough to realise 8)
"Seek, and Ye shall find"
"Github | Chooons | Site"

User avatar
stark
MILF
Posts: 521
Joined: Sat Sep 27, 2014 6:38 pm
Location: Arpanet
Contact:

Re: dunst

Unread post by stark » Sat Oct 04, 2014 8:38 am

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 :)
If you can do it go ahead and do it, if you can't do it then don't even criticize it. - gingerdesu

Post Reply