Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
rkiyanchuk committed Aug 11, 2021
1 parent 308dce3 commit e513489
Show file tree
Hide file tree
Showing 6 changed files with 109 additions and 49 deletions.
1 change: 0 additions & 1 deletion group_vars/all.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ locales:
user:
name: ruslan
group: ruslan
uid: 1000
comment: Ruslan Kiyanchuk
groups:
- sys
Expand Down
1 change: 1 addition & 0 deletions roles/gnome/files/dconf.conf
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# Monitor settings with `dconf watch /` while configuring via UI, then update here.
# Run `dconf update` to manually update settings.

# Night Light settings
[org/gnome/settings-daemon/plugins/color]
Expand Down
88 changes: 88 additions & 0 deletions roles/gnome/tasks/dconf.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,88 @@
# Monitor settings with `dconf watch /` while configuring via UI, then update here.
# Run `dconf update` to manually update settings.

---
- name: dconf - set enable night-light
become_user: "{{ user.name }}"
command: "gsettings set org.gnome.settings-daemon.plugins.color night-light-enabled true"

- name: dconf - set night-light-temperature
become_user: "{{ user.name }}"
command: "gsettings set org.gnome.settings-daemon.plugins.color night-light-temperature 3500"

- name: dconf - set notifications show-in-lock-screen
become_user: "{{ user.name }}"
command: "gsettings set org.gnome.desktop.notifications show-in-lock-screen false"

- name: dconf - org/gnome/desktop/interface enable-hot-corners
become_user: "{{ user.name }}"
command: "gsettings set org.gnome.desktop/interface enable-hot-corners false"

- name: dconf - org/gnome/desktop/interface clock-show-date
become_user: "{{ user.name }}"
command: "gsettings set org.gnome.desktop/interface clock-show-date true"

- name: dconf - org/gnome/desktop/interface show-battery-percentage
become_user: "{{ user.name }}"
command: "gsettings set org.gnome.desktop/interface show-battery-percentage true"

#[org/gnome/settings-daemon/plugins/power]
#sleep-inactive-ac-type = "nothing"
#
#[org/gnome/desktop/interface]
#enable-hot-corners = false
##text-scaling-factor = 1.25
#gtk-scheme = "Breeze"
#icon-theme = "Breeze"
#cursor-theme = "Breeze_Snow"
#clock-show-weekday = true
#clock-show-seconds = true
#
## Date and time settings
#clock-show-date = true
#
## Battery settings
#show-battery-percentage = true
#
## Touchpad settings
#[org/gnome/desktop/peripherals/touchpad]
#tap-to-click = true
#natural-scroll = true
#disable-while-typing = true
#
#[org/gnome/desktop/peripherals/mouse]
#natural-scroll = true
#
#[org/gnome/desktop/input-sources]
#sources = [('xkb', 'us'), ('xkb', 'ua'), ('xkb', 'ru')]
#xkb-options = ['terminate:ctrl_alt_bksp', 'lv3:ralt_switch', 'compose:ralt']
#
#[org/gnome/mutter]
#dynamic-workspaces = false
#
#[org/gnome/shell/keybindings]
#switch-to-application-1=['<Super><Alt>1']
#switch-to-application-2=['<Super><Alt>2']
#switch-to-application-3=['<Super><Alt>3']
#switch-to-application-4=['<Super><Alt>4']
#
#
#[org/gnome/desktop/wm/keybindings]
#switch-to-workspace-1 = ['<Primary>1']
#switch-to-workspace-2 = ['<Primary>2']
#switch-to-workspace-3 = ['<Primary>3']
#switch-to-workspace-4 = ['<Primary>4']
#
#move-to-workspace-1 = ['<Primary><Super>1']
#move-to-workspace-2 = ['<Primary><Super>2']
#move-to-workspace-3 = ['<Primary><Super>3']
#move-to-workspace-4 = ['<Primary><Super>4']
#
#switch-applications = ['<Super>Tab']
#switch-applications-backward = ['<Shift><Super>Tab']
#
#switch-windows = ['<Alt>Tab']
#switch-windows-backward = ['<Shift><Alt>Tab']
#
#close = ['<Primary>q']
#
31 changes: 1 addition & 30 deletions roles/gnome/tasks/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,36 +20,7 @@
become: yes
become_user: "{{ user.name }}"

- name: create DConf database dir
file:
path: /etc/dconf/db/gnome.d
state: directory
recurse: yes
notify: update dconf database

- name: create DConf profile dir
file:
path: /etc/dconf/profile
state: directory
recurse: yes
notify: update dconf database

- name: configure DConf database
copy:
src: dconf.conf
dest: /etc/dconf/db/gnome.d/ruslan.conf
notify: update dconf database

- name: configure DConf profile
lineinfile:
path: /etc/dconf/profile/user
line: "{{ item }}"
create: yes
with_items:
- "user-db:user"
- "system-db:gnome"
notify: update dconf database

- import_tasks: dconf.yaml
# - import_tasks: bluetooth.yaml
# - import_tasks: themes.yaml
# - import_tasks: media.yaml
Expand Down
18 changes: 18 additions & 0 deletions roles/system/tasks/gnupg.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
---
- name: install GnuPG
pacman:
name:
- ccid
- gnupg
- pcsclite
- yubikey-manager-qt

- name: reload systemd config
systemd:
daemon_reload: yes

- name: enable pcscd
systemd:
name: pcscd.service
enabled: yes
state: started
19 changes: 1 addition & 18 deletions roles/system/tasks/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,24 +22,6 @@
enabled: yes
state: started

- name: install GnuPG
pacman:
name:
- ccid
- gnupg
- pcsclite
- yubikey-manager-qt

- name: reload systemd config
systemd:
daemon_reload: yes

- name: enable pcscd
systemd:
name: pcscd.service
enabled: yes
state: started

- name: install extra packages from repo
pacman:
name: "{{ extra_packages }}"
Expand All @@ -65,5 +47,6 @@
- name: set user shell
command: chsh -s /bin/zsh {{ user.name }}

- import_tasks: gnupg.yaml
- import_tasks: printing.yaml
- import_tasks: network.yaml

0 comments on commit e513489

Please sign in to comment.