blob: 246fe12ff4b09137ac8983338fb225ad55917ddb (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
//! User configuration
#![allow(clippy::unreadable_literal)] // Colours are more readable this way imo
use std::process::Command;
use xcb::x::ModMask;
use xkeysym::Keysym;
use crate::{
conn_info::Colour,
keys::{Keybind, Keybinds},
};
/// Width of the border around windows
pub const BORDER_WIDTH: u16 = 3;
/// Default border for windows
pub const BORDER_NORMAL: Colour = Colour::from_hex(0x000000);
/// Border around currently focused window
pub const BORDER_FOCUSED: Colour = Colour::from_hex(0xff0000);
/// 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);
}
},
}]);
|