feat(niri): switch back to rofi
This commit is contained in:
parent
589840aead
commit
13bea63f5d
3 changed files with 32 additions and 11 deletions
|
|
@ -38,6 +38,10 @@ in {
|
|||
directories = [
|
||||
".cache/keepassxc"
|
||||
".cat_installer" # eduroam
|
||||
".cache/rofi-4.runcache" # FIXME: move to own file
|
||||
".cache/rofi-nix"
|
||||
".cache/rofi-entry-history.txt"
|
||||
".cache/rofi3.druncache"
|
||||
".config/Nextcloud"
|
||||
".config/Signal/"
|
||||
".config/calibre"
|
||||
|
|
|
|||
|
|
@ -29,6 +29,9 @@ in {
|
|||
wl-clipboard # clipboard tool for wayland
|
||||
wlr-randr
|
||||
jq
|
||||
|
||||
inputs.rofi-nix.packages.${pkgs.system}.default
|
||||
rofi-bluetooth
|
||||
];
|
||||
|
||||
# adds pam module for swaylock
|
||||
|
|
@ -38,10 +41,7 @@ in {
|
|||
programs.niri.package = cfg.package;
|
||||
|
||||
my = {
|
||||
programs = {
|
||||
wallpaper.enable = true;
|
||||
tofi.enable = true;
|
||||
};
|
||||
programs.wallpaper.enable = true;
|
||||
wallpapers.enable = true;
|
||||
services = {
|
||||
wallpaper = {
|
||||
|
|
@ -52,7 +52,14 @@ in {
|
|||
};
|
||||
};
|
||||
home-manager.users.moritz = {
|
||||
programs.fuzzel.enable = true;
|
||||
programs.rofi = {
|
||||
enable = true;
|
||||
package = pkgs.rofi-wayland.override {
|
||||
plugins = [
|
||||
pkgs.rofi-calc
|
||||
];
|
||||
};
|
||||
};
|
||||
programs.waybar = {
|
||||
enable = true;
|
||||
|
||||
|
|
@ -121,12 +128,15 @@ in {
|
|||
environment = {
|
||||
"NIXOS_OZONE_WL" = "1";
|
||||
"QT_QPA_PLATFORM" = "wayland";
|
||||
"TERMINAL" = config.my.terminal.package; # HACK: to fix desktop entries with terminal=true to open in preferred terminal
|
||||
};
|
||||
binds = {
|
||||
# spawn different programs
|
||||
"Mod+Return".action.spawn = config.my.terminal.package;
|
||||
"Mod+Shift+escape".action.spawn = ["loginctl" "lock-session"];
|
||||
"Mod+R".action.spawn = "fuzzel";
|
||||
"Mod+R".action.spawn = ["rofi" "-show" "combi" "-modes" "drun,run,nix:rofi-nix,combi" "-combi-modes" "drun,run,nix"];
|
||||
"Mod+Shift+C".action.spawn = ["rofi" "-show" "calc" "-modi" "calc" "-no-show-match" "-no-sort"];
|
||||
"Mod+B".action.spawn = "rofi-bluetooth";
|
||||
|
||||
# keyboard layout
|
||||
"Mod+Space".action = actions.switch-layout "next";
|
||||
|
|
@ -134,7 +144,7 @@ in {
|
|||
"Mod+I".action = actions.show-hotkey-overlay;
|
||||
"Mod+Q".action = actions.close-window;
|
||||
"Mod+Shift+Q".action = actions.quit;
|
||||
"Mod+Shift+C".action = actions.screenshot;
|
||||
"Mod+Shift+S".action = actions.screenshot;
|
||||
|
||||
# resizing / swapping / switching
|
||||
"Mod+F".action = actions.fullscreen-window;
|
||||
|
|
@ -231,6 +241,12 @@ in {
|
|||
top-right = 5.0;
|
||||
};
|
||||
}
|
||||
{
|
||||
matches = [
|
||||
{title = "^.*rofi.*$";}
|
||||
];
|
||||
open-floating = true;
|
||||
}
|
||||
];
|
||||
switch-events = {
|
||||
lid-close.action.spawn = ["loginctl" "lock-session"];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue