Compare commits

...

3 Commits

Author SHA1 Message Date
11edc277ec Fixed typo - /root to home_dir
Some checks failed
buildbot/travis_bionic Build done.
2022-03-22 17:33:34 +05:30
c1b253f0fe Updated general changes
- Expects xfce to be installed and session is running
- Get property name before setting wallpaper because this property differs
2022-03-22 17:32:41 +05:30
7ea4b88901 Updated plank dockitems 2022-03-22 17:28:00 +05:30
10 changed files with 37 additions and 17 deletions

View File

@ -1,2 +0,0 @@
[PlankDockItemPreferences]
Launcher=file:///usr/share/applications/mate-calc.desktop

View File

@ -0,0 +1,2 @@
[PlankDockItemPreferences]
Launcher=file:///usr/share/applications/org.gnome.Calculator.desktop

View File

@ -0,0 +1,2 @@
[PlankDockItemPreferences]
Launcher=file:///usr/share/applications/org.gnome.Nautilus.desktop

View File

@ -0,0 +1,2 @@
[PlankDockItemPreferences]
Launcher=file:///usr/share/applications/org.gnome.Terminal.desktop

View File

@ -0,0 +1,2 @@
[PlankDockItemPreferences]
Launcher=file:///usr/share/applications/org.gnome.gedit.desktop

View File

@ -1,2 +0,0 @@
[PlankDockItemPreferences]
Launcher=file:///usr/share/applications/org.xfce.Parole.desktop

View File

@ -1,2 +0,0 @@
[PlankDockItemPreferences]
Launcher=file:///usr/share/applications/thunderbird.desktop

View File

@ -1,2 +0,0 @@
[PlankDockItemPreferences]
Launcher=file:///usr/share/applications/xfce4-terminal.desktop

View File

@ -1,11 +1,18 @@
---
- name: General Changes | Install xfce4
become: yes
apt:
name: xfce4
state: latest
update_cache: yes
- name: General Changes | Check if xfce session is running
shell:
cmd: "echo $DESKTOP_SESSION"
register: session_running
- name: General Changes | Debug session_running
debug:
var: session_running
- name: General Changes | Stop execution if xfce session is not running
fail:
msg: "xfce session is not running"
when: session_running.stdout and session_running.stdout != 'xfce'
- name: General Changes | Hide icons
xfconf:
@ -59,9 +66,22 @@
dest: "{{ home_directory }}/Pictures"
remote_src: yes
- name: General Changes | Get propery name for setting wallpaper
shell:
cmd: "xfconf-query -c xfce4-desktop -l | grep 'last-image$'"
register: wallpaper_property
- name: Debug | Debug wallpaper_property
debug:
var: wallpaper_property
- name: Debug | Debug wallpaper_property.stdout_lines
debug:
var: wallpaper_property.stdout_lines[0]
- name: General Changes | Change wallpaper
xfconf:
channel: "xfce4-desktop"
property: "/backdrop/screen0/monitor0/workspace0/last-image"
value_type: "string"
property: "{{ wallpaper_property.stdout_lines[0] }}"
value_type: string
value: "{{ home_directory }}/Pictures/wallpapers/2560x1440.png"

View File

@ -110,7 +110,7 @@
channel: xfce4-panel
property: /plugins/plugin-1/custom-menu-file
value_type: string
value: /root/.config/menu/xpple.menu
value: "{{ home_directory }}/.config/menu/xpple.menu"
- name: Xfce Panel | Modify applicationsmenu - plugin-1 - button-icon
xfconf: