diff options
| author | Arpit Chakladar <arpitchakladar+git@gmail.com> | 2026-07-26 02:26:24 +0530 |
|---|---|---|
| committer | Arpit Chakladar <arpitchakladar+git@gmail.com> | 2026-07-26 02:26:24 +0530 |
| commit | 76e8ba8527b9300ba3b15f18dc6b683e56a9dc47 (patch) | |
| tree | 4b62a3dff953f292c167abbb556d10bb1f5653ad /modules/desktop/waybar/module | |
| parent | 8c13757c6d6c503774d833507f281eaa499b3bd9 (diff) | |
| download | home-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/waybar/module')
| -rw-r--r-- | modules/desktop/waybar/module/default.nix | 2 | ||||
| -rw-r--r-- | modules/desktop/waybar/module/network.nix | 6 | ||||
| -rw-r--r-- | modules/desktop/waybar/module/workspaces.nix | 8 |
3 files changed, 11 insertions, 5 deletions
diff --git a/modules/desktop/waybar/module/default.nix b/modules/desktop/waybar/module/default.nix index ebfa2c4..c1c8048 100644 --- a/modules/desktop/waybar/module/default.nix +++ b/modules/desktop/waybar/module/default.nix @@ -24,6 +24,6 @@ in ; }; "hyprland/window" = import ./window.nix { inherit config; }; - "hyprland/workspaces" = import ./workspaces.nix { inherit config lib; }; + "hyprland/workspaces" = import ./workspaces.nix { inherit config lib mkIcon; }; }; } diff --git a/modules/desktop/waybar/module/network.nix b/modules/desktop/waybar/module/network.nix index 7f0af4c..f20121f 100644 --- a/modules/desktop/waybar/module/network.nix +++ b/modules/desktop/waybar/module/network.nix @@ -2,12 +2,14 @@ with config.scheme.withHashtag; let iconColor = base0B; + downloadIcon = mkIcon base0F ""; + uploadIcon = mkIcon base0F ""; in { interval = 2; - format-wifi = "${mkIcon iconColor "{icon}"} {bandwidthDownBytes} {bandwidthUpBytes}"; - format-ethernet = "${mkIcon iconColor ""} {bandwidthDownBytes} {bandwidthUpBytes}"; + format-wifi = "${mkIcon iconColor "{icon}"} ${downloadIcon}{bandwidthDownBytes} ${uploadIcon}{bandwidthUpBytes}"; + format-ethernet = "${mkIcon iconColor ""} ${downloadIcon}{bandwidthDownBytes} ${uploadIcon}{bandwidthUpBytes}"; format-disconnected = "${mkIcon iconColor ""} Disconnected"; tooltip-format = "{ifname}"; diff --git a/modules/desktop/waybar/module/workspaces.nix b/modules/desktop/waybar/module/workspaces.nix index a16b9e5..c8a99c2 100644 --- a/modules/desktop/waybar/module/workspaces.nix +++ b/modules/desktop/waybar/module/workspaces.nix @@ -1,9 +1,13 @@ -{ config, lib }: +{ + config, + lib, + mkIcon, +}: with config.scheme.withHashtag; let mkWindowRewrite = enable: color: icon: - lib.mkIf enable "<span font_size='150%' color='${color}'>${icon}</span>"; + lib.mkIf enable (mkIcon color icon); in { format = "{windows} <span rise='-3000' font_size='small'>{id}</span>"; |
