Tweak i3-lock to work properly
This commit is contained in:
parent
01f92bd562
commit
789b0435f0
3 changed files with 4 additions and 3 deletions
|
@ -6,7 +6,7 @@
|
|||
with lib; let
|
||||
cfg = config.eboskma.programs.i3;
|
||||
mod = "Mod4";
|
||||
i3lockcmd = "i3lock --image ${toString ./wallpapers/jwst-southern-ring-nircam-miri-side-by-side-3840.png} --color=333333ff --tiling --ignore-empty-password --show-failed-attempts --screen=0 --clock --pass-volume-keys";
|
||||
i3lockcmd = "${pkgs.i3lock-color}/bin/i3lock-color --image ${toString ./wallpapers/river-3840.png} --color=333333ff --tiling --ignore-empty-password --show-failed-attempts --screen=0 --clock --pass-volume-keys";
|
||||
rofiPower = pkgs.writeShellScriptBin "rofi-power" (builtins.readFile ./powermenu.sh);
|
||||
left = "n";
|
||||
down = "e";
|
||||
|
|
|
@ -18,7 +18,7 @@ exit_wm=""
|
|||
# Variable passed to rofi
|
||||
options="${shutdown}\n${reboot}\n${lock}\n${hibernate}\n${exit_wm}"
|
||||
uptime=$(uptime | awk '{print $1}' || true)
|
||||
lockcmd="i3lock --ignore-empty-password --show-failed-attempts --clock --color=333333ff --screen=0 --pass-volume-keys --image /home/erwin/.wallpapers/river-3840.png --tiling"
|
||||
lockcmd="i3lock-color --image /home/erwin/.wallpapers/river-3840.png --color=333333ff --tiling --ignore-empty-password --show-failed-attempts --screen=0 --clock --pass-volume-keys"
|
||||
|
||||
chosen="$(echo -e "${options}" | rofi -theme power -p "Uptime: ${uptime}" -dmenu -selected-row 2)"
|
||||
|
||||
|
|
|
@ -88,6 +88,7 @@ in
|
|||
bitwarden
|
||||
blink1-tool
|
||||
bottom
|
||||
cider
|
||||
fd
|
||||
ffmpeg_5-full
|
||||
git
|
||||
|
@ -197,7 +198,7 @@ in
|
|||
windowManager.i3 = {
|
||||
enable = true;
|
||||
package = pkgs.i3-gaps;
|
||||
extraPackages = with pkgs; [ i3lock-fancy ];
|
||||
extraPackages = with pkgs; [ i3lock-color ];
|
||||
};
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue