Better hidpi handling

This commit is contained in:
Cyryl Płotnicki 2019-07-15 21:31:39 +01:00
parent 1ff8c90653
commit 35a7315b77
4 changed files with 10 additions and 7 deletions

View file

@ -76,8 +76,9 @@ in
clickMethod = "clickfinger"; clickMethod = "clickfinger";
}; };
displayManager.slim = { displayManager.sddm = {
enable = true; enable = true;
enableHidpi = true;
}; };
}; };
}; };

View file

@ -27,7 +27,6 @@ in
]; ];
home.sessionVariables = { home.sessionVariables = {
TERMINAL="alacritty"; TERMINAL="alacritty";
GDK_SCALE="2";
QT_AUTO_SCREEN_SCALE_FACTOR="1"; QT_AUTO_SCREEN_SCALE_FACTOR="1";
}; };

View file

@ -17,7 +17,7 @@
font = { font = {
family = "DejaVu Sans Mono for Powerline"; family = "DejaVu Sans Mono for Powerline";
size = 12.0; size = 8.0;
}; };
draw_bold_text_with_bright_colors = true; draw_bold_text_with_bright_colors = true;
@ -50,7 +50,7 @@
white= "0xfdf6e3"; white= "0xfdf6e3";
}; };
background_opacity= 1.0; background_opacity = 0.9;
dynamic_title= true; dynamic_title= true;
}; };
cursor= { cursor= {

View file

@ -14,6 +14,7 @@ in
package = pkgs.i3-gaps; package = pkgs.i3-gaps;
config = { config = {
startup = [ startup = [
{ command = "exec autorandr -c"; always = true; notification = false; }
{ command = "exec i3-sensible-terminal"; always = false; notification = false; } { command = "exec i3-sensible-terminal"; always = false; notification = false; }
{ command = "exec $HOME/dev/dotfiles/lock.sh"; always = false; notification = false; } { command = "exec $HOME/dev/dotfiles/lock.sh"; always = false; notification = false; }
]; ];
@ -61,6 +62,10 @@ in
programs.autorandr = { programs.autorandr = {
enable = true; enable = true;
hooks.postswitch = {
"notify-i3" = "''${pkgs.i3}/bin/i3-msg restart";
};
profiles = { profiles = {
"foureighty-alone" = { "foureighty-alone" = {
fingerprint = { fingerprint = {
@ -70,10 +75,8 @@ in
eDP1 = { eDP1 = {
enable = true; enable = true;
primary = true; primary = true;
position = "0x0";
mode = "2560x1440"; mode = "2560x1440";
rate = "60.00"; dpi = 192;
scale = { x=1.25; y=1.25; };
}; };
}; };
}; };