We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cf0e86b commit e823499Copy full SHA for e823499
float-window-manager/float-window-managerd.sh
@@ -41,10 +41,12 @@ else
41
fi
42
43
44
+min_version="1.6"
45
version=$(swaymsg -t get_version | jq -r '.human_readable')
-if [[ "$version" < "1.6" ]]; then
46
+if [ "$(echo -e "$version\n$min_version" | sort -V | head -n 1)" != "$min_version" ]; then
47
+ # True if $version is less than $min_version
48
echo This version of Sway is earlier than supports moving windows with percentages.
- echo Version is \'"$version"\'. Version needed: \'1.6\'.
49
+ echo Version is \'"$version"\'. Version needed: \'"$min_version"\'.
50
exit 1
51
52
0 commit comments