a dotfile but it's really big
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

get rid of hyprland

karitham f58f787f 420f791d

+1 -194
-1
modules/home/desktop/default.nix
··· 7 7 ./easyeffects.nix 8 8 ./fuzzel.nix 9 9 ./ghostty.nix 10 - ./hyprland.nix 11 10 ./hyprlock.nix 12 11 ./hyprpaper.nix 13 12 ./niri.nix
-174
modules/home/desktop/hyprland.nix
··· 1 - { 2 - osConfig, 3 - lib, 4 - pkgs, 5 - ... 6 - }: { 7 - config = lib.mkIf osConfig.desktop.hyprland { 8 - wayland.windowManager.hyprland = { 9 - enable = true; 10 - systemd.enable = true; 11 - settings = { 12 - exec-once = ["dbus-update-activation-environment --systemd WAYLAND_DISPLAY XDG_CURRENT_DESKTOP"]; 13 - 14 - monitor = [ 15 - ", preferred, auto, 1" 16 - "eDP-1, preferred, 0x0, 1" 17 - "HDMI-A-1, preferred, auto-left, 1" 18 - ]; 19 - 20 - env = [ 21 - "XCURSOR_SIZE,24" 22 - "QT_QPA_PLATFORMTHEME,qt5ct" # change to qt6ct if you have that 23 - ]; 24 - 25 - "$powermenu" = "${lib.meta.getExe (pkgs.writeShellScriptBin "powermenu" '' 26 - declare -rA power_menu=( 27 - [" Lock"]="${pkgs.systemd}/bin/loginctl lock-sessions" 28 - [" Sleep"]='systemctl suspend' 29 - [" Shut down"]="systemctl poweroff" 30 - [" Reboot"]="systemctl reboot" 31 - ) 32 - 33 - set -e -x 34 - selected_option=$(printf '%s\n' "''${!power_menu[@]}" | fuzzel -d) 35 - 36 - if [[ -n $selected_option ]] && [[ -v power_menu[$selected_option] ]]; then 37 - eval "''${power_menu[$selected_option]}" 38 - fi 39 - '')}"; 40 - "$menu" = "${lib.meta.getExe pkgs.fuzzel}"; 41 - 42 - input = { 43 - kb_layout = "us"; 44 - kb_variant = "intl"; 45 - follow_mouse = "1"; 46 - repeat_delay = 150; 47 - repeat_rate = 30; 48 - 49 - touchpad = { 50 - natural_scroll = "no"; 51 - }; 52 - 53 - accel_profile = "flat"; 54 - sensitivity = "0"; 55 - }; 56 - 57 - general = { 58 - gaps_in = "0"; 59 - gaps_out = "0"; 60 - border_size = "0"; 61 - layout = "dwindle"; 62 - allow_tearing = "false"; 63 - }; 64 - 65 - decoration = { 66 - blur = { 67 - enabled = "true"; 68 - size = "3"; 69 - passes = "1"; 70 - }; 71 - }; 72 - 73 - animations = { 74 - enabled = "yes"; 75 - bezier = "myBezier, 0.05, 0.9, 0.1, 1.05"; 76 - animation = [ 77 - "windows, 1, 7, myBezier" 78 - "windowsOut, 1, 7, default, popin 80%" 79 - "border, 1, 10, default" 80 - "borderangle, 1, 8, default" 81 - "fade, 1, 7, default" 82 - "workspaces, 1, 6, default" 83 - ]; 84 - }; 85 - 86 - dwindle = { 87 - pseudotile = "yes"; 88 - preserve_split = "yes"; 89 - }; 90 - 91 - master = { 92 - new_status = "master"; 93 - }; 94 - 95 - gestures = { 96 - workspace_swipe = "off"; 97 - }; 98 - 99 - windowrulev2 = [ 100 - "float,class:^(org.pulseaudio.pavucontrol)$" 101 - "float,class:^(.*blueman-manager.*)$" 102 - "float,class:^(zen)$,title:^(Picture-in-Picture)$" 103 - "opacity 0.0 override,class:^(xwaylandvideobridge)$" 104 - "noanim,class:^(xwaylandvideobridge)$" 105 - "noinitialfocus,class:^(xwaylandvideobridge)$" 106 - "noblur,class:^(xwaylandvideobridge)$" 107 - ]; 108 - 109 - "$mainMod" = "SUPER"; 110 - 111 - bind = let 112 - generateBindings = keyBind: workspacePrefix: i: "${keyBind}, ${toString i}, ${workspacePrefix}, ${toString i}"; 113 - screenshot = "${lib.meta.getExe pkgs.grim} -g \"$(${lib.meta.getExe pkgs.slurp} -d)\" -"; 114 - in 115 - [ 116 - # Software 117 - "$mainMod, Q, exec, ghostty" 118 - "$mainMod SHIFT, Q, exec, [float] ghostty --background-opacity=0.85" 119 - "$mainMod, R, exec, $menu" 120 - "$mainMod SHIFT, L, exec, $powermenu" 121 - 122 - # Generic 123 - "$mainMod, C, killactive" 124 - "$mainMod, M, exit" 125 - "$mainMod, V, togglefloating" 126 - "$mainMod, P, pseudo" 127 - "$mainMod, B, togglesplit" 128 - 129 - # Focus 130 - "$mainMod, h, movefocus, l" 131 - "$mainMod, l, movefocus, r" 132 - "$mainMod, k, movefocus, u" 133 - "$mainMod, j, movefocus, d" 134 - 135 - # Screenshot 136 - "$mainMod, S, exec, ${screenshot} | wl-copy" 137 - "$mainMod SHIFT, S, exec, ${screenshot} | ${lib.meta.getExe pkgs.swappy} -f - -o - | wl-copy" 138 - 139 - # Scroll through worskpaces 140 - "$mainMod, mouse_down, workspace, e+1" 141 - "$mainMod, mouse_up, workspace, e-1" 142 - 143 - # Move workspace to another screen 144 - "$mainMod CTRL, h, movecurrentworkspacetomonitor, l" 145 - "$mainMod CTRL, l, movecurrentworkspacetomonitor, r" 146 - "$mainMod CTRL, k, movecurrentworkspacetomonitor, u" 147 - "$mainMod CTRL, j, movecurrentworkspacetomonitor, d" 148 - ] 149 - ++ map (i: generateBindings "$mainMod" "workspace" i) (pkgs.lib.range 1 9) 150 - ++ map (i: generateBindings "$mainMod SHIFT" "movetoworkspace" i) (pkgs.lib.range 1 9); 151 - 152 - bindm = [ 153 - "$mainMod, mouse:272, movewindow" 154 - "$mainMod, mouse:273, resizewindow" 155 - ]; 156 - 157 - bindle = [ 158 - ",XF86MonBrightnessUp, exec, ${lib.meta.getExe pkgs.brightnessctl} set +5%" 159 - ",XF86MonBrightnessDown, exec, ${lib.meta.getExe pkgs.brightnessctl} set 5%-" 160 - ",XF86KbdBrightnessUp, exec, ${lib.meta.getExe pkgs.brightnessctl} -d asus::kbd_backlight set +1" 161 - ",XF86KbdBrightnessDown, exec, ${lib.meta.getExe pkgs.brightnessctl} -d asus::kbd_backlight set 1-" 162 - ]; 163 - 164 - bindl = [ 165 - ",XF86AudioPlay, exec, ${lib.meta.getExe pkgs.playerctl} play-pause" 166 - ",XF86AudioStop, exec, ${lib.meta.getExe pkgs.playerctl} pause" 167 - ",XF86AudioPause, exec, ${lib.meta.getExe pkgs.playerctl} pause" 168 - ",XF86AudioPrev, exec, ${lib.meta.getExe pkgs.playerctl} previous" 169 - ",XF86AudioNext, exec, ${lib.meta.getExe pkgs.playerctl} next" 170 - ]; 171 - }; 172 - }; 173 - }; 174 - }
+1 -11
modules/home/desktop/waybar.nix
··· 21 21 "backlight" 22 22 ]; 23 23 24 - modules-center = 25 - lib.optional osConfig.desktop.hyprland "hyprland/workspaces" 26 - ++ lib.optional osConfig.desktop.niri "niri/workspaces"; 24 + modules-center = lib.optional osConfig.desktop.niri "niri/workspaces"; 27 25 28 26 modules-right = [ 29 27 "pulseaudio" ··· 31 29 "battery" 32 30 "clock" 33 31 ]; 34 - 35 - "hyprland/workspaces" = { 36 - disable-scroll = true; 37 - all-outputs = true; 38 - on-click = "activate"; 39 - on-scroll-up = "${lib.meta.getExe pkgs.hyprland} dispatch workspace e+1"; 40 - on-scroll-down = "${lib.meta.getExe pkgs.hyprland} dispatch workspace e-1"; 41 - }; 42 32 43 33 "niri/workspaces" = { 44 34 format = "{value}";
-8
modules/nixos/desktop.nix
··· 16 16 lib.mkEnableOption "desktop usage" 17 17 // { 18 18 default = lib.lists.any (isTrue: isTrue) [ 19 - cfg.hyprland 20 19 cfg.niri 21 20 ]; 22 21 }; ··· 25 24 type = lib.types.path; 26 25 description = "the wallpaper to use"; 27 26 }; 28 - hyprland = lib.mkEnableOption "enable hyprland"; 29 27 niri = lib.mkEnableOption "enable niri"; 30 28 }; 31 29 ··· 62 60 }; 63 61 64 62 programs = { 65 - hyprland = lib.mkIf cfg.hyprland { 66 - enable = true; 67 - xwayland.enable = true; 68 - withUWSM = true; 69 - }; 70 - 71 63 niri = lib.mkIf cfg.niri { 72 64 enable = true; 73 65 };