mirror of
https://github.com/deltathetawastaken/dotfiles.git
synced 2025-12-06 07:16:37 +03:00
add gnome.nix
This commit is contained in:
parent
c1f5f856ce
commit
9a4d92b23f
40
home/gnome.nix
Normal file
40
home/gnome.nix
Normal file
|
|
@ -0,0 +1,40 @@
|
||||||
|
{ inputs, home, config, lib, ... }:
|
||||||
|
|
||||||
|
{
|
||||||
|
|
||||||
|
dconf = {
|
||||||
|
enable = true;
|
||||||
|
settings = {
|
||||||
|
"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/shell/keybindings" = {
|
||||||
|
show-screenshot-ui = [ "<Shift><Super>s" ];
|
||||||
|
};
|
||||||
|
"org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/custom0" = {
|
||||||
|
binding = "<Alt>Return";
|
||||||
|
command = "/etc/profiles/per-user/delta/bin/kitty_wrapped";
|
||||||
|
name = "kitty";
|
||||||
|
};
|
||||||
|
"org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/custom1" = {
|
||||||
|
binding = "<Control><Alt>x";
|
||||||
|
command = "/etc/profiles/per-user/delta/bin/keepassxc";
|
||||||
|
name = "keepassxc";
|
||||||
|
};
|
||||||
|
"org/gnome/desktop/sound" = {
|
||||||
|
allow-volume-above-100-percent = true;
|
||||||
|
};
|
||||||
|
"org/gnome/mutter" = {
|
||||||
|
experimental-features = [ "scale-monitor-framebuffer" ];
|
||||||
|
};
|
||||||
|
#"org/gnome/mutter" = {
|
||||||
|
# experimental-features = lib.mkForce [ ];
|
||||||
|
#};
|
||||||
|
"org/gnome/settings-daemon/plugins/power".sleep-inactive-battery-timeout =
|
||||||
|
300;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
@ -16,6 +16,7 @@
|
||||||
./programs
|
./programs
|
||||||
./theme.nix
|
./theme.nix
|
||||||
./scripts.nix
|
./scripts.nix
|
||||||
|
./gnome.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
services.blueman-applet.enable = true;
|
services.blueman-applet.enable = true;
|
||||||
|
|
@ -49,6 +50,7 @@
|
||||||
(callPackage ../derivations/audiorelay.nix { })
|
(callPackage ../derivations/audiorelay.nix { })
|
||||||
(callPackage ../derivations/spotify.nix { })
|
(callPackage ../derivations/spotify.nix { })
|
||||||
xorg.xwininfo
|
xorg.xwininfo
|
||||||
|
jq
|
||||||
]) ++ (with unstable; [
|
]) ++ (with unstable; [
|
||||||
xfce.thunar
|
xfce.thunar
|
||||||
rustdesk-flutter
|
rustdesk-flutter
|
||||||
|
|
@ -56,7 +58,6 @@
|
||||||
btop
|
btop
|
||||||
htop
|
htop
|
||||||
foot
|
foot
|
||||||
kitty
|
|
||||||
alacritty
|
alacritty
|
||||||
dig
|
dig
|
||||||
nwg-displays
|
nwg-displays
|
||||||
|
|
@ -77,19 +78,6 @@
|
||||||
# inputs.firefox.packages.${pkgs.system}.firefox-bin
|
# inputs.firefox.packages.${pkgs.system}.firefox-bin
|
||||||
]);
|
]);
|
||||||
|
|
||||||
dconf = {
|
|
||||||
enable = true;
|
|
||||||
settings = {
|
|
||||||
# "org/gnome/mutter" = {
|
|
||||||
# experimental-features = [ "scale-monitor-framebuffer" ];
|
|
||||||
# };
|
|
||||||
"org/gnome/mutter" = {
|
|
||||||
experimental-features = lib.mkForce [ ];
|
|
||||||
};
|
|
||||||
"org/gnome/settings-daemon/plugins/power".sleep-inactive-battery-timeout =
|
|
||||||
300;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
programs.obs-studio = {
|
programs.obs-studio = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|
@ -121,12 +109,35 @@
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
gtk = {
|
programs.kitty = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
shellIntegration.enableFishIntegration = false;
|
||||||
|
settings = {
|
||||||
|
background = "#171717";
|
||||||
|
foreground = "#DCDCCC";
|
||||||
|
background_opacity = "0.8";
|
||||||
|
remember_window_size = "yes";
|
||||||
|
hide_window_decorations = "yes";
|
||||||
|
remote_control_password = "kitty-notification-password-fish ls";
|
||||||
|
allow_remote_control = "password";
|
||||||
|
|
||||||
iconTheme = {
|
color0 = "#3F3F3F";
|
||||||
name = "Papirus-Dark";
|
color1 = "#705050";
|
||||||
package = pkgs.papirus-icon-theme;
|
color2 = "#60B48A";
|
||||||
|
color3 = "#DFAF8F";
|
||||||
|
color4 = "#9AB8D7";
|
||||||
|
color5 = "#DC8CC3";
|
||||||
|
color6 = "#8CD0D3";
|
||||||
|
color7 = "#DCDCCC";
|
||||||
|
|
||||||
|
color8 = "#709080";
|
||||||
|
color9 = "#DCA3A3";
|
||||||
|
color10 = "#72D5A3";
|
||||||
|
color11 = "#F0DFAF";
|
||||||
|
color12 = "#94BFF3";
|
||||||
|
color13 = "#EC93D3";
|
||||||
|
color14 = "#93E0E3";
|
||||||
|
color15 = "#FFFFFF";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
{ config, lib, pkgs, ... }:
|
{ config, lib, pkgs, ... }:
|
||||||
|
|
||||||
{
|
{
|
||||||
home.packages = with pkgs; [ waybar swww swaynotificationcenter cliphist fzf hyprshot slurp grim swaylock hyprlock hypridle];
|
home.packages = with pkgs; [ waybar swww swaynotificationcenter cliphist fzf hyprshot slurp grim swaylock hyprlock hypridle libnotify brightnessctl];
|
||||||
|
|
||||||
#test later systemd.user.targets.hyprland-session.Unit.Wants = [ "xdg-desktop-autostart.target" ];
|
#test later systemd.user.targets.hyprland-session.Unit.Wants = [ "xdg-desktop-autostart.target" ];
|
||||||
wayland.windowManager.hyprland = {
|
wayland.windowManager.hyprland = {
|
||||||
|
|
@ -53,7 +53,7 @@
|
||||||
|
|
||||||
exec-once = foot -s
|
exec-once = foot -s
|
||||||
exec-once = thunar --daemon
|
exec-once = thunar --daemon
|
||||||
#exec-once = swayidle -d
|
exec-once = hypridle
|
||||||
exec-once = hyprctl setcursor Bibata-Modern-Classic 16
|
exec-once = hyprctl setcursor Bibata-Modern-Classic 16
|
||||||
|
|
||||||
exec-once=dbus-update-activation-environment --systemd WAYLAND_DISPLAY XDG_CURRENT_DESKTOP
|
exec-once=dbus-update-activation-environment --systemd WAYLAND_DISPLAY XDG_CURRENT_DESKTOP
|
||||||
|
|
|
||||||
|
|
@ -55,7 +55,18 @@ let
|
||||||
|
|
||||||
keepassxc = pkgs.writeScriptBin "keepassxc" ''
|
keepassxc = pkgs.writeScriptBin "keepassxc" ''
|
||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
${pkgs.coreutils}/bin/cat /run/agenix/precise | ${pkgs.keepassxc}/bin/keepassxc --pw-stdin ~/Dropbox/pswd.kdbx
|
${pkgs.coreutils}/bin/cat /run/agenix/qqq | ${pkgs.keepassxc}/bin/keepassxc --pw-stdin ~/Dropbox/pswd.kdbx
|
||||||
|
'';
|
||||||
|
|
||||||
|
kitty_wrapped = pkgs.writeScriptBin "kitty_wrapped" ''
|
||||||
|
#!/usr/bin/env bash
|
||||||
|
pid=$(${pkgs.procps}/bin/pgrep "kitty")
|
||||||
|
|
||||||
|
if [[ -z $pid ]]; then
|
||||||
|
kitty --start-as maximized &
|
||||||
|
else
|
||||||
|
${pkgs.glib}/bin/gdbus call --session --dest org.gnome.Shell --object-path /de/lucaswerkmeister/ActivateWindowByTitle --method de.lucaswerkmeister.ActivateWindowByTitle.activateByWmClass 'kitty'
|
||||||
|
fi
|
||||||
'';
|
'';
|
||||||
in {
|
in {
|
||||||
home.packages = with pkgs; [
|
home.packages = with pkgs; [
|
||||||
|
|
@ -67,19 +78,19 @@ in {
|
||||||
keepassxc = {
|
keepassxc = {
|
||||||
name = "KeePassXC";
|
name = "KeePassXC";
|
||||||
icon = "keepassxc";
|
icon = "keepassxc";
|
||||||
exec = "/etc/profiles/per-user/cute/bin/keepassxc";
|
exec = "/etc/profiles/per-user/delta/bin/keepassxc";
|
||||||
type = "Application";
|
type = "Application";
|
||||||
};
|
};
|
||||||
ephemeralbrowser = {
|
ephemeralbrowser = {
|
||||||
name = "Ephemeral Browser";
|
name = "Ephemeral Browser";
|
||||||
icon = "google-chrome-unstable";
|
icon = "google-chrome-unstable";
|
||||||
exec = "/etc/profiles/per-user/cute/bin/ephemeralbrowser";
|
exec = "/etc/profiles/per-user/delta/bin/ephemeralbrowser";
|
||||||
type = "Application";
|
type = "Application";
|
||||||
};
|
};
|
||||||
autostart = {
|
autostart = {
|
||||||
name = "Autostart";
|
name = "Autostart";
|
||||||
icon = "app-launcher";
|
icon = "app-launcher";
|
||||||
exec = "/etc/profiles/per-user/cute/bin/autostart"; # this is needed due to nix stuff, the path is going to be changed every time i update autostart script
|
exec = "/etc/profiles/per-user/delta/bin/autostart"; # this is needed due to nix stuff, the path is going to be changed every time i update autostart script
|
||||||
type = "Application";
|
type = "Application";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue