From dea6ed6b6a9d8872f30c1dd38b7c43811b0aa38e Mon Sep 17 00:00:00 2001 From: Rodrigo Rosmaninho Date: Sat, 29 Sep 2018 15:41:22 +0100 Subject: [PATCH] Corrigir bug no wallpaper --- roles/common/keymap.sh | 6 +++++- roles/common/script.sh | 12 +++++++----- 2 files changed, 12 insertions(+), 6 deletions(-) diff --git a/roles/common/keymap.sh b/roles/common/keymap.sh index 6a18edc..b80b5cd 100644 --- a/roles/common/keymap.sh +++ b/roles/common/keymap.sh @@ -1 +1,5 @@ -setxkbmap pt \ No newline at end of file +# set keymap +setxkbmap pt; +# set wallpaper style to stretched +xfconf-query -c xfce4-desktop -p /backdrop/screen0/monitor0/image-style -s 3; +xfconf-query -c xfce4-desktop -p /backdrop/screen0/monitor0/workspace0/image-style -s 3; \ No newline at end of file diff --git a/roles/common/script.sh b/roles/common/script.sh index 98c08bd..9453319 100644 --- a/roles/common/script.sh +++ b/roles/common/script.sh @@ -24,11 +24,13 @@ fi # Set custom wallpaper # ############################ -cd /usr/share/xfce4/backdrops; -# Já não é preciso, visto que usamos o 'copy' do ansible -# wget http://glua.ua.pt/assets/img/ubuntu-glua-wallpaper.png; -mv xubuntu-bionic.png xubuntu-bionic-backup.png; -mv ubuntu-glua-wallpaper.png xubuntu-bionic.png; +if [ ! -f /usr/share/xfce4/backdrops/xubuntu-bionic-backup.png ]; then + cd /usr/share/xfce4/backdrops; + # Já não é preciso, visto que usamos o 'copy' do ansible + # wget http://glua.ua.pt/assets/img/ubuntu-glua-wallpaper.png; + mv xubuntu-bionic.png xubuntu-bionic-backup.png; + mv ubuntu-glua-wallpaper.png xubuntu-bionic.png; +fi ############################ # Set locale #