about summary refs log tree commit diff
path: root/modules/user
diff options
context:
space:
mode:
authoraszlig <aszlig@nix.build>2023-04-09 01:18:48 +0200
committeraszlig <aszlig@nix.build>2023-04-09 01:26:02 +0200
commite0cb068a4bbad0beda3b5c8c8a25aa37df631d40 (patch)
tree07cb31e2ed50fb04c79c5f2e79dda4097606db62 /modules/user
parent7cef6a096dd42440952f8e5edb6c5813dec28766 (diff)
slylandro: Remove hidpi specific settings for now
This reverts commit c88fd9eaa12c8a3c06502b09c2056d3c91421952.

The hardware.video.hidpi.enable option was removed a while ago[1]
because it's not clear what a single boolean option should mean, so it
doesn't make sense anymore to make any of our options depend on it.

Forthermore, I'm experimenting with different Wayland compositors at the
moment and most of the stuff that I did here is for Xorg. I expect most
of the stuff to be gone when I'm settled with a Wayland setup that works
for me.

[1]: https://github.com/NixOS/nixpkgs/pull/222689

Signed-off-by: aszlig <aszlig@nix.build>
Diffstat (limited to 'modules/user')
-rw-r--r--modules/user/aszlig/profiles/workstation/default.nix6
-rw-r--r--modules/user/aszlig/services/i3/default.nix2
-rw-r--r--modules/user/aszlig/services/i3/i3.conf2
3 files changed, 2 insertions, 8 deletions
diff --git a/modules/user/aszlig/profiles/workstation/default.nix b/modules/user/aszlig/profiles/workstation/default.nix
index c6b86413..bb4785d6 100644
--- a/modules/user/aszlig/profiles/workstation/default.nix
+++ b/modules/user/aszlig/profiles/workstation/default.nix
@@ -3,8 +3,6 @@
 let
   cfg = config.vuizvui.user.aszlig.profiles.workstation;
   inherit (config.services.xserver) xrandrHeads;
-  hidpi = config.hardware.video.hidpi.enable;
-  faceSize = if hidpi then 10 else 12;
 in {
   options.vuizvui.user.aszlig.profiles.workstation = {
     enable = lib.mkEnableOption "Workstation profile for aszlig";
@@ -37,7 +35,6 @@ in {
       (pkgs.vuizvui.aszlig.psi.override {
         jid = "aszlig@aszlig.net";
         resource = config.networking.hostName;
-        inherit faceSize;
       })
     ] ++ import ./packages.nix pkgs;
 
@@ -49,7 +46,6 @@ in {
 
     # The default theme hurts my eyes.
     environment.variables.GTK_THEME = "Adwaita:dark";
-    environment.variables.QT_AUTO_SCREEN_SCALE_FACTOR = lib.mkIf hidpi "1";
 
     vuizvui.lazyPackages = import ./lazy-packages.nix pkgs;
 
@@ -190,7 +186,7 @@ in {
               XTerm*termName:            xterm-direct
               XTerm*directColor:         true
               XTerm*faceName:            MxPlus IBM VGA 8x16
-              XTerm*faceSize:            ${toString faceSize}
+              XTerm*faceSize:            12
               XTerm*renderFont:          true
               XTerm*saveLines:           10000
               XTerm*bellIsUrgent:        true
diff --git a/modules/user/aszlig/services/i3/default.nix b/modules/user/aszlig/services/i3/default.nix
index 503b192b..d11140dd 100644
--- a/modules/user/aszlig/services/i3/default.nix
+++ b/modules/user/aszlig/services/i3/default.nix
@@ -117,8 +117,6 @@ in
         inherit (pkgs.xorg) xsetroot;
         inherit wsConfig barConfig;
 
-        faceSize = if config.hardware.video.hidpi.enable then 10 else 12;
-
         # XXX: Decouple this by making the i3 bindsym directives available to
         #      the NixOS module system.
         flameshot = config.vuizvui.user.aszlig.programs.flameshot.package;
diff --git a/modules/user/aszlig/services/i3/i3.conf b/modules/user/aszlig/services/i3/i3.conf
index e3be7b23..1ace36ae 100644
--- a/modules/user/aszlig/services/i3/i3.conf
+++ b/modules/user/aszlig/services/i3/i3.conf
@@ -2,7 +2,7 @@
 set $mod Mod4
 
 # we want to have a VT-style font :-)
-font pango:MxPlus IBM VGA 8x16 @faceSize@
+font pango:MxPlus IBM VGA 8x16 12
 
 # Use Mouse+$mod to drag floating windows to their wanted position
 floating_modifier $mod