changing scripts to get swayidle working

This commit is contained in:
Matt Nish-Lapidus 2025-06-29 14:53:28 -04:00
parent 260e597860
commit e113d9775d
20 changed files with 137 additions and 58 deletions

View file

@ -1,4 +1,4 @@
#!/bin/sh
#!/usr/bin/env sh
set -ex

View file

@ -90,9 +90,9 @@
];
programs = {
# bash = {
# enable = true;
# };
bash = {
enable = true;
};
nix-index = {
enable = true;
enableFishIntegration = true;

View file

@ -1,4 +1,4 @@
{ pkgs, ... }:
{
services.swayidle = {
enable = true;
@ -24,31 +24,31 @@
# battery timers
{
timeout = 90;
command = "systemd-ac-power || loginctl lock-session";
command = "${pkgs.systemd}/bin/systemd-ac-power || ${pkgs.systemd}/bin/loginctl lock-session";
}
{
timeout = 120;
command = "systemd-ac-power || /home/emenel/.local/bin/lock-power-off-monitors";
command = "${pkgs.systemd}/bin/systemd-ac-power || /home/emenel/.local/bin/lock-power-off-monitors";
}
{
timeout = 180;
command = "systemd-ac-power || /home/emenel/.local/bin/lock-suspend";
command = "${pkgs.systemd}/bin/systemd-ac-power || /home/emenel/.local/bin/lock-suspend";
}
# ac power timers
{
timeout = 180;
command = "systemd-ac-power && loginctl lock-session";
command = "${pkgs.systemd}/bin/systemd-ac-power && ${pkgs.systemd}/bin/loginctl lock-session";
}
{
timeout = 240;
command = "systemd-ac-power || /home/emenel/.local/bin/lock-power-off-monitors";
command = "${pkgs.systemd}/bin/systemd-ac-power || /home/emenel/.local/bin/lock-power-off-monitors";
}
{
timeout = 600;
command = "systemd-ac-power && /home/emenel/.local/bin/lock-suspend";
command = "${pkgs.systemd}/bin/systemd-ac-power && /home/emenel/.local/bin/lock-suspend";
}
];
@ -58,11 +58,11 @@
programs.swaylock = {
enable = true;
settings = {
color = "808080";
font-size = 24;
color = "000000";
font-size = 32;
indicator-idle-visible = true;
indicator-radius = 100;
line-color = "ffffff";
indicator-radius = 250;
line-color = "cccccc";
show-failed-attempts = true;
};
};