mirror of
https://github.com/librephoenix/nixos-config
synced 2025-04-21 01:34:34 +05:30
Initial setup for swaylock and swayidle
This commit is contained in:
parent
2a74d55d0e
commit
a338326936
|
@ -57,6 +57,16 @@ in
|
||||||
swaybg -m fill -i ''+config.stylix.image+'';
|
swaybg -m fill -i ''+config.stylix.image+'';
|
||||||
'';
|
'';
|
||||||
home.file.".swaybg-stylix".executable = true;
|
home.file.".swaybg-stylix".executable = true;
|
||||||
|
# TODO add stylix colors to swaylock cmd
|
||||||
|
home.file.".swayidle-stylix".text = ''
|
||||||
|
#!/bin/sh
|
||||||
|
swaylock_cmd='swaylock --indicator-radius 200 --grace 5 --fade-in 0.5 --screenshots --effect-blur 10x10'
|
||||||
|
swayidle -w timeout 300 "$swaylock_cmd" \
|
||||||
|
timeout 600 'hyprctl dispatch dpms off' \
|
||||||
|
resume 'hyprctl dispatch dpms on' \
|
||||||
|
before-sleep "$swaylock_cmd"
|
||||||
|
'';
|
||||||
|
home.file.".swayidle-stylix".executable = true;
|
||||||
home.file = {
|
home.file = {
|
||||||
".config/qt5ct/colors/oomox-current.conf".source = config.lib.stylix.colors {
|
".config/qt5ct/colors/oomox-current.conf".source = config.lib.stylix.colors {
|
||||||
template = builtins.readFile ./oomox-current.conf.mustache;
|
template = builtins.readFile ./oomox-current.conf.mustache;
|
||||||
|
|
|
@ -19,6 +19,7 @@
|
||||||
exec-once = gnome-keyring-daemon --daemonize --login
|
exec-once = gnome-keyring-daemon --daemonize --login
|
||||||
exec-once = gnome-keyring-daemon --start --components=secrets
|
exec-once = gnome-keyring-daemon --start --components=secrets
|
||||||
|
|
||||||
|
exec-once = ~/.swayidle-stylix
|
||||||
exec = ~/.swaybg-stylix
|
exec = ~/.swaybg-stylix
|
||||||
|
|
||||||
general {
|
general {
|
||||||
|
@ -138,7 +139,7 @@
|
||||||
hyprland-protocols
|
hyprland-protocols
|
||||||
hyprpicker
|
hyprpicker
|
||||||
swayidle
|
swayidle
|
||||||
swaylock
|
swaylock-effects
|
||||||
swaybg
|
swaybg
|
||||||
#hyprpaper
|
#hyprpaper
|
||||||
#wofi
|
#wofi
|
||||||
|
|
Loading…
Reference in a new issue