tony / oxwm

fixing the issue of config Browse files
xsoder committed 2025-10-09 parent 4e5888d commit db103f308ff74de8f380ef2c5a49c004b303f8c4
Showing 1 changed file with 7 additions and 9 deletions. UnifiedSplit
+7 −9 src/config.rs
@@ -9,7 +9,7 @@ use x11rb::protocol::xproto::KeyButMask;
9 pub const BORDER_WIDTH: u32 = 2; 9 pub const BORDER_WIDTH: u32 = 2;
10 pub const BORDER_FOCUSED: u32 = 0x6dade3; 10 pub const BORDER_FOCUSED: u32 = 0x6dade3;
11 pub const BORDER_UNFOCUSED: u32 = 0xbbbbbb; 11 pub const BORDER_UNFOCUSED: u32 = 0xbbbbbb;
12 -pub const FONT: &str = "IosevkaNerdFont:style=Bold:size=10"; 12 +pub const FONT: &str = "JetBrainsMono Nerd Font:style=Bold:size=12";
13 13
14 // ======================================== 14 // ========================================
15 // GAPS (Vanity Gaps) 15 // GAPS (Vanity Gaps)
@@ -71,12 +71,12 @@ pub const SCHEME_SELECTED: ColorScheme = ColorScheme {
71 // Commands 71 // Commands
72 // ======================================== 72 // ========================================
73 const SCREENSHOT_CMD: &[&str] = &[ 73 const SCREENSHOT_CMD: &[&str] = &[
74 - "sh", "-c","/home/xsoder/scripts/screeshot", 74 + "sh",
75 + "-c",
76 + "maim -s | xclip -selection clipboard -t image/png",
75 ]; 77 ];
76 78
77 -const DMENU_CMD: &[&str] = &["sh", "-c", "dmenu_run"]; 79 +const DMENU_CMD: &[&str] = &["sh", "-c", "dmenu_run -l 10"];
78 -const ZOOM_CMD: &[&str] = &["sh", "-c", "boomer"];
79 -const SCRIPT_CMD: &[&str] = &["sh", "-c", "/home/xsoder/scripts/master"];
80 80
81 // ======================================== 81 // ========================================
82 // TAGS 82 // TAGS
@@ -94,12 +94,10 @@ pub const TAGS: [&str; TAG_COUNT] = ["1", "2", "3", "4", "5", "6", "7", "8", "9"
94 #[rustfmt::skip] 94 #[rustfmt::skip]
95 pub const KEYBINDINGS: &[Key] = &[ 95 pub const KEYBINDINGS: &[Key] = &[
96 Key::new(&[MODKEY], keycodes::RETURN, KeyAction::Spawn, Arg::Str(TERMINAL)), 96 Key::new(&[MODKEY], keycodes::RETURN, KeyAction::Spawn, Arg::Str(TERMINAL)),
97 - Key::new(&[MODKEY], keycodes::F, KeyAction::Spawn, Arg::Str(XCLOCK)), 97 + Key::new(&[MODKEY], keycodes::F, KeyAction::Spawn, Arg::Str(XCLOCK)),
98 98
99 + Key::new(&[MODKEY], keycodes::S, KeyAction::Spawn, Arg::Array(SCREENSHOT_CMD)),
99 Key::new(&[MODKEY], keycodes::D, KeyAction::Spawn, Arg::Array(DMENU_CMD)), 100 Key::new(&[MODKEY], keycodes::D, KeyAction::Spawn, Arg::Array(DMENU_CMD)),
100 - Key::new(&[MODKEY], keycodes::Z, KeyAction::Spawn, Arg::Array(ZOOM_CMD)),
101 - Key::new(&[MODKEY, SHIFT], keycodes::S, KeyAction::Spawn, Arg::Array(SCREENSHOT_CMD)),
102 - Key::new(&[MODKEY], keycodes::O, KeyAction::Spawn, Arg::Array(SCRIPT_CMD)),
103 Key::new(&[MODKEY], keycodes::Q, KeyAction::KillClient, Arg::None), 101 Key::new(&[MODKEY], keycodes::Q, KeyAction::KillClient, Arg::None),
104 Key::new(&[MODKEY, SHIFT], keycodes::F, KeyAction::ToggleFullScreen, Arg::None), 102 Key::new(&[MODKEY, SHIFT], keycodes::F, KeyAction::ToggleFullScreen, Arg::None),
105 Key::new(&[MODKEY], keycodes::A, KeyAction::ToggleGaps, Arg::None), 103 Key::new(&[MODKEY], keycodes::A, KeyAction::ToggleGaps, Arg::None),