add script to fix lockscreen
This commit is contained in:
@@ -10,6 +10,11 @@ let
|
|||||||
sleep 4
|
sleep 4
|
||||||
systemctl --user restart xdg-desktop-portal
|
systemctl --user restart xdg-desktop-portal
|
||||||
'';
|
'';
|
||||||
|
hyprlandFixLockscreen = pkgs.writeShellScriptBin "hyprland-fix-lockscreen" ''
|
||||||
|
#!/usr/bin/env bash
|
||||||
|
hyprctl --instance 0 "keyword misc:allow_session_lock_restore 1"
|
||||||
|
hyprctl --instance 0 "dispatch exec hyprlock"
|
||||||
|
'';
|
||||||
monitor1 = if isPc then "DP-1" else if isLaptop then "eDP-1" else "eDP-1";
|
monitor1 = if isPc then "DP-1" else if isLaptop then "eDP-1" else "eDP-1";
|
||||||
monitor2 = "HDMI-A-1";
|
monitor2 = "HDMI-A-1";
|
||||||
in
|
in
|
||||||
@@ -17,6 +22,7 @@ in
|
|||||||
config = lib.mkIf cfg.enable {
|
config = lib.mkIf cfg.enable {
|
||||||
#programs.swaylock.enable = true;
|
#programs.swaylock.enable = true;
|
||||||
services.hyprpaper.enable = true;
|
services.hyprpaper.enable = true;
|
||||||
|
home.packages = [ hyprlandFixLockscreen ];
|
||||||
home.file.".config/hypr/monitor-config.js".source = ../../.config/hypr/monitor-config.js;
|
home.file.".config/hypr/monitor-config.js".source = ../../.config/hypr/monitor-config.js;
|
||||||
wayland.windowManager.hyprland = {
|
wayland.windowManager.hyprland = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|||||||
Reference in New Issue
Block a user