Skip to content

Commit

Permalink
tidy up for release
Browse files Browse the repository at this point in the history
  • Loading branch information
ntBre committed Jan 20, 2025
1 parent d8bd207 commit 6c1f800
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 7 deletions.
5 changes: 3 additions & 2 deletions scripts/keysyms.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""Generate a table of X keysyms for inclusion in the Lua config file
environment. This should be included in `fig_env.rs` to take advantage of the
`use x11::keysym::*` and `keys` macros that are used in the generated output.
environment. This should be included in `config/env.rs` to take advantage of
the `use x11::keysym::*` and `keys` macros that are used in the generated
output.
"""

import textwrap
Expand Down
6 changes: 3 additions & 3 deletions src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@ use std::{
path::Path,
};

use fig_env::{CLICKS, HANDLERS, KEYS, XKEYS};
use env::{CLICKS, HANDLERS, KEYS, XKEYS};
use mlua::{Lua, LuaSerdeExt as _, Table};

use crate::{config::key::Key, enums::Scheme, Button, Layout, Rule};

mod fig_env;
mod env;
pub mod key;

#[derive(Debug, serde::Deserialize)]
Expand Down Expand Up @@ -137,7 +137,7 @@ impl ConfigBuilder {
globals.set(k, v).unwrap();
}

for (k, v) in fig_env::BUTTONS {
for (k, v) in env::BUTTONS {
globals.set(k, v).unwrap();
}

Expand Down
4 changes: 2 additions & 2 deletions src/config/fig_env.rs → src/config/env.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
//! Build an initial Fig environment containing useful symbols for writing
//! your config
//! Build sequences of key-value pairs containing useful symbols to include in
//! the initial Lua environment for writing your config.
use crate::enums::Clk;
use x11::xlib::{
Expand Down

0 comments on commit 6c1f800

Please sign in to comment.