From 7be70764b5554e285c599523e6b45014cf1638fb Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Wed, 17 Nov 2021 22:12:53 +0059 Subject: gkleen@sif: move dunst keybinds into xmonad --- accounts/gkleen@sif/dunst-settings.nix | 14 ++++++++------ accounts/gkleen@sif/xmonad/xmonad.hs | 4 ++++ 2 files changed, 12 insertions(+), 6 deletions(-) (limited to 'accounts') diff --git a/accounts/gkleen@sif/dunst-settings.nix b/accounts/gkleen@sif/dunst-settings.nix index 8abdfc5a..14d6fd47 100644 --- a/accounts/gkleen@sif/dunst-settings.nix +++ b/accounts/gkleen@sif/dunst-settings.nix @@ -24,17 +24,19 @@ show_age_threshold = 15; show_indicators = false; icon_position = "right"; + min_icon_size = 35; + max_icon_size = 35; sort = false; sticky_history = false; dmenu = "${pkgs.dmenu}/bin/dmenu"; }; - shortcuts = { - close = "ctrl+space"; - close_all = "ctrl+shift+space"; - history = "ctrl+comma"; - context = "ctrl+period"; - }; + # shortcuts = { + # close = "ctrl+space"; + # close_all = "ctrl+shift+space"; + # history = "ctrl+comma"; + # context = "ctrl+period"; + # }; urgency_low = { background = "#000000"; foreground = "#999999"; diff --git a/accounts/gkleen@sif/xmonad/xmonad.hs b/accounts/gkleen@sif/xmonad/xmonad.hs index 4eb91d71..5703f577 100644 --- a/accounts/gkleen@sif/xmonad/xmonad.hs +++ b/accounts/gkleen@sif/xmonad/xmonad.hs @@ -267,6 +267,10 @@ hostFromName h , ((XMonad.modMask conf .|. mod1Mask, xK_Down), rotate D) , ((XMonad.modMask conf .|. mod1Mask, xK_Left), rotate L) , ((XMonad.modMask conf .|. mod1Mask, xK_Right), rotate R) + , ((controlMask, xK_space ), "dunst close" ) + , ((controlMask .|. shiftMask, xK_space ), "dunst close-all" ) + , ((controlMask, xK_period), "dunst context" ) + , ((controlMask, xK_comma ), "dunst history-pop") -- , ((XMonad.modMask conf .|. shiftMask, xK_a), startMute "hel") ] ) , hKeyUpKeys = \conf -> Map.fromList [ -- ((XMonad.modMask conf .|. shiftMask, xK_a), stopMute "hel") -- cgit v1.2.3