Complete unstable configuration with home manager
This commit is contained in:
parent
bbee9d7993
commit
df1d6df54e
17 changed files with 412 additions and 312 deletions
|
|
@ -3,8 +3,7 @@
|
|||
, rice
|
||||
, roboto
|
||||
, i3lock-color
|
||||
, update-background
|
||||
, writeScript
|
||||
, writeScriptBin
|
||||
, font ? { package = roboto; name = "Roboto"; }
|
||||
, palette ? rice.palette.palette {}
|
||||
, ...
|
||||
|
|
@ -12,7 +11,7 @@
|
|||
let
|
||||
strPalette = rice.palette.toRGBAHex palette;
|
||||
in
|
||||
writeScript "lockscreen.sh" ''
|
||||
writeScriptBin "lockscreen" ''
|
||||
#!/bin/sh
|
||||
# Using font package ${font.package}
|
||||
${i3lock-color}/bin/i3lock-color \
|
||||
|
|
@ -53,6 +52,5 @@ writeScript "lockscreen.sh" ''
|
|||
--pass-media-keys \
|
||||
--pass-screen-keys \
|
||||
--pass-volume-keys \
|
||||
--nofork &&
|
||||
${update-background}
|
||||
''
|
||||
--nofork
|
||||
''
|
||||
|
|
|
|||
|
|
@ -5,14 +5,14 @@
|
|||
, findutils
|
||||
, gnugrep
|
||||
, coreutils
|
||||
, writeScript
|
||||
, writeScriptBin
|
||||
, backgrounds_directory ? "$HOME/Immagini/Sfondi"}:
|
||||
let
|
||||
find = "${findutils}/bin/find";
|
||||
grep = "${gnugrep}/bin/grep";
|
||||
shuf = "${coreutils}/bin/shuf";
|
||||
in
|
||||
writeScript "update-background.sh" ''
|
||||
writeScriptBin "update-background" ''
|
||||
#!/bin/sh
|
||||
if [ $# -eq 0 ]; then
|
||||
image=`${find} ${backgrounds_directory} -type f | ${grep} -v "/\." | ${shuf} -n 1`
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue