2023-11-04 16:12:45 +05:30
|
|
|
{ config
|
|
|
|
, pkgs
|
2024-09-23 20:49:06 +05:30
|
|
|
, lib
|
2023-11-04 16:12:45 +05:30
|
|
|
, ...
|
|
|
|
}:
|
|
|
|
let
|
2023-04-05 22:39:22 +05:30
|
|
|
brightnessctl = "${pkgs.brightnessctl}/bin/brightnessctl";
|
2023-11-26 21:22:54 +05:30
|
|
|
firefox = "${config.programs.firefox.finalPackage}/bin/firefox";
|
2023-11-09 20:55:23 +05:30
|
|
|
grimblast = "${pkgs.grimblast}/bin/grimblast";
|
2023-04-27 22:44:21 +05:30
|
|
|
hyprctl = "${pkgs.hyprland}/bin/hyprctl";
|
2023-04-07 21:10:13 +05:30
|
|
|
kitty = "${config.programs.kitty.package}/bin/kitty";
|
2024-05-18 14:16:55 +05:30
|
|
|
librewolf = "${pkgs.librewolf}/bin/librewolf";
|
|
|
|
loginctl = "${pkgs.systemd}/bin/loginctl";
|
2023-04-05 22:39:22 +05:30
|
|
|
playerctl = "${pkgs.playerctl}/bin/playerctl";
|
2023-04-07 21:05:41 +05:30
|
|
|
rofi = "${config.programs.rofi.package}/bin/rofi";
|
2024-05-19 15:58:50 +05:30
|
|
|
swaync-client = "${pkgs.swaynotificationcenter}/bin/swaync-client";
|
2023-04-08 14:57:55 +05:30
|
|
|
tmux = "${config.programs.tmux.package}/bin/tmux";
|
2024-06-01 01:45:08 +05:30
|
|
|
wpaperctl = "${config.programs.wpaperd.package}/bin/wpaperctl";
|
2023-04-05 22:39:22 +05:30
|
|
|
wpctl = "${pkgs.wireplumber}/bin/wpctl";
|
2024-05-12 23:02:44 +05:30
|
|
|
yazi = "${pkgs.yazi}/bin/yazi";
|
2024-06-22 19:56:27 +05:30
|
|
|
youtube = "${pkgs.youtube}/bin/youtube";
|
2023-11-09 20:55:23 +05:30
|
|
|
|
2023-11-09 20:32:13 +05:30
|
|
|
pictures = "${config.xdg.userDirs.pictures}";
|
2023-11-04 16:12:45 +05:30
|
|
|
in
|
|
|
|
{
|
2024-09-23 20:49:06 +05:30
|
|
|
xdg.portal = {
|
|
|
|
extraPortals = [ pkgs.xdg-desktop-portal-hyprland ];
|
|
|
|
configPackages = [ pkgs.hyprland ];
|
|
|
|
};
|
|
|
|
programs.zsh.profileExtra = ''
|
|
|
|
if [ -z $DISPLAY ] && [ "$(tty)" = "/dev/tty1" ] ; then
|
|
|
|
exec ${lib.getExe config.wayland.win.hyprland.package}
|
|
|
|
fi
|
|
|
|
'';
|
2023-11-09 20:32:13 +05:30
|
|
|
wayland.windowManager.hyprland = {
|
|
|
|
enable = true;
|
2024-02-18 15:32:45 +05:30
|
|
|
systemd = {
|
|
|
|
enable = true;
|
|
|
|
variables = [ "--all" ];
|
|
|
|
};
|
2023-11-09 20:32:13 +05:30
|
|
|
settings = {
|
|
|
|
general = {
|
|
|
|
border_size = 1;
|
|
|
|
"col.active_border" = "rgb(bd93f9)";
|
|
|
|
"col.inactive_border" = "rgba(44475aaa)";
|
|
|
|
"col.nogroup_border" = "rgba(282a36dd)";
|
|
|
|
"col.nogroup_border_active" = "rgb(bd93f9)";
|
|
|
|
gaps_in = 2;
|
|
|
|
gaps_out = 4;
|
|
|
|
layout = "master";
|
2023-04-28 00:32:07 +05:30
|
|
|
};
|
2023-11-09 20:55:23 +05:30
|
|
|
|
2024-07-20 18:45:19 +05:30
|
|
|
master = {
|
|
|
|
mfact = 0.65;
|
|
|
|
new_status = "master";
|
|
|
|
new_on_top = true;
|
|
|
|
no_gaps_when_only = 1;
|
|
|
|
};
|
|
|
|
|
2023-11-09 20:32:13 +05:30
|
|
|
decoration = {
|
|
|
|
"col.shadow" = "rgba(1E202966)";
|
|
|
|
dim_around = 0.6;
|
|
|
|
drop_shadow = "yes";
|
|
|
|
rounding = 5;
|
|
|
|
shadow_range = 60;
|
|
|
|
shadow_offset = "1 2";
|
|
|
|
shadow_render_power = 3;
|
|
|
|
shadow_scale = 0.97;
|
|
|
|
};
|
|
|
|
|
|
|
|
monitor = [
|
|
|
|
"eDP-1, 1920x1080, 0x0, 1"
|
|
|
|
", preferred, auto, 1"
|
|
|
|
];
|
|
|
|
|
|
|
|
input = {
|
|
|
|
kb_layout = "us";
|
|
|
|
kb_options = "rupeesign:4";
|
|
|
|
kb_variant = "altgr-intl";
|
|
|
|
touchpad = {
|
|
|
|
clickfinger_behavior = true;
|
|
|
|
disable_while_typing = true;
|
|
|
|
natural_scroll = true;
|
|
|
|
tap-to-click = true;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
misc = {
|
|
|
|
disable_hyprland_logo = true;
|
|
|
|
disable_splash_rendering = true;
|
2024-03-07 00:22:05 +05:30
|
|
|
vfr = true;
|
2023-11-09 20:32:13 +05:30
|
|
|
};
|
|
|
|
|
|
|
|
animation = [
|
|
|
|
"windows,1,3,default,slide"
|
|
|
|
"fade,1,3,default"
|
|
|
|
"border,1,3,default"
|
|
|
|
"borderangle,1,3,default"
|
|
|
|
"workspaces,1,3,default,slide"
|
|
|
|
];
|
|
|
|
|
|
|
|
windowrulev2 = [
|
|
|
|
"bordercolor rgb(ff5555),xwayland:1"
|
|
|
|
|
|
|
|
"workspace 2,class:^(firefox)$,title:^(Mozilla Firefox)$"
|
|
|
|
|
2024-05-12 23:11:08 +05:30
|
|
|
"float,class:^(pavucontrol)$"
|
|
|
|
"size 50% 50%,class:^(pavucontrol)$"
|
|
|
|
"center,class:^(pavucontrol)$"
|
|
|
|
|
|
|
|
"float,class:^(nm-connection-editor)$"
|
|
|
|
"size 50% 50%,class:^(nm-connection-editor)$"
|
|
|
|
"center,class:^(nm-connection-editor)$"
|
2023-11-09 20:32:13 +05:30
|
|
|
|
2024-05-12 22:57:10 +05:30
|
|
|
"float,class:^(blueberry.py)$"
|
|
|
|
"size 50% 50%,class:^(blueberry.py)$"
|
|
|
|
"center,class:^(blueberry.py)$"
|
2023-11-09 20:32:13 +05:30
|
|
|
|
|
|
|
"float,class:^(mpv)$"
|
|
|
|
"size 90% 90%,class:^(mpv)$"
|
|
|
|
"center,class:^(mpv)$"
|
|
|
|
"dimaround,class:^(mpv)$"
|
|
|
|
|
2024-07-20 02:24:51 +05:30
|
|
|
"float,class:^(swayimg_.*)$"
|
|
|
|
"size 90% 90%,class:^(swayimg_.*)$"
|
|
|
|
"center,class:^(swayimg_.*)$"
|
2024-05-12 23:05:43 +05:30
|
|
|
|
2024-05-18 10:32:55 +05:30
|
|
|
"float,class:^(org.pwmt.zathura)$"
|
|
|
|
"size 90% 90%,class:^(org.pwmt.zathura)$"
|
|
|
|
"center,class:^(org.pwmt.zathura)$"
|
2023-11-09 20:32:13 +05:30
|
|
|
|
|
|
|
"float,class:^(.yubioath-flutter-wrapped_)$"
|
|
|
|
"center,class:^(.yubioath-flutter-wrapped_)$"
|
|
|
|
|
2024-03-18 20:53:42 +05:30
|
|
|
"float,class:lutris"
|
|
|
|
"center,class:lutris"
|
|
|
|
"size 60% 60%,class:lutris"
|
|
|
|
|
2023-11-09 20:32:13 +05:30
|
|
|
"dimaround,class:^(gcr-prompter)$"
|
2024-03-23 15:53:21 +05:30
|
|
|
|
|
|
|
"float,class:^(virt-manager)$"
|
|
|
|
"size 25% 50%,class:^(virt-manager)$,title:^(Virtual Machine Manager)$"
|
|
|
|
"move 5%% 10%,class:^(virt-manager)$,title:^(Virtual Machine Manager)$"
|
2023-11-09 20:32:13 +05:30
|
|
|
];
|
|
|
|
|
|
|
|
exec-once = [
|
|
|
|
"${hyprctl} setcursor ${config.gtk.cursorTheme.name} 24"
|
|
|
|
];
|
|
|
|
|
|
|
|
bindm = [
|
|
|
|
"SUPER,mouse:272, movewindow"
|
|
|
|
"SUPER_SHIFT,mouse:272, resizewindow"
|
|
|
|
];
|
|
|
|
|
|
|
|
bind = [
|
|
|
|
"SUPER_SHIFT,Q, killactive,"
|
|
|
|
"SUPER_SHIFT,space, togglefloating,active"
|
|
|
|
"SUPER_SHIFT,space, centerwindow"
|
|
|
|
"SUPER_SHIFT,F, fullscreen,0"
|
|
|
|
|
|
|
|
"SUPER_SHIFT,C, exec, ${hyprctl} reload"
|
2024-05-16 22:02:56 +05:30
|
|
|
"SUPER_SHIFT,C, exec, systemctl --user restart kanshi.service"
|
2023-11-09 21:23:26 +05:30
|
|
|
|
2023-11-09 20:32:13 +05:30
|
|
|
"SUPER,Return, exec, ${kitty} ${tmux} new"
|
|
|
|
"SUPER_SHIFT,Return, exec, ${kitty}"
|
|
|
|
"SUPER,d, exec, ${rofi} -show drun"
|
2024-05-12 23:02:44 +05:30
|
|
|
"SUPER,e, exec, ${kitty} --class=yazi ${yazi}"
|
2024-05-19 15:58:50 +05:30
|
|
|
"SUPER_SHIFT,u, exec, ${swaync-client} -t -sw"
|
2023-11-09 21:36:56 +05:30
|
|
|
"SUPER,i, exec, ${firefox}"
|
2024-05-18 14:16:55 +05:30
|
|
|
"SUPER_SHIFT,i, exec, ${librewolf}"
|
2023-11-09 21:23:26 +05:30
|
|
|
|
2024-06-22 19:56:27 +05:30
|
|
|
"SUPER_SHIFT,escape, exec, ${pkgs.misc-scripts}/bin/power-menu"
|
|
|
|
"SUPER,f11, exec, ${pkgs.misc-scripts}/bin/tmux-sessions"
|
2024-06-02 23:35:58 +05:30
|
|
|
"SUPER_SHIFT,y, exec, ${youtube}"
|
2024-06-22 19:56:27 +05:30
|
|
|
"SUPER_SHIFT,b, exec, ${pkgs.rofi-bluetooth}/bin/rofi-bluetooth"
|
2023-11-09 20:32:13 +05:30
|
|
|
|
2024-05-12 21:42:10 +05:30
|
|
|
"SUPER,escape, exec, ${loginctl} lock-session"
|
2024-06-01 01:45:08 +05:30
|
|
|
"SUPER_SHIFT,W, exec, ${wpaperctl} next"
|
2023-11-09 21:23:26 +05:30
|
|
|
|
2023-11-09 20:32:13 +05:30
|
|
|
"SUPER,1, workspace, 1"
|
|
|
|
"SUPER,2, workspace, 2"
|
|
|
|
"SUPER,3, workspace, 3"
|
|
|
|
"SUPER,4, workspace, 4"
|
|
|
|
"SUPER,5, workspace, 5"
|
|
|
|
"SUPER,6, workspace, 6"
|
|
|
|
"SUPER,7, workspace, 7"
|
|
|
|
"SUPER,8, workspace, 8"
|
|
|
|
"SUPER,9, workspace, 9"
|
|
|
|
"SUPER,0, workspace, 10"
|
|
|
|
|
|
|
|
"SUPER_SHIFT,1, movetoworkspace, 1"
|
|
|
|
"SUPER_SHIFT,2, movetoworkspace, 2"
|
|
|
|
"SUPER_SHIFT,3, movetoworkspace, 3"
|
|
|
|
"SUPER_SHIFT,4, movetoworkspace, 4"
|
|
|
|
"SUPER_SHIFT,5, movetoworkspace, 5"
|
|
|
|
"SUPER_SHIFT,6, movetoworkspace, 6"
|
|
|
|
"SUPER_SHIFT,7, movetoworkspace, 7"
|
|
|
|
"SUPER_SHIFT,8, movetoworkspace, 8"
|
|
|
|
"SUPER_SHIFT,9, movetoworkspace, 9"
|
|
|
|
"SUPER_SHIFT,0, movetoworkspace, 10"
|
|
|
|
|
2024-07-20 18:45:19 +05:30
|
|
|
"SUPER,l, layoutmsg,rollnext"
|
|
|
|
"SUPER,h, layoutmsg,rollprev"
|
2023-11-09 20:32:13 +05:30
|
|
|
"SUPER,m, layoutmsg,focusmaster"
|
|
|
|
"SUPER_SHIFT,m, layoutmsg,swapwithmaster"
|
|
|
|
|
|
|
|
",XF86AudioMute, exec, ${wpctl} set-mute @DEFAULT_AUDIO_SINK@ toggle"
|
|
|
|
",XF86AudioPlay, exec, ${playerctl} play-pause"
|
|
|
|
",XF86AudioNext, exec, ${playerctl} next"
|
|
|
|
",XF86AudioPrev, exec, ${playerctl} previous"
|
|
|
|
];
|
|
|
|
|
|
|
|
bindr = [
|
2023-11-09 20:55:23 +05:30
|
|
|
",print, exec, XDG_SCREENSHOTS_DIR=${pictures}/Screenshots ${grimblast} --notify save screen"
|
|
|
|
"SHIFT,print, exec, XDG_SCREENSHOTS_DIR=${pictures}/Screenshots ${grimblast} --notify --freeze save area"
|
2023-11-09 20:32:13 +05:30
|
|
|
];
|
|
|
|
|
|
|
|
binde = [
|
2024-05-18 16:37:32 +05:30
|
|
|
",XF86MonBrightnessUp, exec, ${brightnessctl} --quiet --device=intel_backlight set +5%"
|
|
|
|
",XF86MonBrightnessDown, exec, ${brightnessctl} --quiet --device=intel_backlight set 5%-"
|
2023-11-09 20:32:13 +05:30
|
|
|
",XF86AudioRaiseVolume, exec, ${wpctl} set-volume -l 1 @DEFAULT_AUDIO_SINK@ 5%+"
|
|
|
|
",XF86AudioLowerVolume, exec, ${wpctl} set-volume @DEFAULT_AUDIO_SINK@ 5%-"
|
|
|
|
];
|
2023-04-28 00:32:07 +05:30
|
|
|
};
|
|
|
|
};
|
2023-04-05 22:39:22 +05:30
|
|
|
}
|