mirror of
https://github.com/nmasur/dotfiles
synced 2024-12-24 17:44:52 +00:00
try rofi instead of dmenu
This commit is contained in:
parent
67f8a8b08d
commit
f2d01ec575
@ -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
12
modules/desktop/dmenu.nix
Normal 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";
|
||||
|
||||
};
|
||||
|
||||
}
|
@ -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" = ''
|
||||
|
@ -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
18
modules/desktop/rofi.nix
Normal 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";
|
||||
|
||||
};
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user