Make hibernation and suspend work
This commit is contained in:
@@ -32,9 +32,6 @@
|
|||||||
|
|
||||||
window_margin_width = 8;
|
window_margin_width = 8;
|
||||||
|
|
||||||
allow_remote_control = "yes";
|
|
||||||
listen_on = "unix:/tmp/mykitty";
|
|
||||||
|
|
||||||
foreground = "#CDD6F4";
|
foreground = "#CDD6F4";
|
||||||
background = "#080014";
|
background = "#080014";
|
||||||
selection_foreground = "#080014";
|
selection_foreground = "#080014";
|
||||||
|
|||||||
@@ -28,13 +28,13 @@ case "$sel" in
|
|||||||
*Hibernate*)
|
*Hibernate*)
|
||||||
confirm=$(printf "No\nYes" | dmenu -i -p "Are you sure you want to hibernate? :" \
|
confirm=$(printf "No\nYes" | dmenu -i -p "Are you sure you want to hibernate? :" \
|
||||||
-nf '#e0af68' -nb '#1f2335' -sb '#f7768e' -sf '#1a1b26' -fn 'AgaveNerdFont-16')
|
-nf '#e0af68' -nb '#1f2335' -sb '#f7768e' -sf '#1a1b26' -fn 'AgaveNerdFont-16')
|
||||||
[ "$confirm" = "Yes" ] && exec systemctl hibernate
|
[ "$confirm" = "Yes" ] && exec systemctl --system hibernate
|
||||||
;;
|
;;
|
||||||
*Stop\ KutuWM*)
|
*Stop\ KutuWM*)
|
||||||
exec kutu-run.rb stop
|
exec kutu-run.rb stop
|
||||||
;;
|
;;
|
||||||
*Suspend*)
|
*Suspend*)
|
||||||
exec systemctl suspend
|
exec systemctl --system suspend
|
||||||
;;
|
;;
|
||||||
*Lock*)
|
*Lock*)
|
||||||
~/dotfiles/scripts/lock.sh &
|
~/dotfiles/scripts/lock.sh &
|
||||||
|
|||||||
+1
-1
@@ -21,7 +21,7 @@ in
|
|||||||
|
|
||||||
home.file.".xinitrc".text = ''
|
home.file.".xinitrc".text = ''
|
||||||
if [ -f ~/.xsession ]; then
|
if [ -f ~/.xsession ]; then
|
||||||
exec ~/.xsession
|
exec dbus-run-session ~/.xsession
|
||||||
fi
|
fi
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
|||||||
@@ -5,15 +5,19 @@
|
|||||||
"nouveau"
|
"nouveau"
|
||||||
];
|
];
|
||||||
|
|
||||||
boot.kernelParams = [ "video=efifb:1920x1080" ];
|
boot.kernelParams = [
|
||||||
|
"mem_sleep_default=deep"
|
||||||
boot.extraModulePackages = [ config.boot.kernelPackages.nvidia_x11 ];
|
"video=efifb:1920x1080"
|
||||||
|
"nvidia.NVreg_TemporaryFilePath=/var/tmp"
|
||||||
|
];
|
||||||
|
|
||||||
hardware.graphics.enable = true;
|
hardware.graphics.enable = true;
|
||||||
|
|
||||||
hardware.nvidia = {
|
hardware.nvidia = {
|
||||||
modesetting.enable = true;
|
modesetting.enable = true;
|
||||||
open = true;
|
powerManagement.enable = true;
|
||||||
|
nvidiaSettings = true;
|
||||||
|
open = false;
|
||||||
prime = {
|
prime = {
|
||||||
offload = {
|
offload = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|||||||
Reference in New Issue
Block a user