From ac24355f282da656ca2ef6c03881cb488ddd37823efb227b0d31cf48805894d2 Mon Sep 17 00:00:00 2001 From: Mikkel Harboe Arp Henriksen Date: Mon, 23 Jun 2025 22:16:50 +0200 Subject: [PATCH] styles swaylock --- local.yml | 1 + templates/hyprland.conf.j2 | 4 ++-- templates/lock-screen.sh.j2 | 19 +++++++++++++++++++ 3 files changed, 22 insertions(+), 2 deletions(-) create mode 100644 templates/lock-screen.sh.j2 diff --git a/local.yml b/local.yml index 814e9cf..8cee239 100644 --- a/local.yml +++ b/local.yml @@ -145,6 +145,7 @@ - { src: 'hypr-keys.sh.j2', dest: 'hypr-keys.sh' } - { src: 'launch-wofi.sh.j2', dest: 'launch_wofi.sh' } - { src: 'launch-wifi-menu.sh.j2', dest: 'launch-wifi-menu.sh' } + - { src: 'lock-screen.sh.j2', dest: 'lock-screen.sh' } - name: "TEMA :: Installer Atlantis skrifttype" ansible.builtin.copy: diff --git a/templates/hyprland.conf.j2 b/templates/hyprland.conf.j2 index 8fdcc30..fa006bd 100644 --- a/templates/hyprland.conf.j2 +++ b/templates/hyprland.conf.j2 @@ -11,7 +11,7 @@ exec-once = swayidle -w \ timeout 300 'hyprctl dispatch dpms off' \ resume 'hyprctl dispatch dpms on' \ timeout 600 'systemctl suspend' \ - before-sleep 'swaylock -f' + before-sleep '/home/{{ username }}/.local/bin/lock-screen.sh' # --------------------------------------------------- @@ -167,4 +167,4 @@ bind = , XF86MonBrightnessDown, exec, brightnessctl set 5%- bind = , XF86AudioMicMute, exec, wpctl set-mute @DEFAULT_AUDIO_SOURCE@ toggle # Lock Screen -bind = $mainMod, L, exec, swaylock -f --screenshots --clock --indicator --effect-blur 7x5 --effect-vignette 0.5:0.5 --ring-color 89b4fa --key-hl-color 00aaff --text-color ffffff \ No newline at end of file +bind = $mainMod, L, exec, /home/{{ username }}/.local/bin/lock-screen.sh \ No newline at end of file diff --git a/templates/lock-screen.sh.j2 b/templates/lock-screen.sh.j2 new file mode 100644 index 0000000..c51fc58 --- /dev/null +++ b/templates/lock-screen.sh.j2 @@ -0,0 +1,19 @@ +#!/bin/bash + +# Script til at starte swaylock med et "Stargate Atlantis" tema + +swaylock \ + --screenshots \ + --clock \ + --indicator \ + --indicator-radius 100 \ + --indicator-thickness 7 \ + --effect-blur 7x5 \ + --effect-vignette 0.5:0.5 \ + --ring-color 00aaff \ + --key-hl-color 89b4fa \ + --line-color 00000000 \ + --inside-color 00000088 \ + --separator-color 00000000 \ + --text-color cdd6f4 \ + --font "JetBrains Mono Nerd Font" \ No newline at end of file