mirror of
https://github.com/lordmathis/dotfiles.git
synced 2025-11-06 01:34:22 +00:00
Use libsecret to hide API key
This commit is contained in:
@@ -24,7 +24,7 @@ get_icon() {
|
|||||||
echo $icon
|
echo $icon
|
||||||
}
|
}
|
||||||
|
|
||||||
KEY=""
|
KEY=`secret-tool lookup openweathermap api_key`
|
||||||
CITY=""
|
CITY=""
|
||||||
UNITS="metric"
|
UNITS="metric"
|
||||||
SYMBOL="°"
|
SYMBOL="°"
|
||||||
|
|||||||
6
bin/setup.sh
Executable file
6
bin/setup.sh
Executable file
@@ -0,0 +1,6 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
echo "Enter OpenWeatherMap API key"
|
||||||
|
read line
|
||||||
|
echo $line | secret-tool store --label='OpenWeatherMap API Key' openweathermap api_key
|
||||||
|
secret-tool lookup openweathermap api_key
|
||||||
Reference in New Issue
Block a user