diff --git a/roles/core_apps/tasks/main.yml b/roles/core_apps/tasks/main.yml index b2bc873..3546293 100644 --- a/roles/core_apps/tasks/main.yml +++ b/roles/core_apps/tasks/main.yml @@ -25,7 +25,6 @@ - { src: 'oh-my-posh', dest: '.config', package: 'oh-my-posh-bin' } - { src: 'zsh/.zshrc', dest: '', package: 'zsh'} - { src: 'wezterm', dest: '.config', package: 'wezterm' } - - { src: 'fcitx5', dest: '.config', package: 'fcitx5' } when: item.package in ansible_facts.packages - name: Update User Shell and Disable Warnings diff --git a/roles/hyprland/files/hypr/scripts/hyprsunset.sh b/roles/hyprland/files/hypr/scripts/hyprsunset.sh index 8a06dd7..a482ad5 100755 --- a/roles/hyprland/files/hypr/scripts/hyprsunset.sh +++ b/roles/hyprland/files/hypr/scripts/hyprsunset.sh @@ -1,7 +1,2 @@ #!/bin/bash - -if `pgrep hyprsunset > /dev/null`; then - killall hyprsunset -else - hyprsunset -t 4000 & -fi +pgrep hyprsunset > /dev/null && killall hyprsunset || hyprsunset -t 4000 & diff --git a/roles/i18n/tasks/main.yml b/roles/i18n/tasks/main.yml index 04cfbe1..1d0b10b 100644 --- a/roles/i18n/tasks/main.yml +++ b/roles/i18n/tasks/main.yml @@ -9,10 +9,17 @@ when: i18n_distribution_config.stat.exists - name: Copy configs for fcitx5 - ansible.posix.synchronize: - mode: push - src: "{{ item.src }}" - dest: "{{ ansible_user_dir }}/{{ item.dest }}" - recursive: yes - loop: - - { src: 'fcitx5', dest: '.config' } + block: + - name: Create base config directory + file: + path: "{{ ansible_user_dir}}/.config" + state: directory + + - name: Synchronize configuration for fcitx5 + ansible.posix.synchronize: + mode: push + src: "{{ item.src }}" + dest: "{{ ansible_user_dir }}/{{ item.dest }}" + recursive: yes + loop: + - { src: 'fcitx5', dest: '.config' }