tony / oxwm

fixed type mismatch Browse files
tonybtw committed 2025-10-11 parent 4f158be commit a9b99bde4a5e0c27b2abcb1002d9fa8e778c5b6f
Showing 1 changed file with 6 additions and 2 deletions. UnifiedSplit
+6 −2 src/lib.rs
@@ -26,6 +26,7 @@ pub struct Config {
26 26 pub gap_outer_vertical: u32,
27 27
28 28 // Basics
29 + pub terminal: String,
29 30 pub modkey: x11rb::protocol::xproto::KeyButMask,
30 31
31 32 // Tags
@@ -59,6 +60,8 @@ impl Default for Config {
59 60 const MODKEY: KeyButMask = KeyButMask::MOD4;
60 61 const SHIFT: KeyButMask = KeyButMask::SHIFT;
61 62
63 + const TERMINAL: &str = "st";
64 +
62 65 Self {
63 66 border_width: 2,
64 67 border_focused: 0x6dade3,
@@ -69,6 +72,7 @@ impl Default for Config {
69 72 gap_inner_vertical: 0,
70 73 gap_outer_horizontal: 0,
71 74 gap_outer_vertical: 0,
75 + terminal: TERMINAL.to_string(),
72 76 modkey: MODKEY,
73 77 tags: vec!["1", "2", "3", "4", "5", "6", "7", "8", "9"]
74 78 .into_iter()
@@ -79,7 +83,7 @@ impl Default for Config {
79 83 &[MODKEY],
80 84 keycodes::RETURN,
81 85 KeyAction::Spawn,
82 - Arg::Str("st"),
86 + Arg::Str(TERMINAL),
83 87 ),
84 88 Key::new(
85 89 &[MODKEY],
@@ -164,7 +168,7 @@ impl Default for Config {
164 168 ),
165 169 ],
166 170 status_blocks: vec![crate::bar::BlockConfig {
167 - format: "{}",
171 + format: " {}",
168 172 command: crate::bar::BlockCommand::DateTime("%a, %b %d - %-I:%M %P"),
169 173 interval_secs: 1,
170 174 color: 0x0db9d7,