Fixes and updates

Added home variable for the home folder, defaults to username.
Edited neofetch config so it runs faster.
Added mukti and ctrl-c.club variables.
This commit is contained in:
2022-03-24 15:18:47 +00:00
parent 425ac598a4
commit fc8fc4e9c8
11 changed files with 95 additions and 63 deletions

View File

@@ -2,35 +2,36 @@ print_info() {
info title
info underline
info "OS" distro
info "Host" model
info "Kernel" kernel
info "Uptime" uptime
info "Packages" packages
info "Shell" shell
# info "Resolution" resolution
# info "DE" de
# info "WM" wm
# info "WM Theme" wm_theme
# info "Theme" theme
info "Icons" icons
info "Terminal" term
info "Terminal Font" term_font
info "CPU" cpu
info "GPU" gpu
info "Memory" memory
info "OS" distro &
info "Host" model &
info "Kernel" kernel &
info "Uptime" uptime &
info "Packages" packages &
info "Shell" shell &
# info "Resolution" resolution &
# info "DE" de &
# info "WM" wm &
# info "WM Theme" wm_theme &
# info "Theme" theme &
info "Icons" icons &
info "Terminal" term &
info "Terminal Font" term_font &
info "CPU" cpu &
info "GPU" gpu &
info "Memory" memory &
# info "GPU Driver" gpu_driver # Linux/macOS only
# info "CPU Usage" cpu_usage
info "Disk" disk
# info "Battery" battery
info "Font" font
# info "Song" song
# [[ "$player" ]] && prin "Music Player" "$player"
info "Local IP" local_ip
# info "Public IP" public_ip
# info "Users" users
# info "Locale" locale # This only works on glibc systems.
# info "GPU Driver" gpu_driver & # Linux/macOS only
# info "CPU Usage" cpu_usage &
info "Disk" disk &
# info "Battery" battery &
info "Font" font &
# info "Song" song &
# [[ "$player" ]] && prin "Music Player" "$player" &
info "Local IP" local_ip &
# info "Public IP" public_ip &
# info "Users" users &
# info "Locale" locale & # This only works on glibc systems.
wait
info cols
}

View File

@@ -2,7 +2,7 @@
when: update
block:
- name: Install packages (pacman)
when: "'pacman' in group_names"
when: package_manager == 'pacman' or 'pacman' in group_names
tags: pacman
block:
- name: Install the good stuff (pacman)
@@ -19,7 +19,7 @@
- "{{ packages }}"
- name: Install packages (apk)
when: "'apk' in group_names or 'alpine' in group_names"
when: package_manager == 'apk' or 'apk' in group_names or 'alpine' in group_names
tags: apk
block:
- name: Install the good stuff (apk)
@@ -36,7 +36,7 @@
- "{{ packages }}"
- name: Install packages (apt)
when: "'apt' in group_names"
when: package_manager == 'apt' or 'apt' in group_names
tags: apt
block:
- name: Install the good stuff (apt)
@@ -60,8 +60,8 @@
tags: system
- name: Configure user configs
when: "'user' in setup"
when: "'user' in setup and ('neofetch' in packages or 'neofetch' in extra_packages)"
block:
- name: Add ~/.config/neofetch/
copy: src=neofetch dest=/home/{{ name }}/.config/neofetch owner={{ name }} group={{ name }} mode=0755
copy: src=neofetch dest={{ home }}/.config owner={{ name }} group={{ group }} mode=0755
tags: config