diff --git a/local.yml b/local.yml index 47bd04a..71c4e5e 100644 --- a/local.yml +++ b/local.yml @@ -131,6 +131,15 @@ dest: "/home/{{ username }}/.config/hypr/hyprpaper.conf" mode: '0644' + - name: "KEYBINDING SCRIPT :: Opret keybinding cheat sheet script fra template" + become: true + become_user: "{{ username }}" + ansible.builtin.template: + src: "templates/hypr-keys.sh.j2" + dest: "/home/{{ username }}/.local/bin/hypr-keys.sh" + mode: '0755' + + - name: "FIREWALL :: Konfigurer UFW's standardpolitikker" tags: firewall block: diff --git a/templates/hypr-keys.sh.j2 b/templates/hypr-keys.sh.j2 new file mode 100644 index 0000000..568d56e --- /dev/null +++ b/templates/hypr-keys.sh.j2 @@ -0,0 +1,7 @@ +#!/bin/bash + +# Denne kommando finder alle linjer der starter med 'bind =', +# fjerner unødvendige tegn, og viser dem i wofi. +grep -oP '^bind\s*=\s*.*' ~/.config/hypr/hyprland.conf | \ +sed -e 's/bind = //' -e 's/SUPER/WIN/' | \ +wofi --show dmenu -p "Hyprland Keybindings" \ No newline at end of file