From b6845908255ece07c87541d028702c66f224f47b Mon Sep 17 00:00:00 2001 From: Tuan-Dat Tran Date: Sun, 24 Jun 2018 13:25:59 +0200 Subject: [PATCH] Added Datefunction in emacs, added vimconfig, using global molokai theme, switched to default vim --- config/.Xresources | 38 +- config/.config/highlight/molokai.theme | 23 + config/.config/i3/config | 8 +- config/.config/polybar/config | 19 +- config/.config/ranger/rc.conf | 4 + config/.config/ranger/rifle.conf | 2 +- config/.config/termite/config | 53 +- config/.config/termite/config.bak | 93 ++ config/.scripts/API | 2 + config/.scripts/a.json | 1363 ++++++++++++++++++++++++ config/.scripts/weather.py | 68 ++ config/.scripts/weather_cache.json | 1 + emacs/.emacs.d/config.org | 24 +- vim/.vimrc | 81 ++ zsh/.zshrc | 15 +- 15 files changed, 1720 insertions(+), 74 deletions(-) create mode 100644 config/.config/highlight/molokai.theme create mode 100644 config/.config/termite/config.bak create mode 100644 config/.scripts/API create mode 100644 config/.scripts/a.json create mode 100644 config/.scripts/weather.py create mode 100644 config/.scripts/weather_cache.json create mode 100644 vim/.vimrc diff --git a/config/.Xresources b/config/.Xresources index 074f64a..d60c7b3 100644 --- a/config/.Xresources +++ b/config/.Xresources @@ -1,36 +1,36 @@ ! special -*.foreground: #eceff1 -*.background: #263238 -*.cursorColor: #eceff1 +*.foreground: #f1ebeb +*.background: #272822 +*.cursorColor: #f1ebeb ! black -*.color0: #263238 -*.color8: #37474f +*.color0: #48483e +*.color8: #76715e ! red -*.color1: #ff9800 -*.color9: #ffa74d +*.color1: #dc2566 +*.color9: #fa2772 ! green -*.color2: #8bc34a -*.color10: #9ccc65 +*.color2: #8fc029 +*.color10: #a7e22e ! yellow -*.color3: #ffc107 -*.color11: #ffa000 +*.color3: #d4c96e +*.color11: #e7db75 ! blue -*.color4: #03a9f4 -*.color12: #81d4fa +*.color4: #55bcce +*.color12: #66d9ee ! magenta -*.color5: #e91e63 -*.color13: #ad1457 +*.color5: #9358fe +*.color13: #ae82ff ! cyan -*.color6: #009688 -*.color14: #26a69a +*.color6: #56b7a5 +*.color14: #66efd5 ! white -*.color7: #cfd8dc -*.color15: #eceff1 +*.color7: #acada1 +*.color15: #cfd0c2 diff --git a/config/.config/highlight/molokai.theme b/config/.config/highlight/molokai.theme new file mode 100644 index 0000000..1ca8714 --- /dev/null +++ b/config/.config/highlight/molokai.theme @@ -0,0 +1,23 @@ +-- Theme generated by vim2theme + +Description = "vim molokai" + +Default = { Colour="#F8F8F2" } +Canvas = { Colour="#272822" } +Number = { Colour="#AE81FF" } +Escape = { Colour="#66D9EF" , Italic=true} +String = { Colour="#E6DB74" } +BlockComment = { Colour="#75715E" } +StringPreProc = String +LineComment = BlockComment +Operator = Default +LineNum = BlockComment +PreProcessor = { Colour="#defa25" } +Interpolation = Escape + +Keywords = { + { Colour="#F92672" , Bold=true}, + { Colour="#66D9EF" }, + { Colour="#95f067" }, + { Colour="#25faac" }, +} diff --git a/config/.config/i3/config b/config/.config/i3/config index dd7cff9..1f371b5 100644 --- a/config/.config/i3/config +++ b/config/.config/i3/config @@ -91,8 +91,9 @@ for_window [class="Timeset-gui"] floating enable border normal for_window [class="(?i)virtualbox"] floating enable border normal for_window [title="KeePassX$"] floating enable border normal for_window [title="Eddie - Settings"] floating enable border normal - +for_window [class="^Thunderbird$" title="^.*Event:"] floating enable for_window [title="(?i)termite"] border pixel 3 +for_window [title="(?i)ranger"] border pixel 3 # switch to workspace with urgent window automatically for_window [urgent=latest] focus @@ -114,6 +115,7 @@ for_window [class="^com-intellij-updater-Runner$" title="^Update$"] floating ena for_window [instance="^sun-awt-X11-XDialogPeer$" title="^Complete Installation$"] floating enable + ############################################################################### ############################ Startup Applications ############################# ############################################################################### @@ -161,8 +163,8 @@ bindsym $mod+e exec source ~/.zshrc && termite -e 'ranger' bindsym $mod+m exec thunderbird bindsym Print exec --no-startup-id scrot -bindsym Shift+Print --release exec --no-startup-id scrot -f -bindsym control+Shift+Print --release exec --no-startup-id scrot -s +bindsym control+Shift+Print --release exec --no-startup-id scrot -f +bindsym Shift+Print --release exec --no-startup-id scrot -s bindsym $mod+Ctrl+x --release exec --no-startup-id xkill # change focus diff --git a/config/.config/polybar/config b/config/.config/polybar/config index 49899cd..9e380fb 100644 --- a/config/.config/polybar/config +++ b/config/.config/polybar/config @@ -35,8 +35,8 @@ font-1 = unifont:fontformat=truetype:size=8:antialias=false;0 font-2 = siji:pixelsize=10;1 font-3 = FontAwesome:style=Regular:pixelsize=10 -modules-left = spotify -modules-center = spotify-prev spotify-play spotify-stop spotify-next +modules-left = spotify +modules-center = spotify-prev spotify-play spotify-stop spotify-next modules-right = xkeyboard volume xbacklight wlan eth battery1 date cursor-click = pointer @@ -70,7 +70,7 @@ font-1 = unifont:fontformat=truetype:size=8:antialias=false;0 font-2 = siji:pixelsize=10;1 font-3 = FontAwesome:style=Regular:pixelsize=10 -modules-left = +modules-left = airvpn modules-center = i3 modules-right = powermenu @@ -124,6 +124,13 @@ exec = echo "" tail = true click-left = bash -c "playerctl stop && echo '0'>/home/$USER/.scripts/playstate" +[module/airvpn] +type = custom/script +exec-if = +exec = "if [[ $(ip addr | grep tun) ]]; then echo 'VPN: connected'; else echo 'VPN: disconnectd'; fi" +tail = true + + [module/i3] type = internal/i3 @@ -181,7 +188,7 @@ label-urgent-padding = 4 [module/xbacklight] type = internal/xbacklight -format =