aboutsummaryrefslogtreecommitdiffstats
path: root/modules/desktop/hyprland
diff options
context:
space:
mode:
authorArpit Chakladar <arpitchakladar+git@gmail.com>2026-07-26 02:26:24 +0530
committerArpit Chakladar <arpitchakladar+git@gmail.com>2026-07-26 02:26:24 +0530
commit76e8ba8527b9300ba3b15f18dc6b683e56a9dc47 (patch)
tree4b62a3dff953f292c167abbb556d10bb1f5653ad /modules/desktop/hyprland
parent8c13757c6d6c503774d833507f281eaa499b3bd9 (diff)
downloadhome-manager-config-76e8ba8527b9300ba3b15f18dc6b683e56a9dc47.tar.gz
home-manager-config-76e8ba8527b9300ba3b15f18dc6b683e56a9dc47.zip
feat: configure Wayland scaling, switch to scrolling layout, polish theme
- Set GDK_SCALE, QT_SCALE_FACTOR, monitor scale=1, chromium --force-device-scale-factor=1.15 - Migrate dwindle → scrolling layout with column config and Equal key resize - Bump default font size to 18, cursor to 20, system-monitor font shift - Change gap_out to 10, border width to 1px, inactive border to base03 - Refactor waybar workspaces/network to use shared mkIcon helper - Toggle window close with SHIFT+Q, remove redundant file-explorer size rule - Thinner rofi borders, larger width, bigger icons, bold prompt color - Tidy waybar spacing: uniform margins, larger padding, resized workspace buttons - Enable xwayland force_zero_scaling
Diffstat (limited to 'modules/desktop/hyprland')
-rw-r--r--modules/desktop/hyprland/default.nix34
-rw-r--r--modules/desktop/hyprland/keybindings.nix3
2 files changed, 27 insertions, 10 deletions
diff --git a/modules/desktop/hyprland/default.nix b/modules/desktop/hyprland/default.nix
index bea5c90..09f2639 100644
--- a/modules/desktop/hyprland/default.nix
+++ b/modules/desktop/hyprland/default.nix
@@ -39,6 +39,8 @@ in
QT_QPA_PLATFORM = "wayland;xcb";
SDL_VIDEODRIVER = "wayland";
CLUTTER_BACKEND = "wayland";
+ GDK_SCALE = "1";
+ QT_SCALE_FACTOR = "1";
AQ_DRM_DEVICES =
if config.desktop.hardware.gpu.secondaryCard != null then
@@ -71,6 +73,14 @@ in
systemd.enable = true;
settings = {
+ monitor = [
+ {
+ output = "";
+ mode = "preferred";
+ position = "auto";
+ scale = 1;
+ }
+ ];
mainMod = {
_var = "SUPER";
};
@@ -78,16 +88,27 @@ in
config = {
general = with config.scheme.withHashtag; {
gaps_in = 5;
- gaps_out = 5;
+ gaps_out = 10;
border_size = 1;
col = {
active_border = {
colors = [ (toHyprColor base07) ];
angle = 45;
};
- inactive_border = toHyprColor base00;
+ inactive_border = toHyprColor base03;
};
- layout = "dwindle";
+ layout = "scrolling";
+ };
+
+ xwayland = {
+ force_zero_scaling = true;
+ };
+
+ scrolling = {
+ column_width = 0.5;
+ explicit_column_widths = "0.5, 1.0";
+ focus_fit_method = 1;
+ follow_focus = true;
};
debug = {
@@ -132,11 +153,6 @@ in
float = true;
}
{
- name = "size-file-explorer";
- match.class = "^(file-explorer)$";
- size = "1000 600";
- }
- {
name = "center-file-explorer";
match.class = "^(file-explorer)$";
center = true;
@@ -149,7 +165,7 @@ in
enable = true;
package = pkgs.rose-pine-hyprcursor;
name = "rose-pine-hyprcursor";
- size = 18;
+ size = 20;
hyprcursor.enable = true;
gtk.enable = false;
x11.enable = false;
diff --git a/modules/desktop/hyprland/keybindings.nix b/modules/desktop/hyprland/keybindings.nix
index 2612088..f5c98b5 100644
--- a/modules/desktop/hyprland/keybindings.nix
+++ b/modules/desktop/hyprland/keybindings.nix
@@ -38,7 +38,8 @@ in
execLua "${lib.getExe config.terminal.kitty.package} --class file-explorer --title 'Yazi' -e ${lib.getExe config.file-management.yazi.package}"
))
])
- (bind "Q" "hl.dsp.window.close()")
+ (bind "SHIFT + Q" "hl.dsp.window.close()")
+ (bind "Equal" (execLua "layoutmsg colresize +conf"))
(lib.optionals config.system.brightnessctl.enable [
(bindRawFlags "XF86MonBrightnessDown"