fixing the issue of config
Browse files
+7 −9 src/config.rs
| @@ -9,7 +9,7 @@ use x11rb::protocol::xproto::KeyButMask; | ||
| 9 | 9 | pub const BORDER_WIDTH: u32 = 2; |
| 10 | 10 | pub const BORDER_FOCUSED: u32 = 0x6dade3; |
| 11 | 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 | 15 | // GAPS (Vanity Gaps) |
| @@ -71,12 +71,12 @@ pub const SCHEME_SELECTED: ColorScheme = ColorScheme { | ||
| 71 | 71 | // Commands |
| 72 | 72 | // ======================================== |
| 73 | 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"]; | |
| 78 | -const ZOOM_CMD: &[&str] = &["sh", "-c", "boomer"]; | |
| 79 | -const SCRIPT_CMD: &[&str] = &["sh", "-c", "/home/xsoder/scripts/master"]; | |
| 79 | +const DMENU_CMD: &[&str] = &["sh", "-c", "dmenu_run -l 10"]; | |
| 80 | 80 | |
| 81 | 81 | // ======================================== |
| 82 | 82 | // TAGS |
| @@ -94,12 +94,10 @@ pub const TAGS: [&str; TAG_COUNT] = ["1", "2", "3", "4", "5", "6", "7", "8", "9" | ||
| 94 | 94 | #[rustfmt::skip] |
| 95 | 95 | pub const KEYBINDINGS: &[Key] = &[ |
| 96 | 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 | 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 | 101 | Key::new(&[MODKEY], keycodes::Q, KeyAction::KillClient, Arg::None), |
| 104 | 102 | Key::new(&[MODKEY, SHIFT], keycodes::F, KeyAction::ToggleFullScreen, Arg::None), |
| 105 | 103 | Key::new(&[MODKEY], keycodes::A, KeyAction::ToggleGaps, Arg::None), |