Browse Source

xfce customizations and other stuff from kita-pro-desktop

master
parent
commit
e462722def
11 changed files with 575 additions and 3 deletions
  1. +27
    -0
      default/main.yaml
  2. +2
    -0
      files/xfce-customization/xdg/xfce4/kiosk/kioskrc
  3. +5
    -0
      files/xfce-customization/xdg/xfce4/panel/datetime-10.rc
  4. +170
    -0
      files/xfce-customization/xdg/xfce4/xfconf/xfce-perchannel-xml/xfce4-desktop.xml
  5. +38
    -0
      files/xfce-customization/xdg/xfce4/xfconf/xfce-perchannel-xml/xsettings.xml
  6. +7
    -3
      tasks/main.yaml
  7. +21
    -0
      tasks/xfce-customization.yaml
  8. +6
    -0
      templates/icon.theme.j2
  9. +66
    -0
      templates/xfce-customization/whiskermenu-1.rc.j2
  10. +146
    -0
      templates/xfce-customization/xfce4-panel.xml.j2
  11. +87
    -0
      templates/xfce-customization/xfwm4.xml.j2

+ 27
- 0
default/main.yaml View File

@@ -0,0 +1,27 @@
---
xfwm4_use_compositing: true

xfce_lock_panel: true
xfce_unlocked_users: root

application_starters:
- firefox-esr
- chromium
- xfce4-terminal
- xfce-display-settings

application_default_favorites:
- exo-file-manager
- gnome-search-tool
- firefox-esr
- chromium
- thunderbird
- libreoffice-writer
- libreoffice-calc
- libreoffice-impress
- libreoffice-draw
- xfce-display-settings
- xfce4-screenshooter
- fotowall
- org.gnome.gThumb
- simple-scan

+ 2
- 0
files/xfce-customization/xdg/xfce4/kiosk/kioskrc View File

@@ -0,0 +1,2 @@
[xfce4-session]
SaveSession=NONE

+ 5
- 0
files/xfce-customization/xdg/xfce4/panel/datetime-10.rc View File

@@ -0,0 +1,5 @@
layout=1
date_font=Sans 16
time_font=Sans Bold 28
date_format=%a, %d.%m.
time_format=%H:%M

+ 170
- 0
files/xfce-customization/xdg/xfce4/xfconf/xfce-perchannel-xml/xfce4-desktop.xml View File

@@ -0,0 +1,170 @@
<?xml version="1.0" encoding="UTF-8"?>

<channel name="xfce4-desktop" version="1.0">
<property name="backdrop" type="empty">
<property name="screen0" type="empty">
<property name="monitor0" type="empty">
<property name="brightness" type="empty"/>
<property name="color1" type="empty"/>
<property name="color2" type="empty"/>
<property name="color-style" type="empty"/>
<property name="image-path" type="empty"/>
<property name="image-show" type="empty"/>
<property name="last-image" type="empty"/>
<property name="last-single-image" type="empty"/>
<property name="workspace0" type="empty">
<property name="color-style" type="int" value="1"/>
<property name="color1" type="array">
<value type="uint" value="7936"/>
<value type="uint" value="28416"/>
<value type="uint" value="28183"/>
<value type="uint" value="65535"/>
</property>
<property name="color2" type="array">
<value type="uint" value="36616"/>
<value type="uint" value="26880"/>
<value type="uint" value="46848"/>
<value type="uint" value="65535"/>
</property>
<property name="image-style" type="int" value="5"/>
<property name="last-image" type="string" value="/opt/backgrounds/Silk.png"/>
</property>
<property name="workspace1" type="empty">
<property name="color-style" type="int" value="1"/>
<property name="color1" type="array">
<value type="uint" value="7936"/>
<value type="uint" value="28416"/>
<value type="uint" value="28183"/>
<value type="uint" value="65535"/>
</property>
<property name="color2" type="array">
<value type="uint" value="36616"/>
<value type="uint" value="26880"/>
<value type="uint" value="46848"/>
<value type="uint" value="65535"/>
</property>
<property name="image-style" type="int" value="5"/>
<property name="last-image" type="string" value="/opt/backgrounds/Silk.png"/>
</property>
<property name="workspace2" type="empty">
<property name="color-style" type="int" value="1"/>
<property name="color1" type="array">
<value type="uint" value="7936"/>
<value type="uint" value="28416"/>
<value type="uint" value="28183"/>
<value type="uint" value="65535"/>
</property>
<property name="color2" type="array">
<value type="uint" value="36616"/>
<value type="uint" value="26880"/>
<value type="uint" value="46848"/>
<value type="uint" value="65535"/>
</property>
<property name="image-style" type="int" value="5"/>
<property name="last-image" type="string" value="/opt/backgrounds/Silk.png"/>
</property>
<property name="workspace3" type="empty">
<property name="color-style" type="int" value="1"/>
<property name="color1" type="array">
<value type="uint" value="7936"/>
<value type="uint" value="28416"/>
<value type="uint" value="28183"/>
<value type="uint" value="65535"/>
</property>
<property name="color2" type="array">
<value type="uint" value="36616"/>
<value type="uint" value="26880"/>
<value type="uint" value="46848"/>
<value type="uint" value="65535"/>
</property>
<property name="image-style" type="int" value="5"/>
<property name="last-image" type="string" value="/opt/backgrounds/Silk.png"/>
</property>
</property>
<property name="monitor1" type="empty">
<property name="brightness" type="empty"/>
<property name="color1" type="empty"/>
<property name="color2" type="empty"/>
<property name="color-style" type="empty"/>
<property name="image-path" type="empty"/>
<property name="image-show" type="empty"/>
<property name="last-image" type="empty"/>
<property name="last-single-image" type="empty"/>
<property name="workspace0" type="empty">
<property name="color-style" type="int" value="1"/>
<property name="color1" type="array">
<value type="uint" value="7936"/>
<value type="uint" value="28416"/>
<value type="uint" value="28183"/>
<value type="uint" value="65535"/>
</property>
<property name="color2" type="array">
<value type="uint" value="36616"/>
<value type="uint" value="26880"/>
<value type="uint" value="46848"/>
<value type="uint" value="65535"/>
</property>
<property name="image-style" type="int" value="5"/>
<property name="last-image" type="string" value="/opt/backgrounds/Waves.png"/>
</property>
<property name="workspace1" type="empty">
<property name="color-style" type="int" value="1"/>
<property name="color1" type="array">
<value type="uint" value="7936"/>
<value type="uint" value="28416"/>
<value type="uint" value="28183"/>
<value type="uint" value="65535"/>
</property>
<property name="color2" type="array">
<value type="uint" value="36616"/>
<value type="uint" value="26880"/>
<value type="uint" value="46848"/>
<value type="uint" value="65535"/>
</property>
<property name="image-style" type="int" value="5"/>
<property name="last-image" type="string" value="/opt/backgrounds/Waves.png"/>
</property>
<property name="workspace2" type="empty">
<property name="color-style" type="int" value="1"/>
<property name="color1" type="array">
<value type="uint" value="7936"/>
<value type="uint" value="28416"/>
<value type="uint" value="28183"/>
<value type="uint" value="65535"/>
</property>
<property name="color2" type="array">
<value type="uint" value="36616"/>
<value type="uint" value="26880"/>
<value type="uint" value="46848"/>
<value type="uint" value="65535"/>
</property>
<property name="image-style" type="int" value="5"/>
<property name="last-image" type="string" value="/opt/backgrounds/Waves.png"/>
</property>
<property name="workspace3" type="empty">
<property name="color-style" type="int" value="1"/>
<property name="color1" type="array">
<value type="uint" value="7936"/>
<value type="uint" value="28416"/>
<value type="uint" value="28183"/>
<value type="uint" value="65535"/>
</property>
<property name="color2" type="array">
<value type="uint" value="36616"/>
<value type="uint" value="26880"/>
<value type="uint" value="46848"/>
<value type="uint" value="65535"/>
</property>
<property name="image-style" type="int" value="5"/>
<property name="last-image" type="string" value="/opt/backgrounds/Waves.png"/>
</property>
</property>
</property>
</property>
<property name="desktop-icons" type="empty">
<property name="file-icons" type="empty">
<property name="show-filesystem" type="bool" value="false"/>
</property>
<property name="icon-size" type="uint" value="64"/>
</property>
</channel>

+ 38
- 0
files/xfce-customization/xdg/xfce4/xfconf/xfce-perchannel-xml/xsettings.xml View File

@@ -0,0 +1,38 @@
<?xml version="1.0" encoding="UTF-8"?>

<channel name="xsettings" version="1.0">
<property name="Net" type="empty">
<property name="ThemeName" type="string" value="Adwaita"/>
<property name="IconThemeName" type="string" value="gnome-brave"/>
<property name="DoubleClickTime" type="empty"/>
<property name="DoubleClickDistance" type="empty"/>
<property name="DndDragThreshold" type="empty"/>
<property name="CursorBlink" type="empty"/>
<property name="CursorBlinkTime" type="empty"/>
<property name="SoundThemeName" type="empty"/>
<property name="EnableEventSounds" type="empty"/>
<property name="EnableInputFeedbackSounds" type="empty"/>
</property>
<property name="Xft" type="empty">
<property name="DPI" type="int" value="96"/>
<property name="Antialias" type="int" value="1"/>
<property name="Hinting" type="int" value="1"/>
<property name="HintStyle" type="string" value="hintfull"/>
<property name="RGBA" type="empty"/>
</property>
<property name="Gtk" type="empty">
<property name="CanChangeAccels" type="bool" value="false"/>
<property name="ColorPalette" type="empty"/>
<property name="FontName" type="string" value="Sans 12"/>
<property name="IconSizes" type="empty"/>
<property name="KeyThemeName" type="empty"/>
<property name="ToolbarStyle" type="string" value="icons"/>
<property name="ToolbarIconSize" type="empty"/>
<property name="MenuImages" type="bool" value="true"/>
<property name="ButtonImages" type="bool" value="true"/>
<property name="MenuBarAccel" type="empty"/>
<property name="CursorThemeName" type="string" value="DMZ-White"/>
<property name="CursorThemeSize" type="empty"/>
<property name="DecorationLayout" type="empty"/>
</property>
</channel>

+ 7
- 3
tasks/main.yaml View File

@@ -4,10 +4,14 @@
apt:
pkg: "{{ desktop_packages }}"

- import_role:
name: atom_editor

- name: ensure dunst package is absent for nicer notifications
apt:
pkg: dunst
state: absent

- name: default system icon theme
template:
src: icon.theme.j2
dest: /usr/share/icons/default/index.theme

- import_tasks: xfce-customization.yaml

+ 21
- 0
tasks/xfce-customization.yaml View File

@@ -0,0 +1,21 @@
---

- name: xdg config
copy:
src: xfce-customization/xdg/
dest: /etc/xdg/

- name: xfce panel config
template:
src: xfce-customization/xfce4-panel.xml.j2
dest: /etc/xdg/xfce4/xfconf/xfce-perchannel-xml/xfce4-panel.xml

- name: whiskermenu config
template:
src: xfce-customization/whiskermenu-1.rc.j2
dest: /etc/xdg/xfce4/panel/whiskermenu-1.rc

- name: xfwm4 config
template:
src: xfce-customization/xfwm4.xml.j2
dest: /etc/xdg/xfce4/xfconf/xfce-perchannel-xml/xfwm4.xml

+ 6
- 0
templates/icon.theme.j2 View File

@@ -0,0 +1,6 @@
{{ ansible_managed | comment }}

[Icon Theme]
Name=Default
Comment=Default Cursor Theme
Inherits=DMZ-White

+ 66
- 0
templates/xfce-customization/whiskermenu-1.rc.j2 View File

@@ -0,0 +1,66 @@
favorites={{ application_default_favorites | map('regex_replace', '(.*)', '\\1.desktop') | join(',') }}
recent=
button-title=Anwendungen
button-icon=applications-other
button-single-row=false
show-button-title=false
show-button-icon=true
launcher-show-name=false
launcher-show-description=true
launcher-show-tooltip=true
item-icon-size=3
hover-switch-category=false
category-icon-size=1
load-hierarchy=false
recent-items-max=10
favorites-in-recent=true
display-recent-default=false
position-search-alternate=false
position-commands-alternate=false
position-categories-alternate=false
menu-width=600
menu-height=800
menu-opacity=90
command-settings=xfce4-settings-manager
show-command-settings=true
command-lockscreen=xflock4
show-command-lockscreen=true
command-switchuser=gdmflexiserver
show-command-switchuser=false
command-logout=xfce4-session-logout
show-command-logout=true
command-menueditor=menulibre
show-command-menueditor=true
command-profile=mugshot
show-command-profile=false
search-actions=5

[action0]
name=Handbuchseiten
pattern=#
command=exo-open --launch TerminalEmulator man %s
regex=false

[action1]
name=Internetsuche
pattern=?
command=exo-open --launch WebBrowser https://www.google.de/search?q=%u
regex=false

[action2]
name=Wikipedia
pattern=!w
command=exo-open --launch WebBrowser https://de.wikipedia.org/wiki/%u
regex=false

[action3]
name=Im Terminal ausführen
pattern=!
command=exo-open --launch TerminalEmulator %s
regex=false

[action4]
name=Adresse öffnen
pattern=^(file|http|https):\\/\\/(.*)$
command=exo-open \\0
regex=true

+ 146
- 0
templates/xfce-customization/xfce4-panel.xml.j2 View File

@@ -0,0 +1,146 @@
<?xml version="1.0" encoding="UTF-8"?>

{% set i = 17 %}

<channel name="xfce4-panel" version="1.0" {% if xfce_lock_panel %} locked="*" unlocked="{{xfce_unlocked_users}}" {% endif %}>
<property name="configver" type="int" value="2"/>
<property name="panels" type="array">
<value type="int" value="1"/>
<property name="panel-1" type="empty">
<property name="position" type="string" value="p=12;x=0;y=997"/>
<property name="length" type="uint" value="100"/>
<property name="position-locked" type="bool" value="true"/>
<property name="size" type="uint" value="42"/>
<property name="plugin-ids" type="array">
<value type="int" value="1"/>
<value type="int" value="12"/>
{% for app in application_starters %}
<value type="int" value="{{ loop.index0 + i }}"/>
{% endfor %}
<value type="int" value="2"/>
<value type="int" value="3"/>
<value type="int" value="4"/>
<value type="int" value="5"/>
<value type="int" value="6"/>
<value type="int" value="14"/>
<value type="int" value="13"/>
<value type="int" value="15"/>
<value type="int" value="16"/>
<value type="int" value="8"/>
<value type="int" value="9"/>
<value type="int" value="7"/>
<value type="int" value="10"/>
<value type="int" value="11"/>
</property>
<property name="nrows" type="uint" value="2"/>
<property name="disable-struts" type="empty"/>
<property name="background-style" type="uint" value="1"/>
<property name="background-alpha" type="uint" value="50"/>
<property name="background-color" type="array">
<value type="uint" value="58982"/>
<value type="uint" value="58982"/>
<value type="uint" value="58982"/>
<value type="uint" value="65535"/>
</property>

</property>
</property>
<property name="plugins" type="empty">
<property name="plugin-1" type="string" value="whiskermenu"/>

<property name="plugin-12" type="string" value="places">
<property name="show-button-type" type="int" value="2"/>
<property name="show-icons" type="bool" value="true"/>
<property name="button-label" type="string" value=""/>
<property name="search-cmd" type="string" value="catfish"/>
<property name="mount-open-volumes" type="bool" value="true"/>
<property name="show-volumes" type="bool" value="true"/>
<property name="show-bookmarks" type="bool" value="true"/>
<property name="show-recent" type="bool" value="true"/>
<property name="show-recent-clear" type="bool" value="true"/>
</property>

{% for app in application_starters %}
<property name="plugin-{{ loop.index0 + i }}" type="string" value="launcher">
<property name="items" type="array">
<value type="string" value="{{app}}.desktop"/>
</property>
</property>
{% endfor %}

<property name="plugin-2" type="string" value="tasklist">
<property name="include-all-workspaces" type="bool" value="false"/>
<property name="include-all-monitors" type="bool" value="true"/>
<property name="grouping" type="uint" value="0"/>
<property name="middle-click" type="uint" value="1"/>
<property name="show-wireframes" type="bool" value="false"/>
<property name="flat-buttons" type="bool" value="true"/>
<property name="show-labels" type="bool" value="true"/>
</property>

<property name="plugin-3" type="string" value="separator">
<property name="expand" type="bool" value="true"/>
<property name="style" type="uint" value="0"/>
</property>

<property name="plugin-4" type="string" value="windowmenu">
<property name="style" type="uint" value="0"/>
<property name="workspace-actions" type="bool" value="true"/>
<property name="workspace-names" type="bool" value="true"/>
<property name="urgentcy-notification" type="bool" value="true"/>
<property name="all-workspaces" type="bool" value="true"/>
</property>

<property name="plugin-5" type="string" value="showdesktop">
<property name="digital-format" type="empty"/>
</property>

<property name="plugin-6" type="string" value="pager">
<property name="rows" type="uint" value="2"/>
</property>

<property name="plugin-14" type="string" value="xfce4-clipman-plugin"/>
<property name="plugin-13" type="string" value="xfce4-notes-plugin"/>

<property name="plugin-7" type="string" value="systray">
<property name="size-max" type="uint" value="32"/>
<property name="show-frame" type="bool" value="false"/>
</property>

<property name="plugin-15" type="string" value="launcher">
<property name="items" type="array">
<value type="string" value="xfce-display-settings.desktop"/>
</property>
</property>

<property name="plugin-16" type="string" value="launcher">
<property name="items" type="array">
<value type="string" value="xfce4-screenshooter.desktop"/>
</property>
</property>

<property name="plugin-8" type="string" value="pulseaudio">
<property name="enable-keyboard-shortcuts" type="bool" value="true"/>
</property>
<property name="plugin-9" type="string" value="power-manager-plugin"/>

<property name="plugin-10" type="string" value="datetime"/>

<property name="plugin-11" type="string" value="actions">
<property name="items" type="array">
<value type="string" value="-separator"/>
<value type="string" value="-logout-dialog"/>
<value type="string" value="-switch-user"/>
<value type="string" value="+logout"/>
<value type="string" value="+lock-screen"/>
<value type="string" value="-hibernate"/>
<value type="string" value="-suspend"/>
<value type="string" value="-restart"/>
<value type="string" value="-shutdown"/>
</property>
<property name="appearance" type="uint" value="0"/>
<property name="invert-orientation" type="bool" value="true"/>
</property>

</property>
</channel>

+ 87
- 0
templates/xfce-customization/xfwm4.xml.j2 View File

@@ -0,0 +1,87 @@
<?xml version="1.0" encoding="UTF-8"?>

<channel name="xfwm4" version="1.0">
<property name="general" type="empty">
<property name="activate_action" type="string" value="bring"/>
<property name="borderless_maximize" type="bool" value="true"/>
<property name="box_move" type="bool" value="false"/>
<property name="box_resize" type="bool" value="false"/>
<property name="button_layout" type="string" value="O|HMC"/>
<property name="button_offset" type="int" value="0"/>
<property name="button_spacing" type="int" value="0"/>
<property name="click_to_focus" type="bool" value="true"/>
<property name="cycle_apps_only" type="bool" value="false"/>
<property name="cycle_draw_frame" type="bool" value="true"/>
<property name="cycle_hidden" type="bool" value="true"/>
<property name="cycle_minimum" type="bool" value="true"/>
<property name="cycle_preview" type="bool" value="true"/>
<property name="cycle_tabwin_mode" type="int" value="0"/>
<property name="cycle_workspaces" type="bool" value="false"/>
<property name="double_click_action" type="string" value="maximize"/>
<property name="double_click_distance" type="int" value="5"/>
<property name="double_click_time" type="int" value="250"/>
<property name="easy_click" type="string" value="Alt"/>
<property name="focus_delay" type="int" value="250"/>
<property name="focus_hint" type="bool" value="true"/>
<property name="focus_new" type="bool" value="true"/>
<property name="frame_opacity" type="int" value="100"/>
<property name="full_width_title" type="bool" value="true"/>
<property name="horiz_scroll_opacity" type="bool" value="false"/>
<property name="inactive_opacity" type="int" value="100"/>
<property name="maximized_offset" type="int" value="0"/>
<property name="mousewheel_rollup" type="bool" value="true"/>
<property name="move_opacity" type="int" value="100"/>
<property name="placement_mode" type="string" value="center"/>
<property name="placement_ratio" type="int" value="20"/>
<property name="popup_opacity" type="int" value="100"/>
<property name="prevent_focus_stealing" type="bool" value="false"/>
<property name="raise_delay" type="int" value="250"/>
<property name="raise_on_click" type="bool" value="true"/>
<property name="raise_on_focus" type="bool" value="false"/>
<property name="raise_with_any_button" type="bool" value="true"/>
<property name="repeat_urgent_blink" type="bool" value="false"/>
<property name="resize_opacity" type="int" value="100"/>
<property name="scroll_workspaces" type="bool" value="true"/>
<property name="shadow_delta_height" type="int" value="0"/>
<property name="shadow_delta_width" type="int" value="0"/>
<property name="shadow_delta_x" type="int" value="0"/>
<property name="shadow_delta_y" type="int" value="-3"/>
<property name="shadow_opacity" type="int" value="50"/>
<property name="show_app_icon" type="bool" value="false"/>
<property name="show_dock_shadow" type="bool" value="true"/>
<property name="show_frame_shadow" type="bool" value="true"/>
<property name="show_popup_shadow" type="bool" value="false"/>
<property name="snap_resist" type="bool" value="false"/>
<property name="snap_to_border" type="bool" value="true"/>
<property name="snap_to_windows" type="bool" value="false"/>
<property name="snap_width" type="int" value="10"/>
<property name="sync_to_vblank" type="bool" value="false"/>
<property name="theme" type="string" value="Kokodi"/>
<property name="tile_on_move" type="bool" value="true"/>
<property name="title_alignment" type="string" value="center"/>
<property name="title_font" type="string" value="Sans Bold 12"/>
<property name="title_horizontal_offset" type="int" value="0"/>
<property name="titleless_maximize" type="bool" value="false"/>
<property name="title_shadow_active" type="string" value="false"/>
<property name="title_shadow_inactive" type="string" value="false"/>
<property name="title_vertical_offset_active" type="int" value="0"/>
<property name="title_vertical_offset_inactive" type="int" value="0"/>
<property name="toggle_workspaces" type="bool" value="false"/>
<property name="unredirect_overlays" type="bool" value="true"/>
<property name="urgent_blink" type="bool" value="false"/>
<property name="use_compositing" type="bool" value="{{ xfwm4_use_compositing | ternary('true','false') }}"/>
<property name="workspace_count" type="int" value="4"/>
<property name="wrap_cycle" type="bool" value="true"/>
<property name="wrap_layout" type="bool" value="true"/>
<property name="wrap_resistance" type="int" value="10"/>
<property name="wrap_windows" type="bool" value="true"/>
<property name="wrap_workspaces" type="bool" value="false"/>
<property name="zoom_desktop" type="bool" value="true"/>
<property name="workspace_names" type="array">
<value type="string" value="Arbeitsfläche 1"/>
<value type="string" value="Arbeitsfläche 2"/>
<value type="string" value="Arbeitsfläche 3"/>
<value type="string" value="Arbeitsfläche 4"/>
</property>
</property>
</channel>