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