sway/rofi
This commit is contained in:
parent
bce366abdc
commit
91b6dbb59f
|
@ -111,7 +111,7 @@
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
xdg.configFile."hypr/hyprlock.conf" = {
|
# xdg.configFile."hypr/hyprlock.conf" = {
|
||||||
source = "${pkgs.dotfiles}/.config/hypr/hyprlock.conf";
|
# source = "${pkgs.dotfiles}/.config/hypr/hyprlock.conf";
|
||||||
};
|
# };
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,6 +1,12 @@
|
||||||
{pkgs, config, ...}: let
|
{pkgs, config, super-config, ...}: let
|
||||||
theme = import ../data/theme.nix { inherit config; };
|
theme = import ../data/theme.nix { inherit config; };
|
||||||
in {
|
in {
|
||||||
|
xdg.dataFile."rofi/themes/spotlight.rasi" = {
|
||||||
|
source = if super-config.darkMode then
|
||||||
|
"${pkgs.dotfiles}/.local/share/rofi/themes/spotlight-dark.rasi"
|
||||||
|
else
|
||||||
|
"${pkgs.dotfiles}/.local/share/rofi/themes/spotlight.rasi";
|
||||||
|
};
|
||||||
xdg.dataFile."rofi/themes/launcher.rasi".text = ''
|
xdg.dataFile."rofi/themes/launcher.rasi".text = ''
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
|
@ -223,10 +229,10 @@ configuration {
|
||||||
|
|
||||||
combi-modi: "window,drun,run,filebrowser";
|
combi-modi: "window,drun,run,filebrowser";
|
||||||
|
|
||||||
|
kb-remove-char-back: "BackSpace,Shift+BackSpace";
|
||||||
kb-mode-previous: "Control+h";
|
kb-mode-previous: "Control+h";
|
||||||
kb-mode-next: "Control+l";
|
kb-mode-next: "Control+l";
|
||||||
kb-mode-complete: "";
|
kb-mode-complete: "";
|
||||||
kb-remove-char-back: "BackSpace,Shift+BackSpace";
|
|
||||||
}
|
}
|
||||||
'';
|
'';
|
||||||
programs.rofi = {
|
programs.rofi = {
|
||||||
|
@ -234,6 +240,6 @@ configuration {
|
||||||
package = pkgs.rofi-wayland;
|
package = pkgs.rofi-wayland;
|
||||||
terminal = "{pkgs.alacritty}/bin/alacritty";
|
terminal = "{pkgs.alacritty}/bin/alacritty";
|
||||||
|
|
||||||
theme = "launcher.rasi";
|
theme = "spotlight.rasi";
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -6,7 +6,7 @@ let
|
||||||
up = "k";
|
up = "k";
|
||||||
down = "j";
|
down = "j";
|
||||||
|
|
||||||
launcher = "${pkgs.rofi}/bin/rofi -config ${config.xdg.configHome}/rofi/launcher.rasi -theme ${config.xdg.dataHome}/rofi/themes/launcher.rasi -show drun -show-icons";
|
launcher = "${pkgs.rofi}/bin/rofi -config ${config.xdg.configHome}/rofi/launcher.rasi -theme ${config.xdg.dataHome}/rofi/themes/spotlight.rasi -show drun -show-icons";
|
||||||
|
|
||||||
in {
|
in {
|
||||||
home.packages = with pkgs; [
|
home.packages = with pkgs; [
|
||||||
|
|
Loading…
Reference in a new issue