Use a consistent version of rofi in scripts
This commit is contained in:
parent
a2aee73928
commit
3e905fbf8f
3 changed files with 4 additions and 4 deletions
|
@ -87,7 +87,7 @@ let
|
||||||
rofi-rbw-script = pkgs.writeShellApplication {
|
rofi-rbw-script = pkgs.writeShellApplication {
|
||||||
name = "rofi-rbw-script";
|
name = "rofi-rbw-script";
|
||||||
runtimeInputs = with pkgs; [
|
runtimeInputs = with pkgs; [
|
||||||
rofi
|
config.programs.rofi.package
|
||||||
wtype
|
wtype
|
||||||
rofi-rbw
|
rofi-rbw
|
||||||
];
|
];
|
||||||
|
|
|
@ -12,7 +12,7 @@ let
|
||||||
playerctl = lib.getExe pkgs.playerctl;
|
playerctl = lib.getExe pkgs.playerctl;
|
||||||
amixer = lib.getExe' pkgs.alsa-utils "amixer";
|
amixer = lib.getExe' pkgs.alsa-utils "amixer";
|
||||||
brightnessctl = lib.getExe pkgs.brightnessctl;
|
brightnessctl = lib.getExe pkgs.brightnessctl;
|
||||||
app-menu = "${pkgs.dmenu}/bin/dmenu_path | ${pkgs.bemenu}/bin/bemenu | ${pkgs.findutils}/bin/xargs swaymsg exec --";
|
app-menu = "${pkgs.dmenu}/bin/dmenu_path | ${pkgs.bemenu}/bin/bemenu | ${pkgs.findutils}/bin/xargs niri msg action spawn --";
|
||||||
|
|
||||||
wallpaper = config.linux.graphical.wallpaper;
|
wallpaper = config.linux.graphical.wallpaper;
|
||||||
|
|
||||||
|
@ -366,7 +366,7 @@ in
|
||||||
|
|
||||||
# Some basic spawns
|
# Some basic spawns
|
||||||
"Mod+Return".action = spawn (lib.getExe config.linux.graphical.defaults.terminal.package);
|
"Mod+Return".action = spawn (lib.getExe config.linux.graphical.defaults.terminal.package);
|
||||||
"Mod+Space".action = spawn (lib.getExe pkgs.rofi) "-show" "drun";
|
"Mod+Space".action = spawn "rofi" "-show" "drun";
|
||||||
"Mod+R".action = sh app-menu;
|
"Mod+R".action = sh app-menu;
|
||||||
"Mod+Semicolon".action = spawn cfg.lock-command;
|
"Mod+Semicolon".action = spawn cfg.lock-command;
|
||||||
"Mod+Shift+P".action = spawn "rofi-rbw-script";
|
"Mod+Shift+P".action = spawn "rofi-rbw-script";
|
||||||
|
|
|
@ -53,7 +53,7 @@
|
||||||
let
|
let
|
||||||
change-mode = pkgs.writeScript "change-mode" ''
|
change-mode = pkgs.writeScript "change-mode" ''
|
||||||
#!/usr/bin/env ${lib.getExe pkgs.fish}
|
#!/usr/bin/env ${lib.getExe pkgs.fish}
|
||||||
set -ax PATH ${lib.getBin pkgs.power-profiles-daemon} ${lib.getBin pkgs.rofi} ${lib.getBin pkgs.ripgrep}
|
set -ax PATH ${lib.getBin pkgs.power-profiles-daemon} ${lib.getBin config.programs.rofi.package} ${lib.getBin pkgs.ripgrep}
|
||||||
|
|
||||||
set profiles (powerprofilesctl list | rg "^[ *] (\S+):" -r '$1')
|
set profiles (powerprofilesctl list | rg "^[ *] (\S+):" -r '$1')
|
||||||
set selected_index (math (contains -i (powerprofilesctl get) $profiles) - 1)
|
set selected_index (math (contains -i (powerprofilesctl get) $profiles) - 1)
|
||||||
|
|
Loading…
Add table
Reference in a new issue