diff --git a/playbook/group_vars/all b/playbook/group_vars/all new file mode 100644 index 0000000..e69de29 diff --git a/playbook/hosts b/playbook/hosts new file mode 100644 index 0000000..2a2a56e --- /dev/null +++ b/playbook/hosts @@ -0,0 +1,2 @@ +[nodes] +node ansible_host=142.132.171.211 ansible_ssh_private_key_file=~/.ssh/id_rsa ansible_ssh_common_args='-o StrictHostKeyChecking=no' \ No newline at end of file diff --git a/playbook/roles/role-one/defaults/main.yml b/playbook/roles/role-one/defaults/main.yml new file mode 100644 index 0000000..0a61878 --- /dev/null +++ b/playbook/roles/role-one/defaults/main.yml @@ -0,0 +1,14 @@ +--- +update_xfce_bigsur_file_url: "https://www.opencode.net/lsteam/xfce-big-sur-setup-file/-/raw/master/update-xfce-bigsur.zip" + +whitesur_gtk_theme_git: https://github.com/vinceliuice/WhiteSur-gtk-theme.git +whitesur_icon_theme_git: https://github.com/vinceliuice/WhiteSur-icon-theme.git +whitesur_cursors_git: https://github.com/vinceliuice/WhiteSur-cursors.git + +xpple_menu_url: https://git.bitmessage.org/swapnil/customize-xfce-anisble/raw/branch/master/xpple_menu.zip + +web_greeter_git: https://github.com/Antergos/web-greeter.git + +lightdm_webkit2_theme_glorious_git: https://github.com/manilarome/lightdm-webkit2-theme-glorious.git + +picom_git: https://github.com/ibhagwan/picom.git \ No newline at end of file diff --git a/playbook/roles/role-one/tasks/conky.yml b/playbook/roles/role-one/tasks/conky.yml new file mode 100644 index 0000000..380c231 --- /dev/null +++ b/playbook/roles/role-one/tasks/conky.yml @@ -0,0 +1,25 @@ +--- + +- name: Conky | Install dependencies + apt: + name: + - conky-all + - jq + - curl +- name: Conky | Create ~/.conky directory + file: + path: /root/.conky + state: directory + +- name: Conky | Copy conky config + copy: + src: /root/Downloads/update-xfce-bigsur/conky/ + dest: /root/.conky + remote_src: yes + +- name: Conky | Add conky to startup + template: + src: conky.desktop + dest: "{{ autostart_path }}/conky.desktop" + owner: root + mode: '0644' diff --git a/playbook/roles/role-one/tasks/general-changes.yml b/playbook/roles/role-one/tasks/general-changes.yml new file mode 100644 index 0000000..b5fd7e4 --- /dev/null +++ b/playbook/roles/role-one/tasks/general-changes.yml @@ -0,0 +1,53 @@ +--- + +- name: General Changes | Install xfce4 + apt: + name: xfce4 + state: latest + +- name: General Changes | Hide icons + xfconf: + channel: "xfce4-desktop" + property: "/desktop-icons/style" + value_type: "int" + value: 0 + +- name: General Changes | Update Window Manager | cycle_draw_frame + xfconf: + channel: xfwm4 + property: /general/cycle_draw_frame + value_type: bool + value: "false" + +- name: General Changes | Update Window Manager | placement_mode + xfconf: + channel: xfwm4 + property: /general/placement_mode + value_type: string + value: center + +- name: General Changes | Update Window Manager | show_dock_shadow + xfconf: + channel: xfwm4 + property: /general/show_dock_shadow + value_type: bool + value: "false" + +- name: General Changes | Download and Unzip update-xfce-bigsur.zip + unarchive: + src: "{{ update_xfce_bigsur_file_url }}" + dest: /root/Downloads + remote_src: yes + +- name: General Changes | Copy wallpapers to ~/Pictures + copy: + src: /root/Downloads/update-xfce-bigsur/wallpapers + dest: /root/Pictures + remote_src: yes + +- name: General Changes | Change wallpaper + xfconf: + channel: "xfce4-desktop" + property: "/backdrop/screen0/monitorscreen/workspace0/last-image" + value_type: "string" + value: "/root/Pictures/wallpapers/Yosemite.png" diff --git a/playbook/roles/role-one/tasks/global-menu.yml b/playbook/roles/role-one/tasks/global-menu.yml new file mode 100644 index 0000000..6d20c57 --- /dev/null +++ b/playbook/roles/role-one/tasks/global-menu.yml @@ -0,0 +1,32 @@ +--- + +- name: Global menu | Install dependencies + apt: + name: + - vala-panel-appmenu-common + - bamfdaemon + - xfce4-appmenu-plugin + - unity-gtk-module-common + - unity-gtk2-module + - unity-gtk3-module + +- name: Global menu | Update settings | Modules + xfconf: + channel: xsettings + property: /Gtk/Modules + value_type: string + value: unity-gtk-module + +- name: Global menu | Update settings | ShellShowsMenubar + xfconf: + channel: xsettings + property: /Gtk/ShellShowsMenubar + value_type: bool + value: "true" + +- name: Global menu | Update settings | ShellShowsAppmenu + xfconf: + channel: xsettings + property: /Gtk/ShellShowsAppmenu + value_type: bool + value: "true" diff --git a/playbook/roles/role-one/tasks/lightdm-greeter.yml b/playbook/roles/role-one/tasks/lightdm-greeter.yml new file mode 100644 index 0000000..cafbd43 --- /dev/null +++ b/playbook/roles/role-one/tasks/lightdm-greeter.yml @@ -0,0 +1,46 @@ +--- + +- name: LightDM-Webkit2-Greeter | Install whither + pip: + name: whither + state: latest + +- name: LightDM-Webkit2-Greeter | Install dependencies + apt: + name: + - liblightdm-gobject-1-dev + - python3-gi + +- name: LightDM-Webkit2-Greeter | Clone web-greeter + git: + repo: "{{ web_greeter_git }}" + dest: /tmp/greeter + +- name: LightDM-Webkit2-Greeter | Install web-greeter + shell: + cmd: "cd /tmp/greeter && make install" + +- name: LightDM-Webkit2-Greeter | Clone lightdm-webkit2-theme-glorious + git: + repo: "{{ lightdm_webkit2_theme_glorious_git }}" + dest: /usr/share/lightdm-webkit/themes/glorious + +- name: LightDM-Webkit2-Greeter | Place lightdm.conf + template: + src: lightdm.conf + dest: "{{ lightdm_path }}/lightdm.conf" + owner: root + mode: '0644' + +- name: LightDM-Webkit2-Greeter | Place web-greeter.yml + template: + src: web-greeter.yml + dest: "{{ lightdm_path }}/web-greeter.yml" + owner: root + mode: '0644' + +- name: LightDM-Webkit2-Greeter | Copy wallpapers + copy: + src: /root/Pictures/wallpapers + dest: /usr/share/backgrounds + remote_src: yes diff --git a/playbook/roles/role-one/tasks/main.yml b/playbook/roles/role-one/tasks/main.yml new file mode 100644 index 0000000..979553f --- /dev/null +++ b/playbook/roles/role-one/tasks/main.yml @@ -0,0 +1,21 @@ +--- + +- include_tasks: general-changes.yml + +- include_tasks: theme-icon-cursor-font.yml + +- include_tasks: global-menu.yml + +- include_tasks: xfce-panel-menu.yml + +- include_tasks: xfce-panel-plugins.yml + +- include_tasks: plank-dock.yml + +- include_tasks: rofi-launcher.yml + +- include_tasks: conky.yml + +- include_tasks: lightdm-greeter.yml + +- include_tasks: picom-compositor.yml \ No newline at end of file diff --git a/playbook/roles/role-one/tasks/picom-compositor.yml b/playbook/roles/role-one/tasks/picom-compositor.yml new file mode 100644 index 0000000..9349a27 --- /dev/null +++ b/playbook/roles/role-one/tasks/picom-compositor.yml @@ -0,0 +1,34 @@ +--- + +- name: Picom | Install dependencies + apt: + name: "{{ picom_dependency }}" + state: present + +- name: Picom | Clone picom repository + git: + repo: "{{ picom_git }}" + dest: /tmp/picom + recursive: yes + +- name: Picom | Build and Install picom + shell: "cd /tmp/picom && meson --buildtype=release . build && ninja -C build && sudo ninja -C build install" + +- name: Picom | Copy picom config + copy: + src: /root/Downloads/update-xfce-bigsur/picom + dest: /root/.config/ + remote_src: yes + +- name: Picom | Add picom to startup + copy: + src: /root/.config/picom/picom.desktop + dest: /root/.config/autostart/ + remote_src: yes + +- name: Picom | Disable compositing + xfconf: + channel: xfwm4 + property: /general/use_compositing + value_type: bool + value: "false" diff --git a/playbook/roles/role-one/tasks/plank-dock.yml b/playbook/roles/role-one/tasks/plank-dock.yml new file mode 100644 index 0000000..479b7a5 --- /dev/null +++ b/playbook/roles/role-one/tasks/plank-dock.yml @@ -0,0 +1,111 @@ +--- + +- name: Plank Dock | Install plank dock + apt: + name: + - plank + state: latest + +- name: Plank Dock | Copy plank themes + copy: + src: /root/Downloads/WhiteSur-gtk-theme/src/other/plank/ + dest: /root/.local/share/plank/themes/ + remote_src: yes + +- name: Plank Dock | Remove panel-2 + xfconf: + channel: xfce4-panel + property: /panels + value_type: int + value: [1] + force_array: yes + +- name: Plank Dock | Copy icons + copy: + src: /root/Downloads/update-xfce-bigsur/icons/launchpad.svg + dest: /root/.local/share/icons/ + remote_src: yes + +- name: Plank Dock | Ensure that plank_dock_launcher_path exists + file: + path: "{{ plank_dock_launcher_path }}" + state: directory + +- name: Plank Dock | Remove all *.dockitem files + shell: + cmd: "rm -f {{ plank_dock_launcher_path }}/*.dockitem" + +- name: Plank Dock | Add launchpad.dockitem to dock + template: + src: launchpad.dockitem + dest: "{{ plank_dock_launcher_path }}/launchpad.dockitem" + owner: root + mode: '0644' + +- name: Plank Dock | Add thunar.dockitem to dock + template: + src: thunar.dockitem + dest: "{{ plank_dock_launcher_path }}/thunar.dockitem" + owner: root + mode: '0644' + +- name: Plank Dock | Add org.xfce.Parole.dockitem to dock + template: + src: org.xfce.Parole.dockitem + dest: "{{ plank_dock_launcher_path }}/org.xfce.Parole.dockitem" + owner: root + mode: '0644' + +- name: Plank Dock | Add thunderbird.dockitem to dock + template: + src: thunderbird.dockitem + dest: "{{ plank_dock_launcher_path }}/thunderbird.dockitem" + owner: root + mode: '0644' + +- name: Plank Dock | Add firefox.dockitem to dock + template: + src: firefox.dockitem + dest: "{{ plank_dock_launcher_path }}/firefox.dockitem" + owner: root + mode: '0644' + +- name: Plank Dock | Add xfce4-terminal.dockitem to dock + template: + src: xfce4-terminal.dockitem + dest: "{{ plank_dock_launcher_path }}/xfce4-terminal.dockitem" + owner: root + mode: '0644' + +- name: Plank Dock | Add mate-calc.dockitem to dock + template: + src: mate-calc.dockitem + dest: "{{ plank_dock_launcher_path }}/mate-calc.dockitem" + owner: root + mode: '0644' + +- name: Plank Dock | Add desktop.dockitem to dock + template: + src: desktop.dockitem + dest: "{{ plank_dock_launcher_path }}/desktop.dockitem" + owner: root + mode: '0644' + +- name: Plank Dock | Add trash.dockitem to dock + template: + src: trash.dockitem + dest: "{{ plank_dock_launcher_path }}/trash.dockitem" + owner: root + mode: '0644' + +- name: Plank Dock | Ensure autostart directory exists + file: + path: "{{ autostart_path }}" + state: directory + +- name: Plank Dock | Add plank to autostart + template: + src: plank.desktop + dest: "{{ autostart_path }}/plank.desktop" + owner: root + mode: '0644' diff --git a/playbook/roles/role-one/tasks/rofi-launcher.yml b/playbook/roles/role-one/tasks/rofi-launcher.yml new file mode 100644 index 0000000..0f5476a --- /dev/null +++ b/playbook/roles/role-one/tasks/rofi-launcher.yml @@ -0,0 +1,12 @@ +--- + +- name: Rofi Launcher | Install dependencies + apt: + name: + - rofi + +- name: Rofi Launcher | Copy rofi config + copy: + src: /root/Downloads/update-xfce-bigsur/rofi + dest: /root/.config/ + remote_src: yes diff --git a/playbook/roles/role-one/tasks/theme-icon-cursor-font.yml b/playbook/roles/role-one/tasks/theme-icon-cursor-font.yml new file mode 100644 index 0000000..21df3f3 --- /dev/null +++ b/playbook/roles/role-one/tasks/theme-icon-cursor-font.yml @@ -0,0 +1,94 @@ +--- + +- name: Theme-icons-cursor-fonts | install dependencies + apt: + name: + - gtk2-engines-murrine + - sassc + +- name: Theme-icons-cursor-fonts | clone WhiteSur-gtk-theme + git: + repo: "{{ whitesur_gtk_theme_git }}" + dest: /root/Downloads/WhiteSur-gtk-theme + +- name: Theme-icons-cursor-fonts | Install WhiteSur-gtk-theme + shell: + cmd: "cd /root/Downloads/WhiteSur-gtk-theme && ./install.sh -c dark -c light" + +- name: Theme-icons-cursor-fonts | clone WhiteSur-icon-theme + git: + repo: "{{ whitesur_icon_theme_git }}" + dest: /root/Downloads/WhiteSur-icon-theme + +- name: Theme-icons-cursor-fonts | Install WhiteSur-icon-theme + shell: + cmd: "cd /root/Downloads/WhiteSur-icon-theme && ./install.sh" + +- name: Theme-icons-cursor-fonts | clone WhiteSur-cursors + git: + repo: "{{ whitesur_cursors_git }}" + dest: /root/Downloads/WhiteSur-cursors + +- name: Theme-icons-cursor-fonts | Install WhiteSur-cursors + shell: + cmd: "cd /root/Downloads/WhiteSur-cursors && ./install.sh" + +- name: Theme-icons-cursor-fonts | Create ~/.fonts directory + file: + path: /root/.fonts + state: directory + +- name: Theme-icons-cursor-fonts | copy fonts + copy: + src: /root/Downloads/update-xfce-bigsur/fonts/ + dest: /root/.fonts + remote_src: yes + +- name: Theme-icons-cursor-fonts | Update settings Theme + xfconf: + channel: xsettings + property: /Net/ThemeName + value_type: string + value: WhiteSur-dark + +- name: Theme-icons-cursor-fonts | Update settings Icon Theme + xfconf: + channel: xsettings + property: /Net/IconThemeName + value_type: string + value: WhiteSur-dark + +- name: Theme-icons-cursor-fonts | Update settings Font + xfconf: + channel: xsettings + property: /Gtk/FontName + value_type: string + value: "San Francisco Display 10" + +- name: Theme-icons-cursor-fonts | Update settings Monospace Font + xfconf: + channel: xsettings + property: /Gtk/MonospaceFontName + value_type: string + value: "Iosevka Term 10" + +- name: Theme-icons-cursor-fonts | Update general Theme + xfconf: + channel: xfwm4 + property: /general/theme + value_type: string + value: WhiteSur-dark + +- name: Theme-icons-cursor-fonts | Update general Button Layout + xfconf: + channel: xfwm4 + property: /general/button_layout + value_type: string + value: "CHM|" + +- name: Theme-icons-cursor-fonts | Update general Title Font + xfconf: + channel: xfwm4 + property: /general/title_font + value_type: string + value: "San Francisco Display Medium 9" diff --git a/playbook/roles/role-one/tasks/xfce-panel-menu.yml b/playbook/roles/role-one/tasks/xfce-panel-menu.yml new file mode 100644 index 0000000..b860a2a --- /dev/null +++ b/playbook/roles/role-one/tasks/xfce-panel-menu.yml @@ -0,0 +1,34 @@ +--- + +- name: Xfce Pannel | Xpple Menu - Create directory to store xpple menu + file: + path: /root/Downloads/xpple_menu/ + state: directory + +- name: Xfce Pannel | Xpple Menu - Download and Unzip + unarchive: + src: "{{ xpple_menu_url }}" + dest: /root/Downloads/xpple_menu/ + remote_src: yes + +- name: Xfce Pannel | Xpple Menu - Ensure that applications directory exists + file: + path: /root/.local/share/applications/ + state: directory + +- name: Xfce Pannel | Xpple Menu - Copy applications + copy: + src: /root/Downloads/xpple_menu/applications/ + dest: /root/.local/share/applications/ + remote_src: yes + +- name: Xfce Pannel | Xpple Menu - Create ./config/menu/ directory + file: + path: /root/.config/menu/ + state: directory + +- name: Xfce Pannel | Xpple Menu - Copy xpple.menu + copy: + src: /root/Downloads/xpple_menu/xpple.menu + dest: /root/.config/menu/ + remote_src: yes diff --git a/playbook/roles/role-one/tasks/xfce-panel-plugins.yml b/playbook/roles/role-one/tasks/xfce-panel-plugins.yml new file mode 100644 index 0000000..805ce8f --- /dev/null +++ b/playbook/roles/role-one/tasks/xfce-panel-plugins.yml @@ -0,0 +1,148 @@ +--- + +- name: Xfce Panel | Add separator - plugin-26 + xfconf: + channel: xfce4-panel + property: /plugins/plugin-26 + value_type: string + value: separator + +- name: Xfce Panel | Modify separator - plugin-26 + xfconf: + channel: xfce4-panel + property: /plugins/plugin-26/style + value_type: uint + value: 0 + +- name: Xfce Panel | Add separator - plugin-27 + xfconf: + channel: xfce4-panel + property: /plugins/plugin-27 + value_type: string + value: separator + +- name: Xfce Panel | Modify separator - plugin-27 + xfconf: + channel: xfce4-panel + property: /plugins/plugin-27/style + value_type: uint + value: 0 + +- name: Xfce Panel | Modify separator - plugin-3 + xfconf: + channel: xfce4-panel + property: /plugins/plugin-3/expand + value_type: bool + value: "false" + +- name: Xfce Panel | Add keyboard Layout - plugin-28 + xfconf: + channel: xfce4-panel + property: /plugins/plugin-28 + value_type: string + value: xkb + +- name: Xfce Panel | Modify keyboard - plugin-28 - display-type + xfconf: + channel: xfce4-panel + property: /plugins/plugin-28/display-type + value_type: uint + value: 1 + +- name: Xfce Panel | Modify keyboard - plugin-28 - display-name + xfconf: + channel: xfce4-panel + property: /plugins/plugin-28/display-name + value_type: uint + value: 1 + +- name: Xfce Panel | Modify keyboard - plugin-28 - display-scale + xfconf: + channel: xfce4-panel + property: /plugins/plugin-28/display-scale + value_type: uint + value: 50 + +- name: Xfce Panel | Modify keyboard - plugin-28 - group-policy + xfconf: + channel: xfce4-panel + property: /plugins/plugin-28/group-policy + value_type: uint + value: 0 + +- name: Xfce Panel | Modify keyboard - plugin-28 - display-tooltip-icon + xfconf: + channel: xfce4-panel + property: /plugins/plugin-28/display-tooltip-icon + value_type: bool + value: "true" + +- name: Xfce Panel | Add weather - plugin-29 + xfconf: + channel: xfce4-panel + property: /plugins/plugin-29 + value_type: string + value: weather + +- name: Xfce Panel | Add Appmenu - plugin-30 + xfconf: + channel: xfce4-panel + property: /plugins/plugin-30 + value_type: string + value: appmenu + +- name: Xfce Panel | Modify Appmenu - plugin-30 - use-bold-name + xfconf: + channel: xfce4-panel + property: /plugins/plugin-30/use-bold-name + value_type: bool + value: "true" + +- name: Xfce Panel | Modify applicationsmenu - plugin-1 - custom-menu + xfconf: + channel: xfce4-panel + property: /plugins/plugin-1/use-custom-menu + value_type: bool + value: "true" + +- name: Xfce Panel | Modify applicationsmenu - plugin-1 - custom-menu-file + xfconf: + channel: xfce4-panel + property: /plugins/plugin-1/custom-menu-file + value_type: string + value: /root/.config/menu/xpple.menu + +- name: Xfce Panel | Modify applicationsmenu - plugin-1 - button-icon + xfconf: + channel: xfce4-panel + property: /plugins/plugin-1/button-icon + value_type: string + value: start-here + +- name: Xfce Panel | Modify applicationsmenu - plugin-1 - show-button-title + xfconf: + channel: xfce4-panel + property: /plugins/plugin-1/show-button-title + value_type: bool + value: "false" + +- name: Xfce Panel | Modify Actions Buttons - plugin-14 - appearance + xfconf: + channel: xfce4-panel + property: /plugins/plugin-14/appearance + value_type: uint + value: 0 + +- name: Xfce Panel | Modify Actions Buttons - plugin-14 - style + xfconf: + channel: xfce4-panel + property: /plugins/plugin-14/items + value_type: string + value: ["-lock-screen", "-switch-user", "-separator", "-suspend", "-hibernate", "-hybrid-sleep", "-separator", "-shutdown", "-restart", "-separator", "+logout", "-logout-dialog"] + +- name: Xfce Panel | Rearrange Plugins + xfconf: + channel: xfce4-panel + property: /panels/panel-1/plugin-ids + value_type: int + value: [26,1,3,30,5,29,28,6,7,8,9,10,11,12,13,14,27] diff --git a/playbook/roles/role-one/templates/conky.desktop b/playbook/roles/role-one/templates/conky.desktop new file mode 100644 index 0000000..c3d92ec --- /dev/null +++ b/playbook/roles/role-one/templates/conky.desktop @@ -0,0 +1,9 @@ +[Desktop Entry] +Type=Application +Exec=/root/.conky/MX-CoreBlue/start_conky.sh +Hidden=false +NoDisplay=false +Name=conky +Comment=conky +X-GNOME-Autostart-Delay=2 +X-GNOME-Autostart-enabled=true \ No newline at end of file diff --git a/playbook/roles/role-one/templates/desktop.dockitem b/playbook/roles/role-one/templates/desktop.dockitem new file mode 100644 index 0000000..ef7b2ba --- /dev/null +++ b/playbook/roles/role-one/templates/desktop.dockitem @@ -0,0 +1,2 @@ +[PlankDockItemPreferences] +Launcher=docklet://desktop \ No newline at end of file diff --git a/playbook/roles/role-one/templates/firefox.dockitem b/playbook/roles/role-one/templates/firefox.dockitem new file mode 100644 index 0000000..b4d9740 --- /dev/null +++ b/playbook/roles/role-one/templates/firefox.dockitem @@ -0,0 +1,2 @@ +[PlankDockItemPreferences] +Launcher=file:///usr/share/applications/firefox.desktop \ No newline at end of file diff --git a/playbook/roles/role-one/templates/launchpad.dockitem b/playbook/roles/role-one/templates/launchpad.dockitem new file mode 100644 index 0000000..6ac285b --- /dev/null +++ b/playbook/roles/role-one/templates/launchpad.dockitem @@ -0,0 +1,2 @@ +[PlankDockItemPreferences] +Launcher=file:///root/.local/share/applications/Launchpad.desktop \ No newline at end of file diff --git a/playbook/roles/role-one/templates/lightdm.conf b/playbook/roles/role-one/templates/lightdm.conf new file mode 100644 index 0000000..7e3fa64 --- /dev/null +++ b/playbook/roles/role-one/templates/lightdm.conf @@ -0,0 +1,163 @@ +# +# General configuration +# +# start-default-seat = True to always start one seat if none are defined in the configuration +# greeter-user = User to run greeter as +# minimum-display-number = Minimum display number to use for X servers +# minimum-vt = First VT to run displays on +# lock-memory = True to prevent memory from being paged to disk +# user-authority-in-system-dir = True if session authority should be in the system location +# guest-account-script = Script to be run to setup guest account +# logind-check-graphical = True to on start seats that are marked as graphical by logind +# log-directory = Directory to log information to +# run-directory = Directory to put running state in +# cache-directory = Directory to cache to +# sessions-directory = Directory to find sessions +# remote-sessions-directory = Directory to find remote sessions +# greeters-directory = Directory to find greeters +# backup-logs = True to move add a .old suffix to old log files when opening new ones +# dbus-service = True if LightDM provides a D-Bus service to control it +# +[LightDM] +#start-default-seat=true +#greeter-user=lightdm +#minimum-display-number=0 +#minimum-vt=7 +#lock-memory=true +#user-authority-in-system-dir=false +#guest-account-script=guest-account +#logind-check-graphical=false +#log-directory=/var/log/lightdm +#run-directory=/var/run/lightdm +#cache-directory=/var/cache/lightdm +#sessions-directory=/usr/share/lightdm/sessions:/usr/share/xsessions:/usr/share/wayland-sessions +#remote-sessions-directory=/usr/share/lightdm/remote-sessions +#greeters-directory=$XDG_DATA_DIRS/lightdm/greeters:$XDG_DATA_DIRS/xgreeters +#backup-logs=true +#dbus-service=true + +# +# Seat configuration +# +# Seat configuration is matched against the seat name glob in the section, for example: +# [Seat:*] matches all seats and is applied first. +# [Seat:seat0] matches the seat named "seat0". +# [Seat:seat-thin-client*] matches all seats that have names that start with "seat-thin-client". +# +# type = Seat type (local, xremote) +# pam-service = PAM service to use for login +# pam-autologin-service = PAM service to use for autologin +# pam-greeter-service = PAM service to use for greeters +# xserver-command = X server command to run (can also contain arguments e.g. X -special-option) +# xmir-command = Xmir server command to run (can also contain arguments e.g. Xmir -special-option) +# xserver-config = Config file to pass to X server +# xserver-layout = Layout to pass to X server +# xserver-allow-tcp = True if TCP/IP connections are allowed to this X server +# xserver-share = True if the X server is shared for both greeter and session +# xserver-hostname = Hostname of X server (only for type=xremote) +# xserver-display-number = Display number of X server (only for type=xremote) +# xdmcp-manager = XDMCP manager to connect to (implies xserver-allow-tcp=true) +# xdmcp-port = XDMCP UDP/IP port to communicate on +# xdmcp-key = Authentication key to use for XDM-AUTHENTICATION-1 (stored in keys.conf) +# greeter-session = Session to load for greeter +# greeter-hide-users = True to hide the user list +# greeter-allow-guest = True if the greeter should show a guest login option +# greeter-show-manual-login = True if the greeter should offer a manual login option +# greeter-show-remote-login = True if the greeter should offer a remote login option +# user-session = Session to load for users +# allow-user-switching = True if allowed to switch users +# allow-guest = True if guest login is allowed +# guest-session = Session to load for guests (overrides user-session) +# session-wrapper = Wrapper script to run session with +# greeter-wrapper = Wrapper script to run greeter with +# guest-wrapper = Wrapper script to run guest sessions with +# display-setup-script = Script to run when starting a greeter session (runs as root) +# display-stopped-script = Script to run after stopping the display server (runs as root) +# greeter-setup-script = Script to run when starting a greeter (runs as root) +# session-setup-script = Script to run when starting a user session (runs as root) +# session-cleanup-script = Script to run when quitting a user session (runs as root) +# autologin-guest = True to log in as guest by default +# autologin-user = User to log in with by default (overrides autologin-guest) +# autologin-user-timeout = Number of seconds to wait before loading default user +# autologin-session = Session to load for automatic login (overrides user-session) +# autologin-in-background = True if autologin session should not be immediately activated +# exit-on-failure = True if the daemon should exit if this seat fails +# +[Seat:*] +#type=local +#pam-service=lightdm +#pam-autologin-service=lightdm-autologin +#pam-greeter-service=lightdm-greeter +#xserver-command=X +#xmir-command=Xmir +#xserver-config= +#xserver-layout= +#xserver-allow-tcp=false +#xserver-share=true +#xserver-hostname= +#xserver-display-number= +#xdmcp-manager= +#xdmcp-port=177 +#xdmcp-key= +greeter-session=web-greeter +#greeter-hide-users=false +#greeter-allow-guest=true +#greeter-show-manual-login=false +#greeter-show-remote-login=true +#user-session=default +#allow-user-switching=true +#allow-guest=true +#guest-session= +#session-wrapper=lightdm-session +#greeter-wrapper= +#guest-wrapper= +#display-setup-script= +#display-stopped-script= +#greeter-setup-script= +#session-setup-script= +#session-cleanup-script= +#autologin-guest=false +#autologin-user= +#autologin-user-timeout=0 +#autologin-in-background=false +#autologin-session= +#exit-on-failure=false + +# +# XDMCP Server configuration +# +# enabled = True if XDMCP connections should be allowed +# port = UDP/IP port to listen for connections on +# listen-address = Host/address to listen for XDMCP connections (use all addresses if not present) +# key = Authentication key to use for XDM-AUTHENTICATION-1 or blank to not use authentication (stored in keys.conf) +# hostname = Hostname to report to XDMCP clients (defaults to system hostname if unset) +# +# The authentication key is a 56 bit DES key specified in hex as 0xnnnnnnnnnnnnnn. Alternatively +# it can be a word and the first 7 characters are used as the key. +# +[XDMCPServer] +#enabled=false +#port=177 +#listen-address= +#key= +#hostname= + +# +# VNC Server configuration +# +# enabled = True if VNC connections should be allowed +# command = Command to run Xvnc server with +# port = TCP/IP port to listen for connections on +# listen-address = Host/address to listen for VNC connections (use all addresses if not present) +# width = Width of display to use +# height = Height of display to use +# depth = Color depth of display to use +# +[VNCServer] +#enabled=false +#command=Xvnc +#port=5900 +#listen-address= +#width=1024 +#height=768 +#depth=8 \ No newline at end of file diff --git a/playbook/roles/role-one/templates/mate-calc.dockitem b/playbook/roles/role-one/templates/mate-calc.dockitem new file mode 100644 index 0000000..a84e1af --- /dev/null +++ b/playbook/roles/role-one/templates/mate-calc.dockitem @@ -0,0 +1,2 @@ +[PlankDockItemPreferences] +Launcher=file:///usr/share/applications/mate-calc.desktop \ No newline at end of file diff --git a/playbook/roles/role-one/templates/org.xfce.Parole.dockitem b/playbook/roles/role-one/templates/org.xfce.Parole.dockitem new file mode 100644 index 0000000..9a1dacd --- /dev/null +++ b/playbook/roles/role-one/templates/org.xfce.Parole.dockitem @@ -0,0 +1,2 @@ +[PlankDockItemPreferences] +Launcher=file:///usr/share/applications/org.xfce.Parole.desktop \ No newline at end of file diff --git a/playbook/roles/role-one/templates/plank.desktop b/playbook/roles/role-one/templates/plank.desktop new file mode 100644 index 0000000..117ab0b --- /dev/null +++ b/playbook/roles/role-one/templates/plank.desktop @@ -0,0 +1,11 @@ +[Desktop Entry] +Type=Application +Exec=plank +Hidden=false +NoDisplay=false +Name[en_US]=plank +Name=plank +Comment[en_US]=plank +Comment=plank +X-GNOME-Autostart-Delay=2 +X-GNOME-Autostart-enabled=true \ No newline at end of file diff --git a/playbook/roles/role-one/templates/thunar.dockitem b/playbook/roles/role-one/templates/thunar.dockitem new file mode 100644 index 0000000..649d786 --- /dev/null +++ b/playbook/roles/role-one/templates/thunar.dockitem @@ -0,0 +1,2 @@ +[PlankDockItemPreferences] +Launcher=file:///usr/share/applications/thunar.desktop \ No newline at end of file diff --git a/playbook/roles/role-one/templates/thunderbird.dockitem b/playbook/roles/role-one/templates/thunderbird.dockitem new file mode 100644 index 0000000..f607006 --- /dev/null +++ b/playbook/roles/role-one/templates/thunderbird.dockitem @@ -0,0 +1,2 @@ +[PlankDockItemPreferences] +Launcher=file:///usr/share/applications/thunderbird.desktop \ No newline at end of file diff --git a/playbook/roles/role-one/templates/trash.dockitem b/playbook/roles/role-one/templates/trash.dockitem new file mode 100644 index 0000000..8626441 --- /dev/null +++ b/playbook/roles/role-one/templates/trash.dockitem @@ -0,0 +1,2 @@ +[PlankDockItemPreferences] +Launcher=docklet://trash \ No newline at end of file diff --git a/playbook/roles/role-one/templates/web-greeter.yml b/playbook/roles/role-one/templates/web-greeter.yml new file mode 100644 index 0000000..d362387 --- /dev/null +++ b/playbook/roles/role-one/templates/web-greeter.yml @@ -0,0 +1,33 @@ +# +# branding: +# background_images_dir: Path to directory that contains background images for use by themes. +# logo_image: Path to logo image for use by greeter themes. +# user_image: Default user image/avatar. This is used by themes when user has no .face image. +# +# NOTE: Paths must be accessible to the lightdm system user account (so they cannot be anywhere in /home) +# +branding: + background_images_dir: /usr/share/backgrounds + logo_image: /usr/share/web-greeter/themes/default/img/antergos-logo-user.png + user_image: /usr/share/web-greeter/themes/default/img/antergos.png + +# +# greeter: +# debug_mode: Enable debug mode for the greeter as well as greeter themes. +# detect_theme_errors: Provide an option to load a fallback theme when theme errors are detected. +# screensaver_timeout: Blank the screen after this many seconds of inactivity. +# secure_mode: Don't allow themes to make remote http requests. +# theme: Greeter theme to use. +# time_format: A moment.js format string so the greeter can generate localized time for display. +# time_language: Language to use when displaying the time or "auto" to use the system's language. +# +# NOTE: See moment.js documentation for format string options: http://momentjs.com/docs/#/displaying/format +# +greeter: + debug_mode: True + detect_theme_errors: True + screensaver_timeout: 300 + secure_mode: True + theme: glorious + time_format: LT + time_language: auto \ No newline at end of file diff --git a/playbook/roles/role-one/templates/xfce4-terminal.dockitem b/playbook/roles/role-one/templates/xfce4-terminal.dockitem new file mode 100644 index 0000000..9448282 --- /dev/null +++ b/playbook/roles/role-one/templates/xfce4-terminal.dockitem @@ -0,0 +1,2 @@ +[PlankDockItemPreferences] +Launcher=file:///usr/share/applications/xfce4-terminal.desktop \ No newline at end of file diff --git a/playbook/roles/role-one/vars/main.yml b/playbook/roles/role-one/vars/main.yml new file mode 100644 index 0000000..8c24b91 --- /dev/null +++ b/playbook/roles/role-one/vars/main.yml @@ -0,0 +1,34 @@ + +plank_dock_launcher_path: /root/.config/plank/dock1/launchers +autostart_path: /root/.config/autostart +lightdm_path: /etc/lightdm + +picom_dependency: + - cmake + - meson + - ninja-build + - git + - pkg-config + - asciidoc + - libxext-dev + - libxcb1-dev + - libxcb-damage0-dev + - libxcb-xfixes0-dev + - libxcb-shape0-dev + - libxcb-render-util0-dev + - libxcb-render0-dev + - libxcb-randr0-dev + - libxcb-composite0-dev + - libxcb-image0-dev + - libxcb-present-dev + - libxcb-xinerama0-dev + - libxcb-glx0-dev + - libpixman-1-dev + - libdbus-1-dev + - libconfig-dev + - libgl1-mesa-dev + - libpcre2-dev + - libevdev-dev + - uthash-dev + - libev-dev + - libx11-xcb-dev diff --git a/playbook/setup.yml b/playbook/setup.yml new file mode 100644 index 0000000..a3106ae --- /dev/null +++ b/playbook/setup.yml @@ -0,0 +1,7 @@ +--- + +- name: Apply role-one to all nodes + hosts: all + remote_user: root + roles: + - role-one diff --git a/readme.txt b/readme.txt index 9fd4564..b7e9afb 100644 --- a/readme.txt +++ b/readme.txt @@ -4,8 +4,8 @@ - use xfconf-query for most changes - Hide icons - - xfce4-desktop : "desktop-icons/style" -t "int" -s 0 OR iterare through all icons(in file-icons properties) and set value to false - + - xfce4-desktop : "desktop-icons/style" -t "int" -s 0 + - xfwm4 "general/cycle_draw_frame" type="bool" set to false "general/placement_mode" type="string" set to center "general/show_dock_shadow" type="bool" set to false @@ -33,11 +33,12 @@ - xsettings : "Net/ThemeName" type="string" set to "WhiteSur-dark" : "Net/IconThemeName" type="string" set to "WhiteSur-dark" - : "Gtk/FontName" type="string" set to "San Francisco Display Regular" (maybe? cant find other setting for font) - : How to set monospace one? + : "Gtk/FontName" type="string" set to "San Francisco Display 10" + : "Gtk/MonospaceFontName" type="string" set to "Iosevka Term 10" + - xfwm4 : "general/theme" type="string" set to "WhiteSur-dark" - : "general/button_layout" type="string" value="O|HMC" set to "CHM|" (need to test) . How to hide arrow buttons? - : "general/title_font" set to "San Francisco Display Medium" + : "general/button_layout" type="string" value="O|HMC" set to "CHM|" + : "general/title_font" set to "San Francisco Display Medium 9" - Global menu - sudo apt install vala-panel-appmenu-common bamfdaemon // xfce4-appmenu-plugin diff --git a/xpple_menu.zip b/xpple_menu.zip new file mode 100644 index 0000000..321ad26 Binary files /dev/null and b/xpple_menu.zip differ