forked from poz/niksos
add gtk and qt theme
This commit is contained in:
parent
e5498cadfd
commit
0401ec18f2
6 changed files with 61 additions and 4 deletions
|
@ -84,7 +84,6 @@
|
|||
gcc
|
||||
sway
|
||||
caprine-bin
|
||||
libsForQt5.qt5ct
|
||||
libsForQt5.kdenlive
|
||||
telegram-desktop
|
||||
waypipe
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
_: {
|
||||
imports = [
|
||||
./foot
|
||||
./gtk
|
||||
./hypr
|
||||
./rofi
|
||||
./waybar
|
||||
|
|
23
homes/jacek/gui/gtk/default.nix
Normal file
23
homes/jacek/gui/gtk/default.nix
Normal file
|
@ -0,0 +1,23 @@
|
|||
{
|
||||
config,
|
||||
inputs,
|
||||
pkgs,
|
||||
...
|
||||
}: {
|
||||
config = {
|
||||
gtk = {
|
||||
enable = true;
|
||||
theme = {
|
||||
name = "Catppuccin-Mocha";
|
||||
package = pkgs.catppuccin-gtk.override {
|
||||
variant = "mocha";
|
||||
};
|
||||
};
|
||||
};
|
||||
home.sessionVariables = {
|
||||
GTK_THEME = "${config.gtk.theme.name}";
|
||||
|
||||
GTK_USE_PORTAL = "1";
|
||||
};
|
||||
};
|
||||
}
|
|
@ -264,8 +264,6 @@
|
|||
|
||||
env=TERM,foot
|
||||
|
||||
env=QT_QPA_PLATFORMTHEME,qt5ct
|
||||
|
||||
env=CHROME_EXECUTABLE,/usr/bin/chromium
|
||||
|
||||
env=GTK_IM_MODULE,fcitx
|
||||
|
@ -280,7 +278,6 @@
|
|||
env=XDG_SESSION_TYPE,wayland
|
||||
env=XDG_SESSION_DESKTOP,Hyprland
|
||||
|
||||
env=QT_QPA_PLATFORM,wayland
|
||||
env=MOZ_ENABLE_WAYLAND,1
|
||||
env=MOZ_DRM_DEVICE,/dev/dri/card0
|
||||
|
||||
|
|
37
homes/jacek/gui/qt/default.nix
Normal file
37
homes/jacek/gui/qt/default.nix
Normal file
|
@ -0,0 +1,37 @@
|
|||
{
|
||||
config,
|
||||
inputs,
|
||||
pkgs,
|
||||
...
|
||||
}: {
|
||||
# thanks raf :3 https://github.com/NotAShelf/nyx/blob/main/homes/notashelf/themes/qt.nix
|
||||
config = {
|
||||
qt = {
|
||||
enable = true;
|
||||
platformTheme = "qt5ct";
|
||||
style = {
|
||||
name = "Catppuccin-Mocha-Dark";
|
||||
package = pkgs.catppuccin-kde.override {
|
||||
flavour = "mocha";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
home = {
|
||||
packages = with pkgs; [
|
||||
qt5.qttools
|
||||
qt6Packages.qtstyleplugin-kvantum
|
||||
libsForQt5.qtstyleplugin-kvantum
|
||||
libsForQt5.qt5ct
|
||||
breeze-icons
|
||||
];
|
||||
|
||||
sessionVariables = {
|
||||
QT_STYLE_OVERRIDE = "kvantum";
|
||||
QT_QPA_PLATFORM = "wayland;xcb";
|
||||
QT_WAYLAND_DISABLE_WINDOWDECORATION = "1";
|
||||
DISABLE_QT_COMPAT = "0";
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Reference in a new issue