Skip to content
Open
Changes from all commits
Commits
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
6 changes: 4 additions & 2 deletions float-window-manager/float-window-managerd.sh
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,12 @@ else
fi


min_version="1.6"
version=$(swaymsg -t get_version | jq -r '.human_readable')
if [[ "$version" < "1.6" ]]; then
if [ "$(echo -e "$version\n$min_version" | sort -V | head -n 1)" != "$min_version" ]; then
# True if $version is less than $min_version
echo This version of Sway is earlier than supports moving windows with percentages.
echo Version is \'"$version"\'. Version needed: \'1.6\'.
echo Version is \'"$version"\'. Version needed: \'"$min_version"\'.
exit 1
fi

Expand Down