Skip to content

Commit f95db5c

Browse files
committed
Use neofetch in customization-text.yaml
1 parent 81d3a5c commit f95db5c

File tree

1 file changed

+42
-4
lines changed

1 file changed

+42
-4
lines changed

customization-text.yaml

+42-4
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,52 @@
88
apt:
99
package:
1010
- colordiff
11-
- cowsay
1211
- fortune
1312
- lolcat
13+
- neofetch
14+
15+
- name: Override neofetch configuration
16+
copy:
17+
dest: ~/.config/neofetch/config.conf
18+
content: |
19+
print_info() {
20+
info title
21+
22+
prin ""
23+
24+
info "OS" distro
25+
info "Kernel" kernel
26+
info "Uptime" uptime
27+
info "IP" local_ip
28+
29+
prin ""
30+
31+
info "Host" model
32+
info "CPU" cpu
33+
info "Memory" memory
34+
info "GPU" gpu
35+
info "Screens" resolution
36+
info "Disk" disk
37+
info "Battery" battery
38+
}
1439
15-
- name: Add fortune to ~/.bashrc
16-
lineinfile:
40+
cpu_temp="C"
41+
refresh_rate="on"
42+
block_range=(0 15)
43+
cpu_display="infobar"
44+
memory_display="infobar"
45+
battery_display="infobar"
46+
disk_display="infobar"
47+
thumbnail_dir="${XDG_CACHE_HOME:-${HOME}/.cache}/thumbnails/neofetch"
48+
49+
- name: Add neofetch & fortune to ~/.bashrc
50+
blockinfile:
1751
path: ~/.bashrc
18-
line: fortune | cowsay -W 70 -f "$(ls /usr/share/cowsay/cows | sort -R | head -1)" | lolcat
52+
marker: "### {mark} Ansible managed: login banner"
53+
block: |
54+
echo ""
55+
neofetch
56+
fortune | lolcat
1957
2058
- name: Disable sudo password requirement
2159
become: yes

0 commit comments

Comments
 (0)