~geb/tiles

774527c62659efb889210729e6f4894b8880a21b — John Gebbie 2 months ago ede7a20
sxhkd: add alternative Super+Enter keybindings
2 files changed, 9 insertions(+), 9 deletions(-)

M doc/tiles.7.scd
M etc/sxhkd/sxhkdrc
M doc/tiles.7.scd => doc/tiles.7.scd +5 -5
@@ 118,15 118,15 @@ using a display manager.

# DESKTOP KEYBINDINGS

[[ *Super+1*
[[ *Super+1* or *Super+Enter*
:< Open *tiles-terminal* (or *$TILES_TERMINAL* if set).
|  *Super+2*
:  Open *tiles-terminal* (or *$TILES_TERMINAL* if set) at the working directory of the current window.
|  *Super+3*
|  *Super+2* or *Super+Shift+Enter*
:  Open *tiles-terminal* (or *$TILES_TERMINAL* if set) at the same directory as the focused window.
|  *Super+3* or *Super+Alt+Enter*
:  Open *tiles-browser* (or *$TILES_BROWSER* if set).
|  *Super+4*
:  Open *tiles-document-viewer* (or *$TILES_DOCUMENT_VIEWER* if set).
|  *Super+space*
|  *Super+Space*
:  Program Launcher
|  *Super+m*
:  Desktop and Power Menu

M etc/sxhkd/sxhkdrc => etc/sxhkd/sxhkdrc +4 -4
@@ 1,11 1,11 @@
# Terminal
super + 1
{super + 1,super + Return}
	"$\{TILES_TERMINAL:-tiles-terminal\}"
# Open a terminal at the working directory of the focused window
super + 2
# Open a terminal at the same directory as the focused window
{super + 2,super + shift + Return}
	env -C "$(pwdx "$(pgrep -nP "$(xdotool getactivewindow getwindowpid %1)")" | cut -d' ' -f2)" -- "$\{TILES_TERMINAL:-tiles-terminal\}"
# Browser
super + 3
{super + 3,super + alt + Return}
	"$\{TILES_BROWSER:-tiles-browser\}"
# Document Viewer
super + 4