Compare commits

..

2 commits

Author SHA1 Message Date
96f648441d
better screenlock 2025-08-24 16:56:29 +02:00
ded3f17176
flake.lock: Update
Flake lock file updates:

• Updated input 'home-manager':
    'github:nix-community/home-manager/88913c98fe674e10302bbdb71b4e173f527b69c2?narHash=sha256-ON5VEr70cAUR0YOHuVgLlgq9HarBqfbWsxknlmHnM%2Bo%3D' (2025-08-06)
  → 'github:nix-community/home-manager/f8af2cbe386f9b96dd9efa57ab15a09377f38f4d?narHash=sha256-ib1Xi13NEalrFqQAHceRsb%2B6aIPANFuQq80SS/bY10M%3D' (2025-08-18)
• Updated input 'nixpkgs':
    'github:nixos/nixpkgs/5b09dc45f24cf32316283e62aec81ffee3c3e376?narHash=sha256-Q/I2xJn/j1wpkGhWkQnm20nShYnG7TI99foDBpXm1SY%3D' (2025-08-03)
  → 'github:nixos/nixpkgs/fbcf476f790d8a217c3eab4e12033dc4a0f6d23c?narHash=sha256-wNO3%2BKs2jZJ4nTHMuks%2BcxAiVBGNuEBXsT29Bz6HASo%3D' (2025-08-14)
2025-08-18 12:44:10 +02:00
4 changed files with 15 additions and 12 deletions

12
flake.lock generated
View file

@ -7,11 +7,11 @@
]
},
"locked": {
"lastModified": 1754495836,
"narHash": "sha256-ON5VEr70cAUR0YOHuVgLlgq9HarBqfbWsxknlmHnM+o=",
"lastModified": 1755491080,
"narHash": "sha256-ib1Xi13NEalrFqQAHceRsb+6aIPANFuQq80SS/bY10M=",
"owner": "nix-community",
"repo": "home-manager",
"rev": "88913c98fe674e10302bbdb71b4e173f527b69c2",
"rev": "f8af2cbe386f9b96dd9efa57ab15a09377f38f4d",
"type": "github"
},
"original": {
@ -22,11 +22,11 @@
},
"nixpkgs": {
"locked": {
"lastModified": 1754214453,
"narHash": "sha256-Q/I2xJn/j1wpkGhWkQnm20nShYnG7TI99foDBpXm1SY=",
"lastModified": 1755186698,
"narHash": "sha256-wNO3+Ks2jZJ4nTHMuks+cxAiVBGNuEBXsT29Bz6HASo=",
"owner": "nixos",
"repo": "nixpkgs",
"rev": "5b09dc45f24cf32316283e62aec81ffee3c3e376",
"rev": "fbcf476f790d8a217c3eab4e12033dc4a0f6d23c",
"type": "github"
},
"original": {

View file

@ -1,7 +1,4 @@
#!/bin/sh
grimshot save output /tmp/screenshot.png
convert /tmp/screenshot.png -blur 0x10 /tmp/screenshotblur.png
grimshot save output /tmp/screenshot.png && convert /tmp/screenshot.png -blur 0x20 -pointsize 400 -font FreeSans -gravity center -fill red -annotate +0+0 "FINGER WEG" /tmp/sperrbildschirm.png
rm /tmp/screenshot.png
swaylock -i /tmp/screenshotblur.png --ignore-empty-password --show-failed-attempts --daemonize
sleep 5
systemctl suspend
swaylock -i /tmp/sperrbildschirm.png --ignore-empty-password --show-failed-attempts --daemonize

View file

@ -0,0 +1,5 @@
#!/bin/sh
grimshot save output /tmp/screenshot.png && convert /tmp/screenshot.png -blur 0x20 -pointsize 400 -font FreeSans -gravity center -fill red -annotate +0+0 "FINGER WEG" /tmp/sperrbildschirm.png
rm /tmp/screenshot.png
swaylock -i /tmp/sperrbildschirm.png --ignore-empty-password --show-failed-attempts --daemonize
systemctl suspend

View file

@ -31,7 +31,8 @@
keybindings = {
# screenlock
"${mod}+shift+l" = "exec --no-startup-id ~/.config/sway/lock.sh";
"${mod}+shift+l" = "exec --no-startup-id ~/.config/sway/lock_and_suspend.sh";
"${mod}+l" = "exec --no-startup-id ~/.config/sway/lock.sh";
# audio control fluff
"XF86AudioRaiseVolume" = "exec --no-startup-id wpctl set-volume @DEFAULT_SINK@ 5%+";