commit 311291cd3e4f5ebc808b06da0309b613b3105e4b
parent 17b5a64746da51a8b45cb5533b79e02247489501
Author: Sven Möller <sven-moeller@outlook.de>
Date: Sun, 6 Feb 2022 16:45:24 +0100
Clean up keybindings
Diffstat:
3 files changed, 16 insertions(+), 11 deletions(-)
diff --git a/dwm/.repos/dwm/config.h b/dwm/.repos/dwm/config.h
@@ -58,12 +58,12 @@ static const Layout layouts[] = {
/* commands */
static char dmenumon[2] = "0"; /* component of dmenucmd, manipulated in spawn() */
static const char *dmenucmd[] = { "dmenu_run", "-m", dmenumon, "-fn", dmenufont, "-nb", col_gray1, "-nf", col_gray3, "-sb", col_cyan, "-sf", col_gray4, NULL };
-static const char *termcmd[] = { "alacritty", NULL };
+//static const char *termcmd[] = { "st", NULL };
static Key keys[] = {
/* modifier key function argument */
{ MODKEY, XK_p, spawn, {.v = dmenucmd } },
- { MODKEY|ShiftMask, XK_Return, spawn, {.v = termcmd } },
+ //{ MODKEY|ShiftMask, XK_Return, spawn, {.v = termcmd } },
{ MODKEY, XK_b, togglebar, {0} },
{ MODKEY, XK_j, focusstack, {.i = +1 } },
{ MODKEY, XK_k, focusstack, {.i = -1 } },
@@ -104,7 +104,7 @@ static Button buttons[] = {
{ ClkLtSymbol, 0, Button1, setlayout, {0} },
{ ClkLtSymbol, 0, Button3, setlayout, {.v = &layouts[2]} },
{ ClkWinTitle, 0, Button2, zoom, {0} },
- { ClkStatusText, 0, Button2, spawn, {.v = termcmd } },
+ //{ ClkStatusText, 0, Button2, spawn, {.v = termcmd } },
{ ClkClientWin, MODKEY, Button1, movemouse, {0} },
{ ClkClientWin, MODKEY, Button2, togglefloating, {0} },
{ ClkClientWin, MODKEY, Button3, resizemouse, {0} },
diff --git a/sxhkd/.config/sxhkd/sxhkdrc b/sxhkd/.config/sxhkd/sxhkdrc
@@ -14,16 +14,15 @@ XF86HomePage
qutebrowser
XF86Mail
- $TERMINAL -e neomutt && notmuch new && pkill -RTMIN+5 dwmblocks
+ $TERMINAL -e neomutt
XF86Calculator
- $TERMINAL -e scroll newsboat
- #$TERMINAL qalc
+ $TERMINAL -e qalc
Print
scrot -s
-super + shift + Return
+alt + shift + Return
$TERMINAL
super + e
@@ -35,10 +34,7 @@ super + y
super + c
$TERMINAL -e cava
-super + o
- gopass ls --flat | dmenu | xargs --no-run-if-empty gopass show -f | head -n 1 | xdotool type --clearmodifiers --delay 400 --file -
-
-super + u
+alt + o
passfill
super + odiaeresis
diff --git a/tmux/.config/tmux/tmux.conf b/tmux/.config/tmux/tmux.conf
@@ -1,14 +1,23 @@
+#Prefix is Ctrl-a
unbind C-b
set -g prefix C-a
bind a send-prefix
bind C-a last-window
+unbind C-b
set -sg escape-time 1
set -g base-index 1
set-window-option -g pane-base-index 1
set -g mouse on
+# easy-to-remember split pane commands
bind | split-window -h
bind - split-window -v
unbind '"'
unbind %
+
+# moving between panes with vim movement keys
+bind h select-pane -L
+bind j select-pane -D
+bind k select-pane -U
+bind l select-pane -R