Compare commits
2 commits
ff54d7e919
...
30df2bfc4b
Author | SHA1 | Date | |
---|---|---|---|
Evie Litherland-Smith | 30df2bfc4b | ||
Evie Litherland-Smith | 91bdb9694a |
|
@ -203,7 +203,7 @@
|
||||||
Vanguard = systemConfig {
|
Vanguard = systemConfig {
|
||||||
hostName = "Vanguard";
|
hostName = "Vanguard";
|
||||||
systemModules = [
|
systemModules = [
|
||||||
./system/desktop
|
./system/desktop.nix
|
||||||
./system/games.nix
|
./system/games.nix
|
||||||
./system/sway.nix
|
./system/sway.nix
|
||||||
];
|
];
|
||||||
|
|
|
@ -25,6 +25,11 @@
|
||||||
natural_scroll = "enabled";
|
natural_scroll = "enabled";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
seat = {
|
||||||
|
"seat0" = {
|
||||||
|
xcursor_theme = with config.gtk.cursorTheme; "${name} ${toString size}";
|
||||||
|
};
|
||||||
|
};
|
||||||
modifier = "Mod4";
|
modifier = "Mod4";
|
||||||
terminal = "${config.programs.alacritty.package}/bin/alacritty";
|
terminal = "${config.programs.alacritty.package}/bin/alacritty";
|
||||||
menu = "${config.programs.rofi.finalPackage}/bin/rofi -show drun";
|
menu = "${config.programs.rofi.finalPackage}/bin/rofi -show drun";
|
||||||
|
@ -68,14 +73,14 @@
|
||||||
{command = "${pkgs.protonmail-bridge}/bin/protonmail-bridge -n";}
|
{command = "${pkgs.protonmail-bridge}/bin/protonmail-bridge -n";}
|
||||||
];
|
];
|
||||||
assigns = {
|
assigns = {
|
||||||
"3: Files" = [
|
"3" = [
|
||||||
{class = "^(libreoffice|soffice)(.*)$";}
|
{class = "^(libreoffice|soffice)(.*)$";}
|
||||||
];
|
];
|
||||||
"4: Chat" = [
|
"4" = [
|
||||||
{class = "^WebCord$";}
|
{class = "^WebCord$";}
|
||||||
{class = "^Signal$";}
|
{class = "^Signal$";}
|
||||||
];
|
];
|
||||||
"5: Games" = [
|
"5" = [
|
||||||
{class = "^steam$";}
|
{class = "^steam$";}
|
||||||
{class = "^org.prismlauncher.PrismLauncher$";}
|
{class = "^org.prismlauncher.PrismLauncher$";}
|
||||||
];
|
];
|
||||||
|
@ -108,15 +113,47 @@
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
keybindings = let
|
keybindings = with config; let
|
||||||
modifier = config.wayland.windowManager.sway.config.modifier;
|
modifier = wayland.windowManager.sway.config.modifier;
|
||||||
|
withTerm = {
|
||||||
|
term ? "alacritty",
|
||||||
|
package ? config.programs.${term}.package,
|
||||||
|
progname,
|
||||||
|
args ? "",
|
||||||
|
}: "${package}/bin/${term} -T ${progname} -e ${progname} ${args}";
|
||||||
in
|
in
|
||||||
lib.mkOptionDefault {
|
lib.mkOptionDefault {
|
||||||
"${modifier}+F1" = "exec swaylock";
|
# Function keys
|
||||||
"${modifier}+z" = "exec swaync-client -t -sw";
|
## Sound
|
||||||
"${modifier}+e" = "exec emacsclient -c";
|
"XF86AudioMute" = "exec ${services.avizo.package}/bin/volumectl %";
|
||||||
"${modifier}+w" = "exec firefox";
|
"XF86AudioMicMute" = "exec ${services.avizo.package}/bin/volumectl -m %";
|
||||||
"${modifier}+f" = "exec thunar";
|
"XF86AudioRaiseVolume" = "exec ${services.avizo.package}/bin/volumectl -u + 5";
|
||||||
|
"XF86AudioLowerVolume" = "exec ${services.avizo.package}/bin/volumectl -u - 5";
|
||||||
|
|
||||||
|
## Playback
|
||||||
|
"XF86AudioPlay" = "exec ${pkgs.playerctl}/bin/playerctl play-pause";
|
||||||
|
"XF86AudioStop" = "exec ${pkgs.playerctl}/bin/playerctl play-pause";
|
||||||
|
"XF86AudioPrev" = "exec ${pkgs.playerctl}/bin/playerctl previous";
|
||||||
|
"XF86AudioNext" = "exec ${pkgs.playerctl}/bin/playerctl next";
|
||||||
|
|
||||||
|
## Brightness
|
||||||
|
"XF86MonBrightnessUp" = "exec ${services.avizo.package}/bin/lightctl + 5";
|
||||||
|
"XF86MonBrightnessDown" = "exec ${services.avizo.package}/bin/lightctl - 5";
|
||||||
|
|
||||||
|
# System utilities
|
||||||
|
"${modifier}+F1" = "exec ${programs.swaylock.package}/bin/swaylock --screenshots --clock --indicator --grace-no-mouse";
|
||||||
|
"${modifier}+z" = "exec ${pkgs.swaynotificationcenter}/bin/swaync-client -t -sw";
|
||||||
|
"${modifier}+Shift+z" = "exec ${pkgs.swaynotificationcenter}/bin/swaync-client -d -sw";
|
||||||
|
# "${modifier}+s" = "exec ${withTerm {
|
||||||
|
# progname = "btm";
|
||||||
|
# args = "--autohide_time --battery --celsius --enable_cache_memory --enable_gpu_memory --group --hide_avg_cpu --hide_table_gap --retention=3m --show_table_scroll_position";
|
||||||
|
# }}";
|
||||||
|
# "${modifier}+c" = "exec ${withTerm {progname = "cava";}}"
|
||||||
|
|
||||||
|
# Program shortcuts
|
||||||
|
"${modifier}+e" = "exec ${programs.emacs.finalPackage}/bin/emacsclient -c";
|
||||||
|
"${modifier}+w" = "exec ${programs.firefox.package}/bin/firefox";
|
||||||
|
"${modifier}+f" = "exec ${pkgs.xfce.thunar}/bin/thunar";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
extraConfig = ''
|
extraConfig = ''
|
||||||
|
|
|
@ -1,12 +1,14 @@
|
||||||
{...}: {
|
{...}: {
|
||||||
wayland.windowManager.hyprland.settings = {
|
wayland.windowManager.sway.config = {
|
||||||
workspace = [
|
output = {
|
||||||
"4, monitor:desc:Ancor Communications Inc VS278 FALMQS032358"
|
"Acer Technologies ED270R TJMEE0043W01" = {
|
||||||
"5, monitor:desc:Acer Technologies ED270R TJMEE0043W01"
|
mode = "1920x1080@165Hz";
|
||||||
];
|
pos = "1920 0";
|
||||||
monitor = [
|
adaptive_sync = "off";
|
||||||
"desc:Acer Technologies ED270R TJMEE0043W01,highrr,0x0,1.00,vrr,2"
|
};
|
||||||
"desc:Ancor Communications Inc VS278 FALMQS032358,preferred,-1920x0,1.00,vrr,0"
|
"Ancor Communications Inc VS278 FALMQS032358" = {
|
||||||
];
|
pos = "0 0";
|
||||||
|
};
|
||||||
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue