From fc89b6359bfb5d34a901e26520256e2bd43cf47d Mon Sep 17 00:00:00 2001 From: Joe Groocock Date: Mon, 16 Jan 2017 16:40:19 +0000 Subject: [PATCH] Add option selection to dunst with rofi --- .config/dunst/dunst-xresources | 24 ++++++++++++++++++++++++ .config/dunst/dunstrc | 10 +++++----- 2 files changed, 29 insertions(+), 5 deletions(-) create mode 100644 .config/dunst/dunst-xresources diff --git a/.config/dunst/dunst-xresources b/.config/dunst/dunst-xresources new file mode 100644 index 0000000..03b0a4f --- /dev/null +++ b/.config/dunst/dunst-xresources @@ -0,0 +1,24 @@ +!---------------------- +! dunst selector config + +rofi.width: 300 +rofi.font: Noto Sans bold 12 +rofi.bc: #FFFFFF +rofi.bw: 3 +rofi.eh: 1 +rofi.lines: 3 +rofi.line-margin: 3 +rofi.monitor: 0 +rofi.location: 0 + +! backgnd border +rofi.color-window: #002B36, #404552 +! backgnd foregnd bg-alt hlbg hlfg +rofi.color-normal: #002B36, #FFFFFF, #002B36, #404552, #FFFFFF + +rofi.no-custom: true +!rofi.hide-scrollbar: true +rofi.scroll-method: 1 +rofi.separator-style: none + +! vim: ft=xdefaults diff --git a/.config/dunst/dunstrc b/.config/dunst/dunstrc index d9f3a41..ef10c4d 100644 --- a/.config/dunst/dunstrc +++ b/.config/dunst/dunstrc @@ -75,7 +75,7 @@ # The transparency of the window. Range: [0; 100]. # This option will only work if a compositing windowmanager is # present (e.g. xcompmgr, compiz, etc.). - transparency = 10 + # transparency = 10 # Don't remove messages, if the user is idle (no mouse or keyboard input) # for longer than idle_threshold seconds. @@ -138,12 +138,12 @@ startup_notification = false # dmenu path. - dmenu = /usr/bin/dmenu -p dunst: + dmenu = /usr/bin/rofi -dmenu -i -p '' -config ~/.config/dunst/dunst-xresources # Browser for opening urls in context menu. browser = /usr/bin/chromium - # Align icons left/right/off + # Align icons left/right/off icon_position = left # Paths to default icons. @@ -161,10 +161,10 @@ # Xev might be helpful to find names for keys. # Close notification. - close = mod4+escape + close = mod4+Escape # Close all notifications. - close_all = ctrl+mod4+esc + close_all = ctrl+mod4+Escape # Redisplay last message(s). # On the US keyboard layout "grave" is normally above TAB and left