From 03648b3d9f177227df40129bed22558f6924b91c Mon Sep 17 00:00:00 2001 From: spl3g Date: Wed, 18 Mar 2026 18:01:41 +0300 Subject: so.. v2 i guess --- home-manager/homeModules/hyprland.nix | 231 ---------------------------------- 1 file changed, 231 deletions(-) delete mode 100644 home-manager/homeModules/hyprland.nix (limited to 'home-manager/homeModules/hyprland.nix') diff --git a/home-manager/homeModules/hyprland.nix b/home-manager/homeModules/hyprland.nix deleted file mode 100644 index e99eb4f..0000000 --- a/home-manager/homeModules/hyprland.nix +++ /dev/null @@ -1,231 +0,0 @@ -{ - pkgs, - lib, - config, - inputs, - ... -}: { - imports = [ - ./waybar.nix - ./rofi.nix - ./mako.nix - ]; - - options = { - hyprland.enable = lib.mkEnableOption "enable hyprland"; - }; - - config = lib.mkIf config.hyprland.enable { - waybar.enable = true; - rofi.enable = true; - mako.enable = true; - - home.packages = with pkgs; [ - swww - brightnessctl - grimblast - cliphist - polkit_gnome - kdePackages.xwaylandvideobridge - wl-clipboard - libnotify - socat - ]; - - home.sessionVariables.XDG_CURRENT_DESKTOP = "Hyprland"; - - wayland.windowManager.hyprland = { - enable = true; - settings = { - "$scripts" = "${./attachments/hypr-scripts}"; - "$mainMod" = "SUPER"; - "$terminal" = "alacritty"; - - exec-once = [ - "emacs --daemon" - "swww-daemon" - "swww img ${config.wallpaper}" - "$scripts/bitwarden-float.sh" - ]; - - monitor = [ - "eDP-1,preferred,auto,1.6" - ",preferred,auto,1,mirror,eDP-1" - ]; - - input = { - kb_layout = "us,ru"; - kb_options = "grp:win_space_toggle"; - touchpad = { - natural_scroll = "yes"; - disable_while_typing = "no"; - }; - sensitivity = 0.1; - }; - - general = { - gaps_in = 5; - gaps_out = 15; - border_size = 3; - layout = "dwindle"; - allow_tearing = false; - }; - - misc = { - vfr = true; - }; - - decoration = { - rounding = 7; - blur = { - enabled = true; - size = 3; - passes = 1; - }; - }; - - xwayland.force_zero_scaling = true; - env = [ - "GDK_SCALE,2" - "XCURSOR_SIZE,32" - ]; - - animations = { - enabled = 1; - # bezier = "overshot,0.13,0.99,0.29,1.1,"; - animation = [ - "fade,1,4,default" - "workspaces,1,4,default,fade" - "windows,1,4,default,popin 95%" - "windowsMove,0" - ]; - }; - - dwindle = { - pseudotile = "yes"; - preserve_split = "yes"; - }; - - gesture = [ - "3, horizontal, workspace" - ]; - misc.force_default_wallpaper = 1; - - windowrule = [ - "bordersize 0, floating:0, onworkspace:w[tv1]" - "rounding 0, floating:0, onworkspace:w[tv1]" - "bordersize 0, floating:0, onworkspace:f[1]" - "rounding 0, floating:0, onworkspace:f[1]" - ]; - - workspace = [ - "w[tv1], gapsout:0, gapsin:0" - "f[1], gapsout:0, gapsin:0" - ]; - - windowrulev2 = [ - "float, class:^(org.telegram.desktop)$" - "pin, class:^(org.telegram.desktop)$" - "size 30% 845, class:^(org.telegram.desktop)$" - "move 100%-w-25 73, class:^(org.telegram.desktop)$" - # firefox - "float, title:(Sharing Indicator)" - "noborder, title:(Sharing Indicator)" - "rounding 0, title:(Sharing Indicator)" - "float, title:(Picture-in-Picture)" - "pin, title:(Picture-in-Picture)" - "move 100%-w-21 100%-w-21, title:^(Picture-in-Picture)$" - "noinitialfocus, title:^(Picture-in-Picture)$" - "float, title:^(Save File)$" - "pin, title:^(Save File)$" - # dragon-drop - "pin, class:^(dragon-drop)$" - # torrent - "float, title:^(Torrent Options)$" - "pin, title:^(Torrent Options)$" - # xwaylandvideobridge - "opacity 0.0 override 0.0 override,class:^(xwaylandvideobridge)$" - "noanim,class:^(xwaylandvideobridge)$" - "noinitialfocus,class:^(xwaylandvideobridge)$" - "maxsize 1 1,class:^(xwaylandvideobridge)$" - "noblur,class:^(xwaylandvideobridge)$" - ]; - - bind = - [ - "$mainMod, V, togglefloating, " - "$mainMod, P, pseudo," - "$mainMod, I, togglesplit," - "$mainMod, F, fullscreen, 0" - "$mainMod, M, fullscreen, 1" - "$mainMod SHIFT, Q, killactive, " - "$mainMod SHIFT, E, exit," - - # Apps - "$mainMod, D, exec, pkill rofi || rofi -show-icons -show drun" - "$mainMod, Q, exec, $terminal" - "$mainMod, B, exec, zen-beta" - "$mainMod, T, exec, Telegram" - "$mainMod, E, exec, emacsclient -c -a emacs" - "$mainMod CONTROL, E, exec, emacs" - "$mainMod, T, exec, $scripts/toggle-tg.sh" - "$mainMod SHIFT, Esc, exec, swww img ${config.wallpaper}" - ",XF86Favorites, exec, bash $scripts/toggle-vpn.sh" - - # Screenshooting - ", Print, exec, grimblast save screen" - "ALT, Print, exec, grimblast save active" - "SHIFT, Print, exec, grimblast save area" - "CONTROL, Print, exec, grimblast copy screen" - "ALT_CONTROL, Print, exec, grimblast copy active" - "CONTROL_SHIFT, Print, exec, grimblast copy area " - - # Windows - "$mainMod, J, movefocus, d" - "$mainMod, K, movefocus, u" - "$mainMod, H, movefocus, l" - "$mainMod, L, movefocus, r" - "SUPER_SHIFT,J,movewindow,d" - "SUPER_SHIFT,K,movewindow,u" - "SUPER_SHIFT,H,movewindow,l" - "SUPER_SHIFT,L,movewindow,r" - "$mainMod, mouse_down, workspace, e+1" - "$mainMod, mouse_up, workspace, e-1" - ] - ++ ( - # workspaces - # binds $mod + [shift +] {1..10} to [move to] workspace {1..10} - builtins.concatLists (builtins.genList ( - x: let - ws = let - c = (x + 1) / 10; - in - builtins.toString (x + 1 - (c * 10)); - in [ - "$mainMod, ${ws}, workspace, ${toString (x + 1)}" - "$mainMod SHIFT, ${ws}, movetoworkspacesilent, ${toString (x + 1)}" - ] - ) - 10) - ); - binde = [ - # Volume - ",0x1008FF11,exec,wpctl set-volume @DEFAULT_SINK@ 5%-" - ",0x1008FF13,exec,wpctl set-volume @DEFAULT_SINK@ 5%+" - ",0x1008FF12,exec,wpctl set-mute @DEFAULT_SINK@ toggle" - ",XF86AudioMicMute, exec, wpctl set-mute @DEFAULT_SOURCE@ toggle" - ",XF86TouchpadToggle, exec, python3 $scripts/switch-sink.py" - - # Brightness - ",XF86MonBrightnessUp,exec,brightnessctl s +5%" - ",XF86MonBrightnessDown,exec,brightnessctl s 5%-" - ]; - - bindm = [ - "$mainMod, mouse:272, movewindow" - "$mainMod, mouse:273, resizewindow" - ]; - }; - }; - }; -} -- cgit v1.2.3