From cad3df280083148af56b091493a6b88697d5ae1a Mon Sep 17 00:00:00 2001 From: ElnuDev Date: Mon, 10 Oct 2022 21:04:41 -0700 Subject: [PATCH] Replace i3lock with i3lock-color --- README.md | 5 ++++- i3.nix | 1 + lock/default.nix | 1 - lock/lock.sh | 2 +- 4 files changed, 6 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 028ce3b..f170891 100644 --- a/README.md +++ b/README.md @@ -17,7 +17,10 @@ - Fix/map media keys (already declared within [`i3.nix`](i3.nix) but are non-functional - Fix kitty bell disable not working - Fix Nordic GTK theme icons not working in nautilus -- Fix i3lock running restarting on i3 restart +- i3lock + - Fix i3lock running restarting on i3 restart + - Add `i3lock-colors` as an explicit dependency of `lock` instead of `i3.nix` + - Customize ring colors - Fix background squishing for polybar (use nautilus?) - Add Gruvbox switching support - kitty theme is "Gruvbox Dark", [see the full list](https://github.com/kovidgoyal/kitty-themes/blob/master/themes.json). diff --git a/i3.nix b/i3.nix index 04c654f..a9042a9 100644 --- a/i3.nix +++ b/i3.nix @@ -5,6 +5,7 @@ let in { # Dependencies home.packages = with pkgs; [ + i3lock-color # TODO: add as dependency of ./lock (pkgs.callPackage ./lock { }) playerctl # pactl comes with PulseAudio scrot # Screnshot keybindings diff --git a/lock/default.nix b/lock/default.nix index 5566a5e..f91f828 100644 --- a/lock/default.nix +++ b/lock/default.nix @@ -5,5 +5,4 @@ substituteAll { src = ./lock.sh; dir = "bin"; isExecutable = true; - inherit (pkgs) i3lock; } diff --git a/lock/lock.sh b/lock/lock.sh index a9239c5..71e016f 100755 --- a/lock/lock.sh +++ b/lock/lock.sh @@ -1 +1 @@ -i3lock -i `readlink -f ~/.background-image` +i3lock-color --fill -c 272c36 -i `readlink -f ~/.background-image`