Clone shirenn's configuration
This commit is contained in:
84
roles/xorg/tasks/main.yml
Normal file
84
roles/xorg/tasks/main.yml
Normal file
@ -0,0 +1,84 @@
|
||||
---
|
||||
- name: Queries package manager for graphical instalation
|
||||
package:
|
||||
name:
|
||||
- autorandr
|
||||
- font-bh-ttf
|
||||
- gsfonts
|
||||
- light
|
||||
- noto-fonts-emoji
|
||||
- physlock
|
||||
- sdl_ttf
|
||||
- ttf-bitstream-vera
|
||||
- ttf-dejavu
|
||||
- ttf-liberation
|
||||
- xorg-fonts-type1
|
||||
- xorg-xinit
|
||||
- xorg-server
|
||||
- xss-lock
|
||||
register: pkg_result
|
||||
retries: 3
|
||||
until: pkg_result is succeeded
|
||||
become: yes
|
||||
|
||||
- name: Queries package manager for graphical instalation specific to abyme installation
|
||||
package:
|
||||
name:
|
||||
- nvidia
|
||||
register: pkg_result
|
||||
retries: 3
|
||||
until: pkg_result is succeeded
|
||||
when: laptop.gpu
|
||||
become: yes
|
||||
|
||||
- name: Queries package manager for graphical instalation specific to abyme installation
|
||||
package:
|
||||
name:
|
||||
- numlockx
|
||||
register: pkg_result
|
||||
retries: 3
|
||||
until: pkg_result is succeeded
|
||||
when: laptop.numpad
|
||||
become: yes
|
||||
|
||||
- name: Copy user configuration files
|
||||
template:
|
||||
src: 'xinitrc.j2'
|
||||
dest: '.xinitrc'
|
||||
|
||||
- name: Copy touchpad configuration
|
||||
template:
|
||||
src: '30-touchpad.conf.j2'
|
||||
dest: '/etc/X11/xorg.conf.d/30-touchpad.conf'
|
||||
become: yes
|
||||
|
||||
- name: Change backlight property # doing some shifty things
|
||||
file:
|
||||
path: '/sys/class/backlight/intel_backlight/brightness'
|
||||
group: video
|
||||
mode: '0664'
|
||||
become: yes
|
||||
|
||||
- name: Gives user the good group
|
||||
user:
|
||||
name: ynerant
|
||||
groups: video
|
||||
append: yes
|
||||
become: yes
|
||||
|
||||
- name: Create autorandr configuration folder
|
||||
file:
|
||||
path: '~/.config/autorandr'
|
||||
state: directory
|
||||
|
||||
- name: Install autorandr postswitch configuration file
|
||||
template:
|
||||
src: 'postswitch.j2'
|
||||
dest: '~/.config/autorandr/postswitch'
|
||||
mode: '0755'
|
||||
|
||||
- name: Enable autorandr service
|
||||
service:
|
||||
name: autorandr
|
||||
enabled: yes
|
||||
become: true
|
6
roles/xorg/templates/30-touchpad.conf.j2
Normal file
6
roles/xorg/templates/30-touchpad.conf.j2
Normal file
@ -0,0 +1,6 @@
|
||||
Section "InputClass"
|
||||
Identifier "touchpad"
|
||||
Driver "libinput"
|
||||
MatchIsTouchpad "on"
|
||||
Option "Tapping" "on"
|
||||
EndSection
|
3
roles/xorg/templates/postswitch.j2
Normal file
3
roles/xorg/templates/postswitch.j2
Normal file
@ -0,0 +1,3 @@
|
||||
#!/bin/bash
|
||||
|
||||
~/.fehbg
|
13
roles/xorg/templates/xinitrc.j2
Normal file
13
roles/xorg/templates/xinitrc.j2
Normal file
@ -0,0 +1,13 @@
|
||||
eval $(/usr/bin/gnome-keyring-daemon --start --components=gpg,pkcs11,secrets,ssh)
|
||||
export $(gnome-keyring-daemon --start --components=pkcs11,secrets,ssh,gpg)
|
||||
dbus-update-activation-environment --systemd DISPLAY
|
||||
|
||||
|
||||
setxkbmap fr oss
|
||||
xss-lock -- physlock -d &
|
||||
autorandr --change
|
||||
{% if laptop.gpu %}
|
||||
exec prime-run i3
|
||||
{% else %}
|
||||
exec i3
|
||||
{% endif %}
|
Reference in New Issue
Block a user