Compare commits
2 commits
f9ec509295
...
96f648441d
| Author | SHA1 | Date | |
|---|---|---|---|
| 96f648441d | |||
| ded3f17176 |
4 changed files with 15 additions and 12 deletions
12
flake.lock
generated
12
flake.lock
generated
|
|
@ -7,11 +7,11 @@
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1754495836,
|
"lastModified": 1755491080,
|
||||||
"narHash": "sha256-ON5VEr70cAUR0YOHuVgLlgq9HarBqfbWsxknlmHnM+o=",
|
"narHash": "sha256-ib1Xi13NEalrFqQAHceRsb+6aIPANFuQq80SS/bY10M=",
|
||||||
"owner": "nix-community",
|
"owner": "nix-community",
|
||||||
"repo": "home-manager",
|
"repo": "home-manager",
|
||||||
"rev": "88913c98fe674e10302bbdb71b4e173f527b69c2",
|
"rev": "f8af2cbe386f9b96dd9efa57ab15a09377f38f4d",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
|
@ -22,11 +22,11 @@
|
||||||
},
|
},
|
||||||
"nixpkgs": {
|
"nixpkgs": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1754214453,
|
"lastModified": 1755186698,
|
||||||
"narHash": "sha256-Q/I2xJn/j1wpkGhWkQnm20nShYnG7TI99foDBpXm1SY=",
|
"narHash": "sha256-wNO3+Ks2jZJ4nTHMuks+cxAiVBGNuEBXsT29Bz6HASo=",
|
||||||
"owner": "nixos",
|
"owner": "nixos",
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
"rev": "5b09dc45f24cf32316283e62aec81ffee3c3e376",
|
"rev": "fbcf476f790d8a217c3eab4e12033dc4a0f6d23c",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,4 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
grimshot save output /tmp/screenshot.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
|
||||||
convert /tmp/screenshot.png -blur 0x10 /tmp/screenshotblur.png
|
|
||||||
rm /tmp/screenshot.png
|
rm /tmp/screenshot.png
|
||||||
swaylock -i /tmp/screenshotblur.png --ignore-empty-password --show-failed-attempts --daemonize
|
swaylock -i /tmp/sperrbildschirm.png --ignore-empty-password --show-failed-attempts --daemonize
|
||||||
sleep 5
|
|
||||||
systemctl suspend
|
|
||||||
|
|
|
||||||
5
programm_configs/lock_and_suspend.sh
Executable file
5
programm_configs/lock_and_suspend.sh
Executable 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
|
||||||
|
|
@ -31,7 +31,8 @@
|
||||||
|
|
||||||
keybindings = {
|
keybindings = {
|
||||||
# screenlock
|
# 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
|
# audio control fluff
|
||||||
"XF86AudioRaiseVolume" = "exec --no-startup-id wpctl set-volume @DEFAULT_SINK@ 5%+";
|
"XF86AudioRaiseVolume" = "exec --no-startup-id wpctl set-volume @DEFAULT_SINK@ 5%+";
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue