1
0
mirror of https://github.com/tiyn/dotfiles.git synced 2025-04-20 16:47:48 +02:00

Compare commits

..

No commits in common. "a35a5b011063a606ec50bdfbef046b80dad55fec" and "64030e4630f6fafed5d3c8e54b703dda8e812810" have entirely different histories.

6 changed files with 112 additions and 39 deletions

View File

@ -1,2 +0,0 @@
#!/bin/sh
paplay ~/.config/dunst/notify_high.wav

View File

@ -1,2 +0,0 @@
#!/bin/sh
paplay ~/.config/dunst/notify_normal.wav

View File

@ -1,75 +1,152 @@
[global] [global]
monitor = 1 monitor = 0
follow = none follow = keyboard
geometry = "375x20-28+36" geometry = "350x5-0+24"
indicate_hidden = yes indicate_hidden = yes
shrink = no shrink = yes
transparency = 0 transparency = 20
notification_height = 0 notification_height = 0
separator_height = 2 separator_height = 2
padding = 10 padding = 0
horizontal_padding = 10 horizontal_padding = 8
frame_width = 2 frame_width = 3
frame_color = "#000000"
frame_color = "#555555" # Define a color for the separator.
separator_color = "#555555" # 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_color = frame
# Sort messages by urgency.
sort = yes sort = yes
idle_threshold = 300
mouse_right_click = close_all
idle_threshold = 120
font = Monospace 10 font = Monospace 10
line_height = 0 line_height = 0
markup = full markup = full
# 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
# %n progress value if set without any extra characters
# %% Literal %
# Markup is allowed
format = "<b>%s</b>\n%b" format = "<b>%s</b>\n%b"
alignment = left alignment = left
vertical_alignment = center
show_age_threshold = 60 show_age_threshold = 60
word_wrap = yes word_wrap = yes
ellipsize = middle ellipsize = middle
ignore_newline = no ignore_newline = no
stack_duplicates = false stack_duplicates = true
hide_duplicate_count = true hide_duplicate_count = true
show_indicators = yes show_indicators = yes
icon_position = left icon_position = left
max_icon_size = 64 max_icon_size = 40
#icon_path = /usr/share/icons/gnome/16x16/status/:/usr/share/icons/gnome/16x16/devices/:/usr/share/icons/Adwaita/256x256/status/
sticky_history = yes sticky_history = yes
history_length = 50 history_length = 20
dmenu = /usr/bin/dmenu -p dunst: dmenu = /usr/bin/dmenu -p dunst:
browser = /usr/bin/firefox -new-tab browser = /usr/bin/firefox -new-tab
# Always run rule-defined scripts, even if the notification is suppressed
always_run_script = true always_run_script = true
title = Dunst title = Dunst
class = Dunst class = Dunst
startup_notification = false startup_notification = false
force_xinerama = false force_xinerama = false
verbosity = mesg
[experimental] [experimental]
per_monitor_dpi = false per_monitor_dpi = false
[shortcuts]
close = ctrl+space
close_all = ctrl+shift+space
history = ctrl+grave
context = ctrl+shift+period
[urgency_low] [urgency_low]
# IMPORTANT: colors have to be defined in quotation marks.
# Otherwise the "#" and following would be interpreted as a comment.
background = "#282828" background = "#282828"
foreground = "#eeeeee" foreground = "#eeeeee"
timeout = 10 timeout = 5
# Icon for notifications with low urgency, uncomment to enable
#icon = /path/to/icon
[urgency_normal] [urgency_normal]
background = "#282828" background = "#282828"
foreground = "#eeeeee" foreground = "#eeeeee"
timeout = 15 timeout = 5
[urgency_critical] [urgency_critical]
background = "#282828" background = "#282828"
foreground = "#eeeeee" foreground = "#eeeeee"
frame_color = "#8c3d45" frame_color = "#000000"
timeout = 0 timeout = 0
[normal_urgency_sound] # Every section that isn't one of the above is interpreted as a rules to
msg_urgency = "normal" # override settings for certain messages.
script = ~/.config/dunst/alert_normal.sh # Messages can be matched by "appname", "summary", "body", "icon", "category",
# "msg_urgency" and you can override the "timeout", "urgency", "foreground",
# "background", "new_icon" 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.
[critical_urgency_sound] #[espeak]
msg_urgency = "critical" # summary = "*"
script = ~/.config/dunst/alert_high.sh # script = dunst_espeak.sh
#[script-test]
# summary = "*script*"
# script = dunst_test.sh
#[ignore]
# # This notification will not be displayed
# summary = "foobar"
# format = ""
#[history-ignore]
# # This notification will not be saved in history
# summary = "foobar"
# history_ignore = yes
#[signed_on]
# appname = Pidgin
# summary = "*signed on*"
# urgency = low
#
#[signed_off]
# appname = Pidgin
# summary = *signed off*
# urgency = low
#
#[says]
# appname = Pidgin
# summary = *says*
# urgency = critical
#
#[twitter]
# appname = Pidgin
# summary = *twitter.com*
# urgency = normal
#
# vim: ft=cfg

Binary file not shown.

Binary file not shown.

View File

@ -25,15 +25,15 @@ super + m
thunderbird thunderbird
super + bracketright super + bracketright
amixer get Capture | tail -2 | grep -q '\[on\]' && $(amixer set Master unmute &> /dev/null ; amixer set Capture nocap &> /dev/null ; notify-send -u low 'sxhkd' 'Sound active\nMicrophone muted') || $(amixer set Master unmute &> /dev/null ; amixer set Capture cap &> /dev/null ; notify-send -u low 'sxhkd' 'Sound active\nMicrophone active') amixer get Capture | tail -2 | grep -q '\[on\]' && $(amixer set Master unmute &> /dev/null ; amixer set Capture nocap &> /dev/null ; notify-send 'sxhkd' 'Sound active\nMicrophone muted') || $(amixer set Master unmute &> /dev/null ; amixer set Capture cap &> /dev/null ; notify-send 'sxhkd' 'Sound active\nMicrophone active')
super + backslash super + backslash
amixer get Master | tail -2 | grep -q '\[on\]' && $(amixer set Master mute &> /dev/null ; amixer set Capture nocap &> /dev/null ; notify-send -u low 'sxhkd' 'Sound muted\nMicrophone muted') || $(amixer set Capture nocap &> /dev/null ; amixer set Master unmute &> /dev/null ; notify-send -u low 'sxhkd' 'Sound active\nMicrophone muted') amixer get Master | tail -2 | grep -q '\[on\]' && $(amixer set Master mute &> /dev/null ; amixer set Capture nocap &> /dev/null ; notify-send 'sxhkd' 'Sound muted\nMicrophone muted') || $(amixer set Capture nocap &> /dev/null ; amixer set Master unmute &> /dev/null ; notify-send 'sxhkd' 'Sound active\nMicrophone muted')
super + shift + l super + shift + l
setxkbmap -query | grep -q 'nodeadkeys' && $(setxkbmap de ru ; notify-send -u low 'sxhkd' 'Set keymap to russian') || $(setxkbmap de nodeadkeys ; notify-send -u low 'sxhkd' 'Set keymap to german') setxkbmap -query | grep -q 'nodeadkeys' && $(setxkbmap de ru ; notify-send 'sxhkd' 'Set keymap to russian') || $(setxkbmap de nodeadkeys ; notify-send 'sxhkd' 'Set keymap to german')
super + shift + r super + shift + r
pkill -usr1 -x sxhkd; notify-send -u low 'sxhkd' 'Reloaded config' pkill -usr1 -x sxhkd; notify-send 'sxhkd' 'Reloaded config'
super + Return super + Return
$TERMINAL $TERMINAL