fixed defaults and readme
Browse files
+1 −1 default.nix
| @@ -9,7 +9,7 @@ | ||
| 9 | 9 | }: |
| 10 | 10 | rustPlatform.buildRustPackage (finalAttrs: { |
| 11 | 11 | pname = "oxwm"; |
| 12 | - version = "0.1.0"; | |
| 12 | + version = "0.1.12"; | |
| 13 | 13 | |
| 14 | 14 | src = ./.; |
| 15 | 15 |
+8 −14 readme.org
| @@ -81,13 +81,9 @@ Add this to your =configuration.nix=: | ||
| 81 | 81 | #+end_src |
| 82 | 82 | |
| 83 | 83 | *** Initialize your config |
| 84 | -After rebuilding your system with =sudo nixos-rebuild switch=, log in via your display manager, then run: | |
| 84 | +After rebuilding your system with =sudo nixos-rebuild switch=, log in via your display manager. | |
| 85 | 85 | |
| 86 | -#+begin_src sh | |
| 87 | -oxwm --init | |
| 88 | -#+end_src | |
| 89 | - | |
| 90 | -This creates your personal config at =~/.config/oxwm/config.rs=. Edit it and reload with =Mod+Shift+R=. | |
| 86 | +On first launch, your initial config file will be automatically created and placed in =~/.config/oxwm/config.ron=. Edit it and reload with =Mod+Shift+R=. | |
| 91 | 87 | |
| 92 | 88 | *** Advanced: Using a specific oxwm version |
| 93 | 89 | If you want to pin or customize the oxwm package: |
| @@ -153,25 +149,23 @@ startx | ||
| 153 | 149 | If using a display manager (LightDM, GDM, SDDM), OXWM should appear in the session list after installation. |
| 154 | 150 | |
| 155 | 151 | * Configuration |
| 156 | -OXWM follows the suckless philosophy: configuration is done by editing =~/.config/oxwm/config.rs= and recompiling. | |
| 157 | - | |
| 158 | -On first run with =oxwm --init=, your config is automatically created from the template. Your =config.rs= is gitignored, so you can customize it without worrying about merge conflicts. | |
| 152 | +OXWM was inspired by dwm, but ditched the suckless philosophy. This philosophy quite literally discourages users from using the software for the sake of 'elitism'. I find that quite nonsensical, so I went ahead and created this project to be user friendly. The configuration is done by editing =~/.config/oxwm/config.ron= and the binary can be reloaded with a hotkey (Super+Shift+R by efault). | |
| 159 | 153 | |
| 160 | -Edit =~/.config/oxwm/config.rs= to customize: | |
| 154 | +Edit =~/.config/oxwm/config.ron= to customize: | |
| 161 | 155 | - Keybindings |
| 162 | 156 | - Colors and appearance |
| 163 | 157 | - Status bar blocks |
| 164 | 158 | - Gaps and borders |
| 165 | 159 | - Terminal and applications |
| 166 | 160 | |
| 167 | -After making changes, reload OXWM with =Mod+Shift+R= (auto-recompiles if needed). | |
| 161 | +After making changes, reload OXWM with =Mod+Shift+R= | |
| 168 | 162 | |
| 169 | 163 | * Contributing |
| 170 | 164 | When contributing to OXWM: |
| 171 | 165 | |
| 172 | -1. Never commit your personal =~/.config/oxwm/config.rs= | |
| 173 | -2. Only modify =templates/config.rs= if adding new configuration options | |
| 174 | -3. Test your changes with =just test= using Xephyr | |
| 166 | +1. Never commit your personal =~/.config/oxwm/config.ron= | |
| 167 | +2. Only modify =templates/config.ron= if adding new configuration options | |
| 168 | +3. Test your changes with =just test= using Xephyr/Xwayland | |
| 175 | 169 | 4. Document any new features or keybindings |
| 176 | 170 | |
| 177 | 171 | * Key Bindings |
+3 −2 src/lib.rs
| @@ -91,7 +91,7 @@ impl Default for Config { | ||
| 91 | 91 | &[MODKEY], |
| 92 | 92 | keycodes::D, |
| 93 | 93 | KeyAction::Spawn, |
| 94 | - Arg::Array(&["sh", "-c", "dmenu_run"]), | |
| 94 | + Arg::Array(&["sh", "-c", "dmenu_run -l 10"]), | |
| 95 | 95 | ), |
| 96 | 96 | Key::new(&[MODKEY], keycodes::Q, KeyAction::KillClient, Arg::None), |
| 97 | 97 | Key::new( |
| @@ -103,6 +103,7 @@ impl Default for Config { | ||
| 103 | 103 | Key::new(&[MODKEY], keycodes::A, KeyAction::ToggleGaps, Arg::None), |
| 104 | 104 | Key::new(&[MODKEY, SHIFT], keycodes::Q, KeyAction::Quit, Arg::None), |
| 105 | 105 | Key::new(&[MODKEY, SHIFT], keycodes::R, KeyAction::Restart, Arg::None), |
| 106 | + Key::new(&[MODKEY], keycodes::F, KeyAction::ToggleFloating, Arg::None), | |
| 106 | 107 | Key::new(&[MODKEY], keycodes::J, KeyAction::FocusStack, Arg::Int(-1)), |
| 107 | 108 | Key::new(&[MODKEY], keycodes::K, KeyAction::FocusStack, Arg::Int(1)), |
| 108 | 109 | Key::new(&[MODKEY], keycodes::KEY_1, KeyAction::ViewTag, Arg::Int(0)), |
| @@ -170,7 +171,7 @@ impl Default for Config { | ||
| 170 | 171 | ), |
| 171 | 172 | ], |
| 172 | 173 | status_blocks: vec![crate::bar::BlockConfig { |
| 173 | - format: " {}", | |
| 174 | + format: "{}", | |
| 174 | 175 | command: crate::bar::BlockCommand::DateTime("%a, %b %d - %-I:%M %P"), |
| 175 | 176 | interval_secs: 1, |
| 176 | 177 | color: 0x0db9d7, |
+3 −3 templates/config.ron
| @@ -52,11 +52,11 @@ | ||
| 52 | 52 | ], |
| 53 | 53 | |
| 54 | 54 | status_blocks: [ |
| 55 | - (format: " {used}/{total} GB", command: "Ram", interval_secs: 5, color: 0x7aa2f7, underline: true), | |
| 55 | + (format: "Ram: {used}/{total} GB", command: "Ram", interval_secs: 5, color: 0x7aa2f7, underline: true), | |
| 56 | 56 | (format: " │ ", command: "Static", interval_secs: 18446744073709551615, color: 0xa9b1d6, underline: false), |
| 57 | - (format: " {}", command: "Shell", command_arg: "uname -r", interval_secs: 18446744073709551615, color: 0xf7768e, underline: true), | |
| 57 | + (format: "Kernel: {}", command: "Shell", command_arg: "uname -r", interval_secs: 18446744073709551615, color: 0xf7768e, underline: true), | |
| 58 | 58 | (format: " │ ", command: "Static", interval_secs: 18446744073709551615, color: 0xa9b1d6, underline: false), |
| 59 | - (format: " {}", command: "DateTime", command_arg: "%a, %b %d - %-I:%M %P", interval_secs: 1, color: 0x0db9d7, underline: true), | |
| 59 | + (format: "{}", command: "DateTime", command_arg: "%a, %b %d - %-I:%M %P", interval_secs: 1, color: 0x0db9d7, underline: true), | |
| 60 | 60 | ], |
| 61 | 61 | |
| 62 | 62 | scheme_normal: (foreground: 0xbbbbbb, background: 0x1a1b26, underline: 0x444444), |