mirror of
https://github.com/zoriya/flake.git
synced 2025-12-05 22:26:21 +00:00
wip: Configure some gnome stuff
This commit is contained in:
@@ -3,7 +3,9 @@
|
||||
lib,
|
||||
pkgs,
|
||||
...
|
||||
}: {
|
||||
}: let
|
||||
wallpaper = pkgs.writeShellScriptBin "wallpaper" (builtins.readFile ./wallpaper.sh);
|
||||
in {
|
||||
dconf.settings = {
|
||||
"org/gnome/shell" = {
|
||||
disable-user-extensions = false;
|
||||
@@ -18,6 +20,10 @@
|
||||
];
|
||||
welcome-dialog-last-shown-version = 999999;
|
||||
};
|
||||
|
||||
"org/gnome/desktop/wm/preferences" = {
|
||||
auto-raise = true;
|
||||
};
|
||||
# "org/gnome/shell/extensions/just-perfection" = {
|
||||
# activities-button = false;
|
||||
# startup-status = 0;
|
||||
@@ -37,6 +43,8 @@
|
||||
};
|
||||
"org/gnome/mutter" = {
|
||||
experimental-features = ["scale-monitor-framebuffer"];
|
||||
# It does not work but I don't really care.
|
||||
overlay-key = "<Super> ";
|
||||
};
|
||||
"org/gnome/desktop/interface" = {
|
||||
scaling-factor = 1.5;
|
||||
@@ -48,6 +56,25 @@
|
||||
"org/gnome/desktop/input-sources" = {
|
||||
xkb-options = ["terminate:ctrl_alt_bksp" "caps:swapescape"];
|
||||
};
|
||||
|
||||
"org/gnome/settings-daemon/plugins/media-keys" = {
|
||||
custom-keybindings = [
|
||||
"/org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/custom0/"
|
||||
"/org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/custom1/"
|
||||
];
|
||||
};
|
||||
|
||||
"org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/custom0" = {
|
||||
binding = "<Super>e";
|
||||
command = "kitty";
|
||||
name = "Open Terminal";
|
||||
};
|
||||
|
||||
"org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/custom1" = {
|
||||
binding = "<Super>r";
|
||||
command = "firefox";
|
||||
name = "Firefox";
|
||||
};
|
||||
};
|
||||
|
||||
home.packages = with pkgs.gnomeExtensions; [
|
||||
@@ -56,5 +83,15 @@
|
||||
# just-perfection
|
||||
rounded-window-corners
|
||||
aylurs-widgets
|
||||
wallpaper
|
||||
];
|
||||
|
||||
xdg.configFile."autostart/wallpaper.desktop".text = ''
|
||||
[Desktop Entry]
|
||||
Type=Application
|
||||
Name=Wallpapers
|
||||
Exec=wp
|
||||
OnlyShowIn=GNOME;
|
||||
'';
|
||||
xdg.configFile."autostart/discord.desktop".text = pkgs.discord.desktopItem.text;
|
||||
}
|
||||
|
||||
@@ -9,5 +9,5 @@ export SWWW_TRANSITION=grow
|
||||
WP=$(find $WALLPAPERS -type f | shuf -n 1)
|
||||
ln -fs $WP ~/.cache/current-wallpaper
|
||||
|
||||
[[ "$1" = "init" ]] && swww init && sleep 1
|
||||
swww img "$WP"
|
||||
gsettings set org.gnome.desktop.background picture-uri "$WP"
|
||||
gsettings set org.gnome.desktop.background picture-uri-dark "$WP"
|
||||
Reference in New Issue
Block a user