Advertisement
Guest User

my_sxhkdrc_dk

a guest
Nov 12th, 2022
31
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.10 KB | Source Code | 0 0
  1. # sxhkdrc for use with dkwm
  2. ############################
  3.  
  4. #reload, restart, exit dk
  5. ctrl + alt + {c,r,q}
  6. { \
  7. dkcmd reload, \
  8. dkcmd restart, \
  9. prompt "Do you really want to quit dk ?" "Xexit" \
  10. }
  11.  
  12. # focus window/workspace/monitor next/previous
  13. super + {_,alt + ,ctrl + }{Right,Left}
  14. dkcmd {win focus,ws,mon} {next,prev}
  15.  
  16. # focus the given monitor
  17. super + shift + {KP_End,KP_Down,KP_Next}
  18. dkcmd mon {$MONITOR1,$MONITOR2,$MONITOR3}
  19.  
  20. # swap tiled window in/out of master, cycle tiled windows in place
  21. super + {space,Tab}
  22. dkcmd win {swap,cycle}
  23.  
  24. # close/kill focused window.
  25. super + {_,ctrl + }q
  26. {dkcmd win kill,xdo kill}
  27.  
  28. # toggle floating or sticky
  29. super + alt + {s,space}
  30. dkcmd win {float,stick}
  31.  
  32. # toggle fullscreen and fake fullscreen (enable manipulating fullscreen window)
  33. {_,ctrl + }F11
  34. dkcmd win {full,fakefull}
  35.  
  36. # move window, signed (+/-) for relative changes
  37. ctrl + {Left,Down,Up,Right}
  38. dkcmd win resize {x=-20,y=+20,y=-20,x=+20}
  39.  
  40. # resize window, signed (+/-) for relative changes
  41. alt + {Left,Down,Up,Right}
  42. dkcmd win resize {w=-20,h=+20,h=-20,w=+20}
  43.  
  44. # move the active window up/down the stack
  45. ctrl + alt + {j,k}
  46. dkcmd win mvstack {up,down}
  47.  
  48. # view, send, or follow to a workspace (by number)
  49. super + {_,alt + ,ctrl + }{KP_End,KP_Down,KP_Next,KP_Left,KP_Begin,KP_Right,KP_Home,KP_Up,KP_Prior,KP_Insert}
  50. dkcmd ws {_,send,follow} {1-9,10}
  51.  
  52. # view, send, or follow to monitor number
  53. alt + {_,shift + ,ctrl + }{KP_End,KP_Down,KP_Next}
  54. dkcmd mon {view,send,follow} {$MONITOR1,$MONITOR2,$MONITOR3}
  55.  
  56. # change active workspace layout from static=true
  57. alt + t ; {d,f,g,m,n,r,s,t,w}
  58. dk_layouts_static -{d,f,g,m,n,r,s,t,w}
  59.  
  60. # change active workspace layout from static=false
  61. alt + shift + t ; {d,g,m,n,r,s,t,w,z}
  62. dk_layouts_dynamic -{d,g,m,n,r,s,t,w,z}
  63.  
  64. # change number of windows in master or first stack
  65. alt + {_,shift + }{i,d}
  66. dkcmd set {master,stack} {+1,-1}
  67.  
  68. # change gap width
  69. alt + {equal,minus}
  70. dkcmd set gap width {+5,-5}
  71.  
  72. # change border widths
  73. #alt + ctrl + {_,shift + }{equal,minus}
  74. # dkcmd set border {width,outer_width} {+1,-1}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement