-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* update version number to 1.0.1 Beta * add sunroof * add spotube * add cursor themes * add cursor size & changed how all.yml gets the user * update changelog * add stable/Rolling release instructions * add a backup script for dotfiles * backup pacman mirrorlist, ad rate-mirrors, and update pacman conf * rate-mirrors hotfix * add rate-mirrors, update mirrors, add chaotic_aur * add update system packages * update default for chaotic_aur: false * pacman fixes * refactor framework workaround to laptop workarounds * hyprshot added * keybind for fullscreen * add libadwaita as a dependencie * v1.0.1 Release
- Loading branch information
Showing
20 changed files
with
338 additions
and
49 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
# pre_tasks/laptop_workarounds/main.yml | ||
- name: Set board vendor flag with the actual vendor value | ||
set_fact: | ||
board_vendor: "{{ ansible_facts['board_vendor'] }}" | ||
|
||
- name: Set CPU brand flag with the first word of the processor | ||
set_fact: | ||
cpu_generation: "{{ ansible_facts['processor'][2].split(' ')[0] }}" | ||
|
||
- name: Display board vendor flag | ||
debug: | ||
msg: "Board Vendor Flag: {{ board_vendor }}" | ||
|
||
- name: Display CPU brand first word | ||
debug: | ||
msg: "CPU Brand First Word: {{ cpu_generation }}" | ||
|
||
- name: Load hid_sensor_hub module | ||
command: modprobe -i hid_sensor_hub | ||
when: | ||
- board_vendor == 'Framework' | ||
- cpu_generation == '12th' | ||
become: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,106 @@ | ||
--- | ||
- name: Upgrade system | ||
community.general.pacman: | ||
update_cache: yes | ||
upgrade: yes | ||
become: true | ||
|
||
- name: Installing {{ pacman.aur_helper }} AUR helper | ||
kewlfft.aur.aur: | ||
name: "{{ pacman.aur_helper }}" | ||
|
||
- name: Install rate-mirrors package | ||
kewlfft.aur.aur: | ||
name: rate-mirrors-bin | ||
|
||
- name: Backup Arch Linux Mirrors | ||
copy: | ||
src: /etc/pacman.d/mirrorlist | ||
dest: /etc/pacman.d/mirrorlist.bak | ||
owner: root | ||
group: root | ||
mode: 0644 | ||
become: true | ||
|
||
- name: Backup Chaotic AUR Mirrors | ||
copy: | ||
src: /etc/pacman.d/chaotic-mirrorlist | ||
dest: /etc/pacman.d/chaotic-mirrorlist.bak | ||
owner: root | ||
group: root | ||
mode: 0644 | ||
become: true | ||
when: pacman.chaotic_aur | ||
|
||
- name: Generate Arch Linux Mirrors List | ||
shell: "rate-mirrors --allow-root --protocol https arch | grep -v '^#' > /tmp/mirrorlist.tmp" | ||
become: true | ||
register: generate_mirrorlist_arch | ||
changed_when: generate_mirrorlist_arch.rc == 0 | ||
|
||
- name: Generate Chaotic AUR Mirrors List | ||
shell: rate-mirrors --allow-root --protocol https chaotic-aur | grep -v '^#' >> /tmp/chaotic_mirrorlist.tmp | ||
when: pacman.chaotic_aur | ||
become: true | ||
register: generate_mirrorlist_chaotic | ||
changed_when: generate_mirrorlist_chaotic.rc == 0 | ||
|
||
- name: Update Mirrors List | ||
copy: | ||
src: /tmp/mirrorlist.tmp | ||
dest: /etc/pacman.d/mirrorlist | ||
owner: root | ||
group: root | ||
mode: 0644 | ||
become: true | ||
|
||
- name: Update Chaotic AUR Mirrors List | ||
copy: | ||
src: /tmp/chaotic_mirrorlist.tmp | ||
dest: /etc/pacman.d/chaotic-mirrorlist | ||
owner: root | ||
group: root | ||
mode: 0644 | ||
become: true | ||
when: pacman.chaotic_aur | ||
|
||
- name: Remove Pacman Temporary Mirror List File | ||
file: | ||
path: /tmp/mirrorlist.tmp | ||
state: absent | ||
become: true | ||
|
||
- name: Remove Chaotic AUR Temporary Mirror List File | ||
file: | ||
path: /tmp/chaotic_mirrorlist.tmp | ||
state: absent | ||
become: true | ||
when: pacman.chaotic_aur | ||
|
||
- name: Setup Chaotic AUR Keys and Mirrorlist | ||
block: | ||
- name: Receive Chaotic AUR Key | ||
command: pacman-key --recv-key 3056513887B78AEB --keyserver keyserver.ubuntu.com | ||
become: true | ||
|
||
- name: Sign Chaotic AUR Key | ||
command: pacman-key --lsign-key 3056513887B78AEB | ||
become: true | ||
|
||
- name: Install Chaotic Keyring | ||
command: pacman -U --noconfirm 'https://cdn-mirror.chaotic.cx/chaotic-aur/chaotic-keyring.pkg.tar.zst' | ||
become: true | ||
|
||
- name: Install Chaotic Mirrorlist | ||
command: pacman -U --noconfirm 'https://cdn-mirror.chaotic.cx/chaotic-aur/chaotic-mirrorlist.pkg.tar.zst' | ||
become: true | ||
when: pacman.chaotic_aur | ||
|
||
- name: Update pacman configuration file | ||
ansible.builtin.template: | ||
template: | ||
src: pacman.conf.j2 | ||
dest: /etc/pacman.conf | ||
backup: no | ||
owner: root | ||
group: root | ||
mode: 0644 | ||
become: true | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.