diff options
author | Dan Fedele <dan.fedele@gmail.com> | 2022-11-07 10:35:43 -0500 |
---|---|---|
committer | Dan Fedele <dan.fedele@gmail.com> | 2022-11-07 10:35:43 -0500 |
commit | fe3212ab386017573698a5a0b62f7207988f6d62 (patch) | |
tree | 9481c1873d88a0ed2f3427cab7667613ee46b57d | |
parent | ca83fcf15ea6a276116812c426ae042e2feb0e30 (diff) |
Additional kitty stuff
-rw-r--r-- | kali.yml | 35 |
1 files changed, 32 insertions, 3 deletions
@@ -194,6 +194,10 @@ state: latest user_install: no + - name: Getting all interactive users + ansible.builtin.shell: "awk -F: '{ if (($3 >= 1000 && $3 != 65534) || $3 == 0) print $1}' /etc/passwd" + register: users + - name: Install Kitty Terminal Emulator 🐱 ansible.builtin.shell: cmd: "/usr/bin/curl -sL {{ kitty_installer }} | sh /dev/stdin dest=/opt launch=n" @@ -209,6 +213,34 @@ Exec=/opt/kitty.app/bin/kitty Icon=/opt/kitty.app/share/icons/hicolor/256x256/apps/kitty.png Categories=Utility + + - name: Prepare kitty.conf files for all interactive users 🐱 + loop: "{{ users.stdout_lines }}" + ansible.builtin.file: + dest: "~{{ item }}/.config/kitty/kitty.conf" + state: touch + recurse: yes + owner: "{{ item }}" + group: "{{ item }}" + + - name: Prepare personalized configs for Kitty 🐱 + loop: "{{ users.stdout_lines }}" + ansible.builtin.blockinfile: + path: "~{{ item }}/.config/kitty/kitty.conf" + insertafter: EOF + state: present + block: | + # New windows open in current directory + map ctrl+shift+enter launch --cwd=current + + # New tabs open in current directory + map ctrl+t new_tab --cwd=current + + # The coveted "zoom" function + map ctrl+shift+z toggle_layout stack + + # Disable mouse-click a link to open in a browser + mouse_map left click ungrabbed no_op - name: Disable mouse interactivity in vim (╯°□°)╯︵ ┻━┻ ansible.builtin.blockinfile: @@ -220,9 +252,6 @@ set mouse= set ttymouse= - - name: Getting all interactive users - ansible.builtin.shell: "awk -F: '{ if (($3 >= 1000 && $3 != 65534) || $3 == 0) print $1}' /etc/passwd" - register: users - name: Add sudo-NOPASSWD to users loop: "{{ users.stdout_lines }}" |