Browse Source

change fullscreen keybinding to alt+t

fix-resizing
Wesley Kerfoot 4 years ago
parent
commit
cf814f3001
  1. 2
      README.md
  2. 4
      src/nimwin.nim

2
README.md

@ -24,4 +24,4 @@ If you want to run xterm, for example, just set `NIMWIN_LAUNCHER` to a launcher
### How to move windows
`alt + right` click allows you to resize, `alt + left click` allows you to move, `ctrl + alt + return` opens an xterm, and `alt + tab` cycles through windows, changing the focus each time.
`alt + right` click allows you to resize, `alt + left click` allows you to move, `ctrl + alt + return` opens an xterm, and `alt + tab` cycles through windows, changing the focus each time. `alt + t` makes a window full-screen.

4
src/nimwin.nim

@ -304,7 +304,7 @@ when isMainModule:
display.grabKeyCombo(XK_Tab) # Cycle through windows
display.grabKeyCombo(XK_Q) # Restart window manager
display.grabKeyCombo(XK_P) # Launcher
display.grabKeyCombo(XK_F) # Full screen
display.grabKeyCombo(XK_T) # Full screen
display.grabKeyCombo(XK_C, @[ShiftMask.cuint]) # CLose a window
display.grabMouse(1)
display.grabMouse(3)
@ -375,7 +375,7 @@ when isMainModule:
if restartResult == -1:
quit("Failed to restart Nimwin")
HandleKey(XK_F):
HandleKey(XK_T):
# Get all of the struts with offsets from the top
# Get all of the struts with offsets from the bottomm

Loading…
Cancel
Save