nixos-private-dots/modules/home-manager/wm/rofi/rofi.nix
2024-08-03 13:23:01 +03:00

46 lines
2.1 KiB
Nix

# Много готовых дизайнов для rofi https://github.com/adi1090x/rofi
# Там разделены launchers и applets. Я не сразу понял в чём разница
# Launchers просто запускает приложение и ничего больше
# Applets это кнопка, которой задаёшь своё имя и скрипт, который будет выполнен при нажатии
# Через applets можно запускать скрипты, проги от рута или отображать информацию по типу заряда акума
# Описание и генератор стилей https://comfoxx.github.io/rofi-old-generator/old.html
# Полезная инфа https://wiki.archlinux.org/title/Rofi
# Готовые скрипты https://github.com/davatorium/rofi/wiki/User-scripts
{ pkgs, ... }: { # Запускатор софта и не только
programs.rofi = { # https://github.com/davatorium/rofi
enable = true;
font = "JetBrainsMono Nerd Font 10";
terminal = "${pkgs.alacritty}/bin/alacritty"; # Path to the terminal which will be used to run console applications
location = "center"; # The location rofi appears on the screen.
# cycle = true; # Whether to cycle through the results list.
pass = { # https://github.com/carnager/rofi-pass
enable = true;
# stores = []; # Directory roots of your password-stores.
# extraConfig = ''
# https://github.com/carnager/rofi-pass/blob/master/config.example
# '';
};
plugins = with pkgs; [
rofi-calc # https://github.com/svenstaro/rofi-calc
rofi-power-menu # https://github.com/jluttine/rofi-power-menu
# rofi-bluetooth # https://github.com/nickclyde/rofi-bluetooth
];
extraConfig = {
};
};
# Заменил на greenclip, который включается как сервис в packages.nix
# services.clipmenu = { # https://github.com/cdown/clipmenu
# enable = true;
# launcher = "rofi";
# };
# home.file = {
# ".config/rofi".source = "config.rasi";
# };
}