feat(desktop): disable river and go back to hyprland.
This commit is contained in:
parent
5d041294a4
commit
13b96d9574
5 changed files with 92 additions and 53 deletions
|
@ -104,10 +104,10 @@
|
||||||
# Enable light for image control
|
# Enable light for image control
|
||||||
programs.light.enable = true;
|
programs.light.enable = true;
|
||||||
|
|
||||||
programs.river = {
|
# programs.river = {
|
||||||
enable = true;
|
# enable = true;
|
||||||
extraPackages = [];
|
# extraPackages = [];
|
||||||
};
|
# };
|
||||||
|
|
||||||
# Define a user account. Don't forget to set a password with ‘passwd’.
|
# Define a user account. Don't forget to set a password with ‘passwd’.
|
||||||
users.users.crony = {
|
users.users.crony = {
|
||||||
|
@ -139,6 +139,7 @@
|
||||||
crony.secrets.enable = true;
|
crony.secrets.enable = true;
|
||||||
crony.ryzenadj.enable = true;
|
crony.ryzenadj.enable = true;
|
||||||
crony.auto-cpufreq.enable = true;
|
crony.auto-cpufreq.enable = true;
|
||||||
|
crony.hyprland-nixos.enable = true;
|
||||||
|
|
||||||
xdg.portal = {
|
xdg.portal = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|
|
@ -30,7 +30,8 @@
|
||||||
crony.gaming.enable = true;
|
crony.gaming.enable = true;
|
||||||
crony.flatpak.enable = true;
|
crony.flatpak.enable = true;
|
||||||
crony.wayland.enable = true;
|
crony.wayland.enable = true;
|
||||||
crony.river.enable = true;
|
crony.river.enable = false;
|
||||||
|
crony.hyprland.enable = true;
|
||||||
|
|
||||||
# DO NOT CHANGE ALSO
|
# DO NOT CHANGE ALSO
|
||||||
home.stateVersion = "24.11"; # Please read the comment before changing.
|
home.stateVersion = "24.11"; # Please read the comment before changing.
|
||||||
|
|
|
@ -78,6 +78,38 @@ in {
|
||||||
};
|
};
|
||||||
|
|
||||||
config = lib.mkIf config.crony.hyprland.enable {
|
config = lib.mkIf config.crony.hyprland.enable {
|
||||||
|
# Enable hyprpaper
|
||||||
|
services.hyprpaper.enable = true;
|
||||||
|
|
||||||
|
# Enable hypridle
|
||||||
|
services.hypridle = {
|
||||||
|
enable = true;
|
||||||
|
settings = {
|
||||||
|
general = {
|
||||||
|
lock_cmd = "pidof hyprlock || hyprlock"; # avoid starting multiple hyprlock instances.
|
||||||
|
before_sleep_cmd = "loginctl lock-session"; # lock before suspend.
|
||||||
|
after_sleep_cmd = "hyprctl dispatch dpms on"; # to avoid having to press a key twice to turn on the display.
|
||||||
|
};
|
||||||
|
|
||||||
|
listener = [
|
||||||
|
{
|
||||||
|
timeout = 10; # 10 sec
|
||||||
|
on-timeout = "pidof hyprlock && hyprctl dispatch dpms off"; # Turn off screen if hyprlock is running
|
||||||
|
on-resume = "hyprctl dispatch dpms on"; # Turn on screen when activiy is detected after timeout has fired
|
||||||
|
}
|
||||||
|
{
|
||||||
|
timeout = 300; # 5min
|
||||||
|
on-timeout = "loginctl lock-session"; # lock screen when timeout has passed
|
||||||
|
}
|
||||||
|
{
|
||||||
|
timeout = 310; # 5min and 10 sec
|
||||||
|
on-timeout = "hyprctl dispatch dpms off"; # Turn off screen if hyprlock is running
|
||||||
|
on-resume = "hyprctl dispatch dpms on"; # Turn on screen when activiy is detected after timeout has fired
|
||||||
|
}
|
||||||
|
];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
# Setup and enable hyprland
|
# Setup and enable hyprland
|
||||||
wayland.windowManager.hyprland = {
|
wayland.windowManager.hyprland = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
@ -95,10 +127,10 @@ in {
|
||||||
];
|
];
|
||||||
|
|
||||||
exec-once = [
|
exec-once = [
|
||||||
|
"waybar" # Start waybar on start
|
||||||
"wl-paste --type text --watch cliphist store" # Stores only text data
|
"wl-paste --type text --watch cliphist store" # Stores only text data
|
||||||
"wl-paste --type image --watch cliphist store" # Stores only image data
|
"wl-paste --type image --watch cliphist store" # Stores only image data
|
||||||
"keepassxc" # Startup my password manager
|
"keepassxc" # Startup my password manager
|
||||||
"waybar" # Start waybar on start
|
|
||||||
];
|
];
|
||||||
|
|
||||||
monitor = [
|
monitor = [
|
||||||
|
@ -107,25 +139,25 @@ in {
|
||||||
];
|
];
|
||||||
|
|
||||||
animations = {
|
animations = {
|
||||||
enabled = "yes";
|
enabled = false;
|
||||||
};
|
};
|
||||||
|
|
||||||
decoration = {
|
decoration = {
|
||||||
blur = {
|
blur = {
|
||||||
enabled = true;
|
enabled = false;
|
||||||
};
|
};
|
||||||
|
|
||||||
shadow = {
|
shadow = {
|
||||||
enabled = true;
|
enabled = false;
|
||||||
};
|
};
|
||||||
|
|
||||||
rounding = 10;
|
rounding = 0;
|
||||||
};
|
};
|
||||||
|
|
||||||
general = {
|
general = {
|
||||||
border_size = 3;
|
border_size = 1;
|
||||||
gaps_in = 5;
|
gaps_in = 3;
|
||||||
gaps_out = 10;
|
gaps_out = 6;
|
||||||
layout = "master";
|
layout = "master";
|
||||||
allow_tearing = true;
|
allow_tearing = true;
|
||||||
};
|
};
|
||||||
|
|
|
@ -51,8 +51,28 @@ in {
|
||||||
playerctl
|
playerctl
|
||||||
grim
|
grim
|
||||||
libnotify
|
libnotify
|
||||||
|
wlopm
|
||||||
];
|
];
|
||||||
|
|
||||||
|
services.way-displays = {
|
||||||
|
enable = true;
|
||||||
|
settings = {
|
||||||
|
SCALING = false;
|
||||||
|
DISABLED = [
|
||||||
|
{
|
||||||
|
NAME_DESC = "eDP-1";
|
||||||
|
IF = [
|
||||||
|
{
|
||||||
|
PLUGGED = [
|
||||||
|
"HDMI-A-1"
|
||||||
|
];
|
||||||
|
}
|
||||||
|
];
|
||||||
|
}
|
||||||
|
];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
wayland.windowManager.river = {
|
wayland.windowManager.river = {
|
||||||
enable = true;
|
enable = true;
|
||||||
settings = {
|
settings = {
|
||||||
|
|
|
@ -52,36 +52,15 @@
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
# Enable hyprpaper
|
services.swayidle = {
|
||||||
services.hyprpaper.enable = true;
|
|
||||||
|
|
||||||
# Enable hypridle
|
|
||||||
services.hypridle = {
|
|
||||||
enable = true;
|
enable = true;
|
||||||
settings = {
|
timeouts = [
|
||||||
general = {
|
{
|
||||||
lock_cmd = "pidof hyprlock || hyprlock"; # avoid starting multiple hyprlock instances.
|
timeout = 10;
|
||||||
before_sleep_cmd = "loginctl lock-session"; # lock before suspend.
|
command = "pidof hyprlock && ${pkgs.wlopm}/bin/wlopm --off '*'";
|
||||||
after_sleep_cmd = "hyprctl dispatch dpms on"; # to avoid having to press a key twice to turn on the display.
|
resumeCommand = "${pkgs.wlopm}/bin/wlopm --on '*'";
|
||||||
};
|
}
|
||||||
|
];
|
||||||
listener = [
|
|
||||||
{
|
|
||||||
timeout = 10; # 10 sec
|
|
||||||
on-timeout = "pidof hyprlock && hyprctl dispatch dpms off"; # Turn off screen if hyprlock is running
|
|
||||||
on-resume = "hyprctl dispatch dpms on"; # Turn on screen when activiy is detected after timeout has fired
|
|
||||||
}
|
|
||||||
{
|
|
||||||
timeout = 300; # 5min
|
|
||||||
on-timeout = "loginctl lock-session"; # lock screen when timeout has passed
|
|
||||||
}
|
|
||||||
{
|
|
||||||
timeout = 310; # 5min and 10 sec
|
|
||||||
on-timeout = "hyprctl dispatch dpms off"; # Turn off screen if hyprlock is running
|
|
||||||
on-resume = "hyprctl dispatch dpms on"; # Turn on screen when activiy is detected after timeout has fired
|
|
||||||
}
|
|
||||||
];
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
|
|
||||||
# Enable hyprlock
|
# Enable hyprlock
|
||||||
|
@ -137,21 +116,25 @@
|
||||||
padding-left: 10px;
|
padding-left: 10px;
|
||||||
}
|
}
|
||||||
|
|
||||||
#tags {
|
#workspaces {
|
||||||
background-color: @base01;
|
background-color: @base01;
|
||||||
margin: 0.25em;
|
margin: 0.25em;
|
||||||
border-radius: 1em;
|
border-radius: 1em;
|
||||||
}
|
}
|
||||||
#tags button {
|
#workspaces button {
|
||||||
padding: 0 0.5em;
|
padding: 0 0.5em;
|
||||||
color: @base03;
|
|
||||||
}
|
|
||||||
|
|
||||||
#tags button.occupied {
|
|
||||||
color: @base06;
|
color: @base06;
|
||||||
}
|
}
|
||||||
|
|
||||||
#tags button.focused {
|
#workspaces button.empty {
|
||||||
|
color: @base03;
|
||||||
|
}
|
||||||
|
|
||||||
|
#workspaces button.visible {
|
||||||
|
color: @base06;
|
||||||
|
}
|
||||||
|
|
||||||
|
#workspaces button.active {
|
||||||
color: @base0D;
|
color: @base0D;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -185,8 +168,8 @@
|
||||||
mainBar = {
|
mainBar = {
|
||||||
height = 34;
|
height = 34;
|
||||||
modules-left = [
|
modules-left = [
|
||||||
"river/tags"
|
"hyprland/workspaces"
|
||||||
"river/window"
|
"hyprland/window"
|
||||||
];
|
];
|
||||||
modules-center = [
|
modules-center = [
|
||||||
];
|
];
|
||||||
|
@ -199,8 +182,10 @@
|
||||||
"clock"
|
"clock"
|
||||||
"tray"
|
"tray"
|
||||||
];
|
];
|
||||||
"river/window" = {
|
"hyprland/workspaces" = {
|
||||||
max-length = 50;
|
persistent-workspaces = {
|
||||||
|
"*" = [1 2 3 4 5 6 7 8 9];
|
||||||
|
};
|
||||||
};
|
};
|
||||||
disk = {
|
disk = {
|
||||||
path = "/";
|
path = "/";
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue