Added i3lock-fancy-multimonitor (AUR)

master
mandlm 2021-03-17 07:47:31 +01:00
parent 8c3707c845
commit 9865834e16
Signed by: mandlm
GPG Key ID: 4AA25D647AA54CC7
5 changed files with 79 additions and 63 deletions

View File

@ -10,6 +10,7 @@
roles:
- user-account
- aur-builder
- sudo
- dotfiles
- git
@ -23,7 +24,6 @@
- docker
- xorg
- gnome-keyring
- aur-builder
- zoom
- git-flow
- slack

View File

@ -18,7 +18,7 @@ font pango:DejaVu Sans Mono 11
default_border pixel 1
# 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.
bindsym XF86AudioRaiseVolume exec --no-startup-id pactl set-sink-volume @DEFAULT_SINK@ +10%

View File

@ -1,123 +1,129 @@
---
- name: setup user account
user:
name: "{{ username }}"
password: "{{ password }}"
create_home: yes
state: present
update_password: always
name: "{{ username }}"
password: "{{ password }}"
create_home: yes
state: present
update_password: always
register: account
- name: ensure .ssh exists
become_user: "{{ account.name }}"
file:
path: "/home/{{ account.name }}/.ssh"
state: directory
mode: "0700"
path: "/home/{{ account.name }}/.ssh"
state: directory
mode: "0700"
- name: copy ssh key
become_user: "{{ account.name }}"
copy:
src: "ssh/"
dest: "/home/{{ account.name }}/.ssh/"
mode: "0600"
src: "ssh/"
dest: "/home/{{ account.name }}/.ssh/"
mode: "0600"
- name: ensure .gnupg exists
become_user: "{{ account.name }}"
file:
path: "/home/{{ account.name }}/.gnupg"
state: directory
mode: "0700"
path: "/home/{{ account.name }}/.gnupg"
state: directory
mode: "0700"
- name: copy gpg keys
become_user: "{{ account.name }}"
copy:
src: "gnupg/"
dest: "/home/{{ account.name }}/.gnupg/"
mode: "0600"
src: "gnupg/"
dest: "/home/{{ account.name }}/.gnupg/"
mode: "0600"
- name: set gpg-agent pinentry-program
become_user: "{{ account.name }}"
lineinfile:
path: "/home/{{ account.name }}/.gnupg/gpg-agent.conf"
regexp: "^pinentry-program "
line: "pinentry-program /usr/bin/pinentry-gtk-2"
mode: 0644
create: yes
path: "/home/{{ account.name }}/.gnupg/gpg-agent.conf"
regexp: "^pinentry-program "
line: "pinentry-program /usr/bin/pinentry-gtk-2"
mode: 0644
create: yes
- name: set gpg-agent max-cache-ttl
become_user: "{{ account.name }}"
lineinfile:
path: "/home/{{ account.name }}/.gnupg/gpg-agent.conf"
regexp: "^max-cache-ttl "
line: "max-cache-ttl 60480000"
path: "/home/{{ account.name }}/.gnupg/gpg-agent.conf"
regexp: "^max-cache-ttl "
line: "max-cache-ttl 60480000"
- name: set gpg-agent default-cache-ttl
become_user: "{{ account.name }}"
lineinfile:
path: "/home/{{ account.name }}/.gnupg/gpg-agent.conf"
regexp: "^default-cache-ttl "
line: "default-cache-ttl 60480000"
path: "/home/{{ account.name }}/.gnupg/gpg-agent.conf"
regexp: "^default-cache-ttl "
line: "default-cache-ttl 60480000"
- name: setup xprofile
become_user: "{{ account.name }}"
lineinfile:
path: "/home/{{ account.name }}/.xprofile"
regexp: "^xsetroot "
line: "xsetroot -solid \"#000000\""
mode: 0644
create: yes
path: "/home/{{ account.name }}/.xprofile"
regexp: "^xsetroot "
line: 'xsetroot -solid "#000000"'
mode: 0644
create: yes
- name: install user icon
become_user: "{{ account.name }}"
copy:
src: face.icon
dest: "/home/{{ account.name }}/.face.icon"
mode: "0644"
src: face.icon
dest: "/home/{{ account.name }}/.face.icon"
mode: "0644"
- name: grant sddm read permission to home
acl:
path: "/home/{{ account.name }}/"
entity: sddm
etype: user
permissions: x
state: present
path: "/home/{{ account.name }}/"
entity: sddm
etype: user
permissions: x
state: present
- name: grant sddm read permission user icon
acl:
path: "/home/{{ account.name }}/.face.icon"
entity: sddm
etype: user
permissions: r
state: present
path: "/home/{{ account.name }}/.face.icon"
entity: sddm
etype: user
permissions: r
state: present
- name: ensure i3 config-dir exists
become_user: "{{ account.name }}"
file:
path: "/home/{{ account.name }}/.config/i3"
state: directory
mode: "0700"
path: "/home/{{ account.name }}/.config/i3"
state: directory
mode: "0700"
- name: install i3 config
become_user: "{{ account.name }}"
copy:
src: i3/config
dest: "/home/{{ account.name }}/.config/i3/config"
mode: "0644"
force: no
src: i3/config
dest: "/home/{{ account.name }}/.config/i3/config"
mode: "0644"
force: no
- name: ensure i3status config-dir exists
become_user: "{{ account.name }}"
file:
path: "/home/{{ account.name }}/.config/i3status"
state: directory
mode: "0700"
path: "/home/{{ account.name }}/.config/i3status"
state: directory
mode: "0700"
- name: install i3status config
become_user: "{{ account.name }}"
copy:
src: i3status/config
dest: "/home/{{ account.name }}/.config/i3status/config"
mode: "0644"
force: yes
src: i3status/config
dest: "/home/{{ account.name }}/.config/i3status/config"
mode: "0644"
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' &"

View File

@ -0,0 +1,2 @@
dependencies:
- kewlfft.aur

View File

@ -14,11 +14,19 @@
- i3-wm
- i3status
- xautolock
- i3lock
- dmenu
- alacritty
- flameshot
- name: install AUR packages
aur:
name: "{{ item }}"
state: latest
become: yes
become_user: "{{ aur_builder.name }}"
loop:
- i3lock-fancy-multimonitor
- name: configure sddm
ini_file:
path: /etc/sddm.conf.d/uid.conf