summaryrefslogtreecommitdiff
path: root/src/config.rs
blob: c36a3134cf06eb4344c9c352bc87081ef00a388c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
use std::process::Command;

use xcb::x::ModMask;
use xkeysym::Keysym;

use crate::keys::{Keybind, Keybinds};

pub const BORDER_WIDTH: u16 = 3;

/// The keybinds to use.
pub const KEYBINDS: Keybinds = Keybinds(&[Keybind {
    modifiers: ModMask::CONTROL,
    key: Keysym::t,
    action: &|_| {
        // TODO: disown this process, probably using another way to spawn commands
        if let Err(e) = Command::new("xterm").spawn() {
            dbg!(e);
        }
    },
}]);