Fix GTK font rendering (finally)
This commit is contained in:
parent
bdd5a8ab1a
commit
62def3563b
@ -9,7 +9,6 @@ in {
|
|||||||
home-manager.users.balsoft = lib.mkIf (config.deviceSpecific.goodMachine) {
|
home-manager.users.balsoft = lib.mkIf (config.deviceSpecific.goodMachine) {
|
||||||
home.packages = with pkgs; [
|
home.packages = with pkgs; [
|
||||||
plasma-integration
|
plasma-integration
|
||||||
plasma5.xdg-desktop-portal-kde
|
|
||||||
plasma-browser-integration
|
plasma-browser-integration
|
||||||
];
|
];
|
||||||
home.file.".mozilla/native-messaging-hosts".source = pkgs.symlinkJoin {
|
home.file.".mozilla/native-messaging-hosts".source = pkgs.symlinkJoin {
|
||||||
|
@ -54,7 +54,6 @@
|
|||||||
gnumeric
|
gnumeric
|
||||||
gcalcli
|
gcalcli
|
||||||
google-drive-ocamlfuse
|
google-drive-ocamlfuse
|
||||||
kdeconnect
|
|
||||||
trojita
|
trojita
|
||||||
nix-zsh-completions
|
nix-zsh-completions
|
||||||
papirus-icon-theme
|
papirus-icon-theme
|
||||||
|
@ -33,8 +33,6 @@
|
|||||||
after = [ "linkGeneration" ];
|
after = [ "linkGeneration" ];
|
||||||
before = [ ];
|
before = [ ];
|
||||||
};
|
};
|
||||||
home-manager.users.balsoft.home.sessionVariables.XDG_RUNTIME_DIR =
|
|
||||||
"/run/user/1000";
|
|
||||||
|
|
||||||
services.udev.extraRules = ''
|
services.udev.extraRules = ''
|
||||||
ACTION=="remove", ATTRS{idVendor}=="1050", RUN+="${pkgs.systemd}/bin/loginctl lock-sessions"
|
ACTION=="remove", ATTRS{idVendor}=="1050", RUN+="${pkgs.systemd}/bin/loginctl lock-sessions"
|
||||||
|
@ -44,8 +44,8 @@ in {
|
|||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
})];
|
})];
|
||||||
|
services.dbus.packages = with pkgs; [ gnome3.dconf ];
|
||||||
home-manager.users.balsoft = {
|
home-manager.users.balsoft = {
|
||||||
home.packages = [pkgs.generated-gtk-theme];
|
|
||||||
gtk = {
|
gtk = {
|
||||||
enable = true;
|
enable = true;
|
||||||
iconTheme = {
|
iconTheme = {
|
||||||
@ -56,13 +56,10 @@ in {
|
|||||||
name = "Generated";
|
name = "Generated";
|
||||||
package = pkgs.generated-gtk-theme;
|
package = pkgs.generated-gtk-theme;
|
||||||
};
|
};
|
||||||
font =
|
font = {
|
||||||
{
|
name = "Roboto 12";
|
||||||
package = pkgs.roboto;
|
|
||||||
name = "Roboto 11";
|
|
||||||
};
|
};
|
||||||
gtk3.extraConfig.gtk-cursor-theme-name = "breeze";
|
gtk3.extraConfig.gtk-cursor-theme-name = "breeze";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
environment.sessionVariables.GTK_THEME = "Generated";
|
|
||||||
}
|
}
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
with import ../../../support.nix { inherit lib config; }; {
|
with import ../../../support.nix { inherit lib config; }; {
|
||||||
xdg.portal.enable = true;
|
xdg.portal.enable = true;
|
||||||
# services.flatpak.enable = true;
|
# services.flatpak.enable = true;
|
||||||
xdg.portal.extraPortals = [ pkgs.plasma5.xdg-desktop-portal-kde ];
|
xdg.portal.extraPortals = [ pkgs.xdg-desktop-portal-kde ];
|
||||||
services.dbus.packages = [
|
services.dbus.packages = [
|
||||||
pkgs.plasma5.xdg-desktop-portal-kde
|
pkgs.plasma5.xdg-desktop-portal-kde
|
||||||
pkgs.flatpak
|
pkgs.flatpak
|
||||||
@ -10,7 +10,6 @@ with import ../../../support.nix { inherit lib config; }; {
|
|||||||
pkgs.systemd
|
pkgs.systemd
|
||||||
];
|
];
|
||||||
nixpkgs.config.firefox.enablePlasmaBrowserIntegration = true;
|
nixpkgs.config.firefox.enablePlasmaBrowserIntegration = true;
|
||||||
home-manager.users.balsoft.home.packages = [ pkgs.qt5ct ];
|
|
||||||
environment.sessionVariables = {
|
environment.sessionVariables = {
|
||||||
DESKTOP_SESSION = "kde";
|
DESKTOP_SESSION = "kde";
|
||||||
QT_XFT = "true";
|
QT_XFT = "true";
|
||||||
@ -19,11 +18,9 @@ with import ../../../support.nix { inherit lib config; }; {
|
|||||||
KDE_SESSION_VERSION = "5";
|
KDE_SESSION_VERSION = "5";
|
||||||
QT_SCALE_FACTOR = "1";
|
QT_SCALE_FACTOR = "1";
|
||||||
QT_AUTO_SCREEN_SCALE_FACTOR = "0";
|
QT_AUTO_SCREEN_SCALE_FACTOR = "0";
|
||||||
GTK_USE_PORTAL = "1";
|
|
||||||
DE = "kde";
|
DE = "kde";
|
||||||
QT_QPA_PLATFORMTHEME = "kde";
|
QT_QPA_PLATFORMTHEME = "kde";
|
||||||
};
|
};
|
||||||
#home-manager.users.balsoft.xdg.configFile."qt5ct/qt5ct.conf".source = ./qt5ct.conf;
|
|
||||||
home-manager.users.balsoft.xdg.configFile."kdeglobals".text = genIni {
|
home-manager.users.balsoft.xdg.configFile."kdeglobals".text = genIni {
|
||||||
"Colors:Button" = {
|
"Colors:Button" = {
|
||||||
BackgroundAlternate = thmDec.dark;
|
BackgroundAlternate = thmDec.dark;
|
||||||
|
@ -2,6 +2,11 @@
|
|||||||
console.font = "cyr-sun16";
|
console.font = "cyr-sun16";
|
||||||
console.keyMap = "ruwin_cplk-UTF-8";
|
console.keyMap = "ruwin_cplk-UTF-8";
|
||||||
|
|
||||||
|
environment.sessionVariables = {
|
||||||
|
XKB_DEFAULT_LAYOUT = "us,ru";
|
||||||
|
XKB_DEFAULT_OPTIONS = "grp:lctrl_toggle,grp_led:caps,ctrl:nocaps";
|
||||||
|
};
|
||||||
|
|
||||||
time.timeZone = "Europe/Moscow"; # Mother Russia
|
time.timeZone = "Europe/Moscow"; # Mother Russia
|
||||||
home-manager.users.balsoft.home.language = let
|
home-manager.users.balsoft.home.language = let
|
||||||
en = "en_GB.UTF-8";
|
en = "en_GB.UTF-8";
|
||||||
|
@ -8,8 +8,6 @@
|
|||||||
VISUAL = config.defaultApplications.editor.cmd;
|
VISUAL = config.defaultApplications.editor.cmd;
|
||||||
LESS = "-asrRix8";
|
LESS = "-asrRix8";
|
||||||
XDG_SESSION_TYPE = "wayland";
|
XDG_SESSION_TYPE = "wayland";
|
||||||
XKB_DEFAULT_LAYOUT = "us,ru";
|
|
||||||
XKB_DEFAULT_OPTIONS = "grp:lctrl_toggle,grp_led:caps,ctrl:nocaps";
|
|
||||||
QT_QPA_PLATFORM = "wayland";
|
QT_QPA_PLATFORM = "wayland";
|
||||||
QT_WAYLAND_DISABLE_WINDOWDECORATION = "1";
|
QT_WAYLAND_DISABLE_WINDOWDECORATION = "1";
|
||||||
NIX_AUTO_RUN = "1";
|
NIX_AUTO_RUN = "1";
|
||||||
@ -67,5 +65,6 @@
|
|||||||
home.file.".icons/default".source =
|
home.file.".icons/default".source =
|
||||||
"${pkgs.breeze-qt5}/share/icons/breeze_cursors";
|
"${pkgs.breeze-qt5}/share/icons/breeze_cursors";
|
||||||
systemd.user.startServices = true;
|
systemd.user.startServices = true;
|
||||||
|
services.kdeconnect.enable = true;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
@ -7,6 +7,8 @@ let
|
|||||||
in {
|
in {
|
||||||
environment.sessionVariables._JAVA_AWT_WM_NONREPARENTING = "1";
|
environment.sessionVariables._JAVA_AWT_WM_NONREPARENTING = "1";
|
||||||
|
|
||||||
|
programs.sway.wrapperFeatures.gtk = true;
|
||||||
|
|
||||||
home-manager.users.balsoft.wayland.windowManager.sway = {
|
home-manager.users.balsoft.wayland.windowManager.sway = {
|
||||||
enable = true;
|
enable = true;
|
||||||
config = rec {
|
config = rec {
|
||||||
@ -70,8 +72,7 @@ in {
|
|||||||
];
|
];
|
||||||
};
|
};
|
||||||
startup = [
|
startup = [
|
||||||
{ command = apps.browser.cmd; }
|
{ command = "GTK_USE_PORTAL=1 ${apps.browser.cmd}"; }
|
||||||
{ command = "${pkgs.kdeconnect}/libexec/kdeconnectd"; }
|
|
||||||
{
|
{
|
||||||
command =
|
command =
|
||||||
"${pkgs.mate.mate-polkit}/libexec/polkit-mate-authentication-agent-1";
|
"${pkgs.mate.mate-polkit}/libexec/polkit-mate-authentication-agent-1";
|
||||||
@ -89,6 +90,12 @@ in {
|
|||||||
{
|
{
|
||||||
command = "swayidle -w before-sleep '${lock_fork}' lock '${lock_fork}' unlock 'pkill -9 swaylock'";
|
command = "swayidle -w before-sleep '${lock_fork}' lock '${lock_fork}' unlock 'pkill -9 swaylock'";
|
||||||
}
|
}
|
||||||
|
{
|
||||||
|
command = "${pkgs.xdg-desktop-portal-kde}/libexec/xdg-desktop-portal-kde";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
command = "${pkgs.xdg-desktop-portal}/libexec/xdg-desktop-portal";
|
||||||
|
}
|
||||||
];
|
];
|
||||||
|
|
||||||
keybindings = let
|
keybindings = let
|
||||||
|
@ -39,10 +39,5 @@
|
|||||||
# "emacs.color15" = fg;
|
# "emacs.color15" = fg;
|
||||||
|
|
||||||
};
|
};
|
||||||
home.activation.xrdb = {
|
|
||||||
after = ["linkGeneration"];
|
|
||||||
before = [];
|
|
||||||
data = "DISPLAY=:0 ${pkgs.xorg.xrdb}/bin/xrdb -merge ${config.users.users.balsoft.home}/.Xresources";
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user