aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAkshay <[email protected]>2023-01-21 17:00:11 +0000
committerAkshay <[email protected]>2023-01-21 17:00:11 +0000
commit563855b35d41305eb9647d687f5e57af6e66ac14 (patch)
treec3ddb9608d09663e02c94fbce00c4eb7c6701e7a
parent147b6f12adf59eaa699ebb3d56d2f1c6dfb26c48 (diff)
up dpi
-rw-r--r--home.nix5
-rw-r--r--programs/st/config.h6
-rw-r--r--x/xft.nix2
3 files changed, 8 insertions, 5 deletions
diff --git a/home.nix b/home.nix
index b5919a0..322e99a 100644
--- a/home.nix
+++ b/home.nix
@@ -60,6 +60,9 @@
60 cudatoolkit 60 cudatoolkit
61 pciutils 61 pciutils
62 62
63 # x
64 xinput_calibrator
65
63 # meta 66 # meta
64 nixpkgs-review 67 nixpkgs-review
65 nixpkgs-fmt 68 nixpkgs-fmt
@@ -84,8 +87,8 @@
84 windowManager.command = "2bwm"; 87 windowManager.command = "2bwm";
85 initExtra = '' 88 initExtra = ''
86 ${pkgs.hsetroot}/bin/hsetroot -solid "${theme.base00}" 89 ${pkgs.hsetroot}/bin/hsetroot -solid "${theme.base00}"
90 xrandr --dpi 288
87 xrdb -load $HOME/.Xresources 91 xrdb -load $HOME/.Xresources
88 xrandr -dpi 192
89 ''; 92 '';
90 }; 93 };
91 94
diff --git a/programs/st/config.h b/programs/st/config.h
index dd36c64..a0811fa 100644
--- a/programs/st/config.h
+++ b/programs/st/config.h
@@ -225,9 +225,9 @@ static Shortcut shortcuts[] = {
225 { ControlMask, XK_Print, toggleprinter, {.i = 0} }, 225 { ControlMask, XK_Print, toggleprinter, {.i = 0} },
226 { ShiftMask, XK_Print, printscreen, {.i = 0} }, 226 { ShiftMask, XK_Print, printscreen, {.i = 0} },
227 { XK_ANY_MOD, XK_Print, printsel, {.i = 0} }, 227 { XK_ANY_MOD, XK_Print, printsel, {.i = 0} },
228 { TERMMOD, XK_Prior, zoom, {.f = +1} }, 228 { TERMMOD, XK_J, zoom, {.f = +1} },
229 { TERMMOD, XK_Next, zoom, {.f = -1} }, 229 { TERMMOD, XK_K, zoom, {.f = -1} },
230 { TERMMOD, XK_Home, zoomreset, {.f = 0} }, 230 { TERMMOD, XK_H, zoomreset, {.f = 0} },
231 { TERMMOD, XK_C, clipcopy, {.i = 0} }, 231 { TERMMOD, XK_C, clipcopy, {.i = 0} },
232 { TERMMOD, XK_V, clippaste, {.i = 0} }, 232 { TERMMOD, XK_V, clippaste, {.i = 0} },
233 { TERMMOD, XK_Y, selpaste, {.i = 0} }, 233 { TERMMOD, XK_Y, selpaste, {.i = 0} },
diff --git a/x/xft.nix b/x/xft.nix
index 74ea87d..30fed14 100644
--- a/x/xft.nix
+++ b/x/xft.nix
@@ -11,6 +11,6 @@
11 "Xft.hintstyle" = "hintslight"; 11 "Xft.hintstyle" = "hintslight";
12 "Xft.hinting" = true; 12 "Xft.hinting" = true;
13 "Xft.rgba" = "rgb"; 13 "Xft.rgba" = "rgb";
14 "Xft.dpi" = 110; 14 "Xft.dpi" = 288;
15 }; 15 };
16} 16}