fix(hyprlock): respect system while showing lockscreen
This commit is contained in:
parent
7993aae086
commit
439a54a35c
3 changed files with 24 additions and 10 deletions
|
@ -1,8 +1,3 @@
|
|||
{
|
||||
inputs,
|
||||
pkgs,
|
||||
...
|
||||
}:
|
||||
{
|
||||
home.sessionVariables.NIXOS_OZONE_WL = "1";
|
||||
wayland.windowManager.hyprland = {
|
||||
|
|
|
@ -1,16 +1,25 @@
|
|||
{ pkgs, ... }:
|
||||
{ pkgs, osConfig, ... }:
|
||||
let
|
||||
cfg =
|
||||
if osConfig.networking.hostName == "nemesis" then
|
||||
{
|
||||
mainMonitor = "desc:OOO AN-270W04K";
|
||||
}
|
||||
else
|
||||
{
|
||||
mainMonitor = "";
|
||||
};
|
||||
in
|
||||
{
|
||||
programs.hyprlock = {
|
||||
enable = true;
|
||||
package = null;
|
||||
|
||||
settings = {
|
||||
"$mainMonitor" = "desc:OOO AN-270W04K";
|
||||
"$vertMonitor" = "desc:Philips Consumer Electronics Company PHL 246V5 AU11330000086";
|
||||
general.hide_cursor = true;
|
||||
|
||||
label = {
|
||||
monitor = "HDMI-A-1";
|
||||
monitor = cfg.mainMonitor;
|
||||
text = ''hi, $USER.'';
|
||||
font_size = 32;
|
||||
halign = "center";
|
||||
|
@ -19,7 +28,6 @@
|
|||
zindex = 1;
|
||||
};
|
||||
input-field = {
|
||||
monitor = "HDMI-A-1";
|
||||
fade_on_empty = true;
|
||||
size = "200, 45";
|
||||
halign = "center";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue