feat: sway usable
This commit is contained in:
parent
99f2b86c5c
commit
66fa39a4c1
|
@ -28,15 +28,15 @@ in
|
||||||
window.titlebar = false;
|
window.titlebar = false;
|
||||||
floating.titlebar = false;
|
floating.titlebar = false;
|
||||||
workspaceLayout = "stacking";
|
workspaceLayout = "stacking";
|
||||||
bars = map (x: x // config.lib.stylix.i3.bar) [
|
# bars = map (x: x // config.lib.stylix.i3.bar) [
|
||||||
{
|
# {
|
||||||
mode = "dock";
|
# mode = "dock";
|
||||||
workspaceButtons = true;
|
# workspaceButtons = true;
|
||||||
workspaceNumbers = false;
|
# workspaceNumbers = false;
|
||||||
statusCommand = "${config.programs.i3status-rust.package}/bin/i3status-rs config-main.toml";
|
# statusCommand = "${config.programs.i3status-rust.package}/bin/i3status-rs config-main.toml";
|
||||||
trayOutput = "primary";
|
# trayOutput = "primary";
|
||||||
}
|
# }
|
||||||
];
|
# ];
|
||||||
floating.criteria = [ { class = "Pavucontrol"; } ];
|
floating.criteria = [ { class = "Pavucontrol"; } ];
|
||||||
|
|
||||||
assigns = {
|
assigns = {
|
||||||
|
@ -69,15 +69,8 @@ in
|
||||||
{
|
{
|
||||||
"desktopnix" =
|
"desktopnix" =
|
||||||
output "HDMI-0" [
|
output "HDMI-0" [
|
||||||
"1"
|
"F1"
|
||||||
"2"
|
"F2"
|
||||||
"3"
|
|
||||||
"4"
|
|
||||||
"5"
|
|
||||||
"6"
|
|
||||||
"7"
|
|
||||||
"8"
|
|
||||||
"9"
|
|
||||||
]
|
]
|
||||||
++ output "DP-4" [
|
++ output "DP-4" [
|
||||||
"j"
|
"j"
|
||||||
|
@ -88,8 +81,6 @@ in
|
||||||
"p"
|
"p"
|
||||||
]
|
]
|
||||||
++ output "DVI-D-0" [
|
++ output "DVI-D-0" [
|
||||||
"F1"
|
|
||||||
"F2"
|
|
||||||
"F3"
|
"F3"
|
||||||
"F4"
|
"F4"
|
||||||
];
|
];
|
||||||
|
|
|
@ -49,10 +49,10 @@
|
||||||
wl-clipboard
|
wl-clipboard
|
||||||
wev
|
wev
|
||||||
];
|
];
|
||||||
# Autostart hyprland if on tty1 (once, don't restart after logout)
|
# Autostart compositor if on tty1 (once, don't restart after logout)
|
||||||
hm.programs.zsh.initExtra = lib.mkOrder 9999 ''
|
hm.programs.zsh.initExtra = lib.mkOrder 9999 ''
|
||||||
if uwsm check may-start ; then
|
if uwsm check may-start ; then
|
||||||
exec systemd-cat -t uwsm_start uwsm start -S -F Hyprland
|
exec systemd-cat -t uwsm_start uwsm start -S -F Hyperland
|
||||||
fi
|
fi
|
||||||
'';
|
'';
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
{ config, ... }:
|
{ config, lib, ... }:
|
||||||
let
|
let
|
||||||
nixConfig = config;
|
nixConfig = config;
|
||||||
in
|
in
|
||||||
|
@ -41,9 +41,12 @@ in
|
||||||
keybindings =
|
keybindings =
|
||||||
let
|
let
|
||||||
cfg = config.wayland.windowManager.sway.config;
|
cfg = config.wayland.windowManager.sway.config;
|
||||||
|
modifier = "Mod4";
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
"Menu" = "exec ${cfg.menu}";
|
"Menu" = "exec ${cfg.menu}";
|
||||||
|
"${modifier}+b" = lib.mkForce "exec uwsm start firefox";
|
||||||
|
"${modifier}+m" = lib.mkForce "exec uwsm start thunderbird";
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
// {
|
// {
|
||||||
|
@ -61,6 +64,8 @@ in
|
||||||
mode = "2560x1440@143.998Hz";
|
mode = "2560x1440@143.998Hz";
|
||||||
pos = "1920,720";
|
pos = "1920,720";
|
||||||
adaptive_sync = "on";
|
adaptive_sync = "on";
|
||||||
|
allow_tearing = "yes";
|
||||||
|
max_render_time = "off";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue