From 20afa6f2e59d8c522353143bb17f60a8b2de2c35 Mon Sep 17 00:00:00 2001 From: ItsDrike Date: Mon, 16 Aug 2021 17:54:23 +0200 Subject: [PATCH 1/2] Update shortcuts --- home/.config/xmonad/xmonad.hs | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/home/.config/xmonad/xmonad.hs b/home/.config/xmonad/xmonad.hs index 72b57e8..85bd5b1 100644 --- a/home/.config/xmonad/xmonad.hs +++ b/home/.config/xmonad/xmonad.hs @@ -120,6 +120,7 @@ myKeys = , ("M-S-", spawn "flameshot screen -c") , ("C-", spawn "flameshot full -p ~/Pictures/Screenshots") , ("C-S-", spawn "flameshot full -c") + , ("C-M-", spawn "flameshot launcher") -- Script shortcuts , ("M-S-p", spawn "setbg ~/Pictures/Wallpapers/Active") -- Set random background @@ -178,16 +179,16 @@ myKeys = , ("M-M1-k", sendMessage MirrorExpand) -- Expand vert window width -- Multimedia keys - , ("", spawn "amixer set Master toggle") - , ("", spawn "amixer set Master 5%- unmute") - , ("", spawn "amixer set Master 5%+ unmute") - , ("", spawn "brightness + 10 %") - , ("", spawn "brightness - 10 %") + , ("", spawn "pulsemixer --toggle-mute") + , ("", spawn "pulsemixer --change-volume -5") + , ("", spawn "pulsemixer --change-volume +5") + , ("", spawn "brightness + 5 %") + , ("", spawn "brightness - 5 %") -- Map media keys to meta + arrows for keyboards without special keys - , ("M-", spawn "amixer set Master 5%- unmute") - , ("M-", spawn "amixer set Master 5%+ unmute") - , ("M-", spawn "brightness + 10 %") - , ("M-", spawn "brightness - 10 %") + , ("M-", spawn "pulsemixer --change-volume -5") + , ("M-", spawn "pulsemixer --change-volume +5") + , ("M-", spawn "brightness + 5 %") + , ("M-", spawn "brightness - 5 %") ] where nonNSP = WSIs (return (\ws -> W.tag ws /= "NSP")) nonEmptyNonNSP = WSIs (return (\ws -> isJust (W.stack ws) && W.tag ws /= "NSP")) @@ -315,6 +316,7 @@ myManageHook = composeAll -- auto-shift applications to their respecitve workspaces , className =? "discord" --> doShift ( myWorkspaces !! 3 ) , className =? "Code" --> doShift ( myWorkspaces !! 0 ) + , className =? "Stremio" --> doShift ( myWorkspaces !! 5 ) , title =? "Mozilla Firefox" --> doShift ( myWorkspaces !! 1 ) ] From 41522e8b0dfb51957f41c7fa6cb4e6edbb5fa68a Mon Sep 17 00:00:00 2001 From: ItsDrike Date: Mon, 16 Aug 2021 17:57:13 +0200 Subject: [PATCH 2/2] Start flameshot with X --- home/.config/x11/xprofile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/home/.config/x11/xprofile b/home/.config/x11/xprofile index 00527e8..c2e060c 100644 --- a/home/.config/x11/xprofile +++ b/home/.config/x11/xprofile @@ -22,9 +22,12 @@ dunst & nm-applet & # Run trayer-srg for systemtray bar -# if installed normally, use `trayer`, not `trayer-srg` command +# if installed normally, command will be `trayer`, not `trayer-srg` command trayer --monitor 0 --edge top --align right --widthtype request --padding 0 --transparent true --tint 0x282c34 --alpha 0 --height 23 & +# Start flameshot in background +flameshot & + # AppArmor notifications aa-notify -p &