Switch wallpaper

Signed-off-by: Micke Nordin <kano@sunet.se>
main
Micke Nordin 11 months ago
parent f7ac2f3f86
commit c28f562e05
Signed by: micke
GPG Key ID: 0DA0A7A5708FE257

Binary file not shown.

After

Width:  |  Height:  |  Size: 106 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.4 MiB

@ -0,0 +1,27 @@
---
- name: Set up grub env
vars:
variables:
- key: GRUB_GFXMODE
value: 1920x1080x32
- key: GRUB_CMDLINE_LINUX_DEFAULT
value: '"quiet splash"'
hosts: localhost
connection: local
become: false
tasks:
- name: Set up environment variables
become: true
ansible.builtin.lineinfile:
path: /etc/default/grub
regex: ^{{ item.key }}=
line: "{{ item.key }}={{ item.value }}"
loop: "{{ variables }}"
- name: Update grub
become: true
ansible.builtin.command:
cmd: update-grub2
- name: Set default theme
become: true
ansible.builtin.command:
cmd: plymouth-set-default-theme -R moonlight

@ -3,7 +3,7 @@
vars:
uid: "{{ lookup('env','USER') }}"
TZ: "{{ lookup('env','TZ') }}"
wallpaper_path: /home/{{ uid }}/.config/wallpaper/savannah-landscape-with-acacia-trees.jpeg
wallpaper_path: /home/{{ uid }}/.config/wallpaper/debian.jpg
hosts: localhost
connection: local
become: false
@ -52,12 +52,10 @@
ansible.builtin.file:
dest: /home/{{ uid }}/.config/wallpaper
state: directory
# Image by upklyak on Freepik
# https://www.freepik.com/free-vector/savannah-landscape-with-acacia-trees-night-vector-cartoon-illustration-african-savanna-with-full-moon-stars-dark-sky-concept-safari-vacation-trip-travel_25694514.htm
- name: Setup wall paper
ansible.builtin.copy:
dest: '{{ wallpaper_path }}'
src: ../data/savannah-landscape-with-acacia-trees.jpeg
src: ../data/debian.jpg
notify: Reload sway
handlers:
- name: Reload sway

Loading…
Cancel
Save