Merge branch 'arch' into gentoo

This commit is contained in:
ItsDrike 2021-08-16 17:57:18 +02:00
commit f6e06d4afa
No known key found for this signature in database
GPG key ID: B5F6B41F708C3ADD
2 changed files with 15 additions and 10 deletions

View file

@ -22,9 +22,12 @@ dunst &
nm-applet & nm-applet &
# Run trayer-srg for systemtray bar # 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 & 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 # AppArmor notifications
aa-notify -p & aa-notify -p &

View file

@ -120,6 +120,7 @@ myKeys =
, ("M-S-<Print>", spawn "flameshot screen -c") , ("M-S-<Print>", spawn "flameshot screen -c")
, ("C-<Print>", spawn "flameshot full -p ~/Pictures/Screenshots") , ("C-<Print>", spawn "flameshot full -p ~/Pictures/Screenshots")
, ("C-S-<Print>", spawn "flameshot full -c") , ("C-S-<Print>", spawn "flameshot full -c")
, ("C-M-<Print>", spawn "flameshot launcher")
-- Script shortcuts -- Script shortcuts
, ("M-S-p", spawn "setbg ~/Pictures/Wallpapers/Active") -- Set random background , ("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 , ("M-M1-k", sendMessage MirrorExpand) -- Expand vert window width
-- Multimedia keys -- Multimedia keys
, ("<XF86AudioMute>", spawn "amixer set Master toggle") , ("<XF86AudioMute>", spawn "pulsemixer --toggle-mute")
, ("<XF86AudioLowerVolume>", spawn "amixer set Master 5%- unmute") , ("<XF86AudioLowerVolume>", spawn "pulsemixer --change-volume -5")
, ("<XF86AudioRaiseVolume>", spawn "amixer set Master 5%+ unmute") , ("<XF86AudioRaiseVolume>", spawn "pulsemixer --change-volume +5")
, ("<XF86MonBrightnessUp>", spawn "brightness + 10 %") , ("<XF86MonBrightnessUp>", spawn "brightness + 5 %")
, ("<XF86MonBrightnessDown>", spawn "brightness - 10 %") , ("<XF86MonBrightnessDown>", spawn "brightness - 5 %")
-- Map media keys to meta + arrows for keyboards without special keys -- Map media keys to meta + arrows for keyboards without special keys
, ("M-<Down>", spawn "amixer set Master 5%- unmute") , ("M-<Down>", spawn "pulsemixer --change-volume -5")
, ("M-<Up>", spawn "amixer set Master 5%+ unmute") , ("M-<Up>", spawn "pulsemixer --change-volume +5")
, ("M-<Right>", spawn "brightness + 10 %") , ("M-<Right>", spawn "brightness + 5 %")
, ("M-<Left>", spawn "brightness - 10 %") , ("M-<Left>", spawn "brightness - 5 %")
] ]
where nonNSP = WSIs (return (\ws -> W.tag ws /= "NSP")) where nonNSP = WSIs (return (\ws -> W.tag ws /= "NSP"))
nonEmptyNonNSP = WSIs (return (\ws -> isJust (W.stack 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 -- auto-shift applications to their respecitve workspaces
, className =? "discord" --> doShift ( myWorkspaces !! 3 ) , className =? "discord" --> doShift ( myWorkspaces !! 3 )
, className =? "Code" --> doShift ( myWorkspaces !! 0 ) , className =? "Code" --> doShift ( myWorkspaces !! 0 )
, className =? "Stremio" --> doShift ( myWorkspaces !! 5 )
, title =? "Mozilla Firefox" --> doShift ( myWorkspaces !! 1 ) , title =? "Mozilla Firefox" --> doShift ( myWorkspaces !! 1 )
] ]