From a3402e505b26b0c652c20a14075657d8bd42e568 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karel=20Ko=C4=8D=C3=AD?= Date: Sat, 11 Dec 2021 16:33:54 +0100 Subject: i3: update dunst support The built in keybindings are no longer valid and so we have to bind it in i3 instead. --- config/dunst/dunstrc | 87 +++++++++++++++------------------------------------- config/i3/config | 6 ++++ 2 files changed, 30 insertions(+), 63 deletions(-) (limited to 'config') diff --git a/config/dunst/dunstrc b/config/dunst/dunstrc index 9c1c33b..c0d5334 100644 --- a/config/dunst/dunstrc +++ b/config/dunst/dunstrc @@ -1,40 +1,30 @@ [global] - font = "Monospace 8" - allow_markup = yes - format = "%s %p\n%b" - sort = yes - indicate_hidden = true - # geometry = "x5" - idle_threshold = 0 - geometry = "280x5-0+19" - alignment = center - show_age_threshold = 60 - sticky_history = yes - follow = mouse - word_wrap = yes - separator_height = 1 - padding = 3 - horizontal_padding = 3 - separator_color = frame - startup_notification = false - dmenu = "/usr/bin/dmenu -p dunst: -nb #FFFFFF -nf #000000 -sb #94DBFF -sf #000000" - browser = surf - - -[frame] - width = 1 - color = "#4c7899" - -[shortcuts] - close = ctrl+space - close_all = ctrl+shift+space - history = ctrl+grave - context = ctrl+shift+period + font = "Monospace 8" + allow_markup = yes + format = "%s %p\n%b" + sort = yes + indicate_hidden = true + idle_threshold = 0 + alignment = center + show_age_threshold = 60 + sticky_history = yes + follow = mouse + word_wrap = yes + separator_height = 1 + padding = 3 + horizontal_padding = 3 + separator_color = frame + startup_notification = false + + dmenu = "/usr/bin/dmenu -p dunst: -nb #FFFFFF -nf #000000 -sb #94DBFF -sf #000000" + + frame_width = 1 + frame_color = "#4c7899" [urgency_low] - background = "#000000" - foreground = "#ffffff" - timeout = 30 + background = "#000000" + foreground = "#ffffff" + timeout = 30 [urgency_normal] background = "#000000" @@ -45,32 +35,3 @@ background = "#000000" foreground = "#ff9999" timeout = 0 - - -[libpurple_signed] - appname = libpurple - summary = *igned* - urgency = low - timeout = 3 - background = "#ccff33" - -[libpurple_came_back] - appname = libpurple - summary = "*came*" - format = "" - -[libpurple_went_away] - appname = libpurple - summary = "*went*" - format = "" - -[libpurple_says] - appname = libpurple - summary = *ays* - urgency = critical - background = "#ccff33" - -[libpurple] - appname = libpurple - urgency = critical - background = "#ccff33" diff --git a/config/i3/config b/config/i3/config index 03e5081..cf22a8f 100644 --- a/config/i3/config +++ b/config/i3/config @@ -100,6 +100,12 @@ bindsym $mod+Shift+r restart # Detect graphics output bindsym $mod+Shift+o exec --no-startup-id autorandr --change +# Notifications +bindsym ctrl+space exec --no-startup-id dunstctl close +bindsym ctrl+Shift+space exec --no-startup-id dunstctl close-all +bindsym ctrl+grave exec --no-startup-id dunstctl history-pop +bindsym ctrl+Shift+grave exec --no-startup-id dunstctl context + set $mode_system System (l) lock, (e) logout, (s) suspend, (r) reboot, (Shift+s) shutdown mode "$mode_system" { bindsym l exec --no-startup-id loginctl lock-session $XDG_SESSION_ID, mode "default" -- cgit v1.2.3