More gnome settings

This commit is contained in:
2023-05-10 00:28:50 +09:00
parent 03b61d5e5b
commit 30dbf614df
8 changed files with 35 additions and 58 deletions

BIN
face.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1015 KiB

View File

@@ -6,34 +6,40 @@
}: let
wallpaper = pkgs.writeShellScriptBin "wallpaper" (builtins.readFile ./wallpaper.sh);
in {
dconf.settings = {
dconf.settings = with lib.hm.gvariant; {
"org/gnome/shell" = {
disable-user-extensions = false;
enabled-extensions = [
"forge@jmmaranan.com"
"blur-my-shell@aunetx"
# Waiting for https://github.com/aunetx/blur-my-shell/issues/388
# "blur-my-shell@aunetx"
"launch-new-instance@gnome-shell-extensions.gcampax.github.com"
# "just-perfection-desktop@just-perfection"
"rounded-window-corners@yilozt.shell-extension.zip"
# Disable while not configured
# "widgets@aylur"
# "just-perfection-desktop@just-perfection"
];
welcome-dialog-last-shown-version = 999999;
};
"org/gnome/desktop/wm/preferences" = {
auto-raise = true;
num-workspaces=9;
};
# "org/gnome/shell/extensions/just-perfection" = {
# activities-button = false;
# startup-status = 0;
# dash = false;
# };
"org/gnome/shell/world-clocks" = {
# locations = "[<(uint32 2, <('Nantes', 'LFRS', true, [(0.82321363634175626, -0.027925268031909273)], [(0.82408630096775348, -0.027052603405912107)])>)>]";
};
# "org/gnome/shell/world-clocks" = {
# locations = "[<(uint32 2, <('Nantes', 'LFRS', true, [(0.82321363634175626, -0.027925268031909273)], [(0.82408630096775348, -0.027052603405912107)])>)>]";
# };
# "org/gnome/Weather" = {
# locations = "[<(uint32 2, <('Tokyo', 'RJTI', true, [(0.62191898430954862, 2.4408429589140699)], [(0.62282074357417661, 2.4391218722853854)])>)>]";
# };
"org/gnome/shell/weather" = {
automatic-location = true;
# locations = "[<(uint32 2, <('Tokyo', 'RJTI', true, [(0.62191898430954862, 2.4408429589140699)], [(0.62282074357417661, 2.4391218722853854)])>)>]";
};
"org/gnome/desktop/peripherals/touchpad" = {
tap-to-click = true;
@@ -43,8 +49,8 @@ in {
};
"org/gnome/mutter" = {
experimental-features = ["scale-monitor-framebuffer"];
# It does not work but I don't really care.
overlay-key = "<Super> ";
overlay-key = "";
workspaces-only-on-primary=true;
};
"org/gnome/desktop/interface" = {
scaling-factor = 1.5;
@@ -52,8 +58,15 @@ in {
color-scheme = "prefer-dark";
enable-hot-corners = false;
clock-show-weekday = true;
show-battery-percentage = true;
};
# "org/gnome/desktop/background" = {
# picture-uri = "file:///home/zoriya/.cache/current-wallpaper";
# picture-uri-dark = "file:///home/zoriya/.cache/current-wallpaper";
# };
"org/gnome/desktop/input-sources" = {
mru-sources = [ (mkTuple [ "xkb" "us" ]) (mkTuple [ "ibus" "mozc-jp" ]) ];
sources = [ (mkTuple [ "xkb" "us" ]) (mkTuple [ "ibus" "mozc-jp" ]) ];
xkb-options = ["terminate:ctrl_alt_bksp" "caps:swapescape"];
};
@@ -86,12 +99,12 @@ in {
wallpaper
];
xdg.configFile."autostart/wallpaper.desktop".text = ''
[Desktop Entry]
Type=Application
Name=Wallpapers
Exec=wp
OnlyShowIn=GNOME;
'';
# 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;
}

View File

@@ -1,10 +1,6 @@
#!/usr/bin/env bash
WALLPAPERS=~/wallpapers/
export SWWW_TRANSITION_FPS=90
export SWWW_TRANSITION_STEP=90
export SWWW_TRANSITION_DURATION=2
export SWWW_TRANSITION=grow
WP=$(find $WALLPAPERS -type f | shuf -n 1)
ln -fs $WP ~/.cache/current-wallpaper

View File

@@ -190,6 +190,7 @@ in {
pictures = "${config.home.homeDirectory}/stuff";
publicShare = "${config.home.homeDirectory}/stuff";
};
home.file.".face".source = ../../../face.png;
xdg.configFile."nixpkgs/config.nix".text = ''
{ allowUnfree = true; }

View File

@@ -46,7 +46,6 @@ in {
"downloads"
"stuff"
"projects"
"wallpapers"
{ directory = ".gnupg"; mode = "0700"; }
{ directory = ".ssh"; mode = "0700"; }
".local/share/direnv"
@@ -67,5 +66,11 @@ in {
];
};
};
fileSystems."/home/zoriya/wallpapers" = {
device = "/home/zoriya/projects/flake/wallpapers/";
fsType = "none";
options = [ "bind" ];
};
};
}

View File

@@ -31,16 +31,5 @@ in {
security.sudo.extraConfig = ''
Defaults lecture="never"
'';
boot = {
kernelParams = ["quiet" "splash"];
consoleLogLevel = 0;
initrd.verbose = false;
plymouth = {
enable = true;
themePackages = [pkgs.adi1090x-plymouth];
theme = "colorful_loop";
};
};
};
}

View File

@@ -1,26 +0,0 @@
{ pkgs ? import <nixpkgs> {} }:
pkgs.stdenv.mkDerivation {
pname = "adi1090x-plymouth";
version = "0.0.1";
src = builtins.fetchGit {
url = "https://github.com/adi1090x/plymouth-themes";
rev = "bf2f570bee8e84c5c20caac353cbe1d811a4745f";
};
buildInputs = [
pkgs.git
];
configurePhase = ''
mkdir -p $out/share/plymouth/themes/
'';
buildPhase = ''
'';
installPhase = ''
cp -r pack_1/colorful_loop $out/share/plymouth/themes
cat pack_1/colorful_loop/colorful_loop.plymouth | sed "s@\/usr\/@$out\/@" > $out/share/plymouth/themes/colorful_loop/colorful_loop.plymouth
'';
}

View File

@@ -1,4 +1,3 @@
self: super: {
adi1090x-plymouth = super.callPackage ./adi1090x-plymouth.nix {};
tuxedo-keyboard = super.callPackage ./tuxedo-keyboard {};
}