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

* 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:
Aly Raffauf 2024-07-25 15:26:12 -04:00 committed by GitHub
parent 7241dcb364
commit 5e801091f6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 60 additions and 7 deletions

View file

@ -14,6 +14,7 @@
./librewolf
./mako
./nemo
./rofi
./swaylock
./thunar
./tmux

View 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;
};
};
};
}

View file

@ -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" = "󰗽";
};

View file

@ -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"

View file

@ -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";

View file

@ -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 = {

View file

@ -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;