mirror of
https://github.com/alyraffauf/nixcfg.git
synced 2024-11-22 06:33:56 -05:00
home: code cleanup
This commit is contained in:
parent
8376b85ab4
commit
9398ad6f66
|
@ -26,6 +26,7 @@
|
|||
settings = {
|
||||
"org/gtk/gtk4/settings/file-chooser".sort-directories-first = true;
|
||||
"org/gtk/settings/file-chooser".sort-directories-first = true;
|
||||
|
||||
"org/virt-manager/virt-manager/connections" = {
|
||||
autoconnect = ["qemu:///system"];
|
||||
uris = ["qemu:///system"];
|
||||
|
|
|
@ -80,10 +80,8 @@
|
|||
(lib.getExe pkgs.mako)
|
||||
"${pkgs.mate.mate-polkit}/libexec/polkit-mate-authentication-agent-1"
|
||||
]
|
||||
++ lib.lists.optionals (config.ar.home.desktop.hyprland.redShift) [
|
||||
# "${pkgs.geoclue2}/libexec/geoclue-2.0/demos/agent"
|
||||
"${lib.getExe pkgs.gammastep} -l 33.74:-84.38"
|
||||
];
|
||||
++ lib.lists.optional (config.ar.home.desktop.hyprland.redShift)
|
||||
"${lib.getExe pkgs.gammastep} -l 33.74:-84.38";
|
||||
|
||||
screenshot = rec {
|
||||
bin = lib.getExe pkgs.hyprshot;
|
||||
|
@ -130,7 +128,7 @@
|
|||
fi
|
||||
elif [ "$1" == "off" ]; then
|
||||
${
|
||||
lib.strings.concatStringsSep "\n"
|
||||
lib.strings.concatLines
|
||||
(
|
||||
lib.attrsets.mapAttrsToList (name: monitor: ''${hyprctl} keyword monitor "${monitor}"'')
|
||||
laptopMonitors
|
||||
|
@ -192,7 +190,7 @@
|
|||
'';
|
||||
in ''
|
||||
${
|
||||
lib.strings.concatStringsSep "\n"
|
||||
lib.strings.concatLines
|
||||
(
|
||||
lib.attrsets.mapAttrsToList (name: value: "monitor = ${value}")
|
||||
(laptopMonitors // externalMonitors)
|
||||
|
@ -368,7 +366,7 @@
|
|||
# Move window with mainMod SHIFT + keys ++
|
||||
# Move workspace to another output with mainMod CONTROL SHIFT + keys.
|
||||
${
|
||||
lib.strings.concatStringsSep "\n"
|
||||
lib.strings.concatLines
|
||||
(
|
||||
lib.attrsets.mapAttrsToList (key: direction: ''
|
||||
bind = ${modifier}, ${key}, movefocus, ${direction}
|
||||
|
@ -450,7 +448,7 @@
|
|||
# Move window with keys ++
|
||||
# Move workspaces across monitors with CONTROL + keys.
|
||||
${
|
||||
lib.strings.concatStringsSep "\n"
|
||||
lib.strings.concatLines
|
||||
(
|
||||
lib.attrsets.mapAttrsToList (key: direction: ''
|
||||
bind = , ${key}, movewindow, ${direction}
|
||||
|
|
|
@ -16,9 +16,7 @@
|
|||
dconf = {
|
||||
enable = true;
|
||||
settings = {
|
||||
"org/gnome/desktop/wm/preferences" = {
|
||||
button-layout = "";
|
||||
};
|
||||
"org/gnome/desktop/wm/preferences" = {button-layout = "";};
|
||||
"org/gnome/nm-applet".disable-connected-notifications = true;
|
||||
};
|
||||
};
|
||||
|
@ -32,9 +30,9 @@
|
|||
xdg.portal = {
|
||||
enable = true;
|
||||
configPackages =
|
||||
lib.optionals (config.ar.home.desktop.hyprland.enable) [pkgs.xdg-desktop-portal-hyprland];
|
||||
lib.optional (config.ar.home.desktop.hyprland.enable) pkgs.xdg-desktop-portal-hyprland;
|
||||
extraPortals =
|
||||
lib.optionals (config.ar.home.desktop.hyprland.enable) [pkgs.xdg-desktop-portal-hyprland];
|
||||
lib.optional (config.ar.home.desktop.hyprland.enable) pkgs.xdg-desktop-portal-hyprland;
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
@ -67,8 +67,9 @@
|
|||
@define-color accent_color @accent_bg_color;
|
||||
|
||||
${
|
||||
if config.ar.home.theme.gtk.hideTitleBar
|
||||
then ''
|
||||
lib.strings.optionalString
|
||||
config.ar.home.theme.gtk.hideTitleBar
|
||||
''
|
||||
/* No (default) title bar on wayland */
|
||||
headerbar.default-decoration {
|
||||
/* You may need to tweak these values depending on your GTK theme */
|
||||
|
@ -89,7 +90,6 @@
|
|||
box-shadow: none;
|
||||
}
|
||||
''
|
||||
else "/* */"
|
||||
}
|
||||
'';
|
||||
|
||||
|
|
Loading…
Reference in a new issue