diff --git a/build-upload.sh b/build-upload.sh index 90b3655..ac77e5f 100755 --- a/build-upload.sh +++ b/build-upload.sh @@ -29,7 +29,28 @@ read -s -p "Enter your password: " pass echo mkdir -p builds + +# Temporarily move top-level README files out during build, then restore +backup_dir=$(mktemp -d) +moved_readmes=() +restore_readmes() { + for f in "${moved_readmes[@]}"; do + [ -f "$backup_dir/$f" ] && mv "$backup_dir/$f" "$pkg_path/$f" + done +} +# Always clean up backup dir; README files are restored immediately after build +trap 'rm -rf "$backup_dir"' EXIT + +for f in README.md readme.md README Readme.md; do + if [ -f "$pkg_path/$f" ]; then + mv "$pkg_path/$f" "$backup_dir/$f" + moved_readmes+=("$f") + fi +done + dpkg-deb --build "$pkg_path" "$output_path" +# Restore README files now so the repo looks unchanged for the rest of the script +restore_readmes response=$(curl --silent --show-error --user "$user:$pass" --upload-file "$output_path" "$remote_url" 2>&1) if echo "$response" | grep -q "package file already exists"; then echo "Upload skipped: package file already exists on the server. You might have forgot to update the version number in the control file" diff --git a/builds/uconsole-custom-theme_0.1_all.deb b/builds/uconsole-custom-theme_0.1_all.deb index ed072bd..fb335dd 100644 Binary files a/builds/uconsole-custom-theme_0.1_all.deb and b/builds/uconsole-custom-theme_0.1_all.deb differ diff --git a/builds/uconsole-rotate_0.1_all.deb b/builds/uconsole-rotate_0.1_all.deb index 7097e49..62006a0 100644 Binary files a/builds/uconsole-rotate_0.1_all.deb and b/builds/uconsole-rotate_0.1_all.deb differ diff --git a/uconsole-rotate/README.md b/uconsole-rotate/README.md new file mode 100644 index 0000000..4d13f5c --- /dev/null +++ b/uconsole-rotate/README.md @@ -0,0 +1,27 @@ +# uconsole-rotate + +Command-line helper to rotate the uConsole display on Wayland (sway/wayfire) using wlr-randr. + +## Important + +This rotation is not persisted across reboots. Re-run the command after login or add it to your session autostart if you want it applied automatically. + +I use this to quickly rotate the display to play games in other orientations. + +## Usage + +``` +uconsole-rotate [right|left|0|90|180|270] +``` + +- No argument: rotate 90° clockwise from current orientation +- right/left: rotate relative to current orientation +- 0/90/180/270: set rotation (device-specific mapping handled internally) + +## Notes + +- Automatically detects the DSI output +- Requires a Wayland session with `wlr-randr` available +- Exits with non-zero status if no DSI output is found or transform cannot be resolved + +