tony / oxwm

added fallback font Browse files
tonybtw committed 2025-10-06 parent e84fe9f commit b9062ae7634116e95be205df85ce17f242ad52df
Showing 3 changed files with 10 additions and 3 deletions. UnifiedSplit
+4 −3 src/config.rs
@@ -9,14 +9,14 @@ use x11rb::protocol::xproto::KeyButMask;
9 9 pub const BORDER_WIDTH: u32 = 1;
10 10 pub const BORDER_FOCUSED: u32 = 0x6dade3;
11 11 pub const BORDER_UNFOCUSED: u32 = 0xbbbbbb;
12 -pub const FONT: &str = "JetBrainsMono Nerd Font:style=Bold:size=14";
12 +pub const FONT: &str = "JetBrainsMono Nerd Font:style=Bold:size=14,monospace:size=14";
13 13
14 14 // ========================================
15 15 // DEFAULTS
16 16 // ========================================
17 17 pub const TERMINAL: &str = "alacritty";
18 18 pub const XCLOCK: &str = "xclock";
19 -pub const MODKEY: KeyButMask = KeyButMask::MOD1;
19 +pub const MODKEY: KeyButMask = KeyButMask::MOD4;
20 20
21 21 // ========================================
22 22 // BAR COLORS
@@ -63,7 +63,7 @@ pub const SCHEME_SELECTED: ColorScheme = ColorScheme {
63 63 const SCREENSHOT_CMD: &[&str] = &[
64 64 "sh",
65 65 "-c",
66 - "maim ~/screenshots/screenshot_$(date +%Y%m%d_%H%M%S).png",
66 + "maim -s | xclip -selection clipboard -t image/png",
67 67 ];
68 68
69 69 const DMENU_CMD: &[&str] = &["sh", "-c", "dmenu_run -l 10"];
@@ -73,6 +73,7 @@ const DMENU_CMD: &[&str] = &["sh", "-c", "dmenu_run -l 10"];
73 73 // ========================================
74 74 pub const TAG_COUNT: usize = 9;
75 75 pub const TAGS: [&str; TAG_COUNT] = ["1", "2", "3", "4", "5", "6", "7", "8", "9"];
76 +// pub const TAGS: [&str; TAG_COUNT] = ["", "󰊯", "", "", "󰙯", "󱇤", "", "󱘶", "󰧮"];
76 77
77 78 // ========================================
78 79 // KEYBINDINGS
+2 −0 src/keyboard/handlers.rs
@@ -56,6 +56,8 @@ pub fn setup_keybinds(connection: &impl Connection, root: Window) -> Result<()>
56 56 for keybinding in KEYBINDINGS {
57 57 let modifier_mask = modifiers_to_mask(keybinding.modifiers);
58 58
59 + println!("Grabbing key {} with mod {}", keybinding.key, modifier_mask);
60 +
59 61 connection.grab_key(
60 62 false,
61 63 root,
+4 −0 src/window_manager.rs
@@ -482,7 +482,11 @@ impl WindowManager {
482 482 }
483 483 }
484 484 Event::KeyPress(event) => {
485 + println!("━━━ KeyPress Event ━━━");
486 + println!("Key code: {}", event.detail);
487 +
485 488 let (action, arg) = keyboard::handle_key_press(event)?;
489 + println!(" -> Matched action: {:?}", action);
486 490
487 491 match action {
488 492 KeyAction::Quit => return Ok(Some(false)),