mirror of
https://github.com/alyraffauf/nixcfg.git
synced 2024-11-22 01:33:55 -05:00
home: fuzzel,wlogout -> rofi (#62)
Some checks are pending
flakehub / flakehub-publish (push) Waiting to run
git-mirror / gitlab-sync (push) Waiting to run
nix-build / default-build (push) Waiting to run
nix-build / fallarbor-build (push) Waiting to run
nix-build / lavaridge-build (push) Waiting to run
nix-build / mauville-build (push) Waiting to run
nix-build / petalburg-build (push) Waiting to run
nix-build / rustboro-build (push) Waiting to run
nix-check / fmt-check (push) Waiting to run
nix-check / eval-check (push) Waiting to run
Some checks are pending
flakehub / flakehub-publish (push) Waiting to run
git-mirror / gitlab-sync (push) Waiting to run
nix-build / default-build (push) Waiting to run
nix-build / fallarbor-build (push) Waiting to run
nix-build / lavaridge-build (push) Waiting to run
nix-build / mauville-build (push) Waiting to run
nix-build / petalburg-build (push) Waiting to run
nix-build / rustboro-build (push) Waiting to run
nix-check / fmt-check (push) Waiting to run
nix-check / eval-check (push) Waiting to run
* home: add rofi module with default settings * home/hyprland: switch to rofi * home/waybar: switch to rofi * home/wayland: switch to rofi * home/sway: switch to rofi * cleanup * home.rofi: remove unused emoji plugin
This commit is contained in:
parent
7241dcb364
commit
5e801091f6
|
@ -14,6 +14,7 @@
|
|||
./librewolf
|
||||
./mako
|
||||
./nemo
|
||||
./rofi
|
||||
./swaylock
|
||||
./thunar
|
||||
./tmux
|
||||
|
|
50
homeManagerModules/apps/rofi/default.nix
Normal file
50
homeManagerModules/apps/rofi/default.nix
Normal file
|
@ -0,0 +1,50 @@
|
|||
{
|
||||
config,
|
||||
lib,
|
||||
pkgs,
|
||||
...
|
||||
}: let
|
||||
cfg = config.ar.home;
|
||||
in {
|
||||
config = lib.mkIf cfg.apps.rofi.enable {
|
||||
programs.rofi = {
|
||||
enable = true;
|
||||
font = "NotoSansM Nerd Font ${toString config.gtk.font.size}";
|
||||
location = "center";
|
||||
package = pkgs.rofi-wayland;
|
||||
plugins = [pkgs.rofi-power-menu];
|
||||
terminal = lib.getExe cfg.defaultApps.terminal;
|
||||
theme = "glue_pro_blue";
|
||||
|
||||
extraConfig = {
|
||||
click-to-exit = true;
|
||||
combi-display-format = "{text}";
|
||||
combi-hide-mode-prefix = true;
|
||||
|
||||
combi-modes = [
|
||||
"window"
|
||||
"drun"
|
||||
"ssh"
|
||||
];
|
||||
|
||||
display-drun = " ";
|
||||
display-filebrowser = " ";
|
||||
display-power-menu = " ";
|
||||
display-run = " ";
|
||||
display-ssh = " ";
|
||||
display-window = " ";
|
||||
drun-display-format = "{icon} {name}";
|
||||
hide-scrollbar = true;
|
||||
hover-select = true;
|
||||
me-accept-entry = "MousePrimary";
|
||||
me-select-entry = "";
|
||||
modes = "drun,window,ssh,combi,filebrowser";
|
||||
show-display-name = false;
|
||||
show-icons = true;
|
||||
sort = true;
|
||||
window-format = " {c} {t}";
|
||||
window-thumbnail = false;
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
|
@ -165,7 +165,7 @@
|
|||
"tray" = {"spacing" = 15;};
|
||||
|
||||
"custom/logout" = {
|
||||
"on-click" = "${lib.getExe pkgs.wlogout}";
|
||||
"on-click" = ''${lib.getExe config.programs.rofi.package} -show power-menu -modi "power-menu:${lib.getExe pkgs.rofi-power-menu} --choices=logout/lockscreen/suspend/shutdown/reboot"'';
|
||||
"format" = "";
|
||||
};
|
||||
|
||||
|
|
|
@ -39,8 +39,8 @@ in {
|
|||
"$mod,E,exec,${lib.getExe cfg.defaultApps.editor}"
|
||||
"$mod,F,exec,${lib.getExe cfg.defaultApps.fileManager}"
|
||||
"$mod,F11,exec,pkill -SIGUSR1 waybar"
|
||||
"$mod,M,exec,${lib.getExe pkgs.wlogout}"
|
||||
"$mod,R,exec,${lib.getExe pkgs.fuzzel}"
|
||||
''$mod,M,exec,${lib.getExe config.programs.rofi.package} -show power-menu -modi "power-menu:${lib.getExe pkgs.rofi-power-menu} --choices=logout/lockscreen/suspend/shutdown/reboot"''
|
||||
"$mod,R,exec,${lib.getExe config.programs.rofi.package} -show combi"
|
||||
"$mod,S,togglespecialworkspace,magic"
|
||||
"$mod,T,exec,${lib.getExe cfg.defaultApps.terminal}"
|
||||
"$mod,comma,exec,${lib.getExe pkgs.hyprnome} --previous"
|
||||
|
@ -103,6 +103,7 @@ in {
|
|||
"blur,launcher"
|
||||
"blur,logout_dialog"
|
||||
"blur,notifications"
|
||||
"blur,rofi"
|
||||
"blur,swayosd"
|
||||
"blur,waybar"
|
||||
"ignorezero,notifications"
|
||||
|
|
|
@ -89,9 +89,9 @@ in {
|
|||
"${modifier}+E" = "exec ${lib.getExe cfg.defaultApps.editor}";
|
||||
"${modifier}+F" = "exec ${lib.getExe cfg.defaultApps.fileManager}";
|
||||
"${modifier}+F11" = "exec pkill -SIGUSR1 waybar"; # Show/hide waybar
|
||||
"${modifier}+M" = "exec ${lib.getExe pkgs.wlogout}";
|
||||
"${modifier}+M" = ''exec ${lib.getExe config.programs.rofi.package} -show power-menu -modi "power-menu:${lib.getExe pkgs.rofi-power-menu} --choices=logout/lockscreen/suspend/shutdown/reboot"'';
|
||||
"${modifier}+Period" = "workspace next";
|
||||
"${modifier}+R" = "exec ${lib.getExe pkgs.fuzzel}";
|
||||
"${modifier}+R" = "exec ${lib.getExe config.programs.rofi.package} -show combi";
|
||||
"${modifier}+S" = "scratchpad show";
|
||||
"${modifier}+Shift+Comma" = "move container to workspace prev; workspace prev";
|
||||
"${modifier}+Shift+Period" = "move container to workspace next; workspace next";
|
||||
|
|
|
@ -6,12 +6,11 @@
|
|||
}: {
|
||||
config = lib.mkIf (config.ar.home.desktop.hyprland.enable || config.ar.home.desktop.sway.enable) {
|
||||
ar.home.apps = {
|
||||
fuzzel.enable = lib.mkDefault true;
|
||||
kitty.enable = lib.mkDefault true;
|
||||
mako.enable = lib.mkDefault true;
|
||||
rofi.enable = lib.mkDefault true;
|
||||
swaylock.enable = lib.mkDefault true;
|
||||
waybar.enable = lib.mkDefault true;
|
||||
wlogout.enable = lib.mkDefault true;
|
||||
};
|
||||
|
||||
dconf = {
|
||||
|
|
|
@ -60,7 +60,9 @@ in {
|
|||
type = lib.types.bool;
|
||||
};
|
||||
|
||||
rofi.enable = lib.mkEnableOption "Rofi launcher.";
|
||||
swaylock.enable = lib.mkEnableOption "Swaylock screen locker.";
|
||||
|
||||
thunar.enable = lib.mkOption {
|
||||
description = "Thunar file manager.";
|
||||
default = cfg.defaultApps.fileManager == pkgs.xfce.thunar;
|
||||
|
|
Loading…
Reference in a new issue