mirror of
https://github.com/alyraffauf/nixcfg.git
synced 2024-11-22 15:43:55 -05:00
aly: cleanup and reorg home configuration
This commit is contained in:
parent
b25fbd7574
commit
c17805f61a
|
@ -9,6 +9,7 @@
|
||||||
imports = [
|
imports = [
|
||||||
./firefox
|
./firefox
|
||||||
./mail
|
./mail
|
||||||
|
./windowManagers
|
||||||
];
|
];
|
||||||
|
|
||||||
home = {
|
home = {
|
||||||
|
@ -24,13 +25,10 @@
|
||||||
fractal
|
fractal
|
||||||
gh
|
gh
|
||||||
git
|
git
|
||||||
google-chrome
|
|
||||||
obsidian
|
obsidian
|
||||||
plexamp
|
|
||||||
python3
|
python3
|
||||||
ruby
|
ruby
|
||||||
tauon
|
tauon
|
||||||
trayscale
|
|
||||||
webcord
|
webcord
|
||||||
wget
|
wget
|
||||||
];
|
];
|
||||||
|
@ -49,56 +47,6 @@
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
wayland.windowManager = {
|
|
||||||
sway.config = {
|
|
||||||
assigns = {
|
|
||||||
"workspace 1: web" = [{app_id = "firefox";} {app_id = "brave-browser";}];
|
|
||||||
"workspace 2: code" = [{app_id = "codium-url-handler";}];
|
|
||||||
"workspace 3: chat" = [{app_id = "org.gnome.Fractal";} {app_id = "WebCord";}];
|
|
||||||
"workspace 4: work" = [{app_id = "google-chrome";} {app_id = "chromium-browser";} {app_id = "firework";}];
|
|
||||||
"workspace 10: zoom" = [{class = "zoom";} {app_id = "Zoom";}];
|
|
||||||
};
|
|
||||||
|
|
||||||
startup = [
|
|
||||||
{command = ''${lib.getExe' pkgs.keepassxc "keepassxc"}'';}
|
|
||||||
];
|
|
||||||
};
|
|
||||||
|
|
||||||
hyprland.extraConfig = ''
|
|
||||||
# Workspace - Browser
|
|
||||||
workspace = 1, defaultName:web, on-created-empty:${config.ar.home.defaultApps.webBrowser.exe}
|
|
||||||
windowrulev2 = workspace 1,class:(firefox)
|
|
||||||
windowrulev2 = workspace 1,class:(brave-browser)
|
|
||||||
|
|
||||||
# Workspace - Coding
|
|
||||||
workspace = 2, defaultName:code, on-created-empty:${config.ar.home.defaultApps.editor.exe}
|
|
||||||
windowrulev2 = workspace 2,class:(codium-url-handler)
|
|
||||||
|
|
||||||
# Workspace - Work
|
|
||||||
windowrulev2 = workspace 3,class:(google-chrome)
|
|
||||||
windowrulev2 = workspace 3,class:(firework)
|
|
||||||
|
|
||||||
# Scratchpad Chat
|
|
||||||
# bind = SUPER, S, togglespecialworkspace, magic
|
|
||||||
# bind = SUPER SHIFT, W, movetoworkspace, special:magic
|
|
||||||
workspace = special:magic, on-created-empty:${lib.getExe pkgs.fractal}
|
|
||||||
windowrulev2 = workspace special:magic,class:(org.gnome.Fractal)
|
|
||||||
windowrulev2 = workspace special:magic,class:(WebCord)
|
|
||||||
|
|
||||||
# Scratchpad Notes
|
|
||||||
bind = SUPER, N, togglespecialworkspace, notes
|
|
||||||
bind = SUPER SHIFT, N, movetoworkspace, special:notes
|
|
||||||
workspace = special:notes, on-created-empty:${lib.getExe' pkgs.obsidian "obsidian"}
|
|
||||||
# windowrulev2 = workspace special:notes,class:(obsidian)
|
|
||||||
|
|
||||||
# # Scratchpad Music
|
|
||||||
# bind = SUPER, P, togglespecialworkspace, music
|
|
||||||
# bind = SUPER SHIFT, P, movetoworkspace, special:music
|
|
||||||
# workspace = special:music, on-created-empty:${lib.getExe' pkgs.plexamp "plexamp"}
|
|
||||||
# windowrulev2 = workspace special:music,class:(Plexamp)
|
|
||||||
'';
|
|
||||||
};
|
|
||||||
|
|
||||||
ar.home = {
|
ar.home = {
|
||||||
apps = {
|
apps = {
|
||||||
alacritty.enable = true;
|
alacritty.enable = true;
|
||||||
|
@ -122,10 +70,6 @@
|
||||||
startupApps = [(lib.getExe' pkgs.keepassxc "keepassxc")];
|
startupApps = [(lib.getExe' pkgs.keepassxc "keepassxc")];
|
||||||
};
|
};
|
||||||
|
|
||||||
scripts = {
|
|
||||||
pp-adjuster.enable = true;
|
|
||||||
};
|
|
||||||
|
|
||||||
theme = {
|
theme = {
|
||||||
enable = true;
|
enable = true;
|
||||||
wallpaper = "${config.xdg.dataHome}/backgrounds/wallhaven-3led2d.jpg";
|
wallpaper = "${config.xdg.dataHome}/backgrounds/wallhaven-3led2d.jpg";
|
||||||
|
|
56
homes/aly/windowManagers/default.nix
Normal file
56
homes/aly/windowManagers/default.nix
Normal file
|
@ -0,0 +1,56 @@
|
||||||
|
{
|
||||||
|
config,
|
||||||
|
lib,
|
||||||
|
pkgs,
|
||||||
|
...
|
||||||
|
}: {
|
||||||
|
wayland.windowManager = {
|
||||||
|
sway.config = {
|
||||||
|
assigns = {
|
||||||
|
"workspace 1: web" = [{app_id = "firefox";} {app_id = "brave-browser";}];
|
||||||
|
"workspace 2: code" = [{app_id = "codium-url-handler";}];
|
||||||
|
"workspace 3: chat" = [{app_id = "org.gnome.Fractal";} {app_id = "WebCord";}];
|
||||||
|
"workspace 4: work" = [{app_id = "google-chrome";} {app_id = "chromium-browser";} {app_id = "firework";}];
|
||||||
|
"workspace 10: zoom" = [{class = "zoom";} {app_id = "Zoom";}];
|
||||||
|
};
|
||||||
|
|
||||||
|
startup = [
|
||||||
|
{command = ''${lib.getExe' pkgs.keepassxc "keepassxc"}'';}
|
||||||
|
];
|
||||||
|
};
|
||||||
|
|
||||||
|
hyprland.extraConfig = ''
|
||||||
|
# Workspace - Browser
|
||||||
|
workspace = 1, defaultName:web, on-created-empty:${config.ar.home.defaultApps.webBrowser.exe}
|
||||||
|
windowrulev2 = workspace 1,class:(firefox)
|
||||||
|
windowrulev2 = workspace 1,class:(brave-browser)
|
||||||
|
|
||||||
|
# Workspace - Coding
|
||||||
|
workspace = 2, defaultName:code, on-created-empty:${config.ar.home.defaultApps.editor.exe}
|
||||||
|
windowrulev2 = workspace 2,class:(codium-url-handler)
|
||||||
|
|
||||||
|
# Workspace - Work
|
||||||
|
windowrulev2 = workspace 3,class:(google-chrome)
|
||||||
|
windowrulev2 = workspace 3,class:(firework)
|
||||||
|
|
||||||
|
# Scratchpad Chat
|
||||||
|
# bind = SUPER, S, togglespecialworkspace, magic
|
||||||
|
# bind = SUPER SHIFT, W, movetoworkspace, special:magic
|
||||||
|
workspace = special:magic, on-created-empty:${lib.getExe pkgs.fractal}
|
||||||
|
windowrulev2 = workspace special:magic,class:(org.gnome.Fractal)
|
||||||
|
windowrulev2 = workspace special:magic,class:(WebCord)
|
||||||
|
|
||||||
|
# Scratchpad Notes
|
||||||
|
bind = SUPER, N, togglespecialworkspace, notes
|
||||||
|
bind = SUPER SHIFT, N, movetoworkspace, special:notes
|
||||||
|
workspace = special:notes, on-created-empty:${lib.getExe' pkgs.obsidian "obsidian"}
|
||||||
|
# windowrulev2 = workspace special:notes,class:(obsidian)
|
||||||
|
|
||||||
|
# # Scratchpad Music
|
||||||
|
# bind = SUPER, P, togglespecialworkspace, music
|
||||||
|
# bind = SUPER SHIFT, P, movetoworkspace, special:music
|
||||||
|
# workspace = special:music, on-created-empty:${lib.getExe' pkgs.plexamp "plexamp"}
|
||||||
|
# windowrulev2 = workspace special:music,class:(Plexamp)
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
}
|
Loading…
Reference in a new issue