Added i3lock-fancy-multimonitor (AUR)
This commit is contained in:
parent
8c3707c845
commit
9865834e16
@ -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
|
||||
|
@ -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%
|
||||
|
@ -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' &"
|
||||
|
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
|
||||
- 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
|
||||
|
Reference in New Issue
Block a user