I would like to type the following command in a css file.
background: #2c001e url(file:///home/user/.local/share/backgrounds/mypic.jpg)
However, I don't want to explicitly declare the user path /home/user/ but instead use ~ and $HOME in its place. I discovered they did not work, i.e.
background: #2c001e url(file://~/.local/share/backgrounds/mypic.jpg)
background: #2c001e url(file://$HOME.local/share/backgrounds/mypic.jpg)
What is the correct syntax that I should use?
The context for using the above command is described here.