This commit is contained in:
dusk 2022-02-19 18:05:45 +03:00
parent 98f3962767
commit 5649488360
Signed by: dusk
GPG Key ID: 1D8F8FAF2294D6EA

View File

@ -336,7 +336,10 @@ in {
]; ];
}; };
wayland.windowManager = { wayland.windowManager = {
sway = { sway =
let
mkRofiCmd = args: "${config.programs.rofi.finalPackage}/bin/rofi ${lib.concatStringsSep " " args} | ${pkgs.sway}/bin/swaymsg --";
in {
enable = true; enable = true;
extraSessionCommands = extraEnv; extraSessionCommands = extraEnv;
wrapperFeatures.gtk = true; wrapperFeatures.gtk = true;
@ -358,7 +361,7 @@ in {
urgent = addIndSway urgentWorkspace; urgent = addIndSway urgentWorkspace;
}; };
gaps.smartBorders = "on"; gaps.smartBorders = "on";
menu = "${pkgs.rofi-wayland}/bin/rofi -show drun | ${pkgs.sway}/bin/swaymsg --"; menu = mkRofiCmd ["-show" "drun"];
modifier = "Mod4"; modifier = "Mod4";
terminal = pkgBin "alacritty"; terminal = pkgBin "alacritty";
keybindings = keybindings =
@ -379,6 +382,7 @@ in {
"${mod}+q" = "kill"; "${mod}+q" = "kill";
"${mod}+Shift+e" = "exit"; "${mod}+Shift+e" = "exit";
"${mod}+Shift+r" = "reload"; "${mod}+Shift+r" = "reload";
"${mod}+c" = mkRofiCmd ["-show" "calc"];
# Screenshot and copy it to clipboard # Screenshot and copy it to clipboard
"Mod1+s" = "Mod1+s" =
'' ''
@ -585,17 +589,21 @@ in {
}; };
}; };
fzf.enable = true; fzf.enable = true;
rofi = rofi = {
let
bgc = "#${bgColor}";
fgc = "#${fgColor}";
acc = "#${acColor}";
in {
enable = true; enable = true;
package = pkgs.rofi-wayland; package = pkgs.rofi-wayland;
cycle = true; cycle = true;
font = fontComb; font = fontComb;
terminal = pkgBin "alacritty"; terminal = pkgBin "alacritty";
plugins = with pkgs; [
rofi-calc
rofi-systemd
rofi-file-browser
rofi-power-menu
];
extraConfig = {
modi = "drun,calc,file-browser-extended,ssh,keys";
};
}; };
vscode = { vscode = {
enable = true; enable = true;