mirror of
https://github.com/ivabus/dotfiles
synced 2024-11-22 08:05:07 +03:00
9 lines
423 B
Bash
Executable file
9 lines
423 B
Bash
Executable file
#!/bin/sh
|
|
# Times the screen off and puts it to background
|
|
swayidle \
|
|
timeout 10 'swaymsg "output * dpms off" && brightnessctl -d kbd_backlight set 0%' \
|
|
resume 'swaymsg "output * dpms on" && brightnessctl -d kbd_backlight set 30%' &
|
|
# Locks the screen immediately
|
|
swaylock -i ~/.config/sway/magenta_blue.png -s stretch --font JetBrains\ Mono
|
|
# Kills last background task so idle timer doesn't keep running
|
|
kill %%
|