desktop: some sway/waybar/kanshi output/autostart work

This commit is contained in:
2023-01-22 15:38:44 +01:00
parent 098c9f44cc
commit b8afc40769
3 changed files with 35 additions and 21 deletions

View File

@@ -26,6 +26,7 @@
right = "i";
modifier = "Mod4";
floating.modifier = "Mod4";
floating.titlebar = true;
input = {
"type:keyboard" = {
@@ -63,7 +64,7 @@
# scale = "1.3";
#};
};
terminal = "${pkgs.alacritty}/bin/alacritty";
fonts = {
@@ -86,28 +87,33 @@
{ command = "gsettings set org.gnome.desktop.interface icon-theme ePapirus"; }
{ command = "gsettings set org.gnome.desktop.interface cursor-theme Adwaita"; }
#{ command = "exec ${pkgs.networkmanagerapplet}/bin/nm-applet --indicator"; }
#{ command = "${pkgs.thunderbird}/bin/thunderbird"; }
#{ command = "${pkgs.firefox}/bin/firefox"; }
#{ command = "${pkgs.element}/bin/element-desktop"; }
{ command = "${pkgs.thunderbird}/bin/thunderbird"; }
{ command = "${pkgs.firefox}/bin/firefox"; }
{ command = "${pkgs.element}/bin/element-desktop"; }
];
workspaceAutoBackAndForth = true;
gaps.inner = 8;
gaps.outer = 4;
gaps.smartGaps = true;
gaps.smartBorders = "on";
#assigns = {
# "3: web" = [{ class = "$Firefox$"; }];
# "2: mail" = [{ class = "$Thunderbird$"; }];
# "4: im" = [{ class = "^Element$"; }];
#};
assigns = {
"workspace number 1" = [{ app_id = "thunderbird"; }];
"workspace number 2" = [{ app_id = "firefox"; }];
"workspace number 3" = [{ class = "Element"; }];
};
window.commands = [
{ command = "floating enable"; criteria = { class = "Pavucontrol"; }; }
{ command = "floating enable"; criteria = { class = "Galculator"; }; }
{ command = "floating enable"; criteria = { class = "Nitrokey App"; }; }
{ command = "floating enable"; criteria = { class = "Yubico Authenticator"; }; }
{ command = "floating enable"; criteria = { window_role = "pop-up"; }; }
{ command = "floating enable"; criteria = { app_id = ".yubioath-flutter-wrapped"; }; }
{ command = "floating enable"; criteria = { app_id = "pavucontrol"; }; }
{ command = "floating enable"; criteria = { app_id = "galculator"; }; }
{ command = "floating enable"; criteria = { app_id = "com.nitrokey."; }; }
{ command = "floating enable"; criteria = { app_id = "org.keepassxc.KeePassXC."; }; }
{ command = "floating enable"; criteria = { app_id = "virt-manager"; }; }
{ command = "floating enable"; criteria = { class = "lxqt-openssh-askpass"; }; }
{ command = "floating enable"; criteria = { class = "pop-up"; }; }
];
bars = [
@@ -237,6 +243,14 @@
#export WLR_NO_HARDWARE_CURSORS="1"; # For cursor in VM
'';
extraConfig = ''
set $output-primary HDMI-A-1
set $output-secondary DP-1
workspace 1 output $output-secondary
workspace 2 output $output-primary
workspace 3 output $output-secondary
'';
};
programs.swaylock.settings = {