aboutsummaryrefslogtreecommitdiff
path: root/patches/2bwm
diff options
context:
space:
mode:
Diffstat (limited to 'patches/2bwm')
-rw-r--r--patches/2bwm/nerd-patch.diff12
1 files changed, 4 insertions, 8 deletions
diff --git a/patches/2bwm/nerd-patch.diff b/patches/2bwm/nerd-patch.diff
index a47cc14..b0642e5 100644
--- a/patches/2bwm/nerd-patch.diff
+++ b/patches/2bwm/nerd-patch.diff
@@ -1,32 +1,28 @@
1diff --git a/config.h b/config.h 1diff --git a/config.h b/config.h
2index 0985d2e..baa77f8 100644 2index 0985d2e..4dce13d 100644
3--- a/config.h 3--- a/config.h
4+++ b/config.h 4+++ b/config.h
5@@ -40,7 +40,10 @@ static const uint8_t borders[] = {3,5,5,4}; 5@@ -40,7 +40,8 @@ static const uint8_t borders[] = {3,5,5,4};
6 #define LOOK_INTO "WM_NAME" 6 #define LOOK_INTO "WM_NAME"
7 static const char *ignore_names[] = {"bar", "xclock"}; 7 static const char *ignore_names[] = {"bar", "xclock"};
8 ///--Menus and Programs---/// 8 ///--Menus and Programs---///
9-static const char *menucmd[] = { "", NULL }; 9-static const char *menucmd[] = { "", NULL };
10+// static const char *menucmd[] = { "", NULL }; 10+// static const char *menucmd[] = { "", NULL };
11+static const char *terminal[] = { "st", NULL }; 11+static const char *terminal[] = { "st", NULL };
12+static const char *rofi_run[] = { "rofi", "-show", "run" };
13+static const char *rofi_window[] = { "rofi", "-show", "window" };
14 ///--Custom foo---/// 12 ///--Custom foo---///
15 static void halfandcentered(const Arg *arg) 13 static void halfandcentered(const Arg *arg)
16 { 14 {
17@@ -193,7 +196,10 @@ static key keys[] = { 15@@ -193,7 +194,8 @@ static key keys[] = {
18 { MOD |SHIFT, XK_Right, cursor_move, {.i=TWOBWM_CURSOR_RIGHT}}, 16 { MOD |SHIFT, XK_Right, cursor_move, {.i=TWOBWM_CURSOR_RIGHT}},
19 { MOD |SHIFT, XK_Left, cursor_move, {.i=TWOBWM_CURSOR_LEFT}}, 17 { MOD |SHIFT, XK_Left, cursor_move, {.i=TWOBWM_CURSOR_LEFT}},
20 // Start programs 18 // Start programs
21- { MOD , XK_w, start, {.com = menucmd}}, 19- { MOD , XK_w, start, {.com = menucmd}},
22+ //{ MOD , XK_w, start, {.com = menucmd}}, 20+ //{ MOD , XK_w, start, {.com = menucmd}},
23+ { MOD , XK_Return, start, {.com = terminal}}, 21+ { MOD , XK_Return, start, {.com = terminal}},
24+ { MOD , XK_d, start, {.com = rofi_run}},
25+ { MOD , XK_i, start, {.com = rofi_window}},
26 // Exit or restart 2bwm 22 // Exit or restart 2bwm
27 { MOD |CONTROL, XK_q, twobwm_exit, {.i=0}}, 23 { MOD |CONTROL, XK_q, twobwm_exit, {.i=0}},
28 { MOD |CONTROL, XK_r, twobwm_restart, {.i=0}}, 24 { MOD |CONTROL, XK_r, twobwm_restart, {.i=0}},
29@@ -215,7 +221,7 @@ static key keys[] = { 25@@ -215,7 +217,7 @@ static key keys[] = {
30 static Button buttons[] = { 26 static Button buttons[] = {
31 { MOD ,XCB_BUTTON_INDEX_1, mousemotion, {.i=TWOBWM_MOVE}, false}, 27 { MOD ,XCB_BUTTON_INDEX_1, mousemotion, {.i=TWOBWM_MOVE}, false},
32 { MOD ,XCB_BUTTON_INDEX_3, mousemotion, {.i=TWOBWM_RESIZE}, false}, 28 { MOD ,XCB_BUTTON_INDEX_3, mousemotion, {.i=TWOBWM_RESIZE}, false},