more setting up sway desktop, this is getting messy but I need to keep moving

This commit is contained in:
Mark Riedesel 2024-11-20 20:02:54 -06:00
parent cbf055d05e
commit 8f606ed902
14 changed files with 89 additions and 16 deletions

View file

@ -21,6 +21,7 @@
- linux-lts
- linux-lts-headers
- openssh
- zsh
when: not existing_pacstrap.stat.exists
- name: archinstall | install os | copy pacman mirrorlist

View file

@ -0,0 +1,4 @@
---
dotfiles_user: "{{ user }}"
dotfiles_url: "{{ url }}"
dotfiles_shell: bash

View file

@ -0,0 +1,13 @@
---
- name: dotfiles | set user shell
ansible.builtin.user:
name: "{{ dotfiles_user }}"
shell: "/usr/bin/{{ dotfiles_shell }}"
- name: dotfiles | install from remote source
become: true
become_user: "{{ dotfiles_user }}"
shell:
cmd: "curl -o- -L {{ dotfiles_url }} | {{ dotfiles_shell }}"
creates: "/home/{{ dotfiles_user }}/.dotfiles"
register: dotfiles

View file

@ -0,0 +1 @@
desktop_user: mark

View file

@ -1,2 +1,3 @@
- import_tasks: software_desktop.yaml
- import_tasks: software_gfx.yaml
# - import_tasks: software/minimal.yaml
- import_tasks: software/desktop.yaml
# - import_tasks: software/graphics.yaml

View file

@ -0,0 +1,43 @@
- name: install desktop packages
package:
state: present
name:
- firefox
- greetd-tuigreet
- grim
- kitty
- podman
- python-pywal
- sway
- telegram-desktop
- thunar
- waybar
- wofi
- xdg-user-dirs
- name: install AUR packages
become: true
become_user: "{{ desktop_user }}"
shell: >-
paru -Sy --noconfirm {{ packages | join(' ') }}
vars:
packages:
- dracula-gtk-theme-full
- ttf-envy-code-r
- name: greetd | configure | use tuigreet
ansible.builtin.lineinfile:
path: /etc/greetd/config.toml
regexp: '^command ='
line: command = "tuigreet --cmd sway"
- name: greetd | enable systemd unit
systemd:
name: greetd
enabled: true
- name: sway | reload if running
become: true
become_user: "{{ desktop_user }}"
shell: pidof sway && SWAYSOCK=$(ls /run/user/*/sway-ipc.*.sock | head -n 1) swaymsg reload

View file

@ -0,0 +1,7 @@
- name: install graphics packages
package:
state: present
name:
- blender
- krita
- inkscape

View file

@ -0,0 +1,7 @@
- name: install minimal packages
package:
state: present
name:
- eza
- fzf
- ripgrep

View file

@ -1,8 +0,0 @@
- name: install desktop packages
package:
- bzip2
- grim
- podman
- sway
- telegram-desktop

View file

@ -1,5 +0,0 @@
- name: install graphics packages
package:
- blender
- krita
- inkscape