nixos/home/hyprland/hyprland_magicman.nix

172 lines
4.1 KiB
Nix
Raw Normal View History

2024-07-17 20:22:04 +00:00
{
inputs,
pkgs,
lib,
config,
...
}:
{
2024-04-21 09:46:33 +00:00
imports = [
./hyprlock.nix
./hypridle.nix
];
2024-02-27 20:52:14 +00:00
options.hyprland.enable = lib.mkEnableOption "Hyprland";
config = {
2024-03-03 04:31:33 +00:00
home.packages = with pkgs; [
2024-03-02 20:16:23 +00:00
dunst
2024-03-04 03:24:34 +00:00
# hyprlock
2024-03-02 20:16:23 +00:00
hyprpaper
rofi-wayland
slurp
swww
waybar
wl-clipboard
2024-03-03 07:12:58 +00:00
catppuccin-cursors.macchiatoLavender
bibata-cursors
2024-03-04 15:15:04 +00:00
# For potentially fixing some issues
libsForQt5.qt5.qtwayland
libsForQt5.qt5ct
2024-03-02 20:16:23 +00:00
];
2024-02-27 20:52:14 +00:00
wayland.windowManager.hyprland = {
enable = true;
2024-05-29 23:46:13 +00:00
package = pkgs.hyprland;
2024-02-27 20:52:14 +00:00
settings = {
"$mainMod" = "SUPER";
2024-03-02 23:03:22 +00:00
"$shiftMainMod" = "SUPER_SHIFT";
2024-03-02 21:20:09 +00:00
"$term" = "kitty";
2024-02-27 20:52:14 +00:00
2024-07-17 20:22:04 +00:00
monitor = [ "eDP-1,1920x1080@60,0x0,1" ];
2024-02-27 21:20:00 +00:00
input = {
kb_layout = "no";
follow_mouse = 1;
};
2024-02-27 20:52:14 +00:00
2024-07-17 20:22:04 +00:00
env = [ "XDG_SESSION_TYPE,wayland" ];
2024-03-02 20:16:23 +00:00
2024-02-27 21:20:00 +00:00
decoration = {
2024-06-12 12:56:02 +00:00
rounding = 10;
2024-02-27 21:20:00 +00:00
drop_shadow = true;
shadow_range = 4;
shadow_render_power = 3;
blur = {
enabled = true;
size = 3;
passes = 1;
xray = true;
};
};
2024-02-27 20:52:14 +00:00
2024-02-27 21:20:00 +00:00
general = {
gaps_in = 4;
gaps_out = 10;
border_size = 2;
layout = "dwindle";
};
2024-02-27 20:52:14 +00:00
2024-02-27 21:20:00 +00:00
animations = {
enabled = true;
bezier = "myBezier, 0.05, 0.9, 0.1, 1.05";
animation = [
"windows, 1, 7, myBezier"
"windowsOut, 1, 7, default, popin 80%"
"border, 1, 10, default"
"borderangle, 1, 8, default"
"fade, 1, 7, default"
"workspaces, 1, 6, default"
2024-06-12 10:40:06 +00:00
"specialWorkspace, 1, 4, default, fade"
2024-02-27 21:20:00 +00:00
];
};
dwindle = {
pseudotile = true;
preserve_split = true;
2024-06-12 10:40:06 +00:00
special_scale_factor = 0.85;
2024-02-27 21:20:00 +00:00
};
2024-06-29 09:28:00 +00:00
master = {
new_status = "master";
};
2024-05-06 11:25:09 +00:00
misc = {
force_default_wallpaper = 0;
disable_hyprland_logo = true;
};
2024-02-27 20:52:14 +00:00
2024-02-29 08:27:26 +00:00
windowrulev2 = [
2024-03-02 20:16:23 +00:00
"opacity 0.95 override 0.7 override,class:^(Alacritty)$"
"opacity 0.95 override 0.7 override,class:^(kitty)$"
];
2024-03-04 15:15:04 +00:00
workspace = [
2024-06-12 12:56:02 +00:00
"special:special, on-created-empty:kitty, rounding:true, decorate:false, border:false"
2024-03-04 15:15:04 +00:00
];
2024-07-17 20:22:04 +00:00
bindm = [ "ALT,mouse:272,movewindow" ];
2024-03-02 20:16:23 +00:00
bindr = [
# mumble ptt release
2024-03-03 11:57:13 +00:00
# ",code:202,exec,mumble rpc stoptalking"
2024-03-04 10:51:51 +00:00
# ",code:202,exec,pamixer --source 63 -m"
2024-03-09 19:31:18 +00:00
# ",code:202,exec,sleep 0.5 && pamixer --default-source -m"
2024-02-29 08:27:26 +00:00
];
2024-02-27 21:20:00 +00:00
bind = [
# term
"$mainMod,Return,exec,$term"
2024-03-03 05:33:49 +00:00
2024-02-27 21:20:00 +00:00
# rofi
2024-03-03 05:33:49 +00:00
"$mainMod,D,exec,rofi-launcher"
"$mainMod,P,exec,rofi-rbw"
2024-04-21 09:46:33 +00:00
# hyprlock
2024-06-12 10:40:06 +00:00
"$shiftMainMod,l,exec,lockhelper"
2024-04-21 09:46:33 +00:00
2024-02-27 21:20:00 +00:00
# hyprland
"$mainMod,Q,killactive,"
"CTRLALT,Delete,exit,"
"$mainMod,Space,togglefloating,"
"$mainMod,F,fullscreen,"
2024-02-27 20:52:14 +00:00
2024-02-27 21:20:00 +00:00
# focus
"$mainMod,l,movefocus,l"
"$mainMod,h,movefocus,r"
"$mainMod,k,movefocus,u"
"$mainMod,j,movefocus,d"
2024-02-27 20:52:14 +00:00
2024-02-27 21:20:00 +00:00
# move
"$mainMod,h,movewindow,l"
"$mainMod,l,movewindow,r"
"$mainMod,k,movewindow,u"
"$mainMod,j,movewindow,d"
2024-03-02 20:16:23 +00:00
2024-03-02 23:03:22 +00:00
# Force opacity
"$shiftMainMod,o,exec, hl-no-opacity"
2024-03-02 20:16:23 +00:00
# mumble ptt click
2024-03-03 11:57:13 +00:00
# ",code:202,exec,mumble rpc starttalking"
2024-03-09 19:31:18 +00:00
#",code:202,pass,^(info\.mumble\.Mumble)$"
# ",code:202,exec,pamixer --default-source -u"
2024-04-21 09:46:33 +00:00
# ",code:202,pass,^discord$"
2024-03-02 20:16:23 +00:00
2024-03-04 22:56:22 +00:00
# worspace switching
2024-04-21 09:46:33 +00:00
"$mainMod,1,workspace,1"
"$mainMod,2,workspace,2"
2024-03-04 22:56:22 +00:00
"$mainMod,3,workspace,3"
"$mainMod,4,workspace,4"
"$mainMod,5,workspace,5"
"$mainMod,6,workspace,6"
2024-06-12 10:40:06 +00:00
# Special workspace
"$mainMod,c,togglespecialworkspace"
"$shiftMainMod,c,movetoworkspace, special"
2024-03-04 22:56:22 +00:00
];
2024-03-03 04:31:33 +00:00
exec-once = [
2024-03-02 20:16:23 +00:00
"waybar"
2024-03-04 10:51:51 +00:00
"hyprpaper & sleep 2 && randomwp"
2024-04-21 09:46:33 +00:00
"hypridle"
2024-03-02 20:16:23 +00:00
# "dunst"
];
2024-02-27 20:52:14 +00:00
};
};
};
}