mirror of
https://github.com/Noratrieb/nixos.git
synced 2026-01-14 11:45:06 +01:00
power off
This commit is contained in:
parent
c93922931a
commit
77e8e412b5
3 changed files with 9 additions and 4 deletions
|
|
@ -250,8 +250,6 @@ spawn-at-startup "xwayland-satellite"
|
|||
environment {
|
||||
DISPLAY ":0"
|
||||
ELECTRON_OZONE_PLATFORM_HINT "auto"
|
||||
// see keyring below
|
||||
// SSH_AUTH_SOCK "/run/user/1000/keyring/ssh"
|
||||
}
|
||||
|
||||
// Uncomment this line to ask the clients to omit their client-side decorations if possible.
|
||||
|
|
@ -340,7 +338,7 @@ binds {
|
|||
// Suggested binds for running programs: terminal, app launcher, screen locker.
|
||||
Mod+T { spawn "alacritty"; }
|
||||
Mod+D { spawn "fuzzel"; }
|
||||
Super+Alt+L { spawn "swaylock"; }
|
||||
Super+Alt+L { spawn "lock-and-power-off-screen"; }
|
||||
|
||||
// You can also use a shell. Do this if you need pipes, multiple commands, etc.
|
||||
// Note: the entire command goes as a single argument in the end.
|
||||
|
|
|
|||
|
|
@ -52,6 +52,13 @@ in
|
|||
spotify
|
||||
# rustup from nix for rust :)
|
||||
rustup
|
||||
(pkgs.writeShellApplication {
|
||||
name = "lock-and-power-off-screen";
|
||||
text = ''
|
||||
niri msg action power-off-monitors
|
||||
exec swaylock
|
||||
'';
|
||||
})
|
||||
] ++ import ./common-packages.nix { inherit pkgs inputs; };
|
||||
|
||||
# Nicely reload system units when changing configs
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue