Moved non-template files to files/ directory
Some checks failed
buildbot/travis_bionic Build done.

- used home_directory variable instead of hardcoded /root as home
This commit is contained in:
swapnil 2022-03-15 11:12:43 +05:30
parent 3bddb0a8cc
commit 62ca6a6e26
29 changed files with 86 additions and 113 deletions

View File

@ -5,7 +5,7 @@ if [[ -r "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh" ]]
source "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh" source "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh"
fi fi
source /root/powerlevel10k/powerlevel10k.zsh-theme source ~/powerlevel10k/powerlevel10k.zsh-theme
# To customize prompt, run `p10k configure` or edit ~/.p10k.zsh. # To customize prompt, run `p10k configure` or edit ~/.p10k.zsh.
[[ ! -f ~/.p10k.zsh ]] || source ~/.p10k.zsh [[ ! -f ~/.p10k.zsh ]] || source ~/.p10k.zsh

View File

@ -1,10 +1,4 @@
--- ---
# - Installing Comice Control center
# - git clone https://github.com/libredeb/comice-control-center.git
# - sudo apt install python3 python3-dbus util-linux gsettings-desktop-schemas wireless-tools iproute2 alsa-utils python3-pip
# - cd comice-control-center/
# - pip3 install -r requirements.txt
# - ./comice-control-center
- name: Comice Control center | Install dependencies - name: Comice Control center | Install dependencies
apt: apt:
@ -16,17 +10,17 @@
- wireless-tools - wireless-tools
- iproute2 - iproute2
- alsa-utils - alsa-utils
- python3-pip
- name: Comice Control center | Clone git repository - name: Comice Control center | Clone git repository
git: git:
repo: "{{ comice_control_git }}" repo: "{{ comice_control_git }}"
dest: "{{ comice_control_git }}/Downloads/comice-control-center" dest: "{{ home_directory }}/Downloads/comice-control-center"
- name: Comice Control center | Install dependencies - name: Comice Control center | Install dependencies
pip3:
name:
- -r "{{ comice_control_git }}/Downloads/comice-control-center/requirements.txt"
- name: Comice Control center | Run script
shell: shell:
cmd: "cd {{ comice_control_git }}/Downloads/comice-control-center && ./comice-control-center" cmd: "cd {{ home_directory }}/Downloads/comice-control-center && pip3 install -r requirements.txt"
# - name: Comice Control center | Run script
# shell:
# cmd: "cd {{ home_directory }}/Downloads/comice-control-center && ./comice-control-center"

View File

@ -8,13 +8,13 @@
- curl - curl
- name: Conky | Create ~/.conky directory - name: Conky | Create ~/.conky directory
file: file:
path: /root/.conky path: "{{ home_directory }}/.conky"
state: directory state: directory
- name: Conky | Copy conky config - name: Conky | Copy conky config
copy: copy:
src: /root/Downloads/update-xfce-bigsur/conky/ src: "{{ home_directory }}/Downloads/update-xfce-bigsur/conky/"
dest: /root/.conky dest: "{{ home_directory }}/.conky"
remote_src: yes remote_src: yes
- name: Conky | Add conky to startup - name: Conky | Add conky to startup

View File

@ -1,7 +1,9 @@
--- ---
- name: Customize Firefox | Close firefox if it's running - name: Customize Firefox | Close firefox if it's running
command: pkill firefox shell:
cmd: "pkill firefox"
ignore_errors: true
- name: Customize Firefox | Run Firefox Tweaks - name: Customize Firefox | Run Firefox Tweaks
shell: "cd /root/Downloads/WhiteSur-gtk-theme/ && ./tweaks.sh -f" shell: "cd {{ home_directory }}/Downloads/WhiteSur-gtk-theme/ && ./tweaks.sh -f"

View File

@ -12,21 +12,21 @@
value_type: "int" value_type: "int"
value: 0 value: 0
- name: General Changes | Update Window Manager | cycle_draw_frame - name: General Changes | Update Window Manager - cycle_draw_frame
xfconf: xfconf:
channel: xfwm4 channel: xfwm4
property: /general/cycle_draw_frame property: /general/cycle_draw_frame
value_type: bool value_type: bool
value: "false" value: "false"
- name: General Changes | Update Window Manager | placement_mode - name: General Changes | Update Window Manager - placement_mode
xfconf: xfconf:
channel: xfwm4 channel: xfwm4
property: /general/placement_mode property: /general/placement_mode
value_type: string value_type: string
value: center value: center
- name: General Changes | Update Window Manager | show_dock_shadow - name: General Changes | Update Window Manager - show_dock_shadow
xfconf: xfconf:
channel: xfwm4 channel: xfwm4
property: /general/show_dock_shadow property: /general/show_dock_shadow
@ -36,13 +36,13 @@
- name: General Changes | Download and Unzip update-xfce-bigsur.zip - name: General Changes | Download and Unzip update-xfce-bigsur.zip
unarchive: unarchive:
src: "{{ update_xfce_bigsur_file_url }}" src: "{{ update_xfce_bigsur_file_url }}"
dest: /root/Downloads dest: "{{ home_directory }}/Downloads"
remote_src: yes remote_src: yes
- name: General Changes | Copy wallpapers to ~/Pictures - name: General Changes | Copy wallpapers to ~/Pictures
copy: copy:
src: /root/Downloads/update-xfce-bigsur/wallpapers src: "{{ home_directory }}/Downloads/update-xfce-bigsur/wallpapers"
dest: /root/Pictures dest: "{{ home_directory }}/Pictures"
remote_src: yes remote_src: yes
- name: General Changes | Change wallpaper - name: General Changes | Change wallpaper
@ -50,4 +50,4 @@
channel: "xfce4-desktop" channel: "xfce4-desktop"
property: "/backdrop/screen0/monitorscreen/workspace0/last-image" property: "/backdrop/screen0/monitorscreen/workspace0/last-image"
value_type: "string" value_type: "string"
value: "/root/Pictures/wallpapers/Yosemite.png" value: "{{ home_directory }}/Pictures/wallpapers/Yosemite.png"

View File

@ -26,21 +26,17 @@
dest: /usr/share/lightdm-webkit/themes/glorious dest: /usr/share/lightdm-webkit/themes/glorious
- name: LightDM-Webkit2-Greeter | Place lightdm.conf - name: LightDM-Webkit2-Greeter | Place lightdm.conf
template: copy:
src: lightdm.conf src: lightdm.conf
dest: "{{ lightdm_path }}/lightdm.conf" dest: "{{ lightdm_path }}/lightdm.conf"
owner: root
mode: '0644'
- name: LightDM-Webkit2-Greeter | Place web-greeter.yml - name: LightDM-Webkit2-Greeter | Place web-greeter.yml
template: copy:
src: web-greeter.yml src: web-greeter.yml
dest: "{{ lightdm_path }}/web-greeter.yml" dest: "{{ lightdm_path }}/web-greeter.yml"
owner: root
mode: '0644'
- name: LightDM-Webkit2-Greeter | Copy wallpapers - name: LightDM-Webkit2-Greeter | Copy wallpapers
copy: copy:
src: /root/Pictures/wallpapers src: "{{ home_directory }}/Pictures/wallpapers"
dest: /usr/share/backgrounds dest: /usr/share/backgrounds
remote_src: yes remote_src: yes

View File

@ -1,31 +1,31 @@
--- ---
- include_tasks: general-changes.yml # - include_tasks: general-changes.yml
- include_tasks: theme-icon-cursor-font.yml # - include_tasks: theme-icon-cursor-font.yml
- include_tasks: global-menu.yml # - include_tasks: global-menu.yml
- include_tasks: xfce-panel-menu.yml # - include_tasks: xfce-panel-menu.yml
- include_tasks: xfce-panel-plugins.yml # - include_tasks: xfce-panel-plugins.yml
- include_tasks: plank-dock.yml # - include_tasks: plank-dock.yml
- include_tasks: rofi-launcher.yml # - include_tasks: rofi-launcher.yml
- include_tasks: ulauncher.yml # - include_tasks: ulauncher.yml
- include_tasks: conky.yml # - include_tasks: conky.yml
- include_tasks: lightdm-greeter.yml # - include_tasks: lightdm-greeter.yml
- include_tasks: picom-compositor.yml # - include_tasks: picom-compositor.yml
- include_tasks: customize-firefox.yml # - include_tasks: customize-firefox.yml
- include_tasks: xfce-terminal.yml # - include_tasks: xfce-terminal.yml
- include_tasks: file-manager.yml # - include_tasks: file-manager.yml
- include_tasks: comice-control.yml - include_tasks: comice-control.yml

View File

@ -16,14 +16,14 @@
- name: Picom | Copy picom config - name: Picom | Copy picom config
copy: copy:
src: /root/Downloads/update-xfce-bigsur/picom src: "{{ home_directory }}/Downloads/update-xfce-bigsur/picom"
dest: /root/.config/ dest: "{{ home_directory }}/.config/"
remote_src: yes remote_src: yes
- name: Picom | Add picom to startup - name: Picom | Add picom to startup
copy: copy:
src: /root/.config/picom/picom.desktop src: "{{ home_directory }}/.config/picom/picom.desktop"
dest: /root/.config/autostart/ dest: "{{ home_directory }}/.config/autostart/"
remote_src: yes remote_src: yes
- name: Picom | Disable compositing - name: Picom | Disable compositing

View File

@ -8,8 +8,8 @@
- name: Plank Dock | Copy plank themes - name: Plank Dock | Copy plank themes
copy: copy:
src: /root/Downloads/WhiteSur-gtk-theme/src/other/plank/ src: "{{ home_directory }}/Downloads/WhiteSur-gtk-theme/src/other/plank/"
dest: /root/.local/share/plank/themes/ dest: "{{ home_directory }}/.local/share/plank/themes/"
remote_src: yes remote_src: yes
- name: Plank Dock | Remove panel-2 - name: Plank Dock | Remove panel-2
@ -20,10 +20,10 @@
value: [1] value: [1]
force_array: yes force_array: yes
- name: Plank Dock | Copy icons - name: Plank Dock | Copy launchpad icon
copy: copy:
src: /root/Downloads/update-xfce-bigsur/icons/launchpad.svg src: "{{ home_directory }}/Downloads/update-xfce-bigsur/icons/launchpad.svg"
dest: /root/.local/share/icons/ dest: "{{ home_directory }}/.local/share/icons/"
remote_src: yes remote_src: yes
- name: Plank Dock | Ensure that plank_dock_launcher_path exists - name: Plank Dock | Ensure that plank_dock_launcher_path exists
@ -43,60 +43,44 @@
mode: '0644' mode: '0644'
- name: Plank Dock | Add thunar.dockitem to dock - name: Plank Dock | Add thunar.dockitem to dock
template: copy:
src: thunar.dockitem src: thunar.dockitem
dest: "{{ plank_dock_launcher_path }}/thunar.dockitem" dest: "{{ plank_dock_launcher_path }}/thunar.dockitem"
owner: root
mode: '0644'
- name: Plank Dock | Add org.xfce.Parole.dockitem to dock - name: Plank Dock | Add org.xfce.Parole.dockitem to dock
template: copy:
src: org.xfce.Parole.dockitem src: org.xfce.Parole.dockitem
dest: "{{ plank_dock_launcher_path }}/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 - name: Plank Dock | Add thunderbird.dockitem to dock
template: copy:
src: thunderbird.dockitem src: thunderbird.dockitem
dest: "{{ plank_dock_launcher_path }}/thunderbird.dockitem" dest: "{{ plank_dock_launcher_path }}/thunderbird.dockitem"
owner: root
mode: '0644'
- name: Plank Dock | Add firefox.dockitem to dock - name: Plank Dock | Add firefox.dockitem to dock
template: copy:
src: firefox.dockitem src: firefox.dockitem
dest: "{{ plank_dock_launcher_path }}/firefox.dockitem" dest: "{{ plank_dock_launcher_path }}/firefox.dockitem"
owner: root
mode: '0644'
- name: Plank Dock | Add xfce4-terminal.dockitem to dock - name: Plank Dock | Add xfce4-terminal.dockitem to dock
template: copy:
src: xfce4-terminal.dockitem src: xfce4-terminal.dockitem
dest: "{{ plank_dock_launcher_path }}/xfce4-terminal.dockitem" dest: "{{ plank_dock_launcher_path }}/xfce4-terminal.dockitem"
owner: root
mode: '0644'
- name: Plank Dock | Add mate-calc.dockitem to dock - name: Plank Dock | Add mate-calc.dockitem to dock
template: copy:
src: mate-calc.dockitem src: mate-calc.dockitem
dest: "{{ plank_dock_launcher_path }}/mate-calc.dockitem" dest: "{{ plank_dock_launcher_path }}/mate-calc.dockitem"
owner: root
mode: '0644'
- name: Plank Dock | Add desktop.dockitem to dock - name: Plank Dock | Add desktop.dockitem to dock
template: copy:
src: desktop.dockitem src: desktop.dockitem
dest: "{{ plank_dock_launcher_path }}/desktop.dockitem" dest: "{{ plank_dock_launcher_path }}/desktop.dockitem"
owner: root
mode: '0644'
- name: Plank Dock | Add trash.dockitem to dock - name: Plank Dock | Add trash.dockitem to dock
template: copy:
src: trash.dockitem src: trash.dockitem
dest: "{{ plank_dock_launcher_path }}/trash.dockitem" dest: "{{ plank_dock_launcher_path }}/trash.dockitem"
owner: root
mode: '0644'
- name: Plank Dock | Ensure autostart directory exists - name: Plank Dock | Ensure autostart directory exists
file: file:
@ -104,8 +88,6 @@
state: directory state: directory
- name: Plank Dock | Add plank to autostart - name: Plank Dock | Add plank to autostart
template: copy:
src: plank.desktop src: plank.desktop
dest: "{{ autostart_path }}/plank.desktop" dest: "{{ autostart_path }}/plank.desktop"
owner: root
mode: '0644'

View File

@ -7,6 +7,6 @@
- name: Rofi Launcher | Copy rofi config - name: Rofi Launcher | Copy rofi config
copy: copy:
src: /root/Downloads/update-xfce-bigsur/rofi src: "{{ home_directory }}/Downloads/update-xfce-bigsur/rofi"
dest: /root/.config/ dest: "{{ home_directory }}/.config/"
remote_src: yes remote_src: yes

View File

@ -9,39 +9,39 @@
- name: Theme-icons-cursor-fonts | clone WhiteSur-gtk-theme - name: Theme-icons-cursor-fonts | clone WhiteSur-gtk-theme
git: git:
repo: "{{ whitesur_gtk_theme_git }}" repo: "{{ whitesur_gtk_theme_git }}"
dest: /root/Downloads/WhiteSur-gtk-theme dest: "{{ home_directory }}/Downloads/WhiteSur-gtk-theme"
- name: Theme-icons-cursor-fonts | Install WhiteSur-gtk-theme - name: Theme-icons-cursor-fonts | Install WhiteSur-gtk-theme
shell: shell:
cmd: "cd /root/Downloads/WhiteSur-gtk-theme && ./install.sh -c dark -c light" cmd: "cd {{ home_directory }}/Downloads/WhiteSur-gtk-theme && ./install.sh -c dark -c light"
- name: Theme-icons-cursor-fonts | clone WhiteSur-icon-theme - name: Theme-icons-cursor-fonts | clone WhiteSur-icon-theme
git: git:
repo: "{{ whitesur_icon_theme_git }}" repo: "{{ whitesur_icon_theme_git }}"
dest: /root/Downloads/WhiteSur-icon-theme dest: "{{ home_directory }}/Downloads/WhiteSur-icon-theme"
- name: Theme-icons-cursor-fonts | Install WhiteSur-icon-theme - name: Theme-icons-cursor-fonts | Install WhiteSur-icon-theme
shell: shell:
cmd: "cd /root/Downloads/WhiteSur-icon-theme && ./install.sh" cmd: "cd {{ home_directory }}/Downloads/WhiteSur-icon-theme && ./install.sh"
- name: Theme-icons-cursor-fonts | clone WhiteSur-cursors - name: Theme-icons-cursor-fonts | clone WhiteSur-cursors
git: git:
repo: "{{ whitesur_cursors_git }}" repo: "{{ whitesur_cursors_git }}"
dest: /root/Downloads/WhiteSur-cursors dest: "{{ home_directory }}/Downloads/WhiteSur-cursors"
- name: Theme-icons-cursor-fonts | Install WhiteSur-cursors - name: Theme-icons-cursor-fonts | Install WhiteSur-cursors
shell: shell:
cmd: "cd /root/Downloads/WhiteSur-cursors && ./install.sh" cmd: "cd {{ home_directory }}/Downloads/WhiteSur-cursors && ./install.sh"
- name: Theme-icons-cursor-fonts | Create ~/.fonts directory - name: Theme-icons-cursor-fonts | Create ~/.fonts directory
file: file:
path: /root/.fonts path: "{{ home_directory }}/.fonts"
state: directory state: directory
- name: Theme-icons-cursor-fonts | copy fonts - name: Theme-icons-cursor-fonts | copy fonts
copy: copy:
src: /root/Downloads/update-xfce-bigsur/fonts/ src: "{{ home_directory }}/Downloads/update-xfce-bigsur/fonts/"
dest: /root/.fonts dest: "{{ home_directory }}/.fonts"
remote_src: yes remote_src: yes
- name: Theme-icons-cursor-fonts | Update settings Theme - name: Theme-icons-cursor-fonts | Update settings Theme

View File

@ -23,6 +23,7 @@
- name: Ulauncher | Update settings - name: Ulauncher | Update settings
shell: shell:
cmd: "sed -i 's/\"theme-name\": \".*\"/\"theme-name\": \"arc-dark\"/g' {{ home_directory }}/.config/ulauncher/settings.json" cmd: "sed -i 's/\"theme-name\": \".*\"/\"theme-name\": \"arc-dark\"/g' {{ home_directory }}/.config/ulauncher/settings.json"
warn: false
- name: Ulauncher | Add in autostart - name: Ulauncher | Add in autostart
copy: copy:

View File

@ -2,33 +2,33 @@
- name: Xfce Pannel | Xpple Menu - Create directory to store xpple menu - name: Xfce Pannel | Xpple Menu - Create directory to store xpple menu
file: file:
path: /root/Downloads/xpple_menu/ path: "{{ home_directory }}/Downloads/xpple_menu/"
state: directory state: directory
- name: Xfce Pannel | Xpple Menu - Download and Unzip - name: Xfce Pannel | Xpple Menu - Download and Unzip
unarchive: unarchive:
src: "{{ xpple_menu_url }}" src: "{{ xpple_menu_url }}"
dest: /root/Downloads/xpple_menu/ dest: "{{ home_directory }}/Downloads/xpple_menu/"
remote_src: yes remote_src: yes
- name: Xfce Pannel | Xpple Menu - Ensure that applications directory exists - name: Xfce Pannel | Xpple Menu - Ensure that applications directory exists
file: file:
path: /root/.local/share/applications/ path: "{{ home_directory }}/.local/share/applications/"
state: directory state: directory
- name: Xfce Pannel | Xpple Menu - Copy applications - name: Xfce Pannel | Xpple Menu - Copy applications
copy: copy:
src: /root/Downloads/xpple_menu/applications/ src: "{{ home_directory }}/Downloads/xpple_menu/applications/"
dest: /root/.local/share/applications/ dest: "{{ home_directory }}/.local/share/applications/"
remote_src: yes remote_src: yes
- name: Xfce Pannel | Xpple Menu - Create ./config/menu/ directory - name: Xfce Pannel | Xpple Menu - Create ./config/menu/ directory
file: file:
path: /root/.config/menu/ path: "{{ home_directory }}/.config/menu/"
state: directory state: directory
- name: Xfce Pannel | Xpple Menu - Copy xpple.menu - name: Xfce Pannel | Xpple Menu - Copy xpple.menu
copy: copy:
src: /root/Downloads/xpple_menu/xpple.menu src: "{{ home_directory }}/Downloads/xpple_menu/xpple.menu"
dest: /root/.config/menu/ dest: "{{ home_directory }}/.config/menu/"
remote_src: yes remote_src: yes

View File

@ -3,7 +3,7 @@
- name: Terminal | Clone powerlevel10k repository - name: Terminal | Clone powerlevel10k repository
git: git:
repo: "{{ powerlevel10k_git }}" repo: "{{ powerlevel10k_git }}"
dest: "{{ home_directory }}"powerlevel10k dest: "{{ home_directory }}/powerlevel10k"
depth: 1 depth: 1
- name: Terminal | Install zsh - name: Terminal | Install zsh
@ -18,20 +18,18 @@
- name: Terminal | Copy powerlevel10k configuration - name: Terminal | Copy powerlevel10k configuration
copy: copy:
src: p10k.zsh src: p10k.zsh
dest: "{{ home_directory }}".p10k.zsh dest: "{{ home_directory }}/.p10k.zsh"
- name: Terminal | Copy zshrc configuration - name: Terminal | Copy zshrc configuration
copy: copy:
src: zshrc src: zshrc
dest: "{{ home_directory }}".zshrc dest: "{{ home_directory }}/.zshrc"
- name: Terminal | Disable powerlevel10k prompt - name: Terminal | Disable powerlevel10k prompt
shell: shell:
cmd: "echo 'POWERLEVEL9K_DISABLE_CONFIGURATION_WIZARD=true' >>! ~/.zshrc" cmd: "echo 'POWERLEVEL9K_DISABLE_CONFIGURATION_WIZARD=true' >>! ~/.zshrc"
- name: Terminal | Copy terminal config - name: Terminal | Copy terminal config
template: copy:
src: terminalrc src: terminalrc
dest: "{{ terminal_config_path }}/terminalrc" dest: "{{ terminal_config_path }}/terminalrc"
owner: root
mode: '0644'

View File

@ -1,6 +1,6 @@
[Desktop Entry] [Desktop Entry]
Type=Application Type=Application
Exec=/root/.conky/MX-CoreBlue/start_conky.sh Exec={{ home_directory }}/.conky/MX-CoreBlue/start_conky.sh
Hidden=false Hidden=false
NoDisplay=false NoDisplay=false
Name=conky Name=conky

View File

@ -1,2 +1,2 @@
[PlankDockItemPreferences] [PlankDockItemPreferences]
Launcher=file:///root/.local/share/applications/Launchpad.desktop Launcher=file://{{ home_directory }}/.local/share/applications/Launchpad.desktop

View File

@ -194,12 +194,12 @@
- Customize Firefox Web Browser - Customize Firefox Web Browser
- cd WhiteSur-gtk-theme && ./tweaks.sh -f - cd WhiteSur-gtk-theme && ./tweaks.sh -f
- edit userChrome.css and customChrome.css in ~/.mozilla/firefox/firefox-themes // Check what changes to be done - edit userChrome.css and customChrome.css in ~/.mozilla/firefox/firefox-themes
- Customize Xfce terminal - Customize Xfce terminal
- git clone --depth=1 https://github.com/romkatv/powerlevel10k.git ~/powerlevel10k - git clone --depth=1 https://github.com/romkatv/powerlevel10k.git ~/powerlevel10k
- chsh -s $(which zsh) /// required or not?? - chsh -s $(which zsh)
- sudo apt install zsh /// required maybe - sudo apt install zsh
- echo 'source ~/powerlevel10k/powerlevel10k.zsh-theme' >>~/.zshrc - echo 'source ~/powerlevel10k/powerlevel10k.zsh-theme' >>~/.zshrc
- Update ~/.config/xfce4/terminal/terminalrc with below content - Update ~/.config/xfce4/terminal/terminalrc with below content
[Configuration] [Configuration]