Compare commits
No commits in common. "b218264db7344938254a312b32772bb0c31c0ee6" and "1b6a3b9ac60c08fcea3b7e1ffd45da970ff04ae9" have entirely different histories.
b218264db7
...
1b6a3b9ac6
4 changed files with 2 additions and 41 deletions
|
@ -9,14 +9,12 @@ with lib; let
|
|||
hm = config.home-manager.users.${config.custom.username};
|
||||
|
||||
cliphist = getExe hm.services.cliphist.package;
|
||||
echo = getExe' pkgs.coreutils "echo";
|
||||
networkmanager_dmenu = getExe pkgs.networkmanager_dmenu;
|
||||
notify-send = getExe pkgs.libnotify;
|
||||
pkill = getExe' pkgs.procps "pkill";
|
||||
rofi = getExe hm.programs.rofi.finalPackage;
|
||||
rofi-rbw = getExe pkgs.rofi-rbw;
|
||||
rofimoji = getExe pkgs.rofimoji;
|
||||
wl-copy = getExe' pkgs.wl-clipboard "wl-copy";
|
||||
in {
|
||||
options.custom.menus.rofi = {
|
||||
enable = mkOption {default = false;};
|
||||
|
@ -28,14 +26,7 @@ in {
|
|||
quit = "${pkill} --exact rofi";
|
||||
in {
|
||||
show = "${quit} || ${rofi} -show drun -show-icons";
|
||||
|
||||
calculator.show = concatStringsSep " " [
|
||||
"${quit} || ${rofi}"
|
||||
"-show calc"
|
||||
"-no-history"
|
||||
"-calc-error-color '#dc322f'"
|
||||
''-calc-command "${echo} -n '{result}' | ${wl-copy}"''
|
||||
];
|
||||
calculator.show = "${quit} || ${rofi} -show calc";
|
||||
|
||||
clipboard = {
|
||||
show = "${quit} || ${rofi} -show clipboard -show-icons";
|
||||
|
|
|
@ -21,7 +21,6 @@ with lib; {
|
|||
nixgl.enable = true;
|
||||
nushell.enable = true;
|
||||
polkit.enable = true;
|
||||
qalculate.enable = true;
|
||||
ssh.enable = true;
|
||||
starship.enable = true;
|
||||
sudo.enable = true;
|
||||
|
|
|
@ -1,30 +0,0 @@
|
|||
{
|
||||
config,
|
||||
lib,
|
||||
pkgs,
|
||||
...
|
||||
}:
|
||||
with lib; let
|
||||
cfg = config.custom.programs.qalculate;
|
||||
in {
|
||||
options.custom.programs.qalculate = {
|
||||
enable = mkOption {default = false;};
|
||||
};
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
# https://github.com/Qalculate/libqalculate
|
||||
# https://qalculate.github.io/manual/qalc.html
|
||||
environment.systemPackages = [pkgs.libqalculate];
|
||||
|
||||
home-manager.sharedModules = [
|
||||
{
|
||||
xdg.configFile = {
|
||||
# https://github.com/svenstaro/rofi-calc?tab=readme-ov-file#advanced-usage
|
||||
"qalculate/qalc.cfg".text = ''
|
||||
digit_grouping=2
|
||||
'';
|
||||
};
|
||||
}
|
||||
];
|
||||
};
|
||||
}
|
|
@ -28,6 +28,7 @@ in {
|
|||
fzf # Fuzzy search
|
||||
jq # JSON parser
|
||||
killport # Kill processes on port
|
||||
libqalculate # Calculator
|
||||
lf # Terminal file manager
|
||||
lm_sensors # System sensors
|
||||
nix-output-monitor # Nix build parser
|
||||
|
|
Loading…
Add table
Reference in a new issue