feat(hyprland): focus main monitor on start
This commit is contained in:
parent
01365efc0a
commit
903b1f5f53
1 changed files with 8 additions and 7 deletions
|
@ -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;
|
||||||
|
@ -64,7 +62,8 @@ 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)$"
|
||||||
|
|
Loading…
Reference in a new issue