2024-06-29 12:40:18 -04:00
|
|
|
{
|
|
|
|
config,
|
|
|
|
lib,
|
|
|
|
pkgs,
|
|
|
|
...
|
2024-08-02 07:50:06 -04:00
|
|
|
}: {
|
2024-08-19 21:40:31 -04:00
|
|
|
imports = [./laptop.nix];
|
|
|
|
|
2024-07-26 00:29:06 -04:00
|
|
|
programs.waybar.settings.mainBar."bluetooth" = {
|
|
|
|
"on-click" = lib.mkForce "${lib.getExe pkgs.rofi-bluetooth} -i";
|
|
|
|
};
|
|
|
|
|
2024-06-29 12:40:18 -04:00
|
|
|
wayland.windowManager = {
|
|
|
|
sway.config = {
|
2024-08-02 07:50:06 -04:00
|
|
|
floating.criteria = [{app_id = "Bitwarden";} {app_id = "org.keepassxc.KeePassXC";}];
|
2024-07-23 17:29:05 -04:00
|
|
|
|
2024-08-11 15:01:50 -04:00
|
|
|
gaps = {
|
2024-11-24 19:41:38 -05:00
|
|
|
# smartBorders = "on";
|
|
|
|
# smartGaps = true;
|
2024-08-11 15:01:50 -04:00
|
|
|
};
|
|
|
|
|
2024-08-11 12:40:09 -04:00
|
|
|
input."type:keyboard".xkb_options = "caps:ctrl_modifier";
|
|
|
|
|
2024-07-23 17:29:05 -04:00
|
|
|
keybindings = {
|
|
|
|
"${config.wayland.windowManager.sway.config.modifier}+N" = "exec ${lib.getExe' pkgs.obsidian "obsidian"}";
|
2024-08-11 15:01:50 -04:00
|
|
|
"${config.wayland.windowManager.sway.config.modifier}+P" = "exec ${lib.getExe pkgs.rofi-rbw-wayland}";
|
2024-06-29 12:40:18 -04:00
|
|
|
};
|
|
|
|
|
2024-08-11 15:01:50 -04:00
|
|
|
startup = [
|
|
|
|
{command = lib.getExe config.ar.home.defaultApps.editor;}
|
|
|
|
{command = lib.getExe config.ar.home.defaultApps.webBrowser;}
|
|
|
|
{command = lib.getExe pkgs.fractal;}
|
2024-08-29 14:22:53 -04:00
|
|
|
{command = lib.getExe config.programs.thunderbird.package;}
|
2024-08-11 15:01:50 -04:00
|
|
|
{command = lib.getExe' pkgs.obsidian "obsidian";}
|
|
|
|
];
|
|
|
|
|
2024-07-21 23:25:10 -04:00
|
|
|
output = {
|
|
|
|
"Guangxi Century Innovation Display Electronics Co., Ltd 27C1U-D 0000000000001" = {
|
|
|
|
scale = "1.5";
|
|
|
|
pos = "-2560 0";
|
|
|
|
};
|
|
|
|
|
|
|
|
"HP Inc. HP 24mh 3CM037248S " = {
|
|
|
|
scale = "1.0";
|
|
|
|
pos = "-1920 0";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2024-07-23 17:29:05 -04:00
|
|
|
window.commands = [
|
|
|
|
{
|
2024-08-02 07:50:06 -04:00
|
|
|
command = "resize set 80ppt 80ppt; move position center;";
|
|
|
|
criteria = {app_id = "Bitwarden";};
|
|
|
|
}
|
|
|
|
{
|
|
|
|
command = "resize set 80ppt 80ppt; move position center; sticky toggle;";
|
2024-07-23 17:29:05 -04:00
|
|
|
criteria = {app_id = "org.keepassxc.KeePassXC";};
|
|
|
|
}
|
2024-08-11 15:01:50 -04:00
|
|
|
{
|
|
|
|
command = "move to scratchpad";
|
|
|
|
criteria = {app_id = "org.gnome.Fractal";};
|
|
|
|
}
|
2024-08-24 17:55:56 -04:00
|
|
|
{
|
|
|
|
command = "move to scratchpad";
|
|
|
|
criteria = {app_id = "vesktop";};
|
|
|
|
}
|
2024-06-29 12:40:18 -04:00
|
|
|
];
|
|
|
|
};
|
|
|
|
|
2024-07-19 13:59:48 -04:00
|
|
|
hyprland.settings = {
|
|
|
|
bind = [
|
2024-08-11 11:00:24 -04:00
|
|
|
"SUPER,N,exec,${lib.getExe' pkgs.obsidian "obsidian"}"
|
2024-08-02 07:50:06 -04:00
|
|
|
"SUPER,P,exec,${lib.getExe pkgs.rofi-rbw-wayland}"
|
2024-07-19 13:59:48 -04:00
|
|
|
];
|
2024-06-29 12:40:18 -04:00
|
|
|
|
2024-07-25 11:51:04 -04:00
|
|
|
input.kb_options = "ctrl:nocaps";
|
|
|
|
|
2024-07-19 13:59:48 -04:00
|
|
|
windowrulev2 = [
|
2024-11-24 19:41:38 -05:00
|
|
|
# "bordersize 0,floating:0,onworkspace:f[1]"
|
|
|
|
# "bordersize 0,floating:0,onworkspace:w[tv1]"
|
2024-08-02 07:50:06 -04:00
|
|
|
"center(1),class:(Bitwarden)"
|
2024-07-19 13:59:48 -04:00
|
|
|
"center(1),class:(org.keepassxc.KeePassXC)"
|
2024-08-02 07:50:06 -04:00
|
|
|
"float,class:(Bitwarden)"
|
2024-07-19 13:59:48 -04:00
|
|
|
"float,class:(org.keepassxc.KeePassXC)"
|
2024-11-24 19:41:38 -05:00
|
|
|
# "rounding 0,floating:0,onworkspace:f[1]"
|
|
|
|
# "rounding 0,floating:0,onworkspace:w[tv1]"
|
2024-08-02 07:50:06 -04:00
|
|
|
"size 80% 80%,class:(Bitwarden)"
|
2024-07-19 13:59:48 -04:00
|
|
|
"size 80% 80%,class:(org.keepassxc.KeePassXC)"
|
2024-09-19 13:40:17 -04:00
|
|
|
"workspace special:magic,class:(org.gnome.Fractal)"
|
2024-11-14 11:15:20 -05:00
|
|
|
"workspace special:magic,class:(vesktop)"
|
2024-07-19 13:59:48 -04:00
|
|
|
];
|
2024-06-29 12:40:18 -04:00
|
|
|
|
2024-07-19 13:59:48 -04:00
|
|
|
workspace = [
|
2024-11-24 19:41:38 -05:00
|
|
|
# "f[1],gapsout:0,gapsin:0"
|
2024-07-19 13:59:48 -04:00
|
|
|
"special:magic,on-created-empty:${lib.getExe pkgs.fractal}"
|
2024-11-24 19:41:38 -05:00
|
|
|
# "w[tv1],gapsout:0,gapsin:0"
|
2024-07-19 13:59:48 -04:00
|
|
|
];
|
|
|
|
};
|
2024-06-29 12:40:18 -04:00
|
|
|
};
|
2024-07-15 00:14:18 -04:00
|
|
|
|
|
|
|
ar.home.desktop.hyprland.monitors = [
|
|
|
|
"desc:Guangxi Century Innovation Display Electronics Co. Ltd 27C1U-D 0000000000001,preferred,-2400x0,1.6"
|
|
|
|
"desc:HP Inc. HP 24mh 3CM037248S,preferred,-1920x0,auto"
|
|
|
|
"desc:LG Electronics LG IPS QHD 109NTWG4Y865,preferred,-2560x0,auto"
|
|
|
|
];
|
2024-06-29 12:40:18 -04:00
|
|
|
}
|