From 774527c62659efb889210729e6f4894b8880a21b Mon Sep 17 00:00:00 2001 From: John Gebbie Date: Wed, 22 Mar 2023 18:40:02 +0000 Subject: [PATCH] sxhkd: add alternative Super+Enter keybindings --- doc/tiles.7.scd | 10 +++++----- etc/sxhkd/sxhkdrc | 8 ++++---- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/doc/tiles.7.scd b/doc/tiles.7.scd index 1e9f532..31b255a 100644 --- a/doc/tiles.7.scd +++ b/doc/tiles.7.scd @@ -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 diff --git a/etc/sxhkd/sxhkdrc b/etc/sxhkd/sxhkdrc index 05243c2..8e4177c 100644 --- a/etc/sxhkd/sxhkdrc +++ b/etc/sxhkd/sxhkdrc @@ -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 -- 2.38.5