better touch support in de2
This commit is contained in:
parent
ece39204ae
commit
35ebe2352d
@ -13,6 +13,12 @@ in
|
|||||||
default = true;
|
default = true;
|
||||||
description = "Enable tiling stuff";
|
description = "Enable tiling stuff";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
touch = mkOption {
|
||||||
|
type = types.bool;
|
||||||
|
default = false;
|
||||||
|
description = "Make usable for touchscreens";
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
config = mkIf cfg.enable {
|
config = mkIf cfg.enable {
|
||||||
@ -142,17 +148,17 @@ in
|
|||||||
|
|
||||||
systemd.user.sessionVariables = {
|
systemd.user.sessionVariables = {
|
||||||
MOZ_ENABLE_WAYLAND = "1";
|
MOZ_ENABLE_WAYLAND = "1";
|
||||||
QT_WAYLAND_DISABLE_WINDOWDECORATION = lib.mkIf cfg.tiling "1";
|
QT_WAYLAND_DISABLE_WINDOWDECORATION = lib.mkIf (cfg.tiling && !cfg.touch) "1";
|
||||||
};
|
};
|
||||||
|
|
||||||
xdg.configFile."gtk-4.0/gtk.css".text = ''
|
xdg.configFile."gtk-4.0/gtk.css".text = ''
|
||||||
/* UNITE windowDecorations */
|
/* UNITE windowDecorations */
|
||||||
@import url('${config.home.homeDirectory}/.nix-profile/share/gnome-shell/extensions/unite@hardpixel.eu/styles/gtk4/buttons-right/${if cfg.tiling then "always" else "both"}.css');
|
@import url('${config.home.homeDirectory}/.nix-profile/share/gnome-shell/extensions/unite@hardpixel.eu/styles/gtk4/buttons-right/${if (cfg.tiling && !cfg.touch) then "always" else "both"}.css');
|
||||||
/* windowDecorations UNITE */
|
/* windowDecorations UNITE */
|
||||||
'';
|
'';
|
||||||
gtk.gtk3.extraCss = ''
|
gtk.gtk3.extraCss = ''
|
||||||
/* UNITE windowDecorations */
|
/* UNITE windowDecorations */
|
||||||
@import url('${config.home.homeDirectory}/.nix-profile/share/gnome-shell/extensions/unite@hardpixel.eu/styles/gtk3/buttons-right/${if cfg.tiling then "always" else "both"}.css');
|
@import url('${config.home.homeDirectory}/.nix-profile/share/gnome-shell/extensions/unite@hardpixel.eu/styles/gtk3/buttons-right/${if (cfg.tiling && !cfg.touch) then "always" else "both"}.css');
|
||||||
/* windowDecorations UNITE */
|
/* windowDecorations UNITE */
|
||||||
'';
|
'';
|
||||||
home.activation.gtk3css-over-unite = {
|
home.activation.gtk3css-over-unite = {
|
||||||
@ -262,8 +268,8 @@ in
|
|||||||
only-on-primary = cfg.tiling;
|
only-on-primary = cfg.tiling;
|
||||||
};
|
};
|
||||||
"org/gnome/shell/extensions/unite" = {
|
"org/gnome/shell/extensions/unite" = {
|
||||||
hide-window-titlebars = if cfg.tiling then "always" else "both";
|
hide-window-titlebars = if (cfg.tiling && !cfg.touch) then "always" else "both";
|
||||||
hide-activities-button = if cfg.tiling then "never" else "always";
|
hide-activities-button = if (cfg.tiling || cfg.touch) then "never" else "always";
|
||||||
show-window-buttons = if cfg.tiling then "never" else "both";
|
show-window-buttons = if cfg.tiling then "never" else "both";
|
||||||
notifications-position = "center";
|
notifications-position = "center";
|
||||||
restrict-to-primary-screen = false;
|
restrict-to-primary-screen = false;
|
||||||
|
Loading…
Reference in New Issue
Block a user