pcmanfm key bindings

This commit is contained in:
Zhongheng Liu 2025-10-11 16:56:11 +02:00
commit b864f0c998
2 changed files with 3 additions and 1 deletions

View file

@ -136,6 +136,7 @@ static const char *menucmd[] = {
NULL NULL
}; };
static const char *lockcmd[] = { "swaylock", NULL }; static const char *lockcmd[] = { "swaylock", NULL };
static const char *fmcmd[] = { "pcmanfm", NULL };
static const char *screencmd[] = {"screenshot.sh", NULL }; static const char *screencmd[] = {"screenshot.sh", NULL };
static const char *screenfilecmd[] = {"screenshot-file.sh", NULL }; static const char *screenfilecmd[] = {"screenshot-file.sh", NULL };
static const char *zellijcmd[] = { static const char *zellijcmd[] = {
@ -150,6 +151,7 @@ static const Key keys[] = {
{ MODKEY, XKB_KEY_p, spawn, {.v = menucmd} }, { MODKEY, XKB_KEY_p, spawn, {.v = menucmd} },
{ MODKEY|WLR_MODIFIER_SHIFT, XKB_KEY_Return, spawn, {.v = termcmd} }, { MODKEY|WLR_MODIFIER_SHIFT, XKB_KEY_Return, spawn, {.v = termcmd} },
{ MODKEY|WLR_MODIFIER_SHIFT, XKB_KEY_Z, spawn, {.v = zellijcmd} }, { MODKEY|WLR_MODIFIER_SHIFT, XKB_KEY_Z, spawn, {.v = zellijcmd} },
{ MODKEY, XKB_KEY_w, spawn, {.v = fmcmd} },
{ MODKEY, XKB_KEY_j, focusstack, {.i = +1} }, { MODKEY, XKB_KEY_j, focusstack, {.i = +1} },
{ MODKEY, XKB_KEY_k, focusstack, {.i = -1} }, { MODKEY, XKB_KEY_k, focusstack, {.i = -1} },
{ MODKEY, XKB_KEY_i, incnmaster, {.i = +1} }, { MODKEY, XKB_KEY_i, incnmaster, {.i = +1} },

View file

@ -1,5 +1,5 @@
[Desktop Entry] [Desktop Entry]
Name=dwl Name=dwl
Comment=dwm for Wayland Comment=dwm for Wayland
Exec=dwl -s 'launch_dwlb.sh & swaybg -i $HOME/wallpaper.jpg' Exec=dwl -s 'startup.sh & setup.sh'
Type=Application Type=Application