Skip to content

Commit

Permalink
reset the bindings to dwm defaults
Browse files Browse the repository at this point in the history
  • Loading branch information
ntBre committed Aug 22, 2024
1 parent 658fdae commit 0bf4b79
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -96,25 +96,30 @@ pub const TERMCMD: [*const c_char; 2] = [c"st".as_ptr(), null_mut()];

use x11::keysym::{
XK_Return, XK_Tab, XK_b, XK_c, XK_comma, XK_d, XK_f, XK_h, XK_i, XK_j,
XK_k, XK_l, XK_m, XK_period, XK_q, XK_space, XK_t, XK_u, XK_0, XK_1, XK_2,
XK_k, XK_l, XK_m, XK_p, XK_period, XK_q, XK_space, XK_t, XK_0, XK_1, XK_2,
XK_3, XK_4, XK_5, XK_6, XK_7, XK_8, XK_9,
};

pub static KEYS: [Key; 60] = [
Key::new(MODKEY, XK_d, spawn, Arg { v: DMENUCMD.0.as_ptr().cast() }),
Key::new(MODKEY, XK_t, spawn, Arg { v: TERMCMD.as_ptr().cast() }),
Key::new(MODKEY, XK_p, spawn, Arg { v: DMENUCMD.0.as_ptr().cast() }),
Key::new(
MODKEY | ShiftMask,
XK_Return,
spawn,
Arg { v: TERMCMD.as_ptr().cast() },
),
Key::new(MODKEY, XK_b, togglebar, Arg { i: 0 }),
Key::new(MODKEY, XK_j, focusstack, Arg { i: 1 }),
Key::new(MODKEY, XK_k, focusstack, Arg { i: -1 }),
Key::new(MODKEY, XK_i, incnmaster, Arg { i: 1 }),
Key::new(MODKEY, XK_u, incnmaster, Arg { i: -1 }),
Key::new(MODKEY, XK_d, incnmaster, Arg { i: -1 }),
Key::new(MODKEY, XK_h, setmfact, Arg { f: -0.05 }),
Key::new(MODKEY, XK_l, setmfact, Arg { f: 0.05 }),
Key::new(MODKEY, XK_Return, zoom, Arg { i: 0 }),
Key::new(MODKEY, XK_Tab, view, Arg { i: 0 }),
Key::new(MODKEY | ShiftMask, XK_c, killclient, Arg { i: 0 }),
Key::new(
MODKEY | ShiftMask,
MODKEY,
XK_t,
setlayout,
Arg { v: &LAYOUTS[0] as *const _ as *const _ },
Expand Down

0 comments on commit 0bf4b79

Please sign in to comment.