update to hide specific desktop files

This commit is contained in:
Tyler Starr 2022-11-24 23:58:30 -08:00
parent fbcef727f7
commit 51014ab160
8 changed files with 49 additions and 6 deletions

View File

@ -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

View File

@ -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

View File

@ -4,6 +4,7 @@
- rhytmbox
- cheese
- totem
- gnome-photos
- gnome-maps
- gnome-characters
- gnome-connections
@ -16,3 +17,23 @@
- yelp
state: absent
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

View File

@ -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

View File

@ -33,3 +33,5 @@ update {tags} # valid tags: configs, updates, packages, services, once
## TODO
- 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