rofi with emoji and calc plugins activated

This commit is contained in:
Noah Masur 2022-05-15 08:18:03 -04:00
parent 1a31d4d3e5
commit eccd5e7e33
4 changed files with 21 additions and 17 deletions

View File

@ -25,6 +25,10 @@
type = types.str; type = types.str;
description = "Command to use for launching"; description = "Command to use for launching";
}; };
toggleBarCommand = lib.mkOption {
type = lib.types.str;
description = "Command to hide and show the status bar.";
};
gtk.theme = { gtk.theme = {
name = mkOption { name = mkOption {
type = types.str; type = types.str;

View File

@ -6,13 +6,6 @@ let
in { in {
options = {
toggleBarCmd = lib.mkOption {
type = lib.types.str;
description = "Command to hide and show the status bar.";
};
};
config = lib.mkIf config.services.xserver.enable { config = lib.mkIf config.services.xserver.enable {
services.xserver.windowManager = { services.xserver.windowManager = {
@ -121,7 +114,8 @@ in {
"XF86AudioPrev" = "exec playerctl previous"; "XF86AudioPrev" = "exec playerctl previous";
# Launchers # Launchers
"${modifier}+Return" = "exec alacritty; layout tabbed"; "${modifier}+Return" =
"exec alacritty; workspace ${ws2}; layout tabbed";
"${modifier}+space" = "${modifier}+space" =
"exec --no-startup-id ${config.gui.launcherCommand}"; "exec --no-startup-id ${config.gui.launcherCommand}";
"${modifier}+Shift+c" = "reload"; "${modifier}+Shift+c" = "reload";
@ -132,7 +126,7 @@ in {
# Window options # Window options
"${modifier}+q" = "kill"; "${modifier}+q" = "kill";
"${modifier}+b" = "exec ${config.toggleBarCmd}"; "${modifier}+b" = "exec ${config.gui.toggleBarCommand}";
"${modifier}+f" = "fullscreen toggle"; "${modifier}+f" = "fullscreen toggle";
"${modifier}+h" = "focus left"; "${modifier}+h" = "focus left";
"${modifier}+j" = "focus down"; "${modifier}+j" = "focus down";
@ -208,11 +202,17 @@ in {
"${modifier}+Control+Shift+l" = "resize grow width 10 px or 10 ppt"; "${modifier}+Control+Shift+l" = "resize grow width 10 px or 10 ppt";
}; };
modes = { }; modes = { };
startup = [{ startup = [
command = "feh --bg-fill ${config.gui.wallpaper}"; {
always = true; command = "feh --bg-fill ${config.gui.wallpaper}";
notification = false; always = true;
}]; notification = false;
}
{
command = "i3-msg workspace ${ws1}";
notification = false;
}
];
window = { window = {
border = 0; border = 0;
hideEdgeBorders = "smart"; hideEdgeBorders = "smart";

View File

@ -2,7 +2,7 @@
config = lib.mkIf config.services.xserver.enable { config = lib.mkIf config.services.xserver.enable {
toggleBarCmd = "polybar-msg cmd toggle"; gui.toggleBarCommand = "polybar-msg cmd toggle";
home-manager.users.${config.user} = { home-manager.users.${config.user} = {

View File

@ -131,11 +131,11 @@
extraConfig = { extraConfig = {
show-icons = true; show-icons = true;
kb-cancel = "Escape,Super+space"; kb-cancel = "Escape,Super+space";
modi = "window,run,ssh,emoji,calc";
}; };
}; };
gui.launcherCommand = "${pkgs.rofi}/bin/rofi -show run"; gui.launcherCommand = "${pkgs.rofi}/bin/rofi -show run -modi run";
}; };
} }