workstation/arch/roles/gui/tasks/main.yml

115 lines
2.3 KiB
YAML
Raw Normal View History

- name: Install xorg
become: yes
pacman:
name:
- xorg
- xorg-xinit
2020-07-07 20:36:31 +00:00
- xdo
2020-10-10 15:20:37 +00:00
- xorg-xrandr
- xorg-xbacklight
state: present
2020-07-07 13:14:38 +00:00
- 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
2020-07-07 13:15:24 +00:00
2020-10-10 15:20:37 +00:00
- 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
2020-07-07 13:15:24 +00:00
- name: Install graphical programs
become: yes
pacman:
name:
- firefox
- xterm
- rofi
- python-pywal
- feh
- dunst
- picom
2020-10-10 15:20:37 +00:00
- arandr
- network-manager-applet
- lxappearance
2020-07-07 13:15:24 +00:00
state: present
- name: Install graphical AUR programs
aur:
name:
- rofi-dmenu
- polybar
2020-07-07 20:36:31 +00:00
- nerd-fonts-hack
2020-10-10 15:20:37 +00:00
- networkmanager-dmenu-git
- i3lockmore-git
- numix-icon-theme-git
- numix-circle-icon-theme-git
- pavolume-git
2020-07-07 13:15:24 +00:00
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"