treewide: use 'lib.getExe' when possible
Don't use it in wireguard to keep it consistent, as only half the commands could use it.
This commit is contained in:
parent
8f818b8611
commit
9f7472222c
12 changed files with 16 additions and 20 deletions
|
|
@ -47,8 +47,8 @@ in
|
|||
|
||||
command = mkOption {
|
||||
type = types.str;
|
||||
default = "${pkgs.i3lock}/bin/i3lock -n -c 000000";
|
||||
example = "\${pkgs.i3lock}/bin/i3lock -n -i lock.png";
|
||||
default = "${lib.getExe pkgs.i3lock} -n -c 000000";
|
||||
example = "\${lib.getExe pkgs.i3lock} -n -i lock.png";
|
||||
description = "Locker command to run";
|
||||
};
|
||||
|
||||
|
|
|
|||
|
|
@ -27,13 +27,13 @@ let
|
|||
genMovementBindings = f: addVimKeyBindings (lib.my.genAttrs' movementKeys f);
|
||||
|
||||
# Used in multiple scripts to show messages through keybindings
|
||||
notify-send = "${pkgs.libnotify}/bin/notify-send";
|
||||
notify-send = lib.getExe pkgs.libnotify;
|
||||
|
||||
# Screen backlight management
|
||||
changeBacklight = "${pkgs.ambroisie.change-backlight}/bin/change-backlight";
|
||||
changeBacklight = lib.getExe pkgs.ambroisie.change-backlight;
|
||||
|
||||
# Audio and volume management
|
||||
changeAudio = "${pkgs.ambroisie.change-audio}/bin/change-audio";
|
||||
changeAudio = lib.getExe pkgs.ambroisie.change-audio;
|
||||
|
||||
# Lock management
|
||||
toggleXautolock =
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@ let
|
|||
notficationCmd =
|
||||
let
|
||||
duration = toString (cfg.notify.delay * 1000);
|
||||
notifyCmd = "${pkgs.libnotify}/bin/notify-send -u critical -t ${duration}";
|
||||
notifyCmd = "${lib.getExe pkgs.libnotify} -u critical -t ${duration}";
|
||||
in
|
||||
# Needs to be surrounded by quotes for systemd to launch it correctly
|
||||
''"${notifyCmd} -- 'Locking in ${toString cfg.notify.delay} seconds'"'';
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue