diff --git a/src/.config/dunst/dunstrc b/src/.config/dunst/dunstrc index 18d4a08..c0673d1 100644 --- a/src/.config/dunst/dunstrc +++ b/src/.config/dunst/dunstrc @@ -1,108 +1,35 @@ [global] - # close notification close = mod4+m - - # close all notifications close_all = mod4+shift+m - - # redisplay last message(s) history = mod4+shift+n - # context menu - context = mod4+shift+i - font = JetBrains Mono 11 - - # The format of the message. Possible variables are: - # %a appname - # %s summary - # %b body - # %i iconname (including its path) - # %I iconname (without its path) - # %p progress value if set ([ 0%] to [100%]) or nothing - # Markup is allowed + alignment = left format = "%a: %s\n%b" - # Sort messages by urgency - sort = yes - - # Show how many messages are currently hidden (because of geometry) - indicate_hidden = yes - - # alignment of message text. - # Possible values are "left", "center" and "right" - alignment = left - - # show age of message if message is older than show_age_threshold seconds. - # set to -1 to disable - show_age_threshold = 60 - - # split notifications into multiple lines if they don't fit into geometry + ignore_newline = no word_wrap = yes - # ignore newlines '\n' in notifications - ignore_newline = no + sort = yes - # 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 = 50 - - # 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. + show_age_threshold = 60 idle_threshold = 120 - # Which monitor should the notifications be displayed on. - monitor = 0 - - # Display notification on focused monitor. Possible modes are: - # mouse: follow mouse pointer - # keyboard: follow window with keyboard focus - # none: don't follow anything - # - # "keyboard" needs a windowmanager that exports the _NET_ACTIVE_WINDOW property. - # This should be the case for almost all modern windowmanagers. - # - # If this option is set to mouse or keyboard, the monitor option will be - # ignored. follow = keyboard - # should a notification popped up from history be sticky or - # timeout as if it would normally do. sticky_history = yes - # The height of a single line. If the height is smaller than the font height, - # it will get raised to the font height. - # This adds empty space above and under the text. - line_height = 0 - - # Draw a line of 'separatpr_height' pixel height between two notifications. - # Set to 0 to disable - separator_height = 2 - - # padding between text and separator padding = 8 - - # horizontal padding horizontal_padding = 8 - # Define a color for the separator. - # possible values are: - # * auto: dunst tries to find a color fitting to the background - # * foreground: use the same color as the foreground - # * frame: use the same color as the frame. - # * anything else will be interpreted as a X color + separator_height = 2 separator_color = frame + gap_size = 5 - # dmenu path - dmenu = /usr/bin/dmenu -p dunst: - - # browser for opening urls in context menu - browser = /usr/bin/firefox -new-tab + origin = top-right + offset = 30x30 [urgency_low] - # IMPORTANT: colors have to be defined in quotation marks. - # Otherwise the '#' and following would be interpreted as a comment. background = "#000000" foreground = "#dddddd" timeout = 10 @@ -117,25 +44,6 @@ foreground = "#ff0000" timeout = 0 - -# Every section that isn't one of the above is interpreted as a rules -# to override settings for certain messages. -# Messages can be matched by 'appname', 'summary', 'body' or 'icon' -# and you can override the 'timeout', 'urgency', 'foreground', 'background' -# and 'format'. -# Shell-like globbing will get expanded. -# -# SCRIPTING -# you can specify a script that gets run when the rule matches by setting -# the 'script' option. -# The script will be called as follows: -# script appname summary body icon urgency -# where urgency can be "LOW", "NORMAL" or "CRITICAL". -# -# NOTE: if you don't want a notification to be displayed, set the format to "" -# NOTE: It might be helpful to run dunst -print in a terminal in order to find -# fitting options for rules. - [play_sound] summary = "*" script = /home/dogeystamp/.local/bin/notification-sound.sh diff --git a/src/.local/bin/notif.wav b/src/.local/bin/notif.wav new file mode 100644 index 0000000..233e6da Binary files /dev/null and b/src/.local/bin/notif.wav differ diff --git a/src/.local/bin/notification-sound.sh b/src/.local/bin/notification-sound.sh index fa6cc5d..a7b4eb7 100755 --- a/src/.local/bin/notification-sound.sh +++ b/src/.local/bin/notification-sound.sh @@ -1,5 +1,5 @@ #!/bin/sh -# Dunst notification sound script +# Dunst notification sound script. -mpv ~/med/aud/not.mp3 +mpv ~/.local/bin/notif.wav