232 lines
7.1 KiB
YAML
Raw Normal View History

2021-02-06 15:33:26 -06:00
---
# GNOME settings, extensions, and setup.
2021-04-10 11:44:34 -05:00
# Check for special software that may need added to favorites.
- name: Workstation | Account Management | GNOME | Checks | Defaults
set_fact:
2021-04-10 11:45:25 -05:00
browser: "com.github.Eloston.UngoogledChromium.desktop"
2021-04-10 11:44:34 -05:00
- name: Workstation | Account Management | GNOME | Checks | Brave | Locate
shell: which brave-browser
register: brave
ignore_errors: yes
- name: Workstation | Account Management | GNOME | Checks | Brave | Set As Browser
set_fact:
2021-04-10 11:45:25 -05:00
browser: brave-browser.desktop
2021-04-10 11:44:34 -05:00
when: not brave.failed
2021-02-06 15:33:26 -06:00
# Make sure Gnome-Tweaks is installed
- name: Workstation | Account Management | GNOME | Install Dependencies
2021-02-06 15:33:26 -06:00
package:
name:
- "{{ gnome_tweaks }}"
- "{{ dconf_editor }}"
- "{{ psutil }}"
2021-02-06 15:33:26 -06:00
state: present
## Dash to Dock Extension ##
# Note: Validate DtD by checking /org/gnome/shell/enabled-extensions for dash-to-dock@micxgx.gmail.com
- name: Workstation | Account Management | GNOME | Dash To Dock | Check
shell: "cd ~/.local/share/gnome-shell/extensions/dash-to-dock@micxgx.gmail.com/"
become_user: ling
register: dash_to_dock_exists
ignore_errors: yes
# Install #
# https://micheleg.github.io/dash-to-dock/download.html
- name: Workstation | Account Management | GNOME | Dash To Dock | Install | Clone Repo
git:
repo: https://github.com/micheleg/dash-to-dock.git
dest: "~/TRASH/dash-to-dock/"
clone: yes
force: no
version: master
become_user: ling
when: dash_to_dock_exists.failed
- name: Workstation | Account Management | GNOME | Dash To Dock | Install | Make
shell: "cd ~/TRASH/dash-to-dock/; make; make install"
2021-07-11 15:31:08 -05:00
become_user: ling
when: dash_to_dock_exists.failed
2021-07-11 15:43:43 -05:00
- name: Workstation | Account Management | GNOME | Dash To Dock | Read Enabled Extension Array
dconf:
key: /org/gnome/shell/enabled-extensions
state: read
become_user: ling
register: gnome_enabled_extensions
when: dash_to_dock_exists.failed
2021-07-11 15:43:43 -05:00
- name: Workstation | Account Management | GNOME | Dash To Dock | Array This Extension Name
set_fact:
2021-07-11 15:59:05 -05:00
dash_to_dock_ext_comma: ", "
when: gnome_enabled_extensions is defined and length(gnome_enabled_extensions.value) > 2
- name: Workstation | Account Management | GNOME | Dash To Dock | Array This Extension Name
set_fact:
dash_to_dock_ext_name: "{{ dash_to_dock_ext_comma }}'dash-to-dock@micxgx.gmail.com']"
when: gnome_enabled_extensions is defined
2021-07-11 15:43:43 -05:00
2021-07-11 15:38:27 -05:00
# https://ansible-docs.readthedocs.io/zh/stable-2.0/rst/playbooks_filters.html#filters-for-formatting-data
2021-07-11 15:43:43 -05:00
- debug:
var: dash_to_dock_ext_name
when: gnome_enabled_extensions is defined
- debug:
2021-07-11 15:59:05 -05:00
var: gnome_enabled_extensions
when: gnome_enabled_extensions is defined
2021-07-11 15:43:43 -05:00
- name: Workstation | Account Management | GNOME | Dash To Dock | Union Arrays To Enable
dconf:
key: /org/gnome/shell/enabled-extensions
2021-07-11 15:59:05 -05:00
value: "{{ gnome_enabled_extensions.value | replace(']', dash_to_dock_ext_name) }}"
state: present
become_user: ling
when: gnome_enabled_extensions is defined
# Settings #
2021-07-11 15:38:27 -05:00
- name: Workstation | Account Management | GNOME | Dash To Dock | Dock Position
dconf:
key: /org/gnome/shell/extensions/dash-to-dock/dock-position
value: "LEFT"
state: present
become_user: ling
2021-07-11 15:38:27 -05:00
- name: Workstation | Account Management | GNOME | Dash To Dock | Dock Fixed
dconf:
key: /org/gnome/shell/extensions/dash-to-dock/dock-fixed
value: true
state: present
become_user: ling
2021-02-06 15:33:26 -06:00
2021-03-28 07:50:41 -05:00
- name: Workstation | Account Management | GNOME | Dash To Dock | Icon Size
dconf:
2021-03-28 08:33:26 -05:00
key: /org/gnome/shell/extensions/dash-to-dock/dash-max-icon-size
2021-03-28 07:50:41 -05:00
value: "32"
state: present
become_user: ling
2021-02-06 15:33:26 -06:00
2021-02-06 16:40:41 -06:00
- name: Workstation | Account Management | GNOME | Favorites (Linux)
2021-02-06 16:33:16 -06:00
dconf:
key: /org/gnome/shell/favorite-apps
2021-02-23 19:01:52 -06:00
value: "['org.gnome.Terminal.desktop', 'gnome-system-monitor.desktop', 'org.gnome.Nautilus.desktop',
2021-07-09 19:22:13 -05:00
'{{ browser }}', 'org.mozilla.Thunderbird.desktop', 'org.telegram.desktop.desktop', 'com.discordapp.Discord.desktop',
'rhythmbox.desktop', 'io.lbry.lbry-app.desktop', 'codium.desktop', 'com.visualstudio.code-oss.desktop',
'org.shotcut.Shotcut.desktop', 'com.valvesoftware.Steam.desktop', 'net.lutris.Lutris.desktop']"
2021-02-06 16:33:16 -06:00
state: present
become_user: ling
2021-02-06 15:33:26 -06:00
when: ansible_system == "Linux"
2021-02-06 16:33:16 -06:00
2021-02-06 16:40:41 -06:00
- name: Workstation | Account Management | GNOME | Favorites (FreeBSD)
2021-02-06 16:33:16 -06:00
dconf:
key: /org/gnome/shell/favorite-apps
value: "['org.gnome.Terminal.desktop', 'org.gnome.Nautilus.desktop', 'firefox.desktop', 'org.mozilla.Thunderbird.desktop', 'code-oss.desktop']"
2021-02-06 16:33:16 -06:00
state: present
become_user: ling
2021-02-06 15:33:26 -06:00
when: ansible_system == "FreeBSD"
## Top Bar Settings ##
# (Battery Percentage, Clock Weekday+Seconds, Calendar Week Numbers)
2021-02-06 16:40:41 -06:00
- name: Workstation | Account Management | GNOME | Interface - Show Date
2021-02-06 16:33:16 -06:00
dconf:
key: /org/gnome/desktop/interface/clock-show-date
2021-02-06 16:34:40 -06:00
value: "true"
2021-02-06 16:33:16 -06:00
state: present
become_user: ling
2021-02-06 15:33:26 -06:00
2021-02-06 16:40:41 -06:00
- name: Workstation | Account Management | GNOME | Interface - 24h Format
2021-02-06 16:33:16 -06:00
dconf:
key: /org/gnome/desktop/interface/clock-format
value: "'24h'"
state: present
become_user: ling
2021-02-06 15:33:26 -06:00
2021-02-06 16:40:41 -06:00
- name: Workstation | Account Management | GNOME | Interface - Show Seconds
2021-02-06 16:33:16 -06:00
dconf:
key: /org/gnome/desktop/interface/clock-show-seconds
2021-02-06 16:34:40 -06:00
value: "true"
2021-02-06 16:33:16 -06:00
state: present
become_user: ling
2021-02-06 15:33:26 -06:00
2021-02-06 16:40:41 -06:00
- name: Workstation | Account Management | GNOME | Interface - Show Weekday
2021-02-06 16:33:16 -06:00
dconf:
key: /org/gnome/desktop/interface/clock-show-weekday
2021-02-06 16:34:40 -06:00
value: "true"
2021-02-06 16:33:16 -06:00
state: present
become_user: ling
2021-02-06 15:33:26 -06:00
2021-02-06 16:40:41 -06:00
- name: Workstation | Account Management | GNOME | Interface - 24h Format
2021-02-06 16:33:16 -06:00
dconf:
key: /org/gnome/desktop/interface/show-battery-percentage
2021-02-06 16:34:40 -06:00
value: "true"
2021-02-06 16:33:16 -06:00
state: present
become_user: ling
2021-02-06 15:33:26 -06:00
2021-02-06 16:40:41 -06:00
- name: Workstation | Account Management | GNOME | Interface - Show Week Date
2021-02-06 16:33:16 -06:00
dconf:
key: /org/gnome/desktop/calendar/show-weekdate
2021-02-06 16:34:40 -06:00
value: "true"
2021-02-06 16:33:16 -06:00
state: present
become_user: ling
2021-02-06 15:33:26 -06:00
# Never Prompt for Removal Media
# Dark theme?
#Pop-dark on Pop
#Adwaita-dark on everything else
# Window Titlebars (Titlebar Buttons Minimize)
2021-02-06 16:40:41 -06:00
- name: Workstation | Account Management | GNOME | Window Buttons
dconf:
2021-02-06 16:12:56 -06:00
key: /org/gnome/desktop/wm/preferences/button-layout
value: "'appmenu:minimize,close'"
state: present
2021-02-06 16:25:49 -06:00
become_user: ling
2021-02-06 15:33:26 -06:00
2021-02-06 16:40:41 -06:00
# Security
- name: Workstation | Account Management | GNOME | Privacy - Camera
2021-02-06 16:33:16 -06:00
dconf:
key: /org/gnome/desktop/privacy/disable-camera
2021-02-06 16:34:40 -06:00
value: "true"
2021-02-06 16:33:16 -06:00
state: present
become_user: ling
2021-02-06 15:33:26 -06:00
2021-02-06 16:40:41 -06:00
- name: Workstation | Account Management | GNOME | Privacy - Microphone
2021-02-06 16:33:16 -06:00
dconf:
key: /org/gnome/desktop/privacy/disable-microphone
2021-02-06 16:34:40 -06:00
value: "true"
2021-02-06 16:33:16 -06:00
state: present
become_user: ling
2021-02-06 15:33:26 -06:00
# Schemas to try after looking at gsettings list-schemas | sort
# org.gnome.ControlCenter -- not very interesting
# org.gnome.desktop.default-applications -- nothing?? Where do we set Firefox and Evolution?
# org.gnome.desktop.interface -- Good stuff in here.
# org.gnome.desktop.peripherals -- Nothing :(
# org.gnome.desktop.privacy -- Good stuff here too!! Cool!
# org.gnome.desktop.session
# org.gnome.desktop.wm.keybindings
# org.gnome.desktop.wm.preferences
# org.gnome.power-manager
# org.gnome.SessionManager
# org.gnome.shell
# org.gnome.shell.extensions.pop-shell
2021-07-11 10:11:04 -05:00
# org.gnome.shell.keybindings