115 lines
2.3 KiB
YAML
115 lines
2.3 KiB
YAML
- name: Install xorg
|
|
become: yes
|
|
pacman:
|
|
name:
|
|
- xorg
|
|
- xorg-xinit
|
|
- xdo
|
|
- xorg-xrandr
|
|
- xorg-xbacklight
|
|
state: present
|
|
|
|
- name: Configure xorg
|
|
become: yes
|
|
template:
|
|
src: 10-laptop-display.conf
|
|
dest: /etc/X11/xorg.conf.d/10-laptop-display.conf
|
|
owner: root
|
|
group: root
|
|
mode: u=rw,g=r,o=r
|
|
|
|
- name: Install GDM
|
|
become: yes
|
|
pacman:
|
|
name: gdm
|
|
state: present
|
|
|
|
- name: Enable GDM
|
|
become: yes
|
|
systemd:
|
|
name: gdm
|
|
enabled: yes
|
|
|
|
- name: Remove default GDM sessions
|
|
become: yes
|
|
file:
|
|
path: "{{ item }}"
|
|
state: absent
|
|
with_items:
|
|
- /usr/share/xsessions/gnome.desktop
|
|
- /usr/share/xsessions/gnome-xorg.desktop
|
|
- /usr/share/xsessions/i3.desktop
|
|
- /usr/share/xsessions/i3-with-shmlog.desktop
|
|
|
|
|
|
- name: Install graphical programs
|
|
become: yes
|
|
pacman:
|
|
name:
|
|
- firefox
|
|
- xterm
|
|
- rofi
|
|
- python-pywal
|
|
- feh
|
|
- dunst
|
|
- picom
|
|
- arandr
|
|
- network-manager-applet
|
|
- lxappearance
|
|
state: present
|
|
|
|
- name: Install graphical AUR programs
|
|
aur:
|
|
name:
|
|
- rofi-dmenu
|
|
- polybar
|
|
- nerd-fonts-hack
|
|
- networkmanager-dmenu-git
|
|
- i3lockmore-git
|
|
- numix-icon-theme-git
|
|
- numix-circle-icon-theme-git
|
|
- pavolume-git
|
|
state: present
|
|
|
|
- name: Configure X
|
|
command:
|
|
chdir: "{{ ansible_env.HOME }}/dotfiles"
|
|
cmd: "stow X"
|
|
creates: "~/.Xresources"
|
|
|
|
- name: Configure rofi
|
|
command:
|
|
chdir: "{{ ansible_env.HOME }}/dotfiles"
|
|
cmd: "stow rofi"
|
|
creates: "~/.config/rofi/config.rasi"
|
|
|
|
- name: Configure wal
|
|
command:
|
|
chdir: "{{ ansible_env.HOME }}/dotfiles"
|
|
cmd: "stow wal"
|
|
creates: "~/bin/run-wal-hooks.sh"
|
|
|
|
- name: Configure dunst
|
|
command:
|
|
chdir: "{{ ansible_env.HOME }}/dotfiles"
|
|
cmd: "stow dunst"
|
|
creates: "~/.config/dunst/dunstrc"
|
|
|
|
- name: Configure feh
|
|
command:
|
|
chdir: "{{ ansible_env.HOME }}/dotfiles"
|
|
cmd: "stow feh"
|
|
creates: "~/.config/wal/hooks/00-feh.sh"
|
|
|
|
- name: Configure picom
|
|
command:
|
|
chdir: "{{ ansible_env.HOME }}/dotfiles"
|
|
cmd: "stow picom"
|
|
creates: "~/.config/picom.conf"
|
|
|
|
- name: Configure polybar
|
|
command:
|
|
chdir: "{{ ansible_env.HOME }}/dotfiles"
|
|
cmd: "stow polybar"
|
|
creates: "~/.config/polybar/config"
|