mirror of
https://github.com/librephoenix/nixos-config
synced 2025-07-02 04:54:35 +05:30
Temporary fix for dpms not turning off
This commit is contained in:
parent
1371850a13
commit
c57da69726
|
@ -39,7 +39,7 @@
|
||||||
exec-once = waybar
|
exec-once = waybar
|
||||||
exec-once = emacs --daemon
|
exec-once = emacs --daemon
|
||||||
|
|
||||||
exec-once = swayidle -w timeout 300 'gtklock -d' timeout 600 'hyprctl dispatch dpms off' resume 'hyprctl dispatch dpms on' before-sleep "gtklock -d"
|
exec-once = swayidle -w timeout 90 '${pkgs.gtklock}/bin/gtklock -d' timeout 210 'suspend-unless-render' resume '${pkgs.hyprland}/bin/hyprctl dispatch dpms on' before-sleep "${pkgs.gtklock}/bin/gtklock -d"
|
||||||
exec-once = obs-notification-mute-daemon
|
exec-once = obs-notification-mute-daemon
|
||||||
|
|
||||||
exec = ~/.swaybg-stylix
|
exec = ~/.swaybg-stylix
|
||||||
|
@ -127,8 +127,8 @@
|
||||||
bind=,code:238,exec,brightnessctl --device='asus::kbd_backlight' set +1
|
bind=,code:238,exec,brightnessctl --device='asus::kbd_backlight' set +1
|
||||||
bind=,code:255,exec,airplane-mode
|
bind=,code:255,exec,airplane-mode
|
||||||
|
|
||||||
bind=SUPERSHIFT,S,exec,gtklock & sleep 1 && systemctl suspend
|
bind=SUPERSHIFT,S,exec,gtklock -d & sleep 1 && systemctl suspend
|
||||||
bind=SUPERCTRL,L,exec,gtklock
|
bind=SUPERCTRL,L,exec,gtklock -d
|
||||||
|
|
||||||
bind=SUPER,H,movefocus,l
|
bind=SUPER,H,movefocus,l
|
||||||
bind=SUPER,J,movefocus,d
|
bind=SUPER,J,movefocus,d
|
||||||
|
@ -230,6 +230,9 @@
|
||||||
follow_mouse = 2
|
follow_mouse = 2
|
||||||
}
|
}
|
||||||
|
|
||||||
|
misc {
|
||||||
|
mouse_move_enables_dpms = false
|
||||||
|
}
|
||||||
decoration {
|
decoration {
|
||||||
rounding = 8
|
rounding = 8
|
||||||
blur {
|
blur {
|
||||||
|
@ -262,15 +265,16 @@
|
||||||
hyprpicker
|
hyprpicker
|
||||||
swayidle
|
swayidle
|
||||||
gtklock
|
gtklock
|
||||||
(pkgs.swaylock-effects.overrideAttrs (oldAttrs: {
|
#swaylock
|
||||||
version = "1.6.4-1";
|
#(pkgs.swaylock-effects.overrideAttrs (oldAttrs: {
|
||||||
src = fetchFromGitHub {
|
# version = "1.6.4-1";
|
||||||
owner = "mortie";
|
# src = fetchFromGitHub {
|
||||||
repo = "swaylock-effects";
|
# owner = "mortie";
|
||||||
rev = "20ecc6a0a5b61bb1a66cfb513bc357f74d040868";
|
# repo = "swaylock-effects";
|
||||||
sha256 = "sha256-nYA8W7iabaepiIsxDrCkG/WIFNrVdubk/AtFhIvYJB8=";
|
# rev = "20ecc6a0a5b61bb1a66cfb513bc357f74d040868";
|
||||||
};
|
# sha256 = "sha256-nYA8W7iabaepiIsxDrCkG/WIFNrVdubk/AtFhIvYJB8=";
|
||||||
}))
|
# };
|
||||||
|
#}))
|
||||||
swaybg
|
swaybg
|
||||||
fnott
|
fnott
|
||||||
#hyprpaper
|
#hyprpaper
|
||||||
|
@ -315,6 +319,11 @@
|
||||||
sleep 10;
|
sleep 10;
|
||||||
done
|
done
|
||||||
'')
|
'')
|
||||||
|
(pkgs.writeScriptBin "suspend-unless-render" ''
|
||||||
|
#!/bin/sh
|
||||||
|
if pgrep -x nixos-rebuild > /dev/null || pgrep -x home-manager > /dev/null || pgrep -x kdenlive > /dev/null || pgrep -x FL64.exe > /dev/null || pgrep -x blender > /dev/null || pgrep -x flatpak > /dev/null;
|
||||||
|
then echo "Shouldn't suspend"; sleep 10; else echo "Should suspend"; systemctl suspend; fi
|
||||||
|
'')
|
||||||
(pkgs.writeScriptBin "hyprworkspace" ''
|
(pkgs.writeScriptBin "hyprworkspace" ''
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
# from https://github.com/taylor85345/hyprland-dotfiles/blob/master/hypr/scripts/workspace
|
# from https://github.com/taylor85345/hyprland-dotfiles/blob/master/hypr/scripts/workspace
|
||||||
|
@ -706,6 +715,12 @@
|
||||||
background-size: auto 100%;
|
background-size: auto 100%;
|
||||||
}
|
}
|
||||||
'';
|
'';
|
||||||
|
#programs.swaylock = {
|
||||||
|
# enable = true;
|
||||||
|
# settings = {
|
||||||
|
# color = "#"+config.lib.stylix.colors.base00;
|
||||||
|
# };
|
||||||
|
#};
|
||||||
programs.fuzzel.enable = true;
|
programs.fuzzel.enable = true;
|
||||||
programs.fuzzel.settings = {
|
programs.fuzzel.settings = {
|
||||||
main = {
|
main = {
|
||||||
|
|
Loading…
Reference in a new issue