Skip to content

Commit

Permalink
Fix focus and cfg (#9)
Browse files Browse the repository at this point in the history
* Fix focus model and cfg

* Update some comments

* Update changelog, add some docs and cfg validation as an arg

* Restructure and make compat with x11rb change

* Update build script for perf test

* Remove some debug prints and fix a reply leak

* Report debug on missing config
  • Loading branch information
MarcusGrass authored Jul 9, 2022
1 parent d2614b6 commit 3643e14
Show file tree
Hide file tree
Showing 26 changed files with 899 additions and 389 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,4 +36,4 @@ jobs:
steps:
- uses: actions/checkout@v3
- name: Run makefile tests
run: ./check_make.sh
run: ./.local/check_make.sh
55 changes: 55 additions & 0 deletions .local/build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
#!/bin/bash
set -e
POSITIONAL_ARGS=()
MODE="dev"
INSTALL_PATH="$HOME/.cargo/bin/pgwm"
FEATURES="debug"
while [[ $# -gt 0 ]]; do
case $1 in
-d)
MODE="dev"
shift # past argument
;;
-l)
MODE="lto"
FEATURES="default"
shift # past argument
;;
--perf)
MODE="lto"
FEATURES="xinerama,config-file --no-default-features"
shift # past argument
;;
-p)
INSTALL_PATH="$2"
shift # past argument
shift # past value
;;
-*|--*)
echo "Unknown option $1"
exit 1
;;
*)
POSITIONAL_ARGS+=("$1") # save positional arg
shift # past argument
;;
esac
done

echo "MODE = ${MODE}"
echo "INSTALL_PATH = ${INSTALL_PATH}"

if [[ "dev" == $MODE ]]; then
cargo b -p pgwm --profile $MODE --features $FEATURES && install target/debug/pgwm "$INSTALL_PATH"
exit 0
fi

if [[ "lto" == $MODE ]]; then
/usr/bin/cargo b -p pgwm --profile "$MODE" --features $FEATURES --target x86_64-unknown-linux-musl && install target/x86_64-unknown-linux-musl/lto/pgwm "$INSTALL_PATH"
exit 0
fi

if [[ "lto" == $MODE ]]; then
/usr/bin/cargo b -p pgwm --profile "$MODE" --features $FEATURES --target x86_64-unknown-linux-musl && install target/x86_64-unknown-linux-musl/lto/pgwm "$INSTALL_PATH"
exit 0
fi
File renamed without changes.
File renamed without changes.
118 changes: 54 additions & 64 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions Changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,7 @@ but a type containing a path to the specific font to be rendered and a pixel siz
This is because libXft took care of that through fontconfig before, but now that dependency is gone.
- No more unsafe code.
- No c-library dependencies, can be built and statically linked, down to a ~2Mb binary with musl, and ~2Mb USS/PSS/RSS RAM footprint
- Reworked the connection to be lighter and faster
- Now exclusively uses Unix-sockets, no TCP is available

## [v0.1.0] - 2022-04-09
Loading

0 comments on commit 3643e14

Please sign in to comment.