mirror of
https://gitlab.com/upRootNutrition/dotfiles.git
synced 2025-06-16 01:55:13 -05:00
feat: updated niri
This commit is contained in:
parent
2b91a4d407
commit
ee42e007a7
13 changed files with 562 additions and 488 deletions
126
modules/home/gui/desktop/niri/config/windowrules.nix
Executable file
126
modules/home/gui/desktop/niri/config/windowrules.nix
Executable file
|
@ -0,0 +1,126 @@
|
|||
{ workspaceStrings, ... }:
|
||||
{
|
||||
window-rules = [
|
||||
{
|
||||
open-focused = true;
|
||||
}
|
||||
{
|
||||
matches =
|
||||
let
|
||||
windowMatch = c: {
|
||||
app-id = c;
|
||||
is-floating = true;
|
||||
is-focused = true;
|
||||
};
|
||||
appIDs = [
|
||||
".blueman-manager-wrapped"
|
||||
"org.gnome.Calculator"
|
||||
"com.github.wwmm.easyeffects"
|
||||
"emote"
|
||||
"mpv"
|
||||
"vlc"
|
||||
"org.nomacs.ImageLounge"
|
||||
"flameshot"
|
||||
"^.protonvpn-app-wrapped$"
|
||||
"^Picture-in-Picture$"
|
||||
"^Discord Popout$"
|
||||
"^Enter name of file to save to…$"
|
||||
"^File Upload$"
|
||||
".scrcpy-wrapped"
|
||||
"^Battle.net$"
|
||||
];
|
||||
in
|
||||
builtins.map windowMatch appIDs;
|
||||
}
|
||||
{
|
||||
matches =
|
||||
let
|
||||
windowMatch = c: {
|
||||
app-id = c;
|
||||
};
|
||||
appIDs = [
|
||||
"floop"
|
||||
"org.kde.kdenlive"
|
||||
"krita"
|
||||
"mpv"
|
||||
"vlc"
|
||||
"Brave-browser"
|
||||
"org.kde.okular"
|
||||
];
|
||||
in
|
||||
builtins.map windowMatch appIDs;
|
||||
opacity = 1.0;
|
||||
}
|
||||
{
|
||||
matches =
|
||||
let
|
||||
windowMatch = c: {
|
||||
app-id = c;
|
||||
};
|
||||
appIDs = [
|
||||
"signal"
|
||||
"vesktop"
|
||||
];
|
||||
in
|
||||
builtins.map windowMatch appIDs;
|
||||
open-on-workspace = workspaceStrings.workspace0;
|
||||
}
|
||||
{
|
||||
matches =
|
||||
let
|
||||
windowMatch = c: {
|
||||
app-id = c;
|
||||
};
|
||||
appIDs = [
|
||||
"code"
|
||||
"zeditor"
|
||||
];
|
||||
in
|
||||
builtins.map windowMatch appIDs;
|
||||
open-on-workspace = workspaceStrings.workspace1;
|
||||
}
|
||||
{
|
||||
matches =
|
||||
let
|
||||
windowMatch = c: {
|
||||
app-id = c;
|
||||
};
|
||||
appIDs = [
|
||||
"steam"
|
||||
"org.kde.kdenlive"
|
||||
];
|
||||
in
|
||||
builtins.map windowMatch appIDs;
|
||||
open-on-workspace = workspaceStrings.workspace2;
|
||||
}
|
||||
{
|
||||
matches =
|
||||
let
|
||||
windowMatch = c: {
|
||||
app-id = c;
|
||||
};
|
||||
appIDs = [
|
||||
"feishin"
|
||||
".scrcpy-wrapped"
|
||||
];
|
||||
in
|
||||
builtins.map windowMatch appIDs;
|
||||
open-on-workspace = workspaceStrings.workspace3;
|
||||
}
|
||||
{
|
||||
# opacity = 0.90;
|
||||
clip-to-geometry = true;
|
||||
focus-ring.enable = false;
|
||||
geometry-corner-radius =
|
||||
let
|
||||
radius = 10.0;
|
||||
in
|
||||
{
|
||||
top-left = radius;
|
||||
top-right = radius;
|
||||
bottom-left = radius;
|
||||
bottom-right = radius;
|
||||
};
|
||||
}
|
||||
];
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue