Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use Lua for configuration #42

Merged
merged 27 commits into from
Jan 19, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
27 commits
Select commit Hold shift + click to select a range
771cd6e
derive deserialize for config, with some intermediates for fn ptrs
ntBre Dec 12, 2024
7151f1d
add insta, load a Config from lua
ntBre Dec 12, 2024
a5df1b4
ok_or
ntBre Dec 12, 2024
54dcd76
move CONFIG init to Config::load_home
ntBre Dec 12, 2024
db466d1
allow unused for now
ntBre Dec 12, 2024
59293a8
move config to lib and CONFIG to state
ntBre Dec 12, 2024
ec8caf8
clippy fix
ntBre Dec 12, 2024
1967a4b
lowercase config
ntBre Dec 12, 2024
31551c1
delete fig, use lua, check Key loading
ntBre Dec 12, 2024
9f9a349
custom Debug impl for Key for reproducible snapshots
ntBre Dec 12, 2024
8de9ed9
update dmenucmd and test buttons
ntBre Dec 12, 2024
3d3660d
add layouts
ntBre Dec 12, 2024
ce021aa
install lua
ntBre Dec 12, 2024
5ace45a
ubuntu requires specifying lua5.4
ntBre Dec 12, 2024
e393643
also install liblua5.4
ntBre Dec 12, 2024
0aa6bf4
rename main_ to core
ntBre Dec 14, 2024
306841a
start generating tag keys
ntBre Dec 12, 2024
d8e7d5d
finish the default config
ntBre Dec 14, 2024
8abfb41
move docs to config.lua
ntBre Dec 14, 2024
81f3191
take defaults entirely from lua
ntBre Dec 14, 2024
d0f3a06
update config path
ntBre Dec 14, 2024
c6c6900
don't load config twice
ntBre Dec 14, 2024
0b3b5f0
use previously-defined scratchpad name
ntBre Dec 14, 2024
25c6c3a
make way more keys available in the default config
ntBre Jan 19, 2025
e8963fd
run clippy with nightly
ntBre Jan 19, 2025
9ca30fb
fix new operator precedence lint
ntBre Jan 19, 2025
1175fa0
include xf86 keys too
ntBre Jan 19, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ jobs:
- name: Install X libraries
run: |
sudo apt-get update
sudo apt-get install libxft-dev libxinerama-dev
sudo apt-get install libxft-dev libxinerama-dev lua5.4 liblua5.4-dev
- name: Install ${{ matrix.toolchain }}
uses: dtolnay/rust-toolchain@master
with:
Expand All @@ -58,7 +58,7 @@ jobs:
- name: Install X libraries
run: |
sudo apt-get update
sudo apt-get install libxft-dev libxinerama-dev
sudo apt-get install libxft-dev libxinerama-dev lua5.4 liblua5.4-dev
- name: Install nightly
uses: dtolnay/rust-toolchain@nightly
- name: cargo doc
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,11 @@ jobs:
if: ${{ ! matrix.is_mac }}
run: |
sudo apt-get update
sudo apt-get install libxft-dev libxinerama-dev xserver-xephyr libxcb1-dev
sudo apt-get install libxft-dev libxinerama-dev xserver-xephyr libxcb1-dev lua5.4 liblua5.4-dev
- name: Install X libraries (mac)
if: ${{ matrix.is_mac }}
run: |
brew install libxft libxinerama
brew install libxft libxinerama lua
brew install --cask xquartz
echo "PATH=$PATH:/opt/X11/bin" >> $GITHUB_ENV
- name: Install ${{ matrix.toolchain }}
Expand Down
Loading
Loading