From 89071e4950b1864a21400c5c3864e5ebc3131b0b Mon Sep 17 00:00:00 2001 From: Anas Elgarhy Date: Mon, 11 Jul 2022 08:02:44 +0200 Subject: [PATCH] =?UTF-8?q?Add=20more=20keys=20=F0=9F=A5=B0=F0=9F=A5=B0?= =?UTF-8?q?=F0=9F=A5=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 8 ++++++-- keys/keys.c | 19 ++++++++++++++----- 2 files changed, 20 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index d0beb0e..1db1ed1 100644 --- a/README.md +++ b/README.md @@ -25,9 +25,13 @@ | modkey + shift + d | Open dmenu (launcher) | | modkey + shift + ctrl | Open rofi launcher (small size) | | modkey + enter | Launche the main terminal (alacritty by default) | -| modkey + t -> 1 | Launche the main terminal with tmux | +| modkey + t -> a | Launche the alacritty terminal | +| modkey + t -> shift + a | Launche the alacritty terminal with tmux | +| modkey + t -> k | Launche the konsole terminal | +| modkey + t -> shift + k | Launche the konsole terminal with tmux | | modkey + shift + f -> g | Launche the GUI file manger (dolphin by default) | -| modkey + shift + f -> r | Launche rofi file file browser (small size) | +| modkey + shift + f -> f | Launche rofi file file browser (small size) | +| modkey + shift + f -> r | Launche ranger in the main terminal | | modkey + w -> g | Launche google chrome browser | | modkey + w -> t | Launche tor browser | | modkey + c -> d | Launche discord | diff --git a/keys/keys.c b/keys/keys.c index 9ec626a..f2de907 100644 --- a/keys/keys.c +++ b/keys/keys.c @@ -24,14 +24,23 @@ static Keychord keychords[] = { {1, {{MODKEY|ShiftMask, XK_d}}, spawn, {.v = dmenucmd } }, // Rofi launcher (small) {1, {{MODKEY|ShiftMask|ControlMask, XK_d}}, spawn, SHCMD("rofi -show drun") }, - // Start the terminal + // Start the main terminal {1, {{MODKEY, XK_Return}}, spawn, {.v = termcmd } }, - // Start the terminal with tmux - {2, {{MODKEY, XK_t}, {0, XK_1}}, spawn, SHCMD(TERMINAL " -e tmux") }, - // File browsers + // Start the alacritty terminal + {2, {{MODKEY, XK_t}, {0, XK_a}}, spawn, SHCMD("alacritty") }, + // Start the alacritty terminal with tmux + {2, {{MODKEY, XK_t}, {ShiftMask, XK_a}}, spawn, SHCMD("alacritty -e tmux") }, + // konsole + {2, {{MODKEY, XK_t}, {0, XK_k}}, spawn, SHCMD("konsole") }, + // konsole with tmux + {2, {{MODKEY, XK_t}, {ShiftMask, XK_k}}, spawn, SHCMD("konsole -e tmux") }, + /************************************* File browsers *************************************/ + // GUI filebrowser (dolphin) {2, {{MODKEY|ShiftMask, XK_f}, {0, XK_g}}, spawn, SHCMD(GUI_FILEMANAGER) }, // Rofi file browser (small) - {2, {{MODKEY|ShiftMask, XK_f}, {0, XK_r}}, spawn, SHCMD("rofi -show filebrowser") }, + {2, {{MODKEY|ShiftMask, XK_f}, {0, XK_f}}, spawn, SHCMD("rofi -show filebrowser") }, + // ranger + {2, {{MODKEY|ShiftMask, XK_f}, {0, XK_r}}, spawn, SHCMD(TERMINAL " -e ranger") }, /************************************* Start the web browers *************************************/ // Google chrome stable {2, {{MODKEY, XK_w}, {0, XK_g}}, spawn, SHCMD(WEBBROWSER) },