2023-07-03 14:26:14 +01:00
|
|
|
{...}: {
|
2023-07-02 16:50:25 +01:00
|
|
|
imports = [
|
|
|
|
./xfce.nix
|
|
|
|
./sxhkd.nix
|
|
|
|
];
|
2023-04-04 14:20:49 +01:00
|
|
|
xsession.windowManager.bspwm = {
|
|
|
|
enable = true;
|
|
|
|
settings = {
|
|
|
|
window_gap = 12;
|
|
|
|
border_width = 2;
|
|
|
|
split_ratio = 0.5;
|
2023-07-03 14:26:14 +01:00
|
|
|
borderless_monocle = false;
|
|
|
|
gapless_monocle = false;
|
|
|
|
pointer_modifier = "mod4";
|
2023-04-04 14:20:49 +01:00
|
|
|
pointer_action1 = "move";
|
|
|
|
pointer_action2 = "resize_side";
|
|
|
|
pointer_action3 = "resize_corner";
|
2023-07-03 15:10:32 +01:00
|
|
|
focus_follows_pointer = true;
|
2023-04-04 14:20:49 +01:00
|
|
|
};
|
2023-07-03 14:26:14 +01:00
|
|
|
monitors."primary" = ["dev" "browser" "files" "chat" "remote"];
|
2023-04-05 09:56:18 +01:00
|
|
|
rules = {
|
|
|
|
"Xfce4-terminal".state = "floating";
|
2023-04-08 10:32:55 +01:00
|
|
|
"Nm-connection-editor".state = "floating";
|
2023-04-11 11:03:01 +01:00
|
|
|
"Qemu-system-x86_64".state = "floating";
|
2023-04-08 10:32:55 +01:00
|
|
|
"Pavucontrol".state = "floating";
|
2023-07-03 14:26:14 +01:00
|
|
|
"Otpclient".state = "floating";
|
|
|
|
".blueman-manager-wrapped".state = "floating";
|
2023-07-03 16:51:38 +01:00
|
|
|
"Alacritty".desktop = "dev";
|
2023-07-03 14:26:14 +01:00
|
|
|
"firefox".desktop = "browser";
|
|
|
|
"Thunar".desktop = "files";
|
|
|
|
"Element".desktop = "chat";
|
|
|
|
"Signal".desktop = "chat";
|
|
|
|
"teams-for-linux".desktop = "chat";
|
|
|
|
"Nxplayer.bin" = {
|
|
|
|
desktop = "remote";
|
|
|
|
state = "floating";
|
|
|
|
};
|
2023-04-05 09:56:18 +01:00
|
|
|
};
|
2023-07-02 16:50:25 +01:00
|
|
|
extraConfig = ''
|
2023-07-02 17:05:11 +01:00
|
|
|
xsetroot -cursor_name left_ptr
|
2023-07-02 16:50:25 +01:00
|
|
|
polybar-msg cmd quit
|
|
|
|
echo "---" | tee -a /tmp/polybar.log
|
|
|
|
polybar 2>&1 | tee -a /tmp/polybar.log & disown
|
|
|
|
echo "Bars launched..."
|
|
|
|
'';
|
2023-04-04 14:20:49 +01:00
|
|
|
};
|
|
|
|
}
|