try rofi instead of dmenu

This commit is contained in:
Noah Masur 2022-05-03 21:11:31 -04:00
parent 67f8a8b08d
commit f2d01ec575
5 changed files with 51 additions and 5 deletions

View File

@ -1,5 +1,20 @@
{ ... }: {
{ lib, ... }: {
imports = [ ./xorg.nix ./fonts.nix ./i3.nix ./polybar.nix ./picom.nix ];
imports = [
./xorg.nix
./fonts.nix
./i3.nix
./polybar.nix
./picom.nix
# ./dmenu.nix
./rofi.nix
];
options = {
launcherCommand = lib.mkOption {
type = lib.types.str;
description = "Command to use for launching";
};
};
}

12
modules/desktop/dmenu.nix Normal file
View File

@ -0,0 +1,12 @@
{ config, pkgs, lib, identity, ... }:
{
config = lib.mkIf config.services.xserver.enable {
home-manager.users.${identity.user}.home.packages = [ pkgs.dmenu ];
launcherCommand = "${pkgs.dmenu}/bin/dmenu_run";
};
}

View File

@ -116,7 +116,8 @@
# Launchers
"${modifier}+Return" = "exec alacritty";
"${modifier}+space" = "exec --no-startup-id dmenu_run";
"${modifier}+space" =
"exec --no-startup-id ${config.launcherCommand}";
"${modifier}+Shift+c" = "reload";
"${modifier}+Shift+r" = "restart";
"${modifier}+Shift+q" = ''

View File

@ -102,7 +102,7 @@
format-volume-foreground = config.theme.colors.primary.foreground;
label-volume = "%percentage%%";
label-muted = " ---";
label-muted-foreground = config.theme.colors.normal.white;
label-muted-foreground = config.theme.colors.bright.black;
ramp-volume-0 = "";
ramp-volume-1 = "";
ramp-volume-2 = "";
@ -151,7 +151,7 @@
"module/date" = {
type = "internal/date";
interval = 1;
date = "%H:%M %p";
date = "%l:%M %p";
date-alt = "%Y-%m-%d %H:%M:%S";
label = "%date%";
# label-foreground = config.theme.colors.normal.yellow;

18
modules/desktop/rofi.nix Normal file
View File

@ -0,0 +1,18 @@
{ config, pkgs, lib, identity, ... }:
{
config = lib.mkIf config.services.xserver.enable {
home-manager.users.${identity.user}.programs.rofi = {
enable = true;
cycle = true;
location = "center";
plugins = [ pkgs.rofi-calc pkgs.rofi-emoji ];
};
launcherCommand = "${pkgs.rofi}/bin/rofi -show run";
};
}