From f8b24dd2e97b40b2e36f7e9c135a4f24117391de Mon Sep 17 00:00:00 2001 From: Tuan-Dat Tran Date: Sat, 30 Mar 2019 04:56:38 +0100 Subject: [PATCH] Added gtk2.0 theme --- config/.gtk-bookmarks | 1 + config/.gtkrc-2.0 | 18 + config/.scripts/a.json | 1363 ---------------------------- config/.scripts/i3lock.py | 2 +- config/.scripts/startup.sh | 3 - config/.scripts/weather.py | 68 -- config/.scripts/weather_cache.json | 1 - zsh/.zshrc | 7 +- 8 files changed, 26 insertions(+), 1437 deletions(-) create mode 100644 config/.gtk-bookmarks create mode 100644 config/.gtkrc-2.0 delete mode 100644 config/.scripts/a.json delete mode 100755 config/.scripts/startup.sh delete mode 100644 config/.scripts/weather.py delete mode 100644 config/.scripts/weather_cache.json diff --git a/config/.gtk-bookmarks b/config/.gtk-bookmarks new file mode 100644 index 0000000..96227c0 --- /dev/null +++ b/config/.gtk-bookmarks @@ -0,0 +1 @@ +file:///home/tuan/.nextcloud/ diff --git a/config/.gtkrc-2.0 b/config/.gtkrc-2.0 new file mode 100644 index 0000000..536e5d1 --- /dev/null +++ b/config/.gtkrc-2.0 @@ -0,0 +1,18 @@ +# DO NOT EDIT! This file will be overwritten by LXAppearance. +# Any customization should be done in ~/.gtkrc-2.0.mine instead. + +include "/home/tuan/.gtkrc-2.0.mine" +gtk-theme-name="Sweet" +gtk-icon-theme-name="Arc" +gtk-font-name="Hack Nerd Font Mono Regular 9" +gtk-cursor-theme-name="Adwaita" +gtk-cursor-theme-size=0 +gtk-toolbar-style=GTK_TOOLBAR_ICONS +gtk-toolbar-icon-size=GTK_ICON_SIZE_LARGE_TOOLBAR +gtk-button-images=0 +gtk-menu-images=0 +gtk-enable-event-sounds=1 +gtk-enable-input-feedback-sounds=1 +gtk-xft-antialias=1 +gtk-xft-hinting=1 +gtk-xft-hintstyle="hintmedium" diff --git a/config/.scripts/a.json b/config/.scripts/a.json deleted file mode 100644 index caed897..0000000 --- a/config/.scripts/a.json +++ /dev/null @@ -1,1363 +0,0 @@ -{ - "city": { - "country": "DE", - "coord": { - "lon": 7.0167, - "lat": 51.45 - }, - "name": "Essen", - "id": 2928810 - }, - "list": [ - { - "dt_txt": "2018-06-11 15:00:00", - "sys": { - "pod": "d" - }, - "wind": { - "deg": 43.0013, - "speed": 5.06 - }, - "clouds": { - "all": 32 - }, - "weather": [ - { - "icon": "03d", - "description": "scattered clouds", - "main": "Clouds", - "id": 802 - } - ], - "main": { - "temp_kf": 1.66, - "humidity": 69, - "grnd_level": 1014.71, - "sea_level": 1024.5, - "pressure": 1014.71, - "temp_max": 23.38, - "temp_min": 21.71, - "temp": 23.38 - }, - "dt": 1528729200 - }, - { - "dt_txt": "2018-06-11 18:00:00", - "sys": { - "pod": "d" - }, - "wind": { - "deg": 45.5007, - "speed": 4.66 - }, - "clouds": { - "all": 8 - }, - "weather": [ - { - "icon": "02d", - "description": "clear sky", - "main": "Clear", - "id": 800 - } - ], - "main": { - "temp_kf": 1.25, - "humidity": 65, - "grnd_level": 1014.55, - "sea_level": 1024.38, - "pressure": 1014.55, - "temp_max": 22.13, - "temp_min": 20.89, - "temp": 22.13 - }, - "dt": 1528740000 - }, - { - "dt_txt": "2018-06-11 21:00:00", - "sys": { - "pod": "n" - }, - "wind": { - "deg": 34.0023, - "speed": 4.65 - }, - "clouds": { - "all": 12 - }, - "weather": [ - { - "icon": "02n", - "description": "few clouds", - "main": "Clouds", - "id": 801 - } - ], - "main": { - "temp_kf": 0.83, - "humidity": 64, - "grnd_level": 1014.84, - "sea_level": 1024.75, - "pressure": 1014.84, - "temp_max": 18.85, - "temp_min": 18.02, - "temp": 18.85 - }, - "dt": 1528750800 - }, - { - "dt_txt": "2018-06-12 00:00:00", - "sys": { - "pod": "n" - }, - "wind": { - "deg": 36.0014, - "speed": 4.36 - }, - "clouds": { - "all": 36 - }, - "weather": [ - { - "icon": "03n", - "description": "scattered clouds", - "main": "Clouds", - "id": 802 - } - ], - "main": { - "temp_kf": 0.42, - "humidity": 70, - "grnd_level": 1014.75, - "sea_level": 1024.72, - "pressure": 1014.75, - "temp_max": 16.15, - "temp_min": 15.73, - "temp": 16.15 - }, - "dt": 1528761600 - }, - { - "dt_txt": "2018-06-12 03:00:00", - "sys": { - "pod": "n" - }, - "wind": { - "deg": 38.5005, - "speed": 3.46 - }, - "clouds": { - "all": 24 - }, - "weather": [ - { - "icon": "02n", - "description": "few clouds", - "main": "Clouds", - "id": 801 - } - ], - "main": { - "temp_kf": 0, - "humidity": 78, - "grnd_level": 1014.81, - "sea_level": 1024.78, - "pressure": 1014.81, - "temp_max": 13.74, - "temp_min": 13.74, - "temp": 13.74 - }, - "dt": 1528772400 - }, - { - "dt_txt": "2018-06-12 06:00:00", - "sys": { - "pod": "d" - }, - "wind": { - "deg": 31.0024, - "speed": 3 - }, - "clouds": { - "all": 56 - }, - "weather": [ - { - "icon": "04d", - "description": "broken clouds", - "main": "Clouds", - "id": 803 - } - ], - "main": { - "temp_kf": 0, - "humidity": 87, - "grnd_level": 1015.61, - "sea_level": 1025.52, - "pressure": 1015.61, - "temp_max": 14.31, - "temp_min": 14.31, - "temp": 14.31 - }, - "dt": 1528783200 - }, - { - "dt_txt": "2018-06-12 09:00:00", - "sys": { - "pod": "d" - }, - "wind": { - "deg": 9.00012, - "speed": 3.71 - }, - "clouds": { - "all": 88 - }, - "weather": [ - { - "icon": "04d", - "description": "overcast clouds", - "main": "Clouds", - "id": 804 - } - ], - "main": { - "temp_kf": 0, - "humidity": 83, - "grnd_level": 1015.49, - "sea_level": 1025.37, - "pressure": 1015.49, - "temp_max": 16.14, - "temp_min": 16.14, - "temp": 16.14 - }, - "dt": 1528794000 - }, - { - "dt_txt": "2018-06-12 12:00:00", - "sys": { - "pod": "d" - }, - "wind": { - "deg": 353.505, - "speed": 3.87 - }, - "clouds": { - "all": 92 - }, - "weather": [ - { - "icon": "04d", - "description": "overcast clouds", - "main": "Clouds", - "id": 804 - } - ], - "main": { - "temp_kf": 0, - "humidity": 75, - "grnd_level": 1015.43, - "sea_level": 1025.29, - "pressure": 1015.43, - "temp_max": 17.25, - "temp_min": 17.25, - "temp": 17.25 - }, - "dt": 1528804800 - }, - { - "dt_txt": "2018-06-12 15:00:00", - "sys": { - "pod": "d" - }, - "wind": { - "deg": 351.5, - "speed": 3.57 - }, - "clouds": { - "all": 68 - }, - "weather": [ - { - "icon": "04d", - "description": "broken clouds", - "main": "Clouds", - "id": 803 - } - ], - "main": { - "temp_kf": 0, - "humidity": 75, - "grnd_level": 1014.94, - "sea_level": 1024.87, - "pressure": 1014.94, - "temp_max": 18.81, - "temp_min": 18.81, - "temp": 18.81 - }, - "dt": 1528815600 - }, - { - "dt_txt": "2018-06-12 18:00:00", - "sys": { - "pod": "d" - }, - "wind": { - "deg": 353.501, - "speed": 4.11 - }, - "clouds": { - "all": 80 - }, - "weather": [ - { - "icon": "04d", - "description": "broken clouds", - "main": "Clouds", - "id": 803 - } - ], - "main": { - "temp_kf": 0, - "humidity": 64, - "grnd_level": 1015.18, - "sea_level": 1025.02, - "pressure": 1015.18, - "temp_max": 18.39, - "temp_min": 18.39, - "temp": 18.39 - }, - "dt": 1528826400 - }, - { - "dt_txt": "2018-06-12 21:00:00", - "sys": { - "pod": "n" - }, - "wind": { - "deg": 355.001, - "speed": 4.16 - }, - "clouds": { - "all": 8 - }, - "weather": [ - { - "icon": "02n", - "description": "clear sky", - "main": "Clear", - "id": 800 - } - ], - "main": { - "temp_kf": 0, - "humidity": 62, - "grnd_level": 1016.1, - "sea_level": 1026.1, - "pressure": 1016.1, - "temp_max": 15.93, - "temp_min": 15.93, - "temp": 15.93 - }, - "dt": 1528837200 - }, - { - "dt_txt": "2018-06-13 00:00:00", - "sys": { - "pod": "n" - }, - "wind": { - "deg": 350.007, - "speed": 3.76 - }, - "clouds": { - "all": 0 - }, - "weather": [ - { - "icon": "01n", - "description": "clear sky", - "main": "Clear", - "id": 800 - } - ], - "main": { - "temp_kf": 0, - "humidity": 70, - "grnd_level": 1017, - "sea_level": 1027.03, - "pressure": 1017, - "temp_max": 12.83, - "temp_min": 12.83, - "temp": 12.83 - }, - "dt": 1528848000 - }, - { - "dt_txt": "2018-06-13 03:00:00", - "sys": { - "pod": "n" - }, - "wind": { - "deg": 331.004, - "speed": 2.93 - }, - "clouds": { - "all": 12 - }, - "weather": [ - { - "icon": "02n", - "description": "few clouds", - "main": "Clouds", - "id": 801 - } - ], - "main": { - "temp_kf": 0, - "humidity": 86, - "grnd_level": 1017.47, - "sea_level": 1027.57, - "pressure": 1017.47, - "temp_max": 10.85, - "temp_min": 10.85, - "temp": 10.85 - }, - "dt": 1528858800 - }, - { - "dt_txt": "2018-06-13 06:00:00", - "sys": { - "pod": "d" - }, - "rain": { - "3h": 0.03 - }, - "wind": { - "deg": 321.001, - "speed": 3.37 - }, - "clouds": { - "all": 76 - }, - "weather": [ - { - "icon": "10d", - "description": "light rain", - "main": "Rain", - "id": 500 - } - ], - "main": { - "temp_kf": 0, - "humidity": 87, - "grnd_level": 1017.85, - "sea_level": 1027.93, - "pressure": 1017.85, - "temp_max": 12.73, - "temp_min": 12.73, - "temp": 12.73 - }, - "dt": 1528869600 - }, - { - "dt_txt": "2018-06-13 09:00:00", - "sys": { - "pod": "d" - }, - "rain": { - "3h": 0.02 - }, - "wind": { - "deg": 332.502, - "speed": 4.27 - }, - "clouds": { - "all": 48 - }, - "weather": [ - { - "icon": "10d", - "description": "light rain", - "main": "Rain", - "id": 500 - } - ], - "main": { - "temp_kf": 0, - "humidity": 80, - "grnd_level": 1018.08, - "sea_level": 1027.98, - "pressure": 1018.08, - "temp_max": 15.16, - "temp_min": 15.16, - "temp": 15.16 - }, - "dt": 1528880400 - }, - { - "dt_txt": "2018-06-13 12:00:00", - "sys": { - "pod": "d" - }, - "rain": { - }, - "wind": { - "deg": 323.503, - "speed": 4.37 - }, - "clouds": { - "all": 36 - }, - "weather": [ - { - "icon": "03d", - "description": "scattered clouds", - "main": "Clouds", - "id": 802 - } - ], - "main": { - "temp_kf": 0, - "humidity": 77, - "grnd_level": 1017.79, - "sea_level": 1027.73, - "pressure": 1017.79, - "temp_max": 17.55, - "temp_min": 17.55, - "temp": 17.55 - }, - "dt": 1528891200 - }, - { - "dt_txt": "2018-06-13 15:00:00", - "sys": { - "pod": "d" - }, - "rain": { - }, - "wind": { - "deg": 320, - "speed": 4.12 - }, - "clouds": { - "all": 20 - }, - "weather": [ - { - "icon": "02d", - "description": "few clouds", - "main": "Clouds", - "id": 801 - } - ], - "main": { - "temp_kf": 0, - "humidity": 73, - "grnd_level": 1017.28, - "sea_level": 1027.17, - "pressure": 1017.28, - "temp_max": 18.74, - "temp_min": 18.74, - "temp": 18.74 - }, - "dt": 1528902000 - }, - { - "dt_txt": "2018-06-13 18:00:00", - "sys": { - "pod": "d" - }, - "rain": { - }, - "wind": { - "deg": 322.012, - "speed": 3.32 - }, - "clouds": { - "all": 44 - }, - "weather": [ - { - "icon": "03d", - "description": "scattered clouds", - "main": "Clouds", - "id": 802 - } - ], - "main": { - "temp_kf": 0, - "humidity": 64, - "grnd_level": 1017.24, - "sea_level": 1027.23, - "pressure": 1017.24, - "temp_max": 18.4, - "temp_min": 18.4, - "temp": 18.4 - }, - "dt": 1528912800 - }, - { - "dt_txt": "2018-06-13 21:00:00", - "sys": { - "pod": "n" - }, - "rain": { - }, - "wind": { - "deg": 308.501, - "speed": 3.01 - }, - "clouds": { - "all": 8 - }, - "weather": [ - { - "icon": "02n", - "description": "clear sky", - "main": "Clear", - "id": 800 - } - ], - "main": { - "temp_kf": 0, - "humidity": 62, - "grnd_level": 1018, - "sea_level": 1027.95, - "pressure": 1018, - "temp_max": 15.04, - "temp_min": 15.04, - "temp": 15.04 - }, - "dt": 1528923600 - }, - { - "dt_txt": "2018-06-14 00:00:00", - "sys": { - "pod": "n" - }, - "rain": { - }, - "wind": { - "deg": 296.002, - "speed": 1.28 - }, - "clouds": { - "all": 0 - }, - "weather": [ - { - "icon": "01n", - "description": "clear sky", - "main": "Clear", - "id": 800 - } - ], - "main": { - "temp_kf": 0, - "humidity": 71, - "grnd_level": 1017.97, - "sea_level": 1028, - "pressure": 1017.97, - "temp_max": 11.4, - "temp_min": 11.4, - "temp": 11.4 - }, - "dt": 1528934400 - }, - { - "dt_txt": "2018-06-14 03:00:00", - "sys": { - "pod": "n" - }, - "rain": { - }, - "wind": { - "deg": 198.001, - "speed": 1.26 - }, - "clouds": { - "all": 0 - }, - "weather": [ - { - "icon": "01n", - "description": "clear sky", - "main": "Clear", - "id": 800 - } - ], - "main": { - "temp_kf": 0, - "humidity": 77, - "grnd_level": 1017.32, - "sea_level": 1027.43, - "pressure": 1017.32, - "temp_max": 9.59, - "temp_min": 9.59, - "temp": 9.59 - }, - "dt": 1528945200 - }, - { - "dt_txt": "2018-06-14 06:00:00", - "sys": { - "pod": "d" - }, - "rain": { - }, - "wind": { - "deg": 204.503, - "speed": 2.46 - }, - "clouds": { - "all": 20 - }, - "weather": [ - { - "icon": "02d", - "description": "few clouds", - "main": "Clouds", - "id": 801 - } - ], - "main": { - "temp_kf": 0, - "humidity": 77, - "grnd_level": 1016.95, - "sea_level": 1026.96, - "pressure": 1016.95, - "temp_max": 13.93, - "temp_min": 13.93, - "temp": 13.93 - }, - "dt": 1528956000 - }, - { - "dt_txt": "2018-06-14 09:00:00", - "sys": { - "pod": "d" - }, - "rain": { - }, - "wind": { - "deg": 211.508, - "speed": 4.02 - }, - "clouds": { - "all": 36 - }, - "weather": [ - { - "icon": "03d", - "description": "scattered clouds", - "main": "Clouds", - "id": 802 - } - ], - "main": { - "temp_kf": 0, - "humidity": 74, - "grnd_level": 1016.21, - "sea_level": 1026.05, - "pressure": 1016.21, - "temp_max": 18.16, - "temp_min": 18.16, - "temp": 18.16 - }, - "dt": 1528966800 - }, - { - "dt_txt": "2018-06-14 12:00:00", - "sys": { - "pod": "d" - }, - "rain": { - }, - "wind": { - "deg": 222.001, - "speed": 5.48 - }, - "clouds": { - "all": 92 - }, - "weather": [ - { - "icon": "04d", - "description": "overcast clouds", - "main": "Clouds", - "id": 804 - } - ], - "main": { - "temp_kf": 0, - "humidity": 67, - "grnd_level": 1015.21, - "sea_level": 1025.03, - "pressure": 1015.21, - "temp_max": 19.04, - "temp_min": 19.04, - "temp": 19.04 - }, - "dt": 1528977600 - }, - { - "dt_txt": "2018-06-14 15:00:00", - "sys": { - "pod": "d" - }, - "rain": { - "3h": 0.07 - }, - "wind": { - "deg": 240.511, - "speed": 5.65 - }, - "clouds": { - "all": 92 - }, - "weather": [ - { - "icon": "10d", - "description": "light rain", - "main": "Rain", - "id": 500 - } - ], - "main": { - "temp_kf": 0, - "humidity": 65, - "grnd_level": 1014.97, - "sea_level": 1024.89, - "pressure": 1014.97, - "temp_max": 18.25, - "temp_min": 18.25, - "temp": 18.25 - }, - "dt": 1528988400 - }, - { - "dt_txt": "2018-06-14 18:00:00", - "sys": { - "pod": "d" - }, - "rain": { - "3h": 0.99 - }, - "wind": { - "deg": 214.502, - "speed": 4.71 - }, - "clouds": { - "all": 92 - }, - "weather": [ - { - "icon": "10d", - "description": "light rain", - "main": "Rain", - "id": 500 - } - ], - "main": { - "temp_kf": 0, - "humidity": 90, - "grnd_level": 1015.22, - "sea_level": 1025.05, - "pressure": 1015.22, - "temp_max": 15.42, - "temp_min": 15.42, - "temp": 15.42 - }, - "dt": 1528999200 - }, - { - "dt_txt": "2018-06-14 21:00:00", - "sys": { - "pod": "n" - }, - "rain": { - "3h": 0.98 - }, - "wind": { - "deg": 208.502, - "speed": 5.01 - }, - "clouds": { - "all": 92 - }, - "weather": [ - { - "icon": "10n", - "description": "light rain", - "main": "Rain", - "id": 500 - } - ], - "main": { - "temp_kf": 0, - "humidity": 95, - "grnd_level": 1015.08, - "sea_level": 1025.01, - "pressure": 1015.08, - "temp_max": 14.65, - "temp_min": 14.65, - "temp": 14.65 - }, - "dt": 1529010000 - }, - { - "dt_txt": "2018-06-15 00:00:00", - "sys": { - "pod": "n" - }, - "rain": { - "3h": 0.92 - }, - "wind": { - "deg": 227.507, - "speed": 4.07 - }, - "clouds": { - "all": 92 - }, - "weather": [ - { - "icon": "10n", - "description": "light rain", - "main": "Rain", - "id": 500 - } - ], - "main": { - "temp_kf": 0, - "humidity": 99, - "grnd_level": 1014.74, - "sea_level": 1024.7, - "pressure": 1014.74, - "temp_max": 14.73, - "temp_min": 14.73, - "temp": 14.73 - }, - "dt": 1529020800 - }, - { - "dt_txt": "2018-06-15 03:00:00", - "sys": { - "pod": "n" - }, - "rain": { - "3h": 0.48 - }, - "wind": { - "deg": 244.507, - "speed": 3.32 - }, - "clouds": { - "all": 92 - }, - "weather": [ - { - "icon": "10n", - "description": "light rain", - "main": "Rain", - "id": 500 - } - ], - "main": { - "temp_kf": 0, - "humidity": 99, - "grnd_level": 1014.5, - "sea_level": 1024.39, - "pressure": 1014.5, - "temp_max": 14.86, - "temp_min": 14.86, - "temp": 14.86 - }, - "dt": 1529031600 - }, - { - "dt_txt": "2018-06-15 06:00:00", - "sys": { - "pod": "d" - }, - "rain": { - "3h": 1.8225 - }, - "wind": { - "deg": 249.503, - "speed": 2.27 - }, - "clouds": { - "all": 92 - }, - "weather": [ - { - "icon": "10d", - "description": "light rain", - "main": "Rain", - "id": 500 - } - ], - "main": { - "temp_kf": 0, - "humidity": 100, - "grnd_level": 1014.78, - "sea_level": 1024.76, - "pressure": 1014.78, - "temp_max": 15.12, - "temp_min": 15.12, - "temp": 15.12 - }, - "dt": 1529042400 - }, - { - "dt_txt": "2018-06-15 09:00:00", - "sys": { - "pod": "d" - }, - "rain": { - "3h": 0.3 - }, - "wind": { - "deg": 258.502, - "speed": 2.56 - }, - "clouds": { - "all": 88 - }, - "weather": [ - { - "icon": "10d", - "description": "light rain", - "main": "Rain", - "id": 500 - } - ], - "main": { - "temp_kf": 0, - "humidity": 100, - "grnd_level": 1015.61, - "sea_level": 1025.52, - "pressure": 1015.61, - "temp_max": 16.63, - "temp_min": 16.63, - "temp": 16.63 - }, - "dt": 1529053200 - }, - { - "dt_txt": "2018-06-15 12:00:00", - "sys": { - "pod": "d" - }, - "rain": { - "3h": 0.0125 - }, - "wind": { - "deg": 248.5, - "speed": 3.22 - }, - "clouds": { - "all": 20 - }, - "weather": [ - { - "icon": "10d", - "description": "light rain", - "main": "Rain", - "id": 500 - } - ], - "main": { - "temp_kf": 0, - "humidity": 100, - "grnd_level": 1015.96, - "sea_level": 1025.83, - "pressure": 1015.96, - "temp_max": 18.38, - "temp_min": 18.38, - "temp": 18.38 - }, - "dt": 1529064000 - }, - { - "dt_txt": "2018-06-15 15:00:00", - "sys": { - "pod": "d" - }, - "rain": { - }, - "wind": { - "deg": 257.504, - "speed": 3.57 - }, - "clouds": { - "all": 68 - }, - "weather": [ - { - "icon": "04d", - "description": "broken clouds", - "main": "Clouds", - "id": 803 - } - ], - "main": { - "temp_kf": 0, - "humidity": 85, - "grnd_level": 1015.71, - "sea_level": 1025.55, - "pressure": 1015.71, - "temp_max": 19.42, - "temp_min": 19.42, - "temp": 19.42 - }, - "dt": 1529074800 - }, - { - "dt_txt": "2018-06-15 18:00:00", - "sys": { - "pod": "d" - }, - "rain": { - }, - "wind": { - "deg": 272.502, - "speed": 2.95 - }, - "clouds": { - "all": 68 - }, - "weather": [ - { - "icon": "04d", - "description": "broken clouds", - "main": "Clouds", - "id": 803 - } - ], - "main": { - "temp_kf": 0, - "humidity": 69, - "grnd_level": 1015.61, - "sea_level": 1025.53, - "pressure": 1015.61, - "temp_max": 18.9, - "temp_min": 18.9, - "temp": 18.9 - }, - "dt": 1529085600 - }, - { - "dt_txt": "2018-06-15 21:00:00", - "sys": { - "pod": "n" - }, - "rain": { - }, - "wind": { - "deg": 315, - "speed": 2.46 - }, - "clouds": { - "all": 56 - }, - "weather": [ - { - "icon": "04n", - "description": "broken clouds", - "main": "Clouds", - "id": 803 - } - ], - "main": { - "temp_kf": 0, - "humidity": 70, - "grnd_level": 1015.96, - "sea_level": 1025.88, - "pressure": 1015.96, - "temp_max": 16.16, - "temp_min": 16.16, - "temp": 16.16 - }, - "dt": 1529096400 - }, - { - "dt_txt": "2018-06-16 00:00:00", - "sys": { - "pod": "n" - }, - "rain": { - }, - "wind": { - "deg": 351.504, - "speed": 1.47 - }, - "clouds": { - "all": 48 - }, - "weather": [ - { - "icon": "03n", - "description": "scattered clouds", - "main": "Clouds", - "id": 802 - } - ], - "main": { - "temp_kf": 0, - "humidity": 87, - "grnd_level": 1015.47, - "sea_level": 1025.43, - "pressure": 1015.47, - "temp_max": 13.74, - "temp_min": 13.74, - "temp": 13.74 - }, - "dt": 1529107200 - }, - { - "dt_txt": "2018-06-16 03:00:00", - "sys": { - "pod": "n" - }, - "rain": { - "3h": 0.2 - }, - "wind": { - "deg": 192.503, - "speed": 0.32 - }, - "clouds": { - "all": 92 - }, - "weather": [ - { - "icon": "10n", - "description": "light rain", - "main": "Rain", - "id": 500 - } - ], - "main": { - "temp_kf": 0, - "humidity": 94, - "grnd_level": 1014.76, - "sea_level": 1024.74, - "pressure": 1014.76, - "temp_max": 12.92, - "temp_min": 12.92, - "temp": 12.92 - }, - "dt": 1529118000 - }, - { - "dt_txt": "2018-06-16 06:00:00", - "sys": { - "pod": "d" - }, - "rain": { - "3h": 2.05 - }, - "wind": { - "deg": 326.502, - "speed": 1.95 - }, - "clouds": { - "all": 92 - }, - "weather": [ - { - "icon": "10d", - "description": "light rain", - "main": "Rain", - "id": 500 - } - ], - "main": { - "temp_kf": 0, - "humidity": 100, - "grnd_level": 1014.93, - "sea_level": 1024.82, - "pressure": 1014.93, - "temp_max": 13.51, - "temp_min": 13.51, - "temp": 13.51 - }, - "dt": 1529128800 - }, - { - "dt_txt": "2018-06-16 09:00:00", - "sys": { - "pod": "d" - }, - "rain": { - "3h": 1.125 - }, - "wind": { - "deg": 18.0005, - "speed": 2.16 - }, - "clouds": { - "all": 92 - }, - "weather": [ - { - "icon": "10d", - "description": "light rain", - "main": "Rain", - "id": 500 - } - ], - "main": { - "temp_kf": 0, - "humidity": 100, - "grnd_level": 1015.01, - "sea_level": 1024.99, - "pressure": 1015.01, - "temp_max": 14.7, - "temp_min": 14.7, - "temp": 14.7 - }, - "dt": 1529139600 - }, - { - "dt_txt": "2018-06-16 12:00:00", - "sys": { - "pod": "d" - }, - "rain": { - }, - "wind": { - "deg": 38.0005, - "speed": 1.74 - }, - "clouds": { - "all": 80 - }, - "weather": [ - { - "icon": "04d", - "description": "broken clouds", - "main": "Clouds", - "id": 803 - } - ], - "main": { - "temp_kf": 0, - "humidity": 100, - "grnd_level": 1015.43, - "sea_level": 1025.31, - "pressure": 1015.43, - "temp_max": 16.28, - "temp_min": 16.28, - "temp": 16.28 - }, - "dt": 1529150400 - } - ], - "cnt": 40, - "message": 0.007, - "cod": "200" -} diff --git a/config/.scripts/i3lock.py b/config/.scripts/i3lock.py index d2716d4..1f71d5e 100755 --- a/config/.scripts/i3lock.py +++ b/config/.scripts/i3lock.py @@ -6,7 +6,7 @@ from PIL import Image def screenshot(): ss_time = time.time() - os.system('scrot /tmp/i3lock.png') + os.system('maim -f png /tmp/i3lock.png') print('Screenshot: {}'.format(time.time() - ss_time)) diff --git a/config/.scripts/startup.sh b/config/.scripts/startup.sh deleted file mode 100755 index 6b640a7..0000000 --- a/config/.scripts/startup.sh +++ /dev/null @@ -1,3 +0,0 @@ -#!/bin/zsh - -setxkbmap us,de diff --git a/config/.scripts/weather.py b/config/.scripts/weather.py deleted file mode 100644 index 347fcbd..0000000 --- a/config/.scripts/weather.py +++ /dev/null @@ -1,68 +0,0 @@ -import sys -from os import stat -import time -from datetime import datetime - -import requests -import json - - -def get_info(): - 'Gather the City ID and API Key' - # First line of the API file in the same directory as this file is the city ID - # Second line of the API file in the same directory as this file is the openweathermap-API key - try: - with open('API', 'r') as f: - city_id = f.readline().strip('\n') - api_key = f.readline().strip('\n') - if city_id == '' or api_key == '': - raise FileNotFoundError - return [city_id, api_key] - except FileNotFoundError: - print("Create a file called 'API' and put your city id in the 1st and API-key in the 2nd line.") - - -def cache_weather(): - 'Cache the weatherinformation as json' - city_id, api_key = get_info() - url = 'http://api.openweathermap.org/data/2.5/forecast?id={}&APPID={}&units=metric'.format(city_id, api_key) - ob_weather = requests.get(url).text - with open('weather_cache.json','w') as f: - json.dump(ob_weather, f) - - -# Isn't needed at the moment, might change later -def conv_to_epoch(iso_time): - 'Converts the dt_txt to epoch time(Or any ISO formatted timestamp)' - dt_obj = datetime.strptime(iso_time, "%Y-%m-%d %H:%M:%S") - return int(dt_obj.strftime("%s")) - - -def main(): - # Only request new data, when data is older than 12h - # if (os.path.isfile('weather_chache.json')): - # if (time.time()-1800000>os.stat('weather_cache.json').st_mtime): - # cache_weather() - # else: - # cache_weather() - # Load cached file as dictionary - weather = json.loads(json.load(open('weather_cache.json'))) - - if(weather['cod']=='200'): - lowest_temp = sys.maxsize - lowest_time = '' - # Only check the next 24h - for i in weather['list']: - print(i['dt_txt']) - print(i['main']['temp']) - print(i['weather']['main']) - print(i['dt_txt']) - print('Time: {} \nTemp: {}'.format(i['dt_txt'], i['main']['temp'])) - print('Time: {} \nDescription: {}'.format('\t', i['weather']['main'])) - - - else: - print("Error.\nDo you have a working internet connection?\nIs your API Key correct?\nIs your city ID correct?") - -if __name__ == '__main__': - print(main()) diff --git a/config/.scripts/weather_cache.json b/config/.scripts/weather_cache.json deleted file mode 100644 index fe3122c..0000000 --- a/config/.scripts/weather_cache.json +++ /dev/null @@ -1 +0,0 @@ -"{\"cod\":\"200\",\"message\":0.007,\"cnt\":40,\"list\":[{\"dt\":1528729200,\"main\":{\"temp\":23.38,\"temp_min\":21.71,\"temp_max\":23.38,\"pressure\":1014.71,\"sea_level\":1024.5,\"grnd_level\":1014.71,\"humidity\":69,\"temp_kf\":1.66},\"weather\":[{\"id\":802,\"main\":\"Clouds\",\"description\":\"scattered clouds\",\"icon\":\"03d\"}],\"clouds\":{\"all\":32},\"wind\":{\"speed\":5.06,\"deg\":43.0013},\"sys\":{\"pod\":\"d\"},\"dt_txt\":\"2018-06-11 15:00:00\"},{\"dt\":1528740000,\"main\":{\"temp\":22.13,\"temp_min\":20.89,\"temp_max\":22.13,\"pressure\":1014.55,\"sea_level\":1024.38,\"grnd_level\":1014.55,\"humidity\":65,\"temp_kf\":1.25},\"weather\":[{\"id\":800,\"main\":\"Clear\",\"description\":\"clear sky\",\"icon\":\"02d\"}],\"clouds\":{\"all\":8},\"wind\":{\"speed\":4.66,\"deg\":45.5007},\"sys\":{\"pod\":\"d\"},\"dt_txt\":\"2018-06-11 18:00:00\"},{\"dt\":1528750800,\"main\":{\"temp\":18.85,\"temp_min\":18.02,\"temp_max\":18.85,\"pressure\":1014.84,\"sea_level\":1024.75,\"grnd_level\":1014.84,\"humidity\":64,\"temp_kf\":0.83},\"weather\":[{\"id\":801,\"main\":\"Clouds\",\"description\":\"few clouds\",\"icon\":\"02n\"}],\"clouds\":{\"all\":12},\"wind\":{\"speed\":4.65,\"deg\":34.0023},\"sys\":{\"pod\":\"n\"},\"dt_txt\":\"2018-06-11 21:00:00\"},{\"dt\":1528761600,\"main\":{\"temp\":16.15,\"temp_min\":15.73,\"temp_max\":16.15,\"pressure\":1014.75,\"sea_level\":1024.72,\"grnd_level\":1014.75,\"humidity\":70,\"temp_kf\":0.42},\"weather\":[{\"id\":802,\"main\":\"Clouds\",\"description\":\"scattered clouds\",\"icon\":\"03n\"}],\"clouds\":{\"all\":36},\"wind\":{\"speed\":4.36,\"deg\":36.0014},\"sys\":{\"pod\":\"n\"},\"dt_txt\":\"2018-06-12 00:00:00\"},{\"dt\":1528772400,\"main\":{\"temp\":13.74,\"temp_min\":13.74,\"temp_max\":13.74,\"pressure\":1014.81,\"sea_level\":1024.78,\"grnd_level\":1014.81,\"humidity\":78,\"temp_kf\":0},\"weather\":[{\"id\":801,\"main\":\"Clouds\",\"description\":\"few clouds\",\"icon\":\"02n\"}],\"clouds\":{\"all\":24},\"wind\":{\"speed\":3.46,\"deg\":38.5005},\"sys\":{\"pod\":\"n\"},\"dt_txt\":\"2018-06-12 03:00:00\"},{\"dt\":1528783200,\"main\":{\"temp\":14.31,\"temp_min\":14.31,\"temp_max\":14.31,\"pressure\":1015.61,\"sea_level\":1025.52,\"grnd_level\":1015.61,\"humidity\":87,\"temp_kf\":0},\"weather\":[{\"id\":803,\"main\":\"Clouds\",\"description\":\"broken clouds\",\"icon\":\"04d\"}],\"clouds\":{\"all\":56},\"wind\":{\"speed\":3,\"deg\":31.0024},\"sys\":{\"pod\":\"d\"},\"dt_txt\":\"2018-06-12 06:00:00\"},{\"dt\":1528794000,\"main\":{\"temp\":16.14,\"temp_min\":16.14,\"temp_max\":16.14,\"pressure\":1015.49,\"sea_level\":1025.37,\"grnd_level\":1015.49,\"humidity\":83,\"temp_kf\":0},\"weather\":[{\"id\":804,\"main\":\"Clouds\",\"description\":\"overcast clouds\",\"icon\":\"04d\"}],\"clouds\":{\"all\":88},\"wind\":{\"speed\":3.71,\"deg\":9.00012},\"sys\":{\"pod\":\"d\"},\"dt_txt\":\"2018-06-12 09:00:00\"},{\"dt\":1528804800,\"main\":{\"temp\":17.25,\"temp_min\":17.25,\"temp_max\":17.25,\"pressure\":1015.43,\"sea_level\":1025.29,\"grnd_level\":1015.43,\"humidity\":75,\"temp_kf\":0},\"weather\":[{\"id\":804,\"main\":\"Clouds\",\"description\":\"overcast clouds\",\"icon\":\"04d\"}],\"clouds\":{\"all\":92},\"wind\":{\"speed\":3.87,\"deg\":353.505},\"sys\":{\"pod\":\"d\"},\"dt_txt\":\"2018-06-12 12:00:00\"},{\"dt\":1528815600,\"main\":{\"temp\":18.81,\"temp_min\":18.81,\"temp_max\":18.81,\"pressure\":1014.94,\"sea_level\":1024.87,\"grnd_level\":1014.94,\"humidity\":75,\"temp_kf\":0},\"weather\":[{\"id\":803,\"main\":\"Clouds\",\"description\":\"broken clouds\",\"icon\":\"04d\"}],\"clouds\":{\"all\":68},\"wind\":{\"speed\":3.57,\"deg\":351.5},\"sys\":{\"pod\":\"d\"},\"dt_txt\":\"2018-06-12 15:00:00\"},{\"dt\":1528826400,\"main\":{\"temp\":18.39,\"temp_min\":18.39,\"temp_max\":18.39,\"pressure\":1015.18,\"sea_level\":1025.02,\"grnd_level\":1015.18,\"humidity\":64,\"temp_kf\":0},\"weather\":[{\"id\":803,\"main\":\"Clouds\",\"description\":\"broken clouds\",\"icon\":\"04d\"}],\"clouds\":{\"all\":80},\"wind\":{\"speed\":4.11,\"deg\":353.501},\"sys\":{\"pod\":\"d\"},\"dt_txt\":\"2018-06-12 18:00:00\"},{\"dt\":1528837200,\"main\":{\"temp\":15.93,\"temp_min\":15.93,\"temp_max\":15.93,\"pressure\":1016.1,\"sea_level\":1026.1,\"grnd_level\":1016.1,\"humidity\":62,\"temp_kf\":0},\"weather\":[{\"id\":800,\"main\":\"Clear\",\"description\":\"clear sky\",\"icon\":\"02n\"}],\"clouds\":{\"all\":8},\"wind\":{\"speed\":4.16,\"deg\":355.001},\"sys\":{\"pod\":\"n\"},\"dt_txt\":\"2018-06-12 21:00:00\"},{\"dt\":1528848000,\"main\":{\"temp\":12.83,\"temp_min\":12.83,\"temp_max\":12.83,\"pressure\":1017,\"sea_level\":1027.03,\"grnd_level\":1017,\"humidity\":70,\"temp_kf\":0},\"weather\":[{\"id\":800,\"main\":\"Clear\",\"description\":\"clear sky\",\"icon\":\"01n\"}],\"clouds\":{\"all\":0},\"wind\":{\"speed\":3.76,\"deg\":350.007},\"sys\":{\"pod\":\"n\"},\"dt_txt\":\"2018-06-13 00:00:00\"},{\"dt\":1528858800,\"main\":{\"temp\":10.85,\"temp_min\":10.85,\"temp_max\":10.85,\"pressure\":1017.47,\"sea_level\":1027.57,\"grnd_level\":1017.47,\"humidity\":86,\"temp_kf\":0},\"weather\":[{\"id\":801,\"main\":\"Clouds\",\"description\":\"few clouds\",\"icon\":\"02n\"}],\"clouds\":{\"all\":12},\"wind\":{\"speed\":2.93,\"deg\":331.004},\"sys\":{\"pod\":\"n\"},\"dt_txt\":\"2018-06-13 03:00:00\"},{\"dt\":1528869600,\"main\":{\"temp\":12.73,\"temp_min\":12.73,\"temp_max\":12.73,\"pressure\":1017.85,\"sea_level\":1027.93,\"grnd_level\":1017.85,\"humidity\":87,\"temp_kf\":0},\"weather\":[{\"id\":500,\"main\":\"Rain\",\"description\":\"light rain\",\"icon\":\"10d\"}],\"clouds\":{\"all\":76},\"wind\":{\"speed\":3.37,\"deg\":321.001},\"rain\":{\"3h\":0.03},\"sys\":{\"pod\":\"d\"},\"dt_txt\":\"2018-06-13 06:00:00\"},{\"dt\":1528880400,\"main\":{\"temp\":15.16,\"temp_min\":15.16,\"temp_max\":15.16,\"pressure\":1018.08,\"sea_level\":1027.98,\"grnd_level\":1018.08,\"humidity\":80,\"temp_kf\":0},\"weather\":[{\"id\":500,\"main\":\"Rain\",\"description\":\"light rain\",\"icon\":\"10d\"}],\"clouds\":{\"all\":48},\"wind\":{\"speed\":4.27,\"deg\":332.502},\"rain\":{\"3h\":0.02},\"sys\":{\"pod\":\"d\"},\"dt_txt\":\"2018-06-13 09:00:00\"},{\"dt\":1528891200,\"main\":{\"temp\":17.55,\"temp_min\":17.55,\"temp_max\":17.55,\"pressure\":1017.79,\"sea_level\":1027.73,\"grnd_level\":1017.79,\"humidity\":77,\"temp_kf\":0},\"weather\":[{\"id\":802,\"main\":\"Clouds\",\"description\":\"scattered clouds\",\"icon\":\"03d\"}],\"clouds\":{\"all\":36},\"wind\":{\"speed\":4.37,\"deg\":323.503},\"rain\":{},\"sys\":{\"pod\":\"d\"},\"dt_txt\":\"2018-06-13 12:00:00\"},{\"dt\":1528902000,\"main\":{\"temp\":18.74,\"temp_min\":18.74,\"temp_max\":18.74,\"pressure\":1017.28,\"sea_level\":1027.17,\"grnd_level\":1017.28,\"humidity\":73,\"temp_kf\":0},\"weather\":[{\"id\":801,\"main\":\"Clouds\",\"description\":\"few clouds\",\"icon\":\"02d\"}],\"clouds\":{\"all\":20},\"wind\":{\"speed\":4.12,\"deg\":320},\"rain\":{},\"sys\":{\"pod\":\"d\"},\"dt_txt\":\"2018-06-13 15:00:00\"},{\"dt\":1528912800,\"main\":{\"temp\":18.4,\"temp_min\":18.4,\"temp_max\":18.4,\"pressure\":1017.24,\"sea_level\":1027.23,\"grnd_level\":1017.24,\"humidity\":64,\"temp_kf\":0},\"weather\":[{\"id\":802,\"main\":\"Clouds\",\"description\":\"scattered clouds\",\"icon\":\"03d\"}],\"clouds\":{\"all\":44},\"wind\":{\"speed\":3.32,\"deg\":322.012},\"rain\":{},\"sys\":{\"pod\":\"d\"},\"dt_txt\":\"2018-06-13 18:00:00\"},{\"dt\":1528923600,\"main\":{\"temp\":15.04,\"temp_min\":15.04,\"temp_max\":15.04,\"pressure\":1018,\"sea_level\":1027.95,\"grnd_level\":1018,\"humidity\":62,\"temp_kf\":0},\"weather\":[{\"id\":800,\"main\":\"Clear\",\"description\":\"clear sky\",\"icon\":\"02n\"}],\"clouds\":{\"all\":8},\"wind\":{\"speed\":3.01,\"deg\":308.501},\"rain\":{},\"sys\":{\"pod\":\"n\"},\"dt_txt\":\"2018-06-13 21:00:00\"},{\"dt\":1528934400,\"main\":{\"temp\":11.4,\"temp_min\":11.4,\"temp_max\":11.4,\"pressure\":1017.97,\"sea_level\":1028,\"grnd_level\":1017.97,\"humidity\":71,\"temp_kf\":0},\"weather\":[{\"id\":800,\"main\":\"Clear\",\"description\":\"clear sky\",\"icon\":\"01n\"}],\"clouds\":{\"all\":0},\"wind\":{\"speed\":1.28,\"deg\":296.002},\"rain\":{},\"sys\":{\"pod\":\"n\"},\"dt_txt\":\"2018-06-14 00:00:00\"},{\"dt\":1528945200,\"main\":{\"temp\":9.59,\"temp_min\":9.59,\"temp_max\":9.59,\"pressure\":1017.32,\"sea_level\":1027.43,\"grnd_level\":1017.32,\"humidity\":77,\"temp_kf\":0},\"weather\":[{\"id\":800,\"main\":\"Clear\",\"description\":\"clear sky\",\"icon\":\"01n\"}],\"clouds\":{\"all\":0},\"wind\":{\"speed\":1.26,\"deg\":198.001},\"rain\":{},\"sys\":{\"pod\":\"n\"},\"dt_txt\":\"2018-06-14 03:00:00\"},{\"dt\":1528956000,\"main\":{\"temp\":13.93,\"temp_min\":13.93,\"temp_max\":13.93,\"pressure\":1016.95,\"sea_level\":1026.96,\"grnd_level\":1016.95,\"humidity\":77,\"temp_kf\":0},\"weather\":[{\"id\":801,\"main\":\"Clouds\",\"description\":\"few clouds\",\"icon\":\"02d\"}],\"clouds\":{\"all\":20},\"wind\":{\"speed\":2.46,\"deg\":204.503},\"rain\":{},\"sys\":{\"pod\":\"d\"},\"dt_txt\":\"2018-06-14 06:00:00\"},{\"dt\":1528966800,\"main\":{\"temp\":18.16,\"temp_min\":18.16,\"temp_max\":18.16,\"pressure\":1016.21,\"sea_level\":1026.05,\"grnd_level\":1016.21,\"humidity\":74,\"temp_kf\":0},\"weather\":[{\"id\":802,\"main\":\"Clouds\",\"description\":\"scattered clouds\",\"icon\":\"03d\"}],\"clouds\":{\"all\":36},\"wind\":{\"speed\":4.02,\"deg\":211.508},\"rain\":{},\"sys\":{\"pod\":\"d\"},\"dt_txt\":\"2018-06-14 09:00:00\"},{\"dt\":1528977600,\"main\":{\"temp\":19.04,\"temp_min\":19.04,\"temp_max\":19.04,\"pressure\":1015.21,\"sea_level\":1025.03,\"grnd_level\":1015.21,\"humidity\":67,\"temp_kf\":0},\"weather\":[{\"id\":804,\"main\":\"Clouds\",\"description\":\"overcast clouds\",\"icon\":\"04d\"}],\"clouds\":{\"all\":92},\"wind\":{\"speed\":5.48,\"deg\":222.001},\"rain\":{},\"sys\":{\"pod\":\"d\"},\"dt_txt\":\"2018-06-14 12:00:00\"},{\"dt\":1528988400,\"main\":{\"temp\":18.25,\"temp_min\":18.25,\"temp_max\":18.25,\"pressure\":1014.97,\"sea_level\":1024.89,\"grnd_level\":1014.97,\"humidity\":65,\"temp_kf\":0},\"weather\":[{\"id\":500,\"main\":\"Rain\",\"description\":\"light rain\",\"icon\":\"10d\"}],\"clouds\":{\"all\":92},\"wind\":{\"speed\":5.65,\"deg\":240.511},\"rain\":{\"3h\":0.07},\"sys\":{\"pod\":\"d\"},\"dt_txt\":\"2018-06-14 15:00:00\"},{\"dt\":1528999200,\"main\":{\"temp\":15.42,\"temp_min\":15.42,\"temp_max\":15.42,\"pressure\":1015.22,\"sea_level\":1025.05,\"grnd_level\":1015.22,\"humidity\":90,\"temp_kf\":0},\"weather\":[{\"id\":500,\"main\":\"Rain\",\"description\":\"light rain\",\"icon\":\"10d\"}],\"clouds\":{\"all\":92},\"wind\":{\"speed\":4.71,\"deg\":214.502},\"rain\":{\"3h\":0.99},\"sys\":{\"pod\":\"d\"},\"dt_txt\":\"2018-06-14 18:00:00\"},{\"dt\":1529010000,\"main\":{\"temp\":14.65,\"temp_min\":14.65,\"temp_max\":14.65,\"pressure\":1015.08,\"sea_level\":1025.01,\"grnd_level\":1015.08,\"humidity\":95,\"temp_kf\":0},\"weather\":[{\"id\":500,\"main\":\"Rain\",\"description\":\"light rain\",\"icon\":\"10n\"}],\"clouds\":{\"all\":92},\"wind\":{\"speed\":5.01,\"deg\":208.502},\"rain\":{\"3h\":0.98},\"sys\":{\"pod\":\"n\"},\"dt_txt\":\"2018-06-14 21:00:00\"},{\"dt\":1529020800,\"main\":{\"temp\":14.73,\"temp_min\":14.73,\"temp_max\":14.73,\"pressure\":1014.74,\"sea_level\":1024.7,\"grnd_level\":1014.74,\"humidity\":99,\"temp_kf\":0},\"weather\":[{\"id\":500,\"main\":\"Rain\",\"description\":\"light rain\",\"icon\":\"10n\"}],\"clouds\":{\"all\":92},\"wind\":{\"speed\":4.07,\"deg\":227.507},\"rain\":{\"3h\":0.92},\"sys\":{\"pod\":\"n\"},\"dt_txt\":\"2018-06-15 00:00:00\"},{\"dt\":1529031600,\"main\":{\"temp\":14.86,\"temp_min\":14.86,\"temp_max\":14.86,\"pressure\":1014.5,\"sea_level\":1024.39,\"grnd_level\":1014.5,\"humidity\":99,\"temp_kf\":0},\"weather\":[{\"id\":500,\"main\":\"Rain\",\"description\":\"light rain\",\"icon\":\"10n\"}],\"clouds\":{\"all\":92},\"wind\":{\"speed\":3.32,\"deg\":244.507},\"rain\":{\"3h\":0.48},\"sys\":{\"pod\":\"n\"},\"dt_txt\":\"2018-06-15 03:00:00\"},{\"dt\":1529042400,\"main\":{\"temp\":15.12,\"temp_min\":15.12,\"temp_max\":15.12,\"pressure\":1014.78,\"sea_level\":1024.76,\"grnd_level\":1014.78,\"humidity\":100,\"temp_kf\":0},\"weather\":[{\"id\":500,\"main\":\"Rain\",\"description\":\"light rain\",\"icon\":\"10d\"}],\"clouds\":{\"all\":92},\"wind\":{\"speed\":2.27,\"deg\":249.503},\"rain\":{\"3h\":1.8225},\"sys\":{\"pod\":\"d\"},\"dt_txt\":\"2018-06-15 06:00:00\"},{\"dt\":1529053200,\"main\":{\"temp\":16.63,\"temp_min\":16.63,\"temp_max\":16.63,\"pressure\":1015.61,\"sea_level\":1025.52,\"grnd_level\":1015.61,\"humidity\":100,\"temp_kf\":0},\"weather\":[{\"id\":500,\"main\":\"Rain\",\"description\":\"light rain\",\"icon\":\"10d\"}],\"clouds\":{\"all\":88},\"wind\":{\"speed\":2.56,\"deg\":258.502},\"rain\":{\"3h\":0.3},\"sys\":{\"pod\":\"d\"},\"dt_txt\":\"2018-06-15 09:00:00\"},{\"dt\":1529064000,\"main\":{\"temp\":18.38,\"temp_min\":18.38,\"temp_max\":18.38,\"pressure\":1015.96,\"sea_level\":1025.83,\"grnd_level\":1015.96,\"humidity\":100,\"temp_kf\":0},\"weather\":[{\"id\":500,\"main\":\"Rain\",\"description\":\"light rain\",\"icon\":\"10d\"}],\"clouds\":{\"all\":20},\"wind\":{\"speed\":3.22,\"deg\":248.5},\"rain\":{\"3h\":0.0125},\"sys\":{\"pod\":\"d\"},\"dt_txt\":\"2018-06-15 12:00:00\"},{\"dt\":1529074800,\"main\":{\"temp\":19.42,\"temp_min\":19.42,\"temp_max\":19.42,\"pressure\":1015.71,\"sea_level\":1025.55,\"grnd_level\":1015.71,\"humidity\":85,\"temp_kf\":0},\"weather\":[{\"id\":803,\"main\":\"Clouds\",\"description\":\"broken clouds\",\"icon\":\"04d\"}],\"clouds\":{\"all\":68},\"wind\":{\"speed\":3.57,\"deg\":257.504},\"rain\":{},\"sys\":{\"pod\":\"d\"},\"dt_txt\":\"2018-06-15 15:00:00\"},{\"dt\":1529085600,\"main\":{\"temp\":18.9,\"temp_min\":18.9,\"temp_max\":18.9,\"pressure\":1015.61,\"sea_level\":1025.53,\"grnd_level\":1015.61,\"humidity\":69,\"temp_kf\":0},\"weather\":[{\"id\":803,\"main\":\"Clouds\",\"description\":\"broken clouds\",\"icon\":\"04d\"}],\"clouds\":{\"all\":68},\"wind\":{\"speed\":2.95,\"deg\":272.502},\"rain\":{},\"sys\":{\"pod\":\"d\"},\"dt_txt\":\"2018-06-15 18:00:00\"},{\"dt\":1529096400,\"main\":{\"temp\":16.16,\"temp_min\":16.16,\"temp_max\":16.16,\"pressure\":1015.96,\"sea_level\":1025.88,\"grnd_level\":1015.96,\"humidity\":70,\"temp_kf\":0},\"weather\":[{\"id\":803,\"main\":\"Clouds\",\"description\":\"broken clouds\",\"icon\":\"04n\"}],\"clouds\":{\"all\":56},\"wind\":{\"speed\":2.46,\"deg\":315},\"rain\":{},\"sys\":{\"pod\":\"n\"},\"dt_txt\":\"2018-06-15 21:00:00\"},{\"dt\":1529107200,\"main\":{\"temp\":13.74,\"temp_min\":13.74,\"temp_max\":13.74,\"pressure\":1015.47,\"sea_level\":1025.43,\"grnd_level\":1015.47,\"humidity\":87,\"temp_kf\":0},\"weather\":[{\"id\":802,\"main\":\"Clouds\",\"description\":\"scattered clouds\",\"icon\":\"03n\"}],\"clouds\":{\"all\":48},\"wind\":{\"speed\":1.47,\"deg\":351.504},\"rain\":{},\"sys\":{\"pod\":\"n\"},\"dt_txt\":\"2018-06-16 00:00:00\"},{\"dt\":1529118000,\"main\":{\"temp\":12.92,\"temp_min\":12.92,\"temp_max\":12.92,\"pressure\":1014.76,\"sea_level\":1024.74,\"grnd_level\":1014.76,\"humidity\":94,\"temp_kf\":0},\"weather\":[{\"id\":500,\"main\":\"Rain\",\"description\":\"light rain\",\"icon\":\"10n\"}],\"clouds\":{\"all\":92},\"wind\":{\"speed\":0.32,\"deg\":192.503},\"rain\":{\"3h\":0.2},\"sys\":{\"pod\":\"n\"},\"dt_txt\":\"2018-06-16 03:00:00\"},{\"dt\":1529128800,\"main\":{\"temp\":13.51,\"temp_min\":13.51,\"temp_max\":13.51,\"pressure\":1014.93,\"sea_level\":1024.82,\"grnd_level\":1014.93,\"humidity\":100,\"temp_kf\":0},\"weather\":[{\"id\":500,\"main\":\"Rain\",\"description\":\"light rain\",\"icon\":\"10d\"}],\"clouds\":{\"all\":92},\"wind\":{\"speed\":1.95,\"deg\":326.502},\"rain\":{\"3h\":2.05},\"sys\":{\"pod\":\"d\"},\"dt_txt\":\"2018-06-16 06:00:00\"},{\"dt\":1529139600,\"main\":{\"temp\":14.7,\"temp_min\":14.7,\"temp_max\":14.7,\"pressure\":1015.01,\"sea_level\":1024.99,\"grnd_level\":1015.01,\"humidity\":100,\"temp_kf\":0},\"weather\":[{\"id\":500,\"main\":\"Rain\",\"description\":\"light rain\",\"icon\":\"10d\"}],\"clouds\":{\"all\":92},\"wind\":{\"speed\":2.16,\"deg\":18.0005},\"rain\":{\"3h\":1.125},\"sys\":{\"pod\":\"d\"},\"dt_txt\":\"2018-06-16 09:00:00\"},{\"dt\":1529150400,\"main\":{\"temp\":16.28,\"temp_min\":16.28,\"temp_max\":16.28,\"pressure\":1015.43,\"sea_level\":1025.31,\"grnd_level\":1015.43,\"humidity\":100,\"temp_kf\":0},\"weather\":[{\"id\":803,\"main\":\"Clouds\",\"description\":\"broken clouds\",\"icon\":\"04d\"}],\"clouds\":{\"all\":80},\"wind\":{\"speed\":1.74,\"deg\":38.0005},\"rain\":{},\"sys\":{\"pod\":\"d\"},\"dt_txt\":\"2018-06-16 12:00:00\"}],\"city\":{\"id\":2928810,\"name\":\"Essen\",\"coord\":{\"lat\":51.45,\"lon\":7.0167},\"country\":\"DE\"}}" diff --git a/zsh/.zshrc b/zsh/.zshrc index b343971..ab3a99f 100644 --- a/zsh/.zshrc +++ b/zsh/.zshrc @@ -1,6 +1,6 @@ # Paths export ZSH="/home/tuan/.oh-my-zsh" -export PATH="$PATH:$HOME/.go/bin" +export PATH="$PATH:$HOME/.go/bin:$HOME/.local/bin" export GOPATH="$HOME/.go/" # Alias @@ -20,6 +20,11 @@ plugins=( history ) +# History +HISTORY_IGNORE='sudo veracrypt *|veracrypt *' + + + # Source source $ZSH/oh-my-zsh.sh