adds various game

fixes gnome extensions
adds various configs for extensions
fixes proper gtk theme
This commit is contained in:
Menno van Leeuwen 2024-11-02 06:20:18 +01:00
parent 55c9fe6cea
commit d52099bbb9
Signed by: vleeuwenmenno
SSH Key Fingerprint: SHA256:OJFmjANpakwD3F2Rsws4GLtbdz1TJ5tkQF0RZmF0TRE
5 changed files with 139 additions and 26 deletions

View File

@ -1,12 +1,42 @@
{ config, pkgs, ... }: { config, pkgs, ... }:
{ {
# GTK Theme
gtk = {
enable = true;
iconTheme = {
name = "Papirus-Dark";
package = pkgs.papirus-icon-theme;
};
theme = {
name = "Yaru-purple-dark";
package = pkgs.yaru-theme;
};
cursorTheme = {
name = "Numix-Cursor";
package = pkgs.numix-cursor-theme;
};
gtk3.extraConfig = {
Settings = ''
gtk-application-prefer-dark-theme=1
'';
};
gtk4.extraConfig = {
Settings = ''
gtk-application-prefer-dark-theme=1
'';
};
};
dconf = { dconf = {
enable = true; enable = true;
settings = { settings = {
# Dark theme
"org/gnome/desktop/interface" = { "org/gnome/desktop/interface" = {
color-scheme = "prefer-dark"; color-scheme = "prefer-dark";
gtk-theme = "Adwaita-dark";
}; };
# Pinned apps # Pinned apps
@ -25,8 +55,8 @@
# Set wallpaper # Set wallpaper
"org/gnome/desktop/background" = { "org/gnome/desktop/background" = {
picture-uri-dark = "file:///${config.home.homeDirectory}/dotfiles/secrets/wp/9.jpg"; picture-uri-dark = "file:///${config.home.homeDirectory}/dotfiles/secrets/wp/9.png";
picture-uri = "file:///${config.home.homeDirectory}/dotfiles/secrets/wp/9.jpg"; picture-uri = "file:///${config.home.homeDirectory}/dotfiles/secrets/wp/9.png";
picture-options = "zoom"; picture-options = "zoom";
primary-color = "#000000"; primary-color = "#000000";
}; };

View File

@ -1,23 +1,23 @@
{ config, pkgs, ... }: { config, pkgs, ... }:
{ {
home.packages = with pkgs.gnomeExtensions; [ home.packages = with pkgs.gnomeExtensions; [
# lilypad@shendrew.github.io tailscale-qs
# tailscale@joaophi.github.com
forge
gsconnect gsconnect
blur-my-shell blur-my-shell
rounded-window-corners
weather-oclock weather-oclock
space-bar space-bar
show-desktop-button
gtk4-desktop-icons-ng-ding gtk4-desktop-icons-ng-ding
logo-menu logo-menu
media-controls media-controls
burn-my-windows burn-my-windows
coverflow-alt-tab coverflow-alt-tab
dash-to-dock dash-to-dock
hide-top-bar
appindicator appindicator
user-themes
autohide-battery
battery-health-charging
just-perfection
pano
]; ];
# Copy burn-my-windows profile to user config # Copy burn-my-windows profile to user config
@ -34,28 +34,39 @@
"org/gnome/shell" = { "org/gnome/shell" = {
disable-user-extensions = false; disable-user-extensions = false;
enabled-extensions = [ enabled-extensions = [
# "tilingshell@ferrarodomenico.com" "tilingshell@ferrarodomenico.com"
"forge@jmmaranan.com"
"gsconnect@andyholmes.github.io" "gsconnect@andyholmes.github.io"
"blur-my-shell@aunetx" "blur-my-shell@aunetx"
"tailscale@joaophi.github.com" "tailscale@joaophi.github.com"
"easy_docker_containers@red.software.systems" "easy_docker_containers@red.software.systems"
"weatheroclock@CleoMenezesJr.github.io" "weatheroclock@CleoMenezesJr.github.io"
"space-bar@luchrioh" "space-bar@luchrioh"
"show-desktop-button@amivaleo"
"gtk4-ding@smedius.gitlab.com" "gtk4-ding@smedius.gitlab.com"
"logomenu@aryan_k" "logomenu@aryan_k"
"mediacontrols@cliffniff.github.com" "mediacontrols@cliffniff.github.com"
"burn-my-windows@schneegans.github.com" "burn-my-windows@schneegans.github.com"
"CoverflowAltTab@palatis.blogspot.com" "CoverflowAltTab@palatis.blogspot.com"
"dash-to-dock@micxgx.gmail.com" "dash-to-dock@micxgx.gmail.com"
"hidetopbar@mathieu.bidon.ca"
"gnome-shell-extension-appindicator" "gnome-shell-extension-appindicator"
"lilypad@shendrew.github.io"
"appindicatorsupport@rgcjonas.gmail.com" "appindicatorsupport@rgcjonas.gmail.com"
"user-theme@gnome-shell-extensions.gcampax.github.com"
"autohide-battery@sitnik.ru"
"just-perfection-desktop@just-perfection"
]; ];
}; };
# Perfection settings
"org/gnome/shell/extensions/just-perfection" = {
theme = false;
notification-banner-position = 2;
startup-status = 0;
};
# Autohide battery
"org/gnome/shell/extensions/autohide-battery" = {
hide-on = 95;
};
# Configure dash-to-dock # Configure dash-to-dock
"org/gnome/shell/extensions/dash-to-dock" = { "org/gnome/shell/extensions/dash-to-dock" = {
apply-custom-theme = false; apply-custom-theme = false;
@ -122,6 +133,68 @@
noise-amount = 0; noise-amount = 0;
}; };
# Configure tiling shell
"org/gnome/shell/extensions/tilingshell" = {
layouts-json = ''
[
{
"id": "Layout 1",
"tiles": [
{ "x": 0, "y": 0, "width": 0.22, "height": 0.5, "groups": [1, 2] },
{ "x": 0, "y": 0.5, "width": 0.22, "height": 0.5, "groups": [1, 2] },
{ "x": 0.22, "y": 0, "width": 0.56, "height": 1, "groups": [2, 3] },
{ "x": 0.78, "y": 0, "width": 0.22, "height": 0.5, "groups": [3, 4] },
{ "x": 0.78, "y": 0.5, "width": 0.22, "height": 0.5, "groups": [3, 4] }
]
},
{
"id": "Layout 2",
"tiles": [
{ "x": 0, "y": 0, "width": 0.22, "height": 1, "groups": [1] },
{ "x": 0.22, "y": 0, "width": 0.56, "height": 1, "groups": [1, 2] },
{ "x": 0.78, "y": 0, "width": 0.22, "height": 1, "groups": [2] }
]
},
{
"id": "Layout 3",
"tiles": [
{ "x": 0, "y": 0, "width": 0.33, "height": 1, "groups": [1] },
{ "x": 0.33, "y": 0, "width": 0.67, "height": 1, "groups": [1] }
]
},
{
"id": "Layout 4",
"tiles": [
{ "x": 0, "y": 0, "width": 0.67, "height": 1, "groups": [1] },
{ "x": 0.67, "y": 0, "width": 0.33, "height": 1, "groups": [1] }
]
},
{
"id": "Portrait Layout",
"tiles": [
{ "x": 0, "y": 0, "width": 1, "height": 0.25, "groups": [1] },
{ "x": 0, "y": 0.25, "width": 1, "height": 0.5, "groups": [1, 2] },
{
"x": 0,
"y": 0.75,
"width": 0.50,
"height": 0.25,
"groups": [2, 3]
},
{
"x": 0.50,
"y": 0.75,
"width": 0.50,
"height": 0.25,
"groups": [2, 3]
}
]
}
]
'';
overridden-settings = "{\"org.gnome.mutter.keybindings\":{\"toggle-tiled-right\":\"['<Super>Right']\",\"toggle-tiled-left\":\"['<Super>Left']\"},\"org.gnome.desktop.wm.keybindings\":{\"maximize\":\"['<Super>Up']\",\"unmaximize\":\"['<Super>Down', '<Alt>F5']\"},\"org.gnome.mutter\":{\"edge-tiling\":\"false\"}}";
};
# Configure forge # Configure forge
"org/gnome/shell/extensions/forge" = { "org/gnome/shell/extensions/forge" = {
move-pointer-focus-enabled = false; move-pointer-focus-enabled = false;
@ -171,6 +244,11 @@
window-toggle-float = [ "<Super>c" ]; window-toggle-float = [ "<Super>c" ];
workspace-active-tile-toggle = [ "<Shift><Super>w" ]; workspace-active-tile-toggle = [ "<Shift><Super>w" ];
}; };
# User theme
"org/gnome/shell/extensions/user-theme" = {
name = "Yaru-purple-dark";
};
}; };
}; };
} }

View File

@ -19,15 +19,6 @@
home.homeDirectory = "/home/menno"; home.homeDirectory = "/home/menno";
home.stateVersion = "24.05"; home.stateVersion = "24.05";
# GTK Theme
gtk = {
enable = true;
theme = {
name = "Adwaita-dark";
package = pkgs.gnome.gnome-themes-extra;
};
};
# Default applications # Default applications
xdg.mimeApps = { xdg.mimeApps = {
enable = true; enable = true;

View File

@ -94,6 +94,7 @@
pinta pinta
bottles bottles
trayscale trayscale
spacedrive
## Chat Apps ## Chat Apps
telegram-desktop telegram-desktop
@ -111,6 +112,19 @@
stellarium stellarium
## Games ## Games
### Open-source games
openra openra
xonotic
mindustry
wesnoth
shattered-pixel-dungeon
### Games launchers
lutris
heroic
### Game utilities
protonup-qt
protontricks
]; ];
} }

View File

@ -9,15 +9,15 @@
"markdown": true, "markdown": true,
"scminput": false "scminput": false
}, },
"git.autofetch": true,
"workbench.iconTheme": "vscode-icons", "workbench.iconTheme": "vscode-icons",
"[jsonc]": { "[jsonc]": {
"editor.defaultFormatter": "esbenp.prettier-vscode" "editor.defaultFormatter": "esbenp.prettier-vscode"
}, },
"[json]": { "[json]": {
"editor.defaultFormatter": "esbenp.prettier-vscode", "editor.defaultFormatter": "esbenp.prettier-vscode",
"editor.formatOnSave": true, "editor.formatOnSave": true
}, },
"git.autofetch": false,
"git.openRepositoryInParentFolders": "always", "git.openRepositoryInParentFolders": "always",
"makefile.configureOnOpen": false, "makefile.configureOnOpen": false,
"[dart]": { "[dart]": {