mirror of
https://github.com/alyraffauf/nixcfg.git
synced 2024-11-25 14:31:54 -05:00
hyprland: move to gammastep for redshift with toggable option
This commit is contained in:
parent
128bae8061
commit
14a79b8548
|
@ -6,7 +6,7 @@
|
||||||
inputs,
|
inputs,
|
||||||
...
|
...
|
||||||
}: {
|
}: {
|
||||||
imports = [./hypridle ./hyprlock ./hyprshade ./randomWallpaper.nix];
|
imports = [./randomWallpaper.nix ./redShift.nix];
|
||||||
|
|
||||||
options = {
|
options = {
|
||||||
alyraffauf.desktop.hyprland.enable =
|
alyraffauf.desktop.hyprland.enable =
|
||||||
|
@ -21,18 +21,17 @@
|
||||||
default = true;
|
default = true;
|
||||||
type = lib.types.bool;
|
type = lib.types.bool;
|
||||||
};
|
};
|
||||||
|
alyraffauf.desktop.hyprland.redShift = lib.mkOption {
|
||||||
|
description = "Whether to redshift display colors at night.";
|
||||||
|
default = true;
|
||||||
|
type = lib.types.bool;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
config = lib.mkIf config.alyraffauf.desktop.hyprland.enable {
|
config = lib.mkIf config.alyraffauf.desktop.hyprland.enable {
|
||||||
# Hypr* modules, plguins, and tools.
|
# Hypr* modules, plguins, and tools.
|
||||||
alyraffauf = {
|
alyraffauf = {
|
||||||
desktop = {
|
desktop = {
|
||||||
hyprland = {
|
|
||||||
hypridle.enable = lib.mkDefault false;
|
|
||||||
hyprlock.enable = lib.mkDefault false;
|
|
||||||
|
|
||||||
hyprshade.enable = lib.mkDefault true;
|
|
||||||
};
|
|
||||||
theme.enable = lib.mkDefault true;
|
theme.enable = lib.mkDefault true;
|
||||||
defaultApps.enable = lib.mkDefault true;
|
defaultApps.enable = lib.mkDefault true;
|
||||||
};
|
};
|
||||||
|
@ -157,14 +156,17 @@
|
||||||
env = QT_QPA_PLATFORMTHEME,${qt_platform_theme}
|
env = QT_QPA_PLATFORMTHEME,${qt_platform_theme}
|
||||||
|
|
||||||
# Execute necessary apps
|
# Execute necessary apps
|
||||||
exec-once = ${if config.alyraffauf.desktop.hyprland.randomWallpaper then "" else "${wallpaperd}"}
|
exec-once = ${
|
||||||
|
if config.alyraffauf.desktop.hyprland.randomWallpaper
|
||||||
|
then ""
|
||||||
|
else "${wallpaperd}"
|
||||||
|
}
|
||||||
exec-once = ${bar}
|
exec-once = ${bar}
|
||||||
exec-once = ${notifyd}
|
exec-once = ${notifyd}
|
||||||
exec-once = ${lib.getExe' pkgs.wl-clipboard "wl-paste"} --type image --watch ${lib.getExe pkgs.cliphist} store
|
exec-once = ${lib.getExe' pkgs.wl-clipboard "wl-paste"} --type image --watch ${lib.getExe pkgs.cliphist} store
|
||||||
exec-once = ${lib.getExe' pkgs.wl-clipboard "wl-paste"} --type text --watch ${lib.getExe pkgs.cliphist} store
|
exec-once = ${lib.getExe' pkgs.wl-clipboard "wl-paste"} --type text --watch ${lib.getExe pkgs.cliphist} store
|
||||||
exec-once = ${pkgs.mate.mate-polkit}/libexec/polkit-mate-authentication-agent-1
|
exec-once = ${pkgs.mate.mate-polkit}/libexec/polkit-mate-authentication-agent-1
|
||||||
exec-once = ${fileManager} --daemon
|
exec-once = ${fileManager} --daemon
|
||||||
exec = ${hyprshade} auto
|
|
||||||
exec-once = ${idled}
|
exec-once = ${idled}
|
||||||
exec-once = ${lib.getExe' pkgs.swayosd "swayosd-server"}
|
exec-once = ${lib.getExe' pkgs.swayosd "swayosd-server"}
|
||||||
exec-once = ${lib.getExe' pkgs.networkmanagerapplet "nm-applet"}
|
exec-once = ${lib.getExe' pkgs.networkmanagerapplet "nm-applet"}
|
||||||
|
@ -373,7 +375,6 @@
|
||||||
|
|
||||||
# Extra bindings for petalburg.
|
# Extra bindings for petalburg.
|
||||||
bind = , xf86launch4, exec, pp-adjuster
|
bind = , xf86launch4, exec, pp-adjuster
|
||||||
bind = , xf86launch1, exec, ${inputs.nixpkgsUnstable.legacyPackages."${pkgs.system}".hyprshade}/bin/hyprshade toggle
|
|
||||||
bind = , xf86launch2, exec, ${media_play}
|
bind = , xf86launch2, exec, ${media_play}
|
||||||
|
|
||||||
# Screenshot with hyprshot.
|
# Screenshot with hyprshot.
|
||||||
|
|
14
homeManagerModules/desktop/hypr/redShift.nix
Normal file
14
homeManagerModules/desktop/hypr/redShift.nix
Normal file
|
@ -0,0 +1,14 @@
|
||||||
|
{
|
||||||
|
pkgs,
|
||||||
|
lib,
|
||||||
|
config,
|
||||||
|
...
|
||||||
|
}: {
|
||||||
|
config = lib.mkIf config.alyraffauf.desktop.hyprland.redShift {
|
||||||
|
home.packages = with pkgs; [gammastep];
|
||||||
|
wayland.windowManager.hyprland.extraConfig = ''
|
||||||
|
exec-once = ${pkgs.geoclue2}/libexec/geoclue-2.0/demos/agent
|
||||||
|
exec-once = ${lib.getExe pkgs.gammastep}
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
}
|
|
@ -12,9 +12,6 @@
|
||||||
|
|
||||||
config = lib.mkIf config.alyraffauf.desktop.sway.enable {
|
config = lib.mkIf config.alyraffauf.desktop.sway.enable {
|
||||||
alyraffauf.desktop.waylandComp.enable = true;
|
alyraffauf.desktop.waylandComp.enable = true;
|
||||||
services = {
|
|
||||||
geoclue2.enable = lib.mkDefault true;
|
|
||||||
};
|
|
||||||
|
|
||||||
programs = {
|
programs = {
|
||||||
sway = {
|
sway = {
|
||||||
|
|
|
@ -14,6 +14,7 @@
|
||||||
services = {
|
services = {
|
||||||
blueman.enable = lib.mkDefault true;
|
blueman.enable = lib.mkDefault true;
|
||||||
dbus.packages = [pkgs.gcr];
|
dbus.packages = [pkgs.gcr];
|
||||||
|
geoclue2.enable = lib.mkDefault true;
|
||||||
gnome.gnome-keyring.enable = lib.mkDefault true;
|
gnome.gnome-keyring.enable = lib.mkDefault true;
|
||||||
udev.packages = [pkgs.swayosd];
|
udev.packages = [pkgs.swayosd];
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue