feat(hyprland): focus main monitor on start

This commit is contained in:
matt1432 2023-12-09 17:14:12 -05:00
parent 01365efc0a
commit 903b1f5f53

View file

@ -5,10 +5,8 @@
pkgs, pkgs,
lib, lib,
... ...
}: let }:
# Nix utils with lib; let
optionals = lib.lists.optionals;
# Config stuff # Config stuff
isNvidia = config.hardware.nvidia.modesetting.enable; isNvidia = config.hardware.nvidia.modesetting.enable;
isTouchscreen = config.hardware.sensor.iio.enable; isTouchscreen = config.hardware.sensor.iio.enable;
@ -63,8 +61,9 @@ in {
settings = { settings = {
env = let env = let
gset = pkgs.gsettings-desktop-schemas; gset = pkgs.gsettings-desktop-schemas;
in [ in
[
"XCURSOR_SIZE, 24" "XCURSOR_SIZE, 24"
"XDG_DATA_DIRS, ${builtins.concatStringsSep ":" [ "XDG_DATA_DIRS, ${builtins.concatStringsSep ":" [
"${gset}/share/gsettings-schemas/${gset.name}" "${gset}/share/gsettings-schemas/${gset.name}"
@ -123,7 +122,9 @@ in {
"${config.programs.kdeconnect.package}/libexec/kdeconnectd" "${config.programs.kdeconnect.package}/libexec/kdeconnectd"
"kdeconnect-indicator" "kdeconnect-indicator"
"gnome-keyring-daemon --start --components=secrets" "gnome-keyring-daemon --start --components=secrets"
]; ]
++ optionals (! isNull config.vars.mainMonitor)
["hyprctl dispatch focusmonitor ${config.vars.mainMonitor}"];
windowrule = [ windowrule = [
"noborder,^(wofi)$" "noborder,^(wofi)$"