diff options
author | Rémi Verschelde <remi@verschelde.fr> | 2015-03-05 15:38:58 +0100 |
---|---|---|
committer | Rémi Verschelde <remi@verschelde.fr> | 2015-03-05 15:41:04 +0100 |
commit | 49bdbb3c4b6e43640c5494db9daaa5bdcd2d57fe (patch) | |
tree | d359ca4be1030c86726954f1444c5bcadb465946 | |
parent | 83fd0b2258c365ba8ae8426f89ca99e710fe8057 (diff) | |
download | theme-49bdbb3c4b6e43640c5494db9daaa5bdcd2d57fe.tar theme-49bdbb3c4b6e43640c5494db9daaa5bdcd2d57fe.tar.gz theme-49bdbb3c4b6e43640c5494db9daaa5bdcd2d57fe.tar.bz2 theme-49bdbb3c4b6e43640c5494db9daaa5bdcd2d57fe.tar.xz theme-49bdbb3c4b6e43640c5494db9daaa5bdcd2d57fe.zip |
mga-bg-res 0.5
- xinit script: Adapt list of available resolutions to the new set.
-rw-r--r-- | mga-bg-res/NEWS | 3 | ||||
-rw-r--r-- | mga-bg-res/VERSION | 2 | ||||
-rwxr-xr-x | mga-bg-res/mga-bg-res.xinit | 4 |
3 files changed, 6 insertions, 3 deletions
diff --git a/mga-bg-res/NEWS b/mga-bg-res/NEWS index 427bf45..ae9e665 100644 --- a/mga-bg-res/NEWS +++ b/mga-bg-res/NEWS @@ -1,3 +1,6 @@ +Version 0.5 (2015-03-05): +- xinit script: Adapt list of available resolutions to the new set. + Version 0.4 (2015-03-05): - xinit script: Handle resolutions that are not directly provided in mageia-theme but have the same aspect ratio as provided images diff --git a/mga-bg-res/VERSION b/mga-bg-res/VERSION index be58634..2eb3c4f 100644 --- a/mga-bg-res/VERSION +++ b/mga-bg-res/VERSION @@ -1 +1 @@ -0.3 +0.5 diff --git a/mga-bg-res/mga-bg-res.xinit b/mga-bg-res/mga-bg-res.xinit index 558b1cd..89aa97a 100755 --- a/mga-bg-res/mga-bg-res.xinit +++ b/mga-bg-res/mga-bg-res.xinit @@ -13,8 +13,8 @@ if [ $(readlink "$bgpath/default.jpg") != "$bgpath/Mageia-Default-$res.jpg" ]; t ratio=$((1000*$width/$height)) found=false - declare -A refRatios=( ["1250"]="1280x1024" ["1333"]="2560x1920" ["1600"]="1920x1200" - ["1667"]="800x480" ["1707"]="1024x600" ["1778"]="1920x1080" ) + declare -A refRatios=( ["1250"]="1280x1024" ["1333"]="1600x1200" ["1600"]="1920x1200" + ["1667"]="1280x768" ["1707"]="1024x600" ["1778"]="1920x1080" ) for key in "${!refRatios[@]}"; do if [ $(($ratio % $key)) -lt 25 -o $(($key % $ratio)) -lt 25 ]; then res=${refRatios[$key]} |