Compare commits
2 commits
81b1d99ff5
...
7f162f934c
Author | SHA1 | Date | |
---|---|---|---|
7f162f934c | |||
7a81878dd7 |
2 changed files with 142 additions and 134 deletions
36
flake.lock
36
flake.lock
|
@ -174,11 +174,11 @@
|
|||
"nixpkgs-stable": "nixpkgs-stable"
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1729735549,
|
||||
"narHash": "sha256-qOUGh+hC6w9POe04HTjwcKJccjmKsGfmlWEL32NTlr0=",
|
||||
"lastModified": 1729847607,
|
||||
"narHash": "sha256-a5CwSoNGyQAyg13i+WfvVREUouoBKYeqsAZAnxfqeuQ=",
|
||||
"owner": "nix-community",
|
||||
"repo": "emacs-overlay",
|
||||
"rev": "4887992a11388734b4900f3d16892999b54849ff",
|
||||
"rev": "8585c0d7f7b5efa704112bbfc6310cebacb94e69",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
|
@ -437,11 +437,11 @@
|
|||
]
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1729551526,
|
||||
"narHash": "sha256-7LAGY32Xl14OVQp3y6M43/0AtHYYvV6pdyBcp3eoz0s=",
|
||||
"lastModified": 1729848063,
|
||||
"narHash": "sha256-1uGIPOSJq4IzoDvgfOF6A3sw5it1WX3ZdYl2+jCkjv8=",
|
||||
"owner": "nix-community",
|
||||
"repo": "home-manager",
|
||||
"rev": "5ec753a1fc4454df9285d8b3ec0809234defb975",
|
||||
"rev": "c77c3bb23390a9ba91860e721edde54856fc5f7a",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
|
@ -461,11 +461,11 @@
|
|||
"spectrum": "spectrum"
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1729646324,
|
||||
"narHash": "sha256-tQOYDfaoetPZSi56dej5zCsSsxPhmV+vWxuW3vWeg60=",
|
||||
"lastModified": 1729726792,
|
||||
"narHash": "sha256-ndjFy5kfhn9MoOOSzGnZ7f2FwRUUY1EJYwXGxK8DzsQ=",
|
||||
"owner": "astro",
|
||||
"repo": "microvm.nix",
|
||||
"rev": "21c36d162ba8127377ce7dee234bdc99b9af0dde",
|
||||
"rev": "ef42cfface9940b9ce9614307670b60cdbda33f6",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
|
@ -580,11 +580,11 @@
|
|||
},
|
||||
"nixpkgs-stable": {
|
||||
"locked": {
|
||||
"lastModified": 1729449015,
|
||||
"narHash": "sha256-Gf04dXB0n4q0A9G5nTGH3zuMGr6jtJppqdeljxua1fo=",
|
||||
"lastModified": 1729691686,
|
||||
"narHash": "sha256-BAuPWW+9fa1moZTU+jFh+1cUtmsuF8asgzFwejM4wac=",
|
||||
"owner": "NixOS",
|
||||
"repo": "nixpkgs",
|
||||
"rev": "89172919243df199fe237ba0f776c3e3e3d72367",
|
||||
"rev": "32e940c7c420600ef0d1ef396dc63b04ee9cad37",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
|
@ -710,11 +710,11 @@
|
|||
]
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1729736953,
|
||||
"narHash": "sha256-Rb6JUop7NRklg0uzcre+A+Ebrn/ZiQPkm4QdKg6/3pw=",
|
||||
"lastModified": 1729823394,
|
||||
"narHash": "sha256-RiinJqorqSLKh1oSpiMHnBe6nQdJzE45lX6fSnAuDnI=",
|
||||
"owner": "oxalica",
|
||||
"repo": "rust-overlay",
|
||||
"rev": "29b1275740d9283467b8117499ec8cbb35250584",
|
||||
"rev": "7e52e80f5faa374ad4c607d62c6d362589cb523f",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
|
@ -731,11 +731,11 @@
|
|||
"nixpkgs-stable": "nixpkgs-stable_3"
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1729695320,
|
||||
"narHash": "sha256-Fm4cGAlaDwekQvYX0e6t0VjT6YJs3fRXtkyuE4/NzzU=",
|
||||
"lastModified": 1729775275,
|
||||
"narHash": "sha256-J2vtHq9sw1wWm0aTMXpEEAzsVCUMZDTEe5kiBYccpLE=",
|
||||
"owner": "Mic92",
|
||||
"repo": "sops-nix",
|
||||
"rev": "d089e742fb79259b9c4dd9f18e9de1dd4fa3c1ec",
|
||||
"rev": "78a0e634fc8981d6b564f08b6715c69a755c4c7d",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
|
|
|
@ -1,157 +1,165 @@
|
|||
{ config, lib, ... }:
|
||||
{
|
||||
pkgs,
|
||||
config,
|
||||
lib,
|
||||
...
|
||||
}:
|
||||
with lib;
|
||||
let
|
||||
cfg = config.eboskma.programs.hyprland;
|
||||
terminal = "${pkgs.foot}/bin/footclient";
|
||||
dmenu = "${pkgs.rofi}/bin/rofi -show drun -no-lazy-grab";
|
||||
menu = "${pkgs.rofi}/bin/rofi -show run -no-lazy-grab";
|
||||
rofiPower = pkgs.writeShellScriptBin "rofi-power" (builtins.readFile ../sway/powermenu.sh);
|
||||
powerMenu = "${rofiPower}/bin/rofi-power";
|
||||
swaylockcmd = "${pkgs.swaylock}/bin/swaylock --ignore-empty-password --daemonize --show-failed-attempts --indicator-caps-lock --image ${../../../wallpapers/river-2560.png} --scaling fill";
|
||||
in
|
||||
# terminal = "${pkgs.foot}/bin/footclient";
|
||||
# dmenu = "${pkgs.rofi}/bin/rofi -show drun -no-lazy-grab";
|
||||
# menu = "${pkgs.rofi}/bin/rofi -show run -no-lazy-grab";
|
||||
# rofiPower = pkgs.writeShellScriptBin "rofi-power" (builtins.readFile ../sway/powermenu.sh);
|
||||
# powerMenu = "${rofiPower}/bin/rofi-power";
|
||||
# swaylockcmd = "${pkgs.swaylock}/bin/swaylock --ignore-empty-password --daemonize --show-failed-attempts --indicator-caps-lock --image ${../../../wallpapers/river-2560.png} --scaling fill";
|
||||
{
|
||||
options.eboskma.programs.hyprland = {
|
||||
enable = mkEnableOption "Hyprland";
|
||||
};
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
# wayland.windowManager.hyprland = {
|
||||
# enable = true;
|
||||
wayland.windowManager.hyprland = {
|
||||
enable = true;
|
||||
|
||||
# extraConfig = ''
|
||||
# monitor = DP-2,2560x1440@165,0x0,1
|
||||
settings = {
|
||||
monitor = "DP-2,2560x1440@165,0x0,1";
|
||||
|
||||
# general {
|
||||
# gaps_out = 10
|
||||
# }
|
||||
general = {
|
||||
gaps_out = 10;
|
||||
};
|
||||
|
||||
# decoration {
|
||||
# rounding = 5
|
||||
# inactive_opacity = 0.9
|
||||
# dim_inactive = true
|
||||
# dim_strength = 0.5
|
||||
# }
|
||||
decoration = {
|
||||
rounding = 5;
|
||||
inactive_opacity = 0.9;
|
||||
dim_inactive = true;
|
||||
dim_strength = 0.5;
|
||||
};
|
||||
|
||||
# animations {
|
||||
# animation = workspaces,1,3,default
|
||||
# animation = windows,1,3,default
|
||||
# animation = windowsOut,1,3,default
|
||||
# }
|
||||
animations = [
|
||||
"workspaces,1,3,default"
|
||||
"windows,1,3,default"
|
||||
"windowsOut,1,3,default"
|
||||
];
|
||||
|
||||
# input {
|
||||
# kb_layout = us
|
||||
# kb_options = lv3:ralt_switch,eurosign:5
|
||||
# natural_scroll = true
|
||||
# }
|
||||
input = {
|
||||
kb_layout = "us";
|
||||
kb_options = "lv3:ralt_switch,eurosign:5";
|
||||
natural_scroll = true;
|
||||
};
|
||||
|
||||
# misc {
|
||||
# no_vfr = false
|
||||
# focus_on_activate = false
|
||||
# }
|
||||
misc = {
|
||||
no_vfr = false;
|
||||
focus_on_activate = false;
|
||||
};
|
||||
|
||||
# binds {
|
||||
# workspace_back_and_forth = true
|
||||
# }
|
||||
binds = {
|
||||
workspace_back_and_forth = true;
|
||||
};
|
||||
|
||||
# $mod = SUPER
|
||||
"$mod" = "SUPER";
|
||||
|
||||
# bind = $mod,Return,exec,${terminal}
|
||||
# bind = $mod_SHIFT,Q,killactive
|
||||
# bind = $mod,S,exec,${dmenu}
|
||||
# bind = $mod_SHIFT,S,exec,${menu}
|
||||
bind =
|
||||
[
|
||||
"$mod,Return,exec,${terminal}"
|
||||
"$mod_SHIFT,Q,killactive"
|
||||
"$mod,S,exec,${dmenu}"
|
||||
"$mod_SHIFT,S,exec,${menu}"
|
||||
|
||||
# bind = $mod,N,movefocus,l
|
||||
# bind = $mod,E,movefocus,d
|
||||
# bind = $mod,I,movefocus,u
|
||||
# bind = $mod,O,movefocus,r
|
||||
"$mod,N,movefocus,l"
|
||||
"$mod,E,movefocus,d"
|
||||
"$mod,I,movefocus,u"
|
||||
"$mod,O,movefocus,r"
|
||||
|
||||
# bind = $mod_SHIFT,N,movewindow,l
|
||||
# bind = $mod_SHIFT,E,movewindow,d
|
||||
# bind = $mod_SHIFT,O,movewindow,r
|
||||
# bind = $mod_SHIFT,I,movewindow,u
|
||||
"$mod_SHIFT,N,movewindow,l"
|
||||
"$mod_SHIFT,E,movewindow,d"
|
||||
"$mod_SHIFT,O,movewindow,r"
|
||||
"$mod_SHIFT,I,movewindow,u"
|
||||
|
||||
# bind = $mod_SHIFT,Space,togglefloating,active
|
||||
"$mod_SHIFT,Space,togglefloating,active"
|
||||
|
||||
# bind = $mod,T,fullscreen,0
|
||||
# bind = $mod_SHIFT,T,fullscreen,1
|
||||
"$mod,T,fullscreen,0"
|
||||
"$mod_SHIFT,T,fullscreen,1"
|
||||
|
||||
# bind = $mod,1,workspace,1
|
||||
# bind = $mod,2,workspace,2
|
||||
# bind = $mod,3,workspace,3
|
||||
# bind = $mod,4,workspace,4
|
||||
# bind = $mod,5,workspace,5
|
||||
# bind = $mod,6,workspace,6
|
||||
# bind = $mod,7,workspace,7
|
||||
# bind = $mod,8,workspace,8
|
||||
# bind = $mod,9,workspace,9
|
||||
# bind = $mod,0,workspace,10
|
||||
"$mod,1,workspace,1"
|
||||
"$mod,2,workspace,2"
|
||||
"$mod,3,workspace,3"
|
||||
"$mod,4,workspace,4"
|
||||
"$mod,5,workspace,5"
|
||||
"$mod,6,workspace,6"
|
||||
"$mod,7,workspace,7"
|
||||
"$mod,8,workspace,8"
|
||||
"$mod,9,workspace,9"
|
||||
"$mod,0,workspace,10"
|
||||
|
||||
# bind = $mod_SHIFT,1,movetoworkspacesilent,1
|
||||
# bind = $mod_SHIFT,2,movetoworkspacesilent,2
|
||||
# bind = $mod_SHIFT,3,movetoworkspacesilent,3
|
||||
# bind = $mod_SHIFT,4,movetoworkspacesilent,4
|
||||
# bind = $mod_SHIFT,5,movetoworkspacesilent,5
|
||||
# bind = $mod_SHIFT,6,movetoworkspacesilent,6
|
||||
# bind = $mod_SHIFT,7,movetoworkspacesilent,7
|
||||
# bind = $mod_SHIFT,8,movetoworkspacesilent,8
|
||||
# bind = $mod_SHIFT,9,movetoworkspacesilent,9
|
||||
# bind = $mod_SHIFT,0,movetoworkspacesilent,10
|
||||
"$mod_SHIFT,1,movetoworkspacesilent,1"
|
||||
"$mod_SHIFT,2,movetoworkspacesilent,2"
|
||||
"$mod_SHIFT,3,movetoworkspacesilent,3"
|
||||
"$mod_SHIFT,4,movetoworkspacesilent,4"
|
||||
"$mod_SHIFT,5,movetoworkspacesilent,5"
|
||||
"$mod_SHIFT,6,movetoworkspacesilent,6"
|
||||
"$mod_SHIFT,7,movetoworkspacesilent,7"
|
||||
"$mod_SHIFT,8,movetoworkspacesilent,8"
|
||||
"$mod_SHIFT,9,movetoworkspacesilent,9"
|
||||
"$mod_SHIFT,0,movetoworkspacesilent,10"
|
||||
|
||||
# bind = $mod_SHIFT,Minus,movetoworkspacesilent,special
|
||||
# bind = $mod,Minus,togglespecialworkspace
|
||||
"$mod_SHIFT,Minus,movetoworkspacesilent,special"
|
||||
"$mod,Minus,togglespecialworkspace"
|
||||
|
||||
# bind = $mod_SHIFT,C,exec,${config.wayland.windowManager.hyprland.package}/bin/hyprctl reload
|
||||
"$mod_SHIFT,C,exec,${config.wayland.windowManager.hyprland.package}/bin/hyprctl reload"
|
||||
|
||||
# bind = $mod_SHIFT,F,exec,${powerMenu}
|
||||
# bind = $mod,L,exec,${swaylockcmd}
|
||||
"$mod_SHIFT,F,exec,${powerMenu}"
|
||||
"$mod,L,exec,${swaylockcmd}"
|
||||
|
||||
# bind = $mod_SHIFT,K,pin
|
||||
"$mod_SHIFT,K,pin"
|
||||
|
||||
# bind = $mod,Print,exec,${pkgs.grim}/bin/grim
|
||||
# bind = $mod_SHIFT,Print,exec,${pkgs.grim}/bin/grim | ${pkgs.wl-clipboard}/bin/wl-copy -t image/png -f
|
||||
"$mod,Print,exec,${pkgs.grim}/bin/grim"
|
||||
"$mod_SHIFT,Print,exec,${pkgs.grim}/bin/grim | ${pkgs.wl-clipboard}/bin/wl-copy -t image/png -f"
|
||||
|
||||
# bind = ,XF86AudioRaiseVolume,exec,${pkgs.pamedia}/bin/pamedia up
|
||||
# bind = ,XF86AudioLowerVolume,exec,${pkgs.pamedia}/bin/pamedia down
|
||||
# bind = ,XF86AudioMute,exec,${pkgs.pamedia}/bin/pamedia mute
|
||||
# bind = ,XF86Calculator,exec,${pkgs.gnome-calculator}/bin/gnome-calculator
|
||||
",XF86AudioRaiseVolume,exec,${pkgs.pamedia}/bin/pamedia up"
|
||||
",XF86AudioLowerVolume,exec,${pkgs.pamedia}/bin/pamedia down"
|
||||
",XF86AudioMute,exec,${pkgs.pamedia}/bin/pamedia mute"
|
||||
",XF86Calculator,exec,${pkgs.gnome-calculator}/bin/gnome-calculator"
|
||||
|
||||
# bind = $mod,D,exec,${pkgs.swaynotificationcenter}/bin/swaync-client -t -sw
|
||||
"$mod,D,exec,${pkgs.swaynotificationcenter}/bin/swaync-client -t -sw"
|
||||
|
||||
# bind = $mod,W,togglegroup
|
||||
# bind = $mod,N,changegroupactive,b
|
||||
# bind = $mod,O,changegroupactive,f
|
||||
"$mod,W,togglegroup"
|
||||
"$mod,N,changegroupactive,b"
|
||||
"$mod,O,changegroupactive,f"
|
||||
]
|
||||
++ (lib.optional config.eboskma.programs.emacs.enable "$mod,C,exec,${config.eboskma.programs.emacs.package}/bin/emacsclient -c");
|
||||
|
||||
# bindm = $mod,mouse:272,movewindow
|
||||
# bindm = $mod,mouse:273,resizewindow
|
||||
bindm = [
|
||||
"$mod,mouse:272,movewindow"
|
||||
"$mod,mouse:273,resizewindow"
|
||||
];
|
||||
|
||||
# windowrulev2 = workspace 1,class:^(firefox)$
|
||||
# windowrulev2 = workspace 2,class:^(foot)$
|
||||
# windowrulev2 = workspace 3,class:^(emacs)$
|
||||
exec = [ "${pkgs.networkmanagerapplet}/bin/nm-applet --indicator" ];
|
||||
|
||||
# exec = ${pkgs.networkmanagerapplet}/bin/nm-applet --indicator
|
||||
exec-once = [
|
||||
"${pkgs.swaybg}/bin/swaybg -i ${../../../wallpapers/river-2560.png} -m fill"
|
||||
"${config.wayland.windowManager.hyprland.package}/bin/hyprctl setcursor Nordzy-cursors 24"
|
||||
"${pkgs.systemd}/bin/systemctl --user start swaync"
|
||||
"${pkgs.systemd}/bin/systemctl --user start fcitx5-daemon"
|
||||
];
|
||||
};
|
||||
};
|
||||
|
||||
# exec-once = ${pkgs.swaybg}/bin/swaybg -i ${../../../wallpapers/river-2560.png} -m fill
|
||||
# exec-once = ${config.wayland.windowManager.hyprland.package}/bin/hyprctl setcursor Nordzy-cursors 24
|
||||
# exec-once = ${pkgs.systemd}/bin/systemctl --user start swaync
|
||||
# exec-once = ${pkgs.systemd}/bin/systemctl --user start fcitx5-daemon
|
||||
# '' +
|
||||
# (lib.optionalString config.eboskma.programs.emacs.enable "bind = $mod,C,exec,${config.eboskma.programs.emacs.package}/bin/emacsclient -c");
|
||||
# };
|
||||
systemd.user.services.hypridle = {
|
||||
Unit = {
|
||||
Description = "Idle manager for Wayland (Hyprland)";
|
||||
Documentation = "man:swayidle(1)";
|
||||
PartOf = "graphical-session.target";
|
||||
};
|
||||
|
||||
# systemd.user.services.hypridle = {
|
||||
# Unit = {
|
||||
# Description = "Idle manager for Wayland (Hyprland)";
|
||||
# Documentation = "man:swayidle(1)";
|
||||
# PartOf = "graphical-session.target";
|
||||
# };
|
||||
Service = {
|
||||
ExecStart = "${pkgs.swayidle}/bin/swayidle -w timeout 900 '${swaylockcmd}' timeout 1200 '${config.wayland.windowManager.hyprland.package}/bin/hyprctl dispatch dpms off' resume '${config.wayland.windowManager.hyprland.package}/bin/hyprctl dispatch dpms on'";
|
||||
};
|
||||
|
||||
# Service = {
|
||||
# ExecStart = "${pkgs.swayidle}/bin/swayidle -w timeout 900 '${swaylockcmd}' timeout 1200 '${config.wayland.windowManager.hyprland.package}/bin/hyprctl dispatch dpms off' resume '${config.wayland.windowManager.hyprland.package}/bin/hyprctl dispatch dpms on'";
|
||||
# };
|
||||
|
||||
# Install = {
|
||||
# WantedBy = [ "hyprland-session.target" ];
|
||||
# };
|
||||
# };
|
||||
Install = {
|
||||
WantedBy = [ "hyprland-session.target" ];
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue