Add more sway config, move waybar config for sway to main waybar config
This commit is contained in:
parent
6d10e51a45
commit
2f188f625a
1
Makefile
1
Makefile
|
@ -32,6 +32,7 @@ $(HOMEMANAGER_CONFIG_DIR)/home.nix: $(HOMEMANAGER_CONFIG) $(HOMEMANAGER_CONFIG_D
|
||||||
|
|
||||||
$(CONFIG_DIR)/nvim: $(CONFIG_DIR)
|
$(CONFIG_DIR)/nvim: $(CONFIG_DIR)
|
||||||
-nix-shell -p git --run "git clone https://git.xenia.me.uk/xenia/nvim.git $@"
|
-nix-shell -p git --run "git clone https://git.xenia.me.uk/xenia/nvim.git $@"
|
||||||
|
-nix-shell -p git --run "git -C $@ pull --ff-only"
|
||||||
|
|
||||||
$(CONFIG_DIR) $(HOMEMANAGER_CONFIG_DIR):
|
$(CONFIG_DIR) $(HOMEMANAGER_CONFIG_DIR):
|
||||||
mkdir -p $@
|
mkdir -p $@
|
||||||
|
|
|
@ -35,12 +35,72 @@ in {
|
||||||
inner = lib.mkDefault 5;
|
inner = lib.mkDefault 5;
|
||||||
outer = lib.mkDefault 20;
|
outer = lib.mkDefault 20;
|
||||||
};
|
};
|
||||||
bars = [];
|
bars = [{command = "${pkgs.waybar}/bin/waybar";}];
|
||||||
startup = [{command = "dunst";} {command = "waybar";}];
|
colors = {
|
||||||
|
focused = {
|
||||||
|
border = "#4c7899";
|
||||||
|
background = "#285577";
|
||||||
|
text = "#ffffff";
|
||||||
|
indicator = "#2e9ef4";
|
||||||
|
childBorder = "#285577";
|
||||||
|
};
|
||||||
|
focusedInactive = {
|
||||||
|
border = "#333333";
|
||||||
|
background = "#5f676a";
|
||||||
|
text = "#ffffff";
|
||||||
|
indicator = "#484e50";
|
||||||
|
childBorder = "#5f676a";
|
||||||
|
};
|
||||||
|
unfocused = {
|
||||||
|
border = "#333333";
|
||||||
|
background = "#222222";
|
||||||
|
text = "#888888";
|
||||||
|
indicator = "#292d2e";
|
||||||
|
childBorder = "#222222";
|
||||||
|
};
|
||||||
|
urgent = {
|
||||||
|
border = "#2f343a";
|
||||||
|
background = "#900000";
|
||||||
|
text = "#ffffff";
|
||||||
|
indicator = "#900000";
|
||||||
|
childBorder = "#900000";
|
||||||
|
};
|
||||||
|
placeholder = {
|
||||||
|
border = "#000000";
|
||||||
|
background = "#0c0c0c";
|
||||||
|
text = "#ffffff";
|
||||||
|
indicator = "#000000";
|
||||||
|
childBorder = "#0c0c0c";
|
||||||
|
};
|
||||||
|
background = "#ffffff";
|
||||||
|
};
|
||||||
|
assigns = {
|
||||||
|
"1" = [{app_id = "org.wezfurlong.wezterm";}];
|
||||||
|
"2" = [{app_id = "firefox";}];
|
||||||
|
"3" = [
|
||||||
|
{app_id = "Signal";}
|
||||||
|
{app_id = "fractal";}
|
||||||
|
{app_id = "discord";}
|
||||||
|
{class = "teams-for-linux";}
|
||||||
|
];
|
||||||
|
"4" = [{class = "Nxplayer.bin";}];
|
||||||
|
};
|
||||||
|
floating.criteria = [
|
||||||
|
{app_id = "foot";}
|
||||||
|
{app_id = "pavucontrol";}
|
||||||
|
{app_id = ".blueman-manager-wrapped";}
|
||||||
|
{app_id = "otpclient";}
|
||||||
|
{app_id = "thunar";}
|
||||||
|
{class = "Nxplayer.bin";}
|
||||||
|
];
|
||||||
|
startup = [{command = "dunst";}];
|
||||||
modifier = lib.mkDefault "Mod1";
|
modifier = lib.mkDefault "Mod1";
|
||||||
terminal = lib.mkDefault "${pkgs.wezterm}/bin/wezterm";
|
terminal = lib.mkDefault "${pkgs.wezterm}/bin/wezterm";
|
||||||
|
window.titlebar = false;
|
||||||
|
workspaceAutoBackAndForth = true;
|
||||||
keybindings = lib.mkOptionDefault {
|
keybindings = lib.mkOptionDefault {
|
||||||
"${modifier}+Return" = "exec ${term}";
|
"${modifier}+Return" = "exec ${term}";
|
||||||
|
"${modifier}+Shift+Return" = "exec ${pkgs.foot}/bin/foot";
|
||||||
"${modifier}+q" = "kill";
|
"${modifier}+q" = "kill";
|
||||||
"${modifier}+e" = "exec power-profiles";
|
"${modifier}+e" = "exec power-profiles";
|
||||||
"${modifier}+p" = "exec powermenu";
|
"${modifier}+p" = "exec powermenu";
|
||||||
|
|
|
@ -9,6 +9,28 @@
|
||||||
};
|
};
|
||||||
programs.waybar = {
|
programs.waybar = {
|
||||||
enable = true;
|
enable = true;
|
||||||
settings.main = {"include" = ["~/.config/waybar/modules.json" "~/.config/waybar/layout.json"];};
|
settings.main = {
|
||||||
|
"include" = [
|
||||||
|
"~/.config/waybar/modules.json"
|
||||||
|
"~/.config/waybar/layout.json"
|
||||||
|
];
|
||||||
|
"modules-left" = [
|
||||||
|
"sway/workspaces"
|
||||||
|
"cpu"
|
||||||
|
"memory"
|
||||||
|
"temperature"
|
||||||
|
];
|
||||||
|
"modules-center" = [
|
||||||
|
"clock"
|
||||||
|
];
|
||||||
|
"modules-right" = [
|
||||||
|
"pulseaudio"
|
||||||
|
"bluetooth"
|
||||||
|
"network#compact"
|
||||||
|
"backlight"
|
||||||
|
"battery"
|
||||||
|
"tray"
|
||||||
|
];
|
||||||
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -16,61 +16,22 @@
|
||||||
];
|
];
|
||||||
programs.firefox.package = pkgs.firefox-wayland;
|
programs.firefox.package = pkgs.firefox-wayland;
|
||||||
|
|
||||||
# wayland.windowManager.hyprland.extraConfig = ''
|
wayland.windowManager.sway.config = {
|
||||||
# source=./common.conf
|
output = {
|
||||||
# monitor=eDP-1,preferred,auto,auto
|
# eDP-1 = {};
|
||||||
# monitor=DP-3,preferred,auto,auto
|
# "Iiyama North America PLB2403WS 0574281251316" = {};
|
||||||
# monitor=DP-4,preferred,auto,auto,transform,1
|
"Dell Inc. DELL U2417H 5K9YD872FY1L".transform = "270";
|
||||||
# windowrule = float, title:^([Zz]oom).*$
|
};
|
||||||
# windowrule = center, title:^([Zz]oom).*$
|
workspaceOutputAssign = [
|
||||||
# windowrule = float, ^(Nxplayer.bin)$
|
{output="Iiyama North America PLB2403WS 0574281251316"; workspace="1";}
|
||||||
# windowrule = center, ^(Nxplayer.bin)$
|
{output="Iiyama North America PLB2403WS 0574281251316"; workspace="2";}
|
||||||
# windowrule = workspace 3, title:^([Zz]oom).*$
|
{output="Iiyama North America PLB2403WS 0574281251316"; workspace="3";}
|
||||||
# windowrule = workspace 4, ^(Nxplayer.bin)$
|
{output="Iiyama North America PLB2403WS 0574281251316"; workspace="4";}
|
||||||
# '';
|
];
|
||||||
wayland.windowManager.sway.config.output.eDP-2.scale = "1.5";
|
};
|
||||||
programs.waybar.settings = {
|
programs.waybar.settings = {
|
||||||
main = {
|
main."output" = "!DP-4";
|
||||||
"output" = "DP-3";
|
alt = {
|
||||||
"modules-left" = [
|
|
||||||
"sway/workspaces"
|
|
||||||
"cpu"
|
|
||||||
"memory"
|
|
||||||
"temperature"
|
|
||||||
];
|
|
||||||
"modules-center" = ["clock"];
|
|
||||||
"modules-right" = [
|
|
||||||
"pulseaudio"
|
|
||||||
"bluetooth"
|
|
||||||
"network#compact"
|
|
||||||
"backlight"
|
|
||||||
"battery"
|
|
||||||
"tray"
|
|
||||||
];
|
|
||||||
};
|
|
||||||
alt-integrated = {
|
|
||||||
"include" = [
|
|
||||||
"~/.config/waybar/modules.json"
|
|
||||||
"~/.config/waybar/layout.json"
|
|
||||||
];
|
|
||||||
"output" = "eDP-1";
|
|
||||||
"modules-left" = [
|
|
||||||
"sway/workspaces"
|
|
||||||
"cpu"
|
|
||||||
"memory"
|
|
||||||
"temperature"
|
|
||||||
];
|
|
||||||
"modules-center" = ["clock#compact"];
|
|
||||||
"modules-right" = [
|
|
||||||
"pulseaudio#compact"
|
|
||||||
"bluetooth"
|
|
||||||
"network#compact"
|
|
||||||
"backlight"
|
|
||||||
"battery"
|
|
||||||
"tray"
|
|
||||||
];
|
|
||||||
};
|
|
||||||
alt-vertical = {
|
|
||||||
"include" = [
|
"include" = [
|
||||||
"~/.config/waybar/modules.json"
|
"~/.config/waybar/modules.json"
|
||||||
"~/.config/waybar/layout.json"
|
"~/.config/waybar/layout.json"
|
||||||
|
|
Loading…
Reference in a new issue