diff --git a/.bashrc b/.bashrc index 87b58e44..44d0d648 100755 --- a/.bashrc +++ b/.bashrc @@ -12,10 +12,6 @@ then fi export PATH - - - - export NVM_DIR="$HOME/.nvm" [ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm [ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion diff --git a/.local/bin/initial-setup b/bin/initial-setup similarity index 100% rename from .local/bin/initial-setup rename to bin/initial-setup diff --git a/.local/bin/pacdef b/bin/pacdef similarity index 100% rename from .local/bin/pacdef rename to bin/pacdef diff --git a/.local/bin/update b/bin/update similarity index 100% rename from .local/bin/update rename to bin/update diff --git a/provision/tasks/desktop/_hide-desktop.yml b/provision/tasks/desktop/_hide-desktop.yml new file mode 100644 index 00000000..9e7f2d9d --- /dev/null +++ b/provision/tasks/desktop/_hide-desktop.yml @@ -0,0 +1,18 @@ + - name: Check desktop file exists + ansible.builtin.stat: + path: "{{ item }}" + register: p + + - name: Edit desktop file + ansible.builtin.lineinfile: + path: "{{ item }}" + insertafter: '^Type' + line: 'NoDisplay=true' + firstmatch: true + state: present + become: true + when: p.stat.exists + + - debug: + msg: "Warning - {{ item }} does not exist" + when: p.stat.exists == False \ No newline at end of file diff --git a/provision/tasks/desktop/configs.yml b/provision/tasks/desktop/configs.yml index 4eeff547..73a3a403 100644 --- a/provision/tasks/desktop/configs.yml +++ b/provision/tasks/desktop/configs.yml @@ -4,6 +4,7 @@ - rhytmbox - cheese - totem + - gnome-photos - gnome-maps - gnome-characters - gnome-connections @@ -15,4 +16,24 @@ - gnome-tour - yelp state: absent - become: true \ No newline at end of file + become: true + +- name: Set desktop files to hide + include_tasks: _hide-desktop.yml + loop: + - /usr/share/applications/wine-winhelp.desktop + - /usr/share/applications/wine-mime-msi.desktop + - /usr/share/applications/wine-notepad.desktop + - /usr/share/applications/wine-oleview.desktop + - /usr/share/applications/wine-regedit.desktop + - /usr/share/applications/wine-uninstaller.desktop + - /usr/share/applications/wine-wineboot.desktop + - /usr/share/applications/wine-winecfg.desktop + - /usr/share/applications/wine-winefile.desktop + - /usr/share/applications/wine-winemine.desktop + - /usr/share/applications/wine-wordpad.desktop + - /usr/share/applications/vifm.desktop + - /usr/share/applications/dosbox-staging.desktop + - /usr/share/applications/nvim.desktop + - /usr/share/applications/syncthing-start.desktop + - /usr/share/applications/syncthing-ui.desktop \ No newline at end of file diff --git a/provision/tasks/development/packages.yml b/provision/tasks/development/packages.yml index 3d00c46e..db3d195d 100644 --- a/provision/tasks/development/packages.yml +++ b/provision/tasks/development/packages.yml @@ -2,5 +2,11 @@ dnf: name: - codium # Free/Libre Open Source Software Binaries of VS Code + - python3-pip # A tool for installing and managing Python3 packages state: present become: true + +- name: Install development python packages + ansible.builtin.pip: + name: + - ansible-lint # Command-line tool for linting playbooks, roles and collections \ No newline at end of file diff --git a/readme.md b/readme.md index 4dbdbd8b..23c1d357 100644 --- a/readme.md +++ b/readme.md @@ -32,4 +32,6 @@ update {tags} # valid tags: configs, updates, packages, services, once ## TODO -- make homesever use btrfs and fix "target" for home backups \ No newline at end of file +- make homesever use btrfs and fix "target" for home backups +- update home directory with subvolumes to exclude from snapshots, etc. +- hide desktop files from gnome app menu \ No newline at end of file