Added i3lock-fancy-multimonitor (AUR)
This commit is contained in:
parent
8c3707c845
commit
9865834e16
@ -10,6 +10,7 @@
|
|||||||
|
|
||||||
roles:
|
roles:
|
||||||
- user-account
|
- user-account
|
||||||
|
- aur-builder
|
||||||
- sudo
|
- sudo
|
||||||
- dotfiles
|
- dotfiles
|
||||||
- git
|
- git
|
||||||
@ -23,7 +24,6 @@
|
|||||||
- docker
|
- docker
|
||||||
- xorg
|
- xorg
|
||||||
- gnome-keyring
|
- gnome-keyring
|
||||||
- aur-builder
|
|
||||||
- zoom
|
- zoom
|
||||||
- git-flow
|
- git-flow
|
||||||
- slack
|
- slack
|
||||||
|
@ -18,7 +18,7 @@ font pango:DejaVu Sans Mono 11
|
|||||||
default_border pixel 1
|
default_border pixel 1
|
||||||
|
|
||||||
# Set lock screen
|
# Set lock screen
|
||||||
exec --no-startup-id xautolock -time 20 -locker 'i3lock --color=000000' &
|
exec --no-startup-id xautolock -time 20 -locker 'i3lock-fancy-multimonitor --no-text --blur=0x6' &
|
||||||
|
|
||||||
# Use pactl to adjust volume in PulseAudio.
|
# Use pactl to adjust volume in PulseAudio.
|
||||||
bindsym XF86AudioRaiseVolume exec --no-startup-id pactl set-sink-volume @DEFAULT_SINK@ +10%
|
bindsym XF86AudioRaiseVolume exec --no-startup-id pactl set-sink-volume @DEFAULT_SINK@ +10%
|
||||||
|
@ -1,123 +1,129 @@
|
|||||||
---
|
---
|
||||||
- name: setup user account
|
- name: setup user account
|
||||||
user:
|
user:
|
||||||
name: "{{ username }}"
|
name: "{{ username }}"
|
||||||
password: "{{ password }}"
|
password: "{{ password }}"
|
||||||
create_home: yes
|
create_home: yes
|
||||||
state: present
|
state: present
|
||||||
update_password: always
|
update_password: always
|
||||||
register: account
|
register: account
|
||||||
|
|
||||||
- name: ensure .ssh exists
|
- name: ensure .ssh exists
|
||||||
become_user: "{{ account.name }}"
|
become_user: "{{ account.name }}"
|
||||||
file:
|
file:
|
||||||
path: "/home/{{ account.name }}/.ssh"
|
path: "/home/{{ account.name }}/.ssh"
|
||||||
state: directory
|
state: directory
|
||||||
mode: "0700"
|
mode: "0700"
|
||||||
|
|
||||||
- name: copy ssh key
|
- name: copy ssh key
|
||||||
become_user: "{{ account.name }}"
|
become_user: "{{ account.name }}"
|
||||||
copy:
|
copy:
|
||||||
src: "ssh/"
|
src: "ssh/"
|
||||||
dest: "/home/{{ account.name }}/.ssh/"
|
dest: "/home/{{ account.name }}/.ssh/"
|
||||||
mode: "0600"
|
mode: "0600"
|
||||||
|
|
||||||
- name: ensure .gnupg exists
|
- name: ensure .gnupg exists
|
||||||
become_user: "{{ account.name }}"
|
become_user: "{{ account.name }}"
|
||||||
file:
|
file:
|
||||||
path: "/home/{{ account.name }}/.gnupg"
|
path: "/home/{{ account.name }}/.gnupg"
|
||||||
state: directory
|
state: directory
|
||||||
mode: "0700"
|
mode: "0700"
|
||||||
|
|
||||||
- name: copy gpg keys
|
- name: copy gpg keys
|
||||||
become_user: "{{ account.name }}"
|
become_user: "{{ account.name }}"
|
||||||
copy:
|
copy:
|
||||||
src: "gnupg/"
|
src: "gnupg/"
|
||||||
dest: "/home/{{ account.name }}/.gnupg/"
|
dest: "/home/{{ account.name }}/.gnupg/"
|
||||||
mode: "0600"
|
mode: "0600"
|
||||||
|
|
||||||
- name: set gpg-agent pinentry-program
|
- name: set gpg-agent pinentry-program
|
||||||
become_user: "{{ account.name }}"
|
become_user: "{{ account.name }}"
|
||||||
lineinfile:
|
lineinfile:
|
||||||
path: "/home/{{ account.name }}/.gnupg/gpg-agent.conf"
|
path: "/home/{{ account.name }}/.gnupg/gpg-agent.conf"
|
||||||
regexp: "^pinentry-program "
|
regexp: "^pinentry-program "
|
||||||
line: "pinentry-program /usr/bin/pinentry-gtk-2"
|
line: "pinentry-program /usr/bin/pinentry-gtk-2"
|
||||||
mode: 0644
|
mode: 0644
|
||||||
create: yes
|
create: yes
|
||||||
|
|
||||||
- name: set gpg-agent max-cache-ttl
|
- name: set gpg-agent max-cache-ttl
|
||||||
become_user: "{{ account.name }}"
|
become_user: "{{ account.name }}"
|
||||||
lineinfile:
|
lineinfile:
|
||||||
path: "/home/{{ account.name }}/.gnupg/gpg-agent.conf"
|
path: "/home/{{ account.name }}/.gnupg/gpg-agent.conf"
|
||||||
regexp: "^max-cache-ttl "
|
regexp: "^max-cache-ttl "
|
||||||
line: "max-cache-ttl 60480000"
|
line: "max-cache-ttl 60480000"
|
||||||
|
|
||||||
- name: set gpg-agent default-cache-ttl
|
- name: set gpg-agent default-cache-ttl
|
||||||
become_user: "{{ account.name }}"
|
become_user: "{{ account.name }}"
|
||||||
lineinfile:
|
lineinfile:
|
||||||
path: "/home/{{ account.name }}/.gnupg/gpg-agent.conf"
|
path: "/home/{{ account.name }}/.gnupg/gpg-agent.conf"
|
||||||
regexp: "^default-cache-ttl "
|
regexp: "^default-cache-ttl "
|
||||||
line: "default-cache-ttl 60480000"
|
line: "default-cache-ttl 60480000"
|
||||||
|
|
||||||
- name: setup xprofile
|
- name: setup xprofile
|
||||||
become_user: "{{ account.name }}"
|
become_user: "{{ account.name }}"
|
||||||
lineinfile:
|
lineinfile:
|
||||||
path: "/home/{{ account.name }}/.xprofile"
|
path: "/home/{{ account.name }}/.xprofile"
|
||||||
regexp: "^xsetroot "
|
regexp: "^xsetroot "
|
||||||
line: "xsetroot -solid \"#000000\""
|
line: 'xsetroot -solid "#000000"'
|
||||||
mode: 0644
|
mode: 0644
|
||||||
create: yes
|
create: yes
|
||||||
|
|
||||||
- name: install user icon
|
- name: install user icon
|
||||||
become_user: "{{ account.name }}"
|
become_user: "{{ account.name }}"
|
||||||
copy:
|
copy:
|
||||||
src: face.icon
|
src: face.icon
|
||||||
dest: "/home/{{ account.name }}/.face.icon"
|
dest: "/home/{{ account.name }}/.face.icon"
|
||||||
mode: "0644"
|
mode: "0644"
|
||||||
|
|
||||||
- name: grant sddm read permission to home
|
- name: grant sddm read permission to home
|
||||||
acl:
|
acl:
|
||||||
path: "/home/{{ account.name }}/"
|
path: "/home/{{ account.name }}/"
|
||||||
entity: sddm
|
entity: sddm
|
||||||
etype: user
|
etype: user
|
||||||
permissions: x
|
permissions: x
|
||||||
state: present
|
state: present
|
||||||
|
|
||||||
- name: grant sddm read permission user icon
|
- name: grant sddm read permission user icon
|
||||||
acl:
|
acl:
|
||||||
path: "/home/{{ account.name }}/.face.icon"
|
path: "/home/{{ account.name }}/.face.icon"
|
||||||
entity: sddm
|
entity: sddm
|
||||||
etype: user
|
etype: user
|
||||||
permissions: r
|
permissions: r
|
||||||
state: present
|
state: present
|
||||||
|
|
||||||
- name: ensure i3 config-dir exists
|
- name: ensure i3 config-dir exists
|
||||||
become_user: "{{ account.name }}"
|
become_user: "{{ account.name }}"
|
||||||
file:
|
file:
|
||||||
path: "/home/{{ account.name }}/.config/i3"
|
path: "/home/{{ account.name }}/.config/i3"
|
||||||
state: directory
|
state: directory
|
||||||
mode: "0700"
|
mode: "0700"
|
||||||
|
|
||||||
- name: install i3 config
|
- name: install i3 config
|
||||||
become_user: "{{ account.name }}"
|
become_user: "{{ account.name }}"
|
||||||
copy:
|
copy:
|
||||||
src: i3/config
|
src: i3/config
|
||||||
dest: "/home/{{ account.name }}/.config/i3/config"
|
dest: "/home/{{ account.name }}/.config/i3/config"
|
||||||
mode: "0644"
|
mode: "0644"
|
||||||
force: no
|
force: no
|
||||||
|
|
||||||
- name: ensure i3status config-dir exists
|
- name: ensure i3status config-dir exists
|
||||||
become_user: "{{ account.name }}"
|
become_user: "{{ account.name }}"
|
||||||
file:
|
file:
|
||||||
path: "/home/{{ account.name }}/.config/i3status"
|
path: "/home/{{ account.name }}/.config/i3status"
|
||||||
state: directory
|
state: directory
|
||||||
mode: "0700"
|
mode: "0700"
|
||||||
|
|
||||||
- name: install i3status config
|
- name: install i3status config
|
||||||
become_user: "{{ account.name }}"
|
become_user: "{{ account.name }}"
|
||||||
copy:
|
copy:
|
||||||
src: i3status/config
|
src: i3status/config
|
||||||
dest: "/home/{{ account.name }}/.config/i3status/config"
|
dest: "/home/{{ account.name }}/.config/i3status/config"
|
||||||
mode: "0644"
|
mode: "0644"
|
||||||
force: yes
|
force: yes
|
||||||
|
|
||||||
|
- name: configure i3lock
|
||||||
|
become_user: "{{ account.name }}"
|
||||||
|
lineinfile:
|
||||||
|
path: "/home/{{ account.name }}/.config/i3/config"
|
||||||
|
regexp: "xautolock"
|
||||||
|
line: "exec --no-startup-id xautolock -time 20 -locker 'i3lock-fancy-multimonitor --no-text --blur=0x6' &"
|
||||||
|
2
roles/xorg/meta/main.yaml
Normal file
2
roles/xorg/meta/main.yaml
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
dependencies:
|
||||||
|
- kewlfft.aur
|
@ -14,11 +14,19 @@
|
|||||||
- i3-wm
|
- i3-wm
|
||||||
- i3status
|
- i3status
|
||||||
- xautolock
|
- xautolock
|
||||||
- i3lock
|
|
||||||
- dmenu
|
- dmenu
|
||||||
- alacritty
|
- alacritty
|
||||||
- flameshot
|
- flameshot
|
||||||
|
|
||||||
|
- name: install AUR packages
|
||||||
|
aur:
|
||||||
|
name: "{{ item }}"
|
||||||
|
state: latest
|
||||||
|
become: yes
|
||||||
|
become_user: "{{ aur_builder.name }}"
|
||||||
|
loop:
|
||||||
|
- i3lock-fancy-multimonitor
|
||||||
|
|
||||||
- name: configure sddm
|
- name: configure sddm
|
||||||
ini_file:
|
ini_file:
|
||||||
path: /etc/sddm.conf.d/uid.conf
|
path: /etc/sddm.conf.d/uid.conf
|
||||||
|
Reference in New Issue
Block a user