sway: extract assigns
This commit is contained in:
parent
8b3cdd756d
commit
6c56795c33
2 changed files with 122 additions and 104 deletions
58
user/sway/sway-assigns.nix
Normal file
58
user/sway/sway-assigns.nix
Normal file
|
@ -0,0 +1,58 @@
|
|||
{ config, pkgs, ... }:
|
||||
let
|
||||
# inherit (pkgs.uservars) key accent font theme;
|
||||
# inherit (theme) color;
|
||||
# inherit (pkgs) lib;
|
||||
|
||||
# mod = "Mod4";
|
||||
# menu = "wlauncher";
|
||||
# terminal = "alacritty";
|
||||
|
||||
# locked_binds =
|
||||
# lib.mapAttrs' (k: v: lib.nameValuePair "--locked ${k}" v);
|
||||
# code_binds =
|
||||
# lib.mapAttrs' (k: v: lib.nameValuePair "--to-code ${k}" v);
|
||||
# return_mode = lib.mapAttrs (k: v: "${v}; mode default");
|
||||
# playerctl = "exec ${pkgs.playerctl}/bin/playerctl";
|
||||
in
|
||||
{
|
||||
wayland.windowManager.sway.config = {
|
||||
assigns = {
|
||||
"2" = [
|
||||
{ class = "qutebrowser"; }
|
||||
{ app_id = "qutebrowser"; }
|
||||
{ class = "firefox"; }
|
||||
{ app_id = "firefox"; }
|
||||
{ class = "Chromium"; }
|
||||
{ app_id = "chromium"; }
|
||||
];
|
||||
"7" = [
|
||||
{ app_id = "thunderbird"; }
|
||||
{ app_id = "astroid"; }
|
||||
];
|
||||
"9" = [
|
||||
{ class = ".*[Ss]team.*"; }
|
||||
{ app_id = ".*[Ss]team.*"; }
|
||||
{ app_id = "[Ll]utris"; }
|
||||
];
|
||||
"10" = [
|
||||
{ app_id = ".*[Tt]elegram.*"; }
|
||||
{ class = ".*[Tt]elegram.*"; }
|
||||
{ class = "Jitsi Meet"; }
|
||||
{ class = "discord"; }
|
||||
{ title = "Discord"; }
|
||||
{ class = "WebCord"; }
|
||||
{ app_id = "WebCord"; }
|
||||
];
|
||||
};
|
||||
floating = {
|
||||
criteria = [
|
||||
{ class = "file_picker"; }
|
||||
{ app_id = "file_picker"; }
|
||||
{ app_id = "wdisplays"; }
|
||||
{ app_id = "pavucontrol"; }
|
||||
{ app_id = ".*[Hh]elvum.*"; }
|
||||
];
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue