From acb624c20abe7295dc96cda40b6091589fe04b7e Mon Sep 17 00:00:00 2001 From: DeveloperDurp Date: Sat, 18 Oct 2025 07:01:03 -0500 Subject: [PATCH] update --- .../v1/focus_follows_cursor | 2 +- .../v1/suspend_on_ac_time | 2 +- .../v1/system_actions | 2 +- .config/scripts/sessions.sh | 4 ++-- .ssh/config | 2 +- Makefile | 3 +++ ansible/roles/packages/vars/Archlinux.yml | 3 +-- ansible/roles/update/tasks/main.yml | 24 +++++++++++++++++++ ansible/roles/update/vars/ArchLinux.yml.yml | 0 ansible/update.yml | 5 ++++ 10 files changed, 39 insertions(+), 8 deletions(-) create mode 100644 ansible/roles/update/tasks/main.yml create mode 100644 ansible/roles/update/vars/ArchLinux.yml.yml create mode 100644 ansible/update.yml diff --git a/.config/cosmic/com.system76.CosmicComp/v1/focus_follows_cursor b/.config/cosmic/com.system76.CosmicComp/v1/focus_follows_cursor index f32a580..02e4a84 100644 --- a/.config/cosmic/com.system76.CosmicComp/v1/focus_follows_cursor +++ b/.config/cosmic/com.system76.CosmicComp/v1/focus_follows_cursor @@ -1 +1 @@ -true \ No newline at end of file +false \ No newline at end of file diff --git a/.config/cosmic/com.system76.CosmicIdle/v1/suspend_on_ac_time b/.config/cosmic/com.system76.CosmicIdle/v1/suspend_on_ac_time index ad63d16..4af1832 100644 --- a/.config/cosmic/com.system76.CosmicIdle/v1/suspend_on_ac_time +++ b/.config/cosmic/com.system76.CosmicIdle/v1/suspend_on_ac_time @@ -1 +1 @@ -Some(900000) \ No newline at end of file +None \ No newline at end of file diff --git a/.config/cosmic/com.system76.CosmicSettings.Shortcuts/v1/system_actions b/.config/cosmic/com.system76.CosmicSettings.Shortcuts/v1/system_actions index 463ec15..e98d3f7 100644 --- a/.config/cosmic/com.system76.CosmicSettings.Shortcuts/v1/system_actions +++ b/.config/cosmic/com.system76.CosmicSettings.Shortcuts/v1/system_actions @@ -1,3 +1,3 @@ { - Terminal: "kitty", + Terminal: "cosmic-term", } \ No newline at end of file diff --git a/.config/scripts/sessions.sh b/.config/scripts/sessions.sh index af51ca5..a5a6af8 100755 --- a/.config/scripts/sessions.sh +++ b/.config/scripts/sessions.sh @@ -83,9 +83,9 @@ goland-new() { if [[ $dir == *'dotnet'* ]]; then /home/user/.local/share/JetBrains/Toolbox/apps/rider/bin/rider $dir & elif [[ $dir == *'go'* ]]; then - /home/user/.local/share/JetBrains/Toolbox/apps/goland/bin/goland $dir & + /home/user/.local/share/JetBrains/Toolbox/scripts/goland $dir & elif [[ $dir == *'devops'* ]]; then - /home/user/.local/share/JetBrains/Toolbox/apps/goland/bin/goland $dir & + /home/user/.local/share/JetBrains/Toolbox/scripts/goland $dir & fi #sleep 1 && /home/user/.local/share/JetBrains/Toolbox/apps/goland/bin/goland $dir & } diff --git a/.ssh/config b/.ssh/config index 76c4628..5e3381e 100644 --- a/.ssh/config +++ b/.ssh/config @@ -6,4 +6,4 @@ Host * # ForwardAgent yes host 192.168.20.253 - SetEnv TERM=xterm-256color + SetEnv TERM=xterm-256color \ No newline at end of file diff --git a/Makefile b/Makefile index c5a5b84..a1144bd 100644 --- a/Makefile +++ b/Makefile @@ -4,5 +4,8 @@ export run: ansible-playbook ./ansible/local.yml -K +update: + ansible-playbook ./ansible/update.yml -K + devpod: ansible-playbook ./ansible/devpod.yml diff --git a/ansible/roles/packages/vars/Archlinux.yml b/ansible/roles/packages/vars/Archlinux.yml index 53012b7..e89c983 100644 --- a/ansible/roles/packages/vars/Archlinux.yml +++ b/ansible/roles/packages/vars/Archlinux.yml @@ -44,7 +44,6 @@ required_packages_pacman: - curl - nmap - kubectl - #- terraform - podman - grim - slurp @@ -142,7 +141,6 @@ required_packages_flatpak: - io.gitlab.librewolf-community - org.videolan.VLC - fr.handbrake.ghb - - app.zen_browser.zen systemd_service: - cronie.service @@ -166,6 +164,7 @@ go_apps: - github.com/a-h/templ/cmd/templ@latest - github.com/segmentio/golines@latest - github.com/templui/templui/cmd/templui@latest + - github.com/go-delve/delve/cmd/dlv@latest yay: - nwg-look diff --git a/ansible/roles/update/tasks/main.yml b/ansible/roles/update/tasks/main.yml new file mode 100644 index 0000000..cf2ee7e --- /dev/null +++ b/ansible/roles/update/tasks/main.yml @@ -0,0 +1,24 @@ +- name: Update Pacman + community.general.pacman: + update_cache: true + upgrade: true + +- name: Update Homebrew and Apps + become_user: user + community.general.homebrew: + update_homebrew: true + upgrade_all: true + +- name: Get list of installed Flatpak packages + ansible.builtin.command: flatpak list --app --columns=application + register: flatpak_list + changed_when: false + +- name: Remove header line from flatpak_list + set_fact: + flatpak_list: "{{ flatpak_list.stdout_lines[1:] }}" + +- name: Update Flatpak packages + community.general.flatpak: + name: "{{ flatpak_list }}" + state: latest diff --git a/ansible/roles/update/vars/ArchLinux.yml.yml b/ansible/roles/update/vars/ArchLinux.yml.yml new file mode 100644 index 0000000..e69de29 diff --git a/ansible/update.yml b/ansible/update.yml new file mode 100644 index 0000000..40659b5 --- /dev/null +++ b/ansible/update.yml @@ -0,0 +1,5 @@ +- hosts: localhost + connection: local + become: true + roles: + - update