Add some new keys to sxhkd

This commit is contained in:
Oystein Kristoffer Tveit 2021-06-28 14:41:19 +02:00
parent bab1cfeb43
commit 8a76dfea17
2 changed files with 26 additions and 9 deletions

View File

@ -1,14 +1,14 @@
# make sxhkd reload its configuration files: # make sxhkd reload its configuration files:
super + Escape super + Escape
pkill -USR1 -x sxhkd pkill -USR1 -x sxhkd && notify-send -t 3000 "sxhkd configuration reloaded"
# Applications # Applications
super + e super + w
emacs emacs
super + shift + e super + e
$FILEBROWSER $FILEBROWSER
super + s super + s
@ -67,5 +67,22 @@ super + {b,n,m}
super + v super + v
rofi -modi lpass:$HOME/.scripts/rofi/lpass//rofi-lpass -show lpass rofi -modi lpass:$HOME/.scripts/rofi/lpass//rofi-lpass -show lpass
super + - super + minus
xcalib -invert -alter xcalib -invert -alter
# ¯\_(ツ)_/¯
super + shift + s
sleep 0.3; \
xdotool key U00AF; \
xdotool key U005C; \
xdotool key U005F; \
xdotool key U0028; \
xdotool key U30C4; \
xdotool key U0029; \
xdotool key U005F; \
xdotool key U002F; \
xdotool key U00AF
# é
super + shift + e
sleep 0.3; xdotool key U00E9

View File

@ -122,11 +122,11 @@ myKeys conf@(XConfig {XMonad.modMask = modm}) = M.fromList $
[ [
((modm .|. shiftMask, xK_l ), sendMessage NextLayout) ((modm .|. shiftMask, xK_l ), sendMessage NextLayout)
-- , ((modm .|. shiftMask, xK_space ), setLayout $ XMonad.layoutHook conf) -- , ((modm .|. shiftMask, xK_space ), setLayout $ XMonad.layoutHook conf)
, ((modm, xK_n ), refresh) -- , ((modm, xK_n ), refresh)
, ((modm, xK_Tab ), windows W.focusDown) , ((modm, xK_Tab ), windows W.focusDown)
, ((modm, xK_j ), windows W.focusDown) , ((modm, xK_j ), windows W.focusDown)
, ((modm, xK_k ), windows W.focusUp ) , ((modm, xK_k ), windows W.focusUp )
, ((modm, xK_m ), windows W.focusMaster ) -- , ((modm, xK_m ), windows W.focusMaster )
-- , ((modm, xK_Return), windows W.swapMaster) -- , ((modm, xK_Return), windows W.swapMaster)
, ((modm .|. shiftMask, xK_j ), windows W.swapDown ) , ((modm .|. shiftMask, xK_j ), windows W.swapDown )
, ((modm .|. shiftMask, xK_k ), windows W.swapUp ) , ((modm .|. shiftMask, xK_k ), windows W.swapUp )
@ -162,7 +162,7 @@ myKeys conf@(XConfig {XMonad.modMask = modm}) = M.fromList $
[ [
((modm .|. shiftMask , xK_Return), spawn $ myTerminal ++ " --class instanceClass,termTerminal -e tmux new-session -A -s term") ((modm .|. shiftMask , xK_Return), spawn $ myTerminal ++ " --class instanceClass,termTerminal -e tmux new-session -A -s term")
, ((modm , xK_BackSpace), kill) , ((modm , xK_BackSpace), kill)
, ((modm , xK_s), spawn myBrowser) -- , ((modm , xK_s), spawn myBrowser)
, ((modm , xK_f), sendMessage $ Toggle FULL) , ((modm , xK_f), sendMessage $ Toggle FULL)
-- , ((modm .|. shiftMask , xK_w), spawn "io.elementary.code -t") -- , ((modm .|. shiftMask , xK_w), spawn "io.elementary.code -t")
-- , ((modm , xK_a), spawn "copyq toggle") -- , ((modm , xK_a), spawn "copyq toggle")
@ -171,7 +171,7 @@ myKeys conf@(XConfig {XMonad.modMask = modm}) = M.fromList $
-- , ((modm , xK_r), spawn "rofi -show drun") -- , ((modm , xK_r), spawn "rofi -show drun")
-- , ((modm , xK_p), spawn "mpc toggle") -- , ((modm , xK_p), spawn "mpc toggle")
, ((modm , xK_q), namedScratchpadAction myScratchpads "ncmpcpp") , ((modm , xK_q), namedScratchpadAction myScratchpads "ncmpcpp")
, ((modm , xK_minus), namedScratchpadAction myScratchpads "schedule") -- , ((modm , xK_minus), namedScratchpadAction myScratchpads "schedule")
-- , ((modm , xK_F7), spawn "amixer set Master 2%-") -- , ((modm , xK_F7), spawn "amixer set Master 2%-")
-- , ((modm , xK_F8), spawn "amixer set Master 2%+") -- , ((modm , xK_F8), spawn "amixer set Master 2%+")
-- , ((modm , xK_c), spawn myTerminal ++ " -e cfile") -- , ((modm , xK_c), spawn myTerminal ++ " -e cfile")
@ -184,7 +184,7 @@ myKeys conf@(XConfig {XMonad.modMask = modm}) = M.fromList $
-- , ((0 , xK_Print ), spawn "skushoclip") -- , ((0 , xK_Print ), spawn "skushoclip")
-- , ((shiftMask , xK_Print ), spawn "skusho") -- , ((shiftMask , xK_Print ), spawn "skusho")
-- , ((modm , xK_Print ), spawn "$HOME/.scripts/git/boomer/boomer") -- , ((modm , xK_Print ), spawn "$HOME/.scripts/git/boomer/boomer")
, ((modm , xK_v ), spawn "rofi -modi lpass:$HOME/.scripts/rofi/lpass//rofi-lpass -show lpass") -- , ((modm , xK_v ), spawn "rofi -modi lpass:$HOME/.scripts/rofi/lpass//rofi-lpass -show lpass")
-- , ((0, xF86XK_AudioRaiseVolume ), spawn "amixer set Master 2%+") -- , ((0, xF86XK_AudioRaiseVolume ), spawn "amixer set Master 2%+")
-- , ((0, xF86XK_AudioLowerVolume ), spawn "amixer set Master 2%-") -- , ((0, xF86XK_AudioLowerVolume ), spawn "amixer set Master 2%-")