mirror of
https://github.com/starr-dusT/dotfiles.git
synced 2025-05-19 02:46:06 -07:00
update to hide specific desktop files
This commit is contained in:
parent
fbcef727f7
commit
51014ab160
4
.bashrc
4
.bashrc
@ -12,10 +12,6 @@ then
|
|||||||
fi
|
fi
|
||||||
export PATH
|
export PATH
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
export NVM_DIR="$HOME/.nvm"
|
export NVM_DIR="$HOME/.nvm"
|
||||||
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads 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
|
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion
|
||||||
|
18
provision/tasks/desktop/_hide-desktop.yml
Normal file
18
provision/tasks/desktop/_hide-desktop.yml
Normal 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
|
@ -4,6 +4,7 @@
|
|||||||
- rhytmbox
|
- rhytmbox
|
||||||
- cheese
|
- cheese
|
||||||
- totem
|
- totem
|
||||||
|
- gnome-photos
|
||||||
- gnome-maps
|
- gnome-maps
|
||||||
- gnome-characters
|
- gnome-characters
|
||||||
- gnome-connections
|
- gnome-connections
|
||||||
@ -15,4 +16,24 @@
|
|||||||
- gnome-tour
|
- gnome-tour
|
||||||
- yelp
|
- yelp
|
||||||
state: absent
|
state: absent
|
||||||
become: true
|
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
|
@ -2,5 +2,11 @@
|
|||||||
dnf:
|
dnf:
|
||||||
name:
|
name:
|
||||||
- codium # Free/Libre Open Source Software Binaries of VS Code
|
- codium # Free/Libre Open Source Software Binaries of VS Code
|
||||||
|
- python3-pip # A tool for installing and managing Python3 packages
|
||||||
state: present
|
state: present
|
||||||
become: true
|
become: true
|
||||||
|
|
||||||
|
- name: Install development python packages
|
||||||
|
ansible.builtin.pip:
|
||||||
|
name:
|
||||||
|
- ansible-lint # Command-line tool for linting playbooks, roles and collections
|
@ -32,4 +32,6 @@ update {tags} # valid tags: configs, updates, packages, services, once
|
|||||||
|
|
||||||
## TODO
|
## TODO
|
||||||
|
|
||||||
- make homesever use btrfs and fix "target" for home backups
|
- 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
|
Loading…
x
Reference in New Issue
Block a user