From 5e8276af787a680c6fa7f2aa5d3f80cbb32bef05 Mon Sep 17 00:00:00 2001 From: Alexander Hosking Date: Tue, 29 May 2018 00:12:48 -0400 Subject: [PATCH 1/9] Make better SSH keys --- system/.alias | 3 +++ 1 file changed, 3 insertions(+) diff --git a/system/.alias b/system/.alias index 658ec12..d385399 100755 --- a/system/.alias +++ b/system/.alias @@ -9,6 +9,9 @@ alias ....="cd ../../.." ### Logout! alias logout='sudo pkill -u $USER' +### SSH +alias ssh-keygen='ssh-keygen -t rsa -b 4096' + ### Vagrant alias vu='vagrant up --provision' alias vp='vagrant provision' From c71e272e3c8d6d7249742729da541a259b94053b Mon Sep 17 00:00:00 2001 From: Alexander Hosking Date: Tue, 29 May 2018 00:14:08 -0400 Subject: [PATCH 2/9] Update vim and bash colours --- .i3/config | 2 + config/terminator/config | 72 +------ .../terminator/plugins/terminator-themes.py | 176 ++++++++++++++++++ .../terminator/plugins/terminator-themes.pyc | Bin 0 -> 5936 bytes git/.gitconfig | 5 - run/.bashrc | 4 +- run/.profile | 1 - system/.vimrc | 4 +- vim/bundle/Vundle.vim | 2 +- vim/bundle/ansible-vim | 2 +- 10 files changed, 186 insertions(+), 82 deletions(-) create mode 100644 config/terminator/plugins/terminator-themes.py create mode 100644 config/terminator/plugins/terminator-themes.pyc diff --git a/.i3/config b/.i3/config index c638dd9..c96b81e 100755 --- a/.i3/config +++ b/.i3/config @@ -55,6 +55,8 @@ bindsym Control+space exec rofi -show combi -modi combi -lines 7 -eh 2 -width 10 # Pulse Audio controls ## requires alsa-utils pulseaudio +#bindsym XF86AudioRaiseVolume exec --no-startup-id pactl -- set-sink-volume 0 +5% pactl -- set-sink-volume 12 +5% #increase sound volume +## Get RUNNING sinks - pactl list sinks | grep RUNNING -B 1 -A 1 bindsym XF86AudioRaiseVolume exec --no-startup-id pactl -- set-sink-volume 0 +5% #increase sound volume bindsym XF86AudioLowerVolume exec --no-startup-id pactl -- set-sink-volume 0 -5% #decrease sound volume bindsym XF86AudioMute exec --no-startup-id pactl set-sink-mute 0 toggle # mute sound diff --git a/config/terminator/config b/config/terminator/config index 65b5757..fbc3a80 100755 --- a/config/terminator/config +++ b/config/terminator/config @@ -58,78 +58,10 @@ show_titlebar = False [profiles] [[default]] - background_color = "#1d1f21" + background_color = "#fcaf3e" cursor_color = "#c5c8c6" foreground_color = "#c5c8c6" - palette = "#282a2e:#a54242:#8c9440:#de935f:#5f819d:#85678f:#5e8d87:#707880:#373b41:#cc6666:#b5bd68:#f0c674:#81a2be:#b294bb:#8abeb7:#c5c8c6" - scrollback_infinite = True - scrollbar_position = hidden - show_titlebar = False - use_system_font = False - [[4bit-1461701505408]] - background_color = "#8d8dcf" - foreground_color = "#d9e6f2" - palette = "#000000:#b87a7a:#7ab87a:#b8b87a:#7a7ab8:#b87ab8:#7ab8b8:#d9d9d9:#262626:#dbbdbd:#bddbbd:#dbdbbd:#bdbddb:#dbbddb:#bddbdb:#ffffff" - [[AtelierSulphurpool]] - background_color = "#202746" - cursor_color = "#979db4" - foreground_color = "#979db4" - palette = "#202746:#c94922:#ac9739:#c08b30:#3d8fd1:#6679cc:#22a2c9:#979db4:#6b7394:#c76b29:#293256:#5e6687:#898ea4:#dfe2f1:#9c637a:#f5f7ff" - [[Bright Lights]] - background_color = "#191919" - cursor_color = "#f34b00" - foreground_color = "#b3c9d7" - palette = "#191919:#ff355b:#b7e876:#ffc251:#76d4ff:#ba76e7:#6cbfb5:#c2c8d7:#191919:#ff355b:#b7e876:#ffc251:#76d5ff:#ba76e7:#6cbfb5:#c2c8d7" - [[Broadcast]] - background_color = "#2b2b2b" - cursor_color = "#ffffff" - foreground_color = "#e6e1dc" - palette = "#000000:#da4939:#519f50:#ffd24a:#6d9cbe:#d0d0ff:#6e9cbe:#ffffff:#323232:#ff7b6b:#83d182:#ffff7c:#9fcef0:#ffffff:#a0cef0:#ffffff" - [[Brogrammer]] - background_color = "#131313" - cursor_color = "#b9b9b9" - foreground_color = "#d6dbe5" - palette = "#1f1f1f:#f81118:#2dc55e:#ecba0f:#2a84d2:#4e5ab7:#1081d6:#d6dbe5:#d6dbe5:#de352e:#1dd361:#f3bd09:#1081d6:#5350b9:#0f7ddb:#ffffff" - [[DotGov]] - background_color = "#262c35" - cursor_color = "#d9002f" - foreground_color = "#ebebeb" - palette = "#191919:#bf091d:#3d9751:#f6bb34:#17b2e0:#7830b0:#8bd2ed:#ffffff:#191919:#bf091d:#3d9751:#f6bb34:#17b2e0:#7830b0:#8bd2ed:#ffffff" - [[Dracula]] - background_color = "#1e1f29" - cursor_color = "#aaaaaa" - foreground_color = "#f8f8f2" - palette = "#44475a:#ff5555:#50fa7b:#f1fa8c:#8be9fd:#bd93f9:#ff79c6:#94a3a5:#000000:#ff5555:#50fa7b:#f1fa8c:#8be9fd:#bd93f9:#ff79c6:#ffffff" - [[Github]] - background_color = "#f4f4f4" - cursor_color = "#3f3f3f" - foreground_color = "#3e3e3e" - palette = "#3e3e3e:#970b16:#07962a:#f8eec7:#003e8a:#e94691:#89d1ec:#ffffff:#666666:#de0000:#87d5a2:#f1d007:#2e6cba:#ffa29f:#1cfafe:#ffffff" - [[Smyck]] - background_color = "#2d2d2d" - cursor_color = "#c75646" - foreground_color = "#f7f7f7" - palette = "#000000:#c75646:#8eb33b:#d0b03c:#72b3cc:#c8a0d1:#218693:#b0b0b0:#5d5d5d:#e09690:#cdee69:#ffe377:#9cd9f0:#fbb1f9:#77dfd8:#f7f7f7" - [[default_old]] - audible_bell = True - background_color = "#fdf6e3" - background_darkness = 0.87 - cursor_color = "#c75646" - font = Hack 10 - foreground_color = "#657b83" - palette = "#073642:#dc322f:#859900:#b58900:#268bd2:#d33682:#2aa198:#eee8d5:#002b36:#cb4b16:#586e75:#657b83:#839496:#6c71c4:#93a1a1:#fdf6e3" - scrollback_infinite = True - scrollbar_position = hidden - show_titlebar = False - use_system_font = False - [[old]] - audible_bell = True - background_color = "#002b36" - cursor_color = "#fc531d" - font = Monospace 8 - foreground_color = "#839496" - icon_bell = False - palette = "#073642:#dc322f:#859900:#b58900:#268bd2:#d33682:#2aa198:#eee8d5:#002b36:#cb4b16:#586e75:#657b83:#839496:#6c71c4:#93a1a1:#fdf6e3" + palette = "#f57900:#a54242:#8c9440:#de935f:#5f819d:#85678f:#5e8d87:#707880:#373b41:#cc6666:#b5bd68:#f0c674:#81a2be:#b294bb:#8abeb7:#c5c8c6" scrollback_infinite = True scrollbar_position = hidden show_titlebar = False diff --git a/config/terminator/plugins/terminator-themes.py b/config/terminator/plugins/terminator-themes.py new file mode 100644 index 0000000..ad6e4d3 --- /dev/null +++ b/config/terminator/plugins/terminator-themes.py @@ -0,0 +1,176 @@ +import requests +import terminatorlib.plugin as plugin +from gi.repository import Gtk +from terminatorlib.config import ConfigBase +from terminatorlib.translation import _ +from terminatorlib.util import get_config_dir, err, dbg, gerr + +AVAILABLE = ['TerminatorThemes'] + +class TerminatorThemes(plugin.Plugin): + + capabilities = ['terminal_menu'] + config_base = ConfigBase() + base_url = 'https://api.github.com/repos/EliverLara/terminator-themes/contents/schemes' + def callback(self, menuitems, menu, terminal): + """Add our item to the menu""" + self.terminal = terminal + item = Gtk.ImageMenuItem(Gtk.STOCK_FIND) + item.connect('activate',self.configure) + item.set_label("Themes") + item.set_sensitive(True) + menuitems.append(item) + + def configure(self, widget, data = None): + ui = {} + + dbox = Gtk.Dialog( + _("Terminator themes"), + None, + Gtk.DialogFlags.MODAL, + ( + + _("_Close"), Gtk.ResponseType.ACCEPT + ) + ) + + self.liststore = Gtk.ListStore(str, bool) + + profiles_from_repo = [] + response = requests.get(self.base_url) + + if response.status_code != 200: + gerr(_("Failed to get list of available themes")) + return + + for repo in response.json(): + profiles_from_repo.append(repo['name']) + + + profiles = self.terminal.config.list_profiles() + + # Set add/remove buttons availability + for profile in profiles_from_repo: + profile = profile.split(".") + if profile[0] in profiles: + self.liststore.append([profile[0], False]) + else: + self.liststore.append([profile[0], True]) + + + treeview = Gtk.TreeView(self.liststore) + + selection = treeview.get_selection() + + selection.set_mode(Gtk.SelectionMode.SINGLE) + selection.connect("changed", self.on_selection_changed, ui) + ui['treeview'] = treeview + + renderer_text = Gtk.CellRendererText() + column_text = Gtk.TreeViewColumn("Theme", renderer_text, text=0) + treeview.append_column(column_text) + + + scroll_window = Gtk.ScrolledWindow() + scroll_window.set_size_request(500, 250) + scroll_window.set_policy(Gtk.PolicyType.AUTOMATIC, Gtk.PolicyType.AUTOMATIC) + scroll_window.add_with_viewport(treeview) + + hbox = Gtk.HBox() + hbox.pack_start(scroll_window, True, True, 0) + dbox.vbox.pack_start(hbox, True, True, 0) + + button_box = Gtk.VBox() + + button = Gtk.Button(_("Install")) + button_box.pack_start(button, False, True, 0) + button.connect("clicked", self.on_install, ui) + button.set_sensitive(False) + ui['button_install'] = button + + button = Gtk.Button(_("Remove")) + button_box.pack_start(button, False, True, 0) + button.connect("clicked", self.on_uninstall, ui) + button.set_sensitive(False) + ui['button_uninstall'] = button + + hbox.pack_start(button_box, False, True, 0) + self.dbox = dbox + dbox.show_all() + res = dbox.run() + if res == Gtk.ResponseType.ACCEPT: + self.terminal.config.save() + del(self.dbox) + dbox.destroy() + return + + + def on_selection_changed(self, selection, data=None): + (model, iter) = selection.get_selected() + data['button_install'].set_sensitive(model[iter][1]) + data['button_uninstall'].set_sensitive(model[iter][1] is not True) + + def on_uninstall(self, button, data): + + treeview = data['treeview'] + selection = treeview.get_selection() + (store, iter) = selection.get_selected() + target = store[iter][0] + + # If selected theme is active, sets terminal profile to default before unistalling + if self.terminal.get_profile() == target: + widget = self.terminal.get_vte() + self.terminal.force_set_profile(widget, 'default') + + self.terminal.config.del_profile(target) + self.terminal.config.save() + + #'Add' button available again + self.liststore.set_value(iter, 1, True) + self.on_selection_changed(selection, data) + + def on_install(self, button, data): + treeview = data['treeview'] + selection = treeview.get_selection() + (store, iter) = selection.get_selected() + target = store[iter][0] + widget = self.terminal.get_vte() + treeview.set_enable_tree_lines(False) + + if not iter: + return + + + headers = { "Accept": "application/vnd.github.v3.raw" } + response = requests.get(self.base_url+ '/' + target + '.config', headers=headers) + + if response.status_code != 200: + gerr(_("Failed to download selected theme")) + return + + # Creates a new profile and overwrites the default colors for the new theme + self.terminal.config.add_profile(target) + target_data = self.make_dictionary(response.content) + for k, v in target_data.items(): + if k != 'background_image': + self.config_base.set_item(k, v[1:-1], target) + + self.terminal.force_set_profile(widget, target) + self.terminal.config.save() + + # "Remove" button available again + self.liststore.set_value(iter, 1, False) + self.on_selection_changed(selection, data) + treeview.set_enable_tree_lines(True) + + def make_dictionary(self, data): + arr = [] + out_dict = {} + for line in data.split("\n"): + arr.append(line.split("=")) + + for item in arr: + if len(item) > 1: + out_dict[item[0].strip()] = item[1].strip() + + return out_dict diff --git a/config/terminator/plugins/terminator-themes.pyc b/config/terminator/plugins/terminator-themes.pyc new file mode 100644 index 0000000000000000000000000000000000000000..ef5fe73a7431505e0fdb82ad8abe2993a6c68394 GIT binary patch literal 5936 zcmb_g+j1jU72Pe#7uk~Sv15CjOoC@fg1E%WjXea?7o5 zxx3{HB|l9bdE<#6;F%xbofm#0zW`4ZRj}4REniXvMHQY=ANRTKbI#st@4Zf!|5l%B zpa1iVwiN%$`1?~l+3!&V_&E}Z>|MS)(k;neNxMoCm8Dmay^1&-T9#-`dgHP;ZtE3^ zCZsnhdy}?4CQ(&-Q?fTDy=mE-mR?QvYSOFAUL7OGrQ^unjNrwTq&q7Ijsz3(mB)~Y4)KC8 z)#)a+e}nx_&T$?IM|iR?Q5fh4JHf#!S=*kA zryj#YWw!8SU!WM4WeC+_X*D`a9Lgz-Oh`UyE0|d2 z6!t&`J8F#VE|ypig4JY@u7(!p_P5IOVWx=R&chQwH~Ba!)&ScLT3CBW`f$-; zHMH6DJLV~7Z$etmfjhgOwtnF~+1%d9Cs4()W7E!a>eNDDkQ%LJ07c~Qn@Cm7T4v%b z#QH`Nv6~L;HvE3y#6g3)(vHkT2P%QP<|#65X3d=*4Ptu(711L57;nwPq-UD`VUit% zaimuhhaH*(z-0@}H>QnhLAH!bcR~(Ot;EORR9* z@gL+F#V$zqCFw45=*6U*1su8Y{7bn2tg6yoqU&&Bts-Qs3@7DiT+&&Gv!_)m91R`$ zvUDs&kN>JWzR`L2TIVw!c%>La;Zri4lJ3j8iD?;P;w!3@d(wSXq0Oe(=-OQLTXdfn zWw-+7l_jXkLke8g={22rUjp>iBv6lkQF1PzL@e<@hIJLl3E$QUGcuf!?&}g@H2Uan zsK23N-jwclu3koc4T_=;Ddf8#80){-~qtz(P^3~*E)jvVAzaN>= zRL14l?-|5iku|t4d{raap&xflU;|-l%t>fYa|R_1lNy3@bC!pH$Gq?#qgk7AmLq6b z2~pTSf&`|-{Xw25v4?1*-3%G7=_QDLOoB!4ATIhFAFv;f=*c!hKT0|-Gor4$ox~<* z=(8P9BEOUA)}DU4vA%^+LE%|Hi8Hf%-nUV8z14dB*{;UXEvRA#smf?(&hk`+?k7p4 z-PBa3-OLcFIUYd4nT~}bRUiAv{N5mqbQ3sHKFE;p1LN{sDy^F(u}h2D5Y2WQe>M7Z z39p|f2e6RcdDf4@T+i^tk22%VQxMnRh3Y@2>Y1QPERYV6U_zuE@6`s4y!Gc zyVFjS2ta!l#zAtb=G5dC{?>Sf@-$Jhv7Z1E=UV+tU)4O!mFvIS{q*Vj?q(||!2KZb zPC++3g07#Wx$5+1kCHQ;+eb?Bp!TBuWFPH>@#h@CV?R=~>DVjKxsX{ zJFLB0daXQPs-bPknJU$syH34aL;F3aj@pv5g1$xkT>=l8y7smN$x}{EIm$TRl%w2W zoixi3Y*88imnD)Fl1*hQE8r|-q!n2K$y9p4jUn5oxo_W{a~G1Pq> zMS}oRuwD7A2^50r+e+^gL+-CRXP3jdQ95&^m;j|qZ`TkXK|XF;lF{Mqvos$k?upCVM-m~yZ&5-e2~xfK!_E>++pkT4<4Zv9asc$pHbVhrZ# zRfSXns3=-BDPpFkZz~KHOa1F@%NpM2SQ=jUsyI*xX!3Clh0sulbJ&QxgV)=I!&68+#*;0fkdpPA znerk$a0#9_S6;I4m_aW$(!!IS0pkBZJV3FDEZ7k@JCe0=-g9X^SSSE(tH=kS+BiS% z2Q)p7&C}B*f{P1f8x~vMgbSLOivL}z{_4CuHXg63o1Oz zkr&f)_CyKy9MQJ%{KpFNnvgGp5KpP}uXQURnV@k%U0rE)P3{x2py9_~3x0Z=fEz3j z;_M-lwqV8vUb+PHA})6bRPH8bY1;wq>ZKQum)er9RoeRN*YMx^sNO8j8erX6xgvQ5j_ zkb*mDGKd2&kRv_dX-sK*mEnh@I2Qo4Fr5CkG+DgO;vE+6 zvLNh~_g#4#xxvUunOS=Nk-=vcr9^&uu7?8E;>QQ|CVOM1ds_nLk-S}UC-%Aw6IY(= z9ziBakG3A`-agZhVtUfs bSD;$_p|$bHG-$@?Qd7=52Y&mYR4x4*1Ml$h literal 0 HcmV?d00001 diff --git a/git/.gitconfig b/git/.gitconfig index d8c4819..996fbfb 100755 --- a/git/.gitconfig +++ b/git/.gitconfig @@ -7,8 +7,3 @@ autostash = true [core] editor = vim -[filter "lfs"] - clean = git-lfs clean -- %f - smudge = git-lfs smudge -- %f - process = git-lfs filter-process - required = true diff --git a/run/.bashrc b/run/.bashrc index 56818b0..55d831b 100755 --- a/run/.bashrc +++ b/run/.bashrc @@ -176,7 +176,7 @@ run_on_prompt_command() log_bash_persistent_history } -PROMPT_COMMAND="run_on_prompt_command && _powerline_set_prompt" +#PROMPT_COMMAND="run_on_prompt_command && _powerline_set_prompt" ## Keyboard Mapping!!! setxkbmap dvorak @@ -190,4 +190,4 @@ export XDG_CURRENT_DESKTOP=GNOME alias nemo='nemo --no-desktop' eval `dircolors ~/.vimspectr-shell/dircolors` -[ -n "$PS1" ] && sh ~/.vimspectr-shell/vimspectr60flat-dark +[ -n "$PS1" ] && sh ~/.vimspectr-shell/vimspectr90wflat-dark diff --git a/run/.profile b/run/.profile index 8d8a806..ae52a30 100644 --- a/run/.profile +++ b/run/.profile @@ -33,4 +33,3 @@ export LESS_TERMCAP_us=$'\e'"[1;32m" ## Add Applications to Path export PATH="$HOME/bin:$HOME/.local/bin:/opt:$PATH" export XDG_CURRENT_DESKTOP=GNOME - diff --git a/system/.vimrc b/system/.vimrc index d764c3a..f38774f 100755 --- a/system/.vimrc +++ b/system/.vimrc @@ -17,8 +17,8 @@ Plugin 'nightsense/vimspectr' call vundle#end() " Themes from https://github.com/nightsense/vimspectr -colorscheme vimspectr60flat-dark -let g:vimspectr60flat_dark_StatusLine = 'orange' +colorscheme vimspectr90wflat-dark +"let g:vimspectr60flat_dark_StatusLine = 'orange' "execute pathogen#infect('bundle/{}') filetype plugin indent on " filetype detection[ON] plugin[ON] indent[ON] diff --git a/vim/bundle/Vundle.vim b/vim/bundle/Vundle.vim index 5d9b059..6437ad6 160000 --- a/vim/bundle/Vundle.vim +++ b/vim/bundle/Vundle.vim @@ -1 +1 @@ -Subproject commit 5d9b05970140aa975bfb7d4350abf349c1451802 +Subproject commit 6437ad6df4a3e6a87c5fb8bd2b8aadb277ec9c87 diff --git a/vim/bundle/ansible-vim b/vim/bundle/ansible-vim index 8540ad7..5f3eb14 160000 --- a/vim/bundle/ansible-vim +++ b/vim/bundle/ansible-vim @@ -1 +1 @@ -Subproject commit 8540ad7ff0f8da2b31b5c55e6ae52ad87221e918 +Subproject commit 5f3eb14ba74bb9bc7c1356b45ab2a981825ca3ca From 2aad7fe8e758d4d4938c891945e563224499e6c4 Mon Sep 17 00:00:00 2001 From: Alexander Hosking Date: Tue, 29 May 2018 12:58:52 -0400 Subject: [PATCH 3/9] add git lfs --- git/.gitconfig | 5 ----- 1 file changed, 5 deletions(-) diff --git a/git/.gitconfig b/git/.gitconfig index d8c4819..996fbfb 100755 --- a/git/.gitconfig +++ b/git/.gitconfig @@ -7,8 +7,3 @@ autostash = true [core] editor = vim -[filter "lfs"] - clean = git-lfs clean -- %f - smudge = git-lfs smudge -- %f - process = git-lfs filter-process - required = true From dea3e7362b3b38689187fbcde1b2ca56898a62ae Mon Sep 17 00:00:00 2001 From: Alexander Hosking Date: Tue, 29 May 2018 13:00:52 -0400 Subject: [PATCH 4/9] Add Screen Layout to dotfiles --- .screenlayout/home_desktop.sh | 2 ++ .screenlayout/lyrical.sh | 2 ++ 2 files changed, 4 insertions(+) create mode 100755 .screenlayout/home_desktop.sh create mode 100755 .screenlayout/lyrical.sh diff --git a/.screenlayout/home_desktop.sh b/.screenlayout/home_desktop.sh new file mode 100755 index 0000000..d6edb9d --- /dev/null +++ b/.screenlayout/home_desktop.sh @@ -0,0 +1,2 @@ +#!/bin/sh +xrandr --output DP-1 --off --output HDMI-1 --mode 3840x2160 --pos 0x0 --rotate normal --output HDMI-2 --mode 2560x1440_24.00 --pos 3840x0 --rotate normal diff --git a/.screenlayout/lyrical.sh b/.screenlayout/lyrical.sh new file mode 100755 index 0000000..d6edb9d --- /dev/null +++ b/.screenlayout/lyrical.sh @@ -0,0 +1,2 @@ +#!/bin/sh +xrandr --output DP-1 --off --output HDMI-1 --mode 3840x2160 --pos 0x0 --rotate normal --output HDMI-2 --mode 2560x1440_24.00 --pos 3840x0 --rotate normal From 40a7c555032787c8a1e0b8cf291f35236ca3a84f Mon Sep 17 00:00:00 2001 From: Alexander Hosking Date: Tue, 29 May 2018 15:47:29 -0400 Subject: [PATCH 5/9] Latest changes for Ubuntu 18 --- .screenlayout/lyrical.sh | 4 +++- install.sh | 4 +++- run/.bashrc | 4 ++-- system/.vimrc | 2 +- 4 files changed, 9 insertions(+), 5 deletions(-) diff --git a/.screenlayout/lyrical.sh b/.screenlayout/lyrical.sh index d6edb9d..0cef9c3 100755 --- a/.screenlayout/lyrical.sh +++ b/.screenlayout/lyrical.sh @@ -1,2 +1,4 @@ #!/bin/sh -xrandr --output DP-1 --off --output HDMI-1 --mode 3840x2160 --pos 0x0 --rotate normal --output HDMI-2 --mode 2560x1440_24.00 --pos 3840x0 --rotate normal +xrandr --newmode "2560x1440_24.00" 113.75 2560 2648 2904 3248 1440 1443 1448 1463 -hsync +vsync +xrandr --addmode HDMI-2 2560x1440_24.00 +xrandr --output DP-1 --off --output HDMI-1 --primary --mode 3840x2160 --pos 0x0 --rotate normal --output HDMI-2 --mode 2560x1440_24.00 --pos 3840x0 --rotate normal diff --git a/install.sh b/install.sh index a120ce0..ab99d39 100755 --- a/install.sh +++ b/install.sh @@ -13,7 +13,7 @@ export EXTRA_DIR mkdir -p ~/apps ### install packages -sudo apt-get install -y -f python-pip python-dev powerline +sudo apt-get install -y -f python-pip python-dev powerline arandr ## install kryptonite curl https://krypt.co/kr | sh @@ -33,7 +33,9 @@ ln -sfv ~/.vim/bundle/vimspectr/shell ~/.vimspectr-shell ln -sfv "$DOTFILES_DIR/run/.profile" ~ ln -sfv "$DOTFILES_DIR/run/.xprofile" ~ ln -sfv "$DOTFILES_DIR/run/.bashrc" ~ +mkdir ~/bin ln -sfv "$DOTFILES_DIR/system/.bruise" ~/bin/bruise +ln -sfv "$DOTFILES_DIR/.screenlayout" ~ ln -sfv "$DOTFILES_DIR/system/.keybrightness" ~/bin/keybrightness ln -sfv "$DOTFILES_DIR/git/.gitconfig" ~ ln -sfv "$DOTFILES_DIR/system/.vimrc" ~ diff --git a/run/.bashrc b/run/.bashrc index 55d831b..09c8d0e 100755 --- a/run/.bashrc +++ b/run/.bashrc @@ -183,11 +183,11 @@ setxkbmap dvorak export PYENV_ROOT="$HOME/.pyenv" export PATH="$PYENV_ROOT/bin:$PATH" eval "$(pyenv init -)" -source ~/apps/bruise +source ~/bin/bruise export PATH="$PATH:$HOME/.local/bin" export PATH="$PATH:/opt/trello:/opt/pycharm/bin" export XDG_CURRENT_DESKTOP=GNOME alias nemo='nemo --no-desktop' eval `dircolors ~/.vimspectr-shell/dircolors` -[ -n "$PS1" ] && sh ~/.vimspectr-shell/vimspectr90wflat-dark +[ -n "$PS1" ] && sh ~/.vimspectr-shell/vimspectr90-dark diff --git a/system/.vimrc b/system/.vimrc index f38774f..794e613 100755 --- a/system/.vimrc +++ b/system/.vimrc @@ -17,7 +17,7 @@ Plugin 'nightsense/vimspectr' call vundle#end() " Themes from https://github.com/nightsense/vimspectr -colorscheme vimspectr90wflat-dark +colorscheme vimspectr90-dark "let g:vimspectr60flat_dark_StatusLine = 'orange' "execute pathogen#infect('bundle/{}') From 70a1bf78b50797379c38806f4252e36e9d8a5fb3 Mon Sep 17 00:00:00 2001 From: Alexander Hosking Date: Tue, 29 May 2018 16:01:49 -0400 Subject: [PATCH 6/9] Update login sequence --- .i3/config | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.i3/config b/.i3/config index c96b81e..5f539fb 100755 --- a/.i3/config +++ b/.i3/config @@ -11,8 +11,8 @@ ## Set Dvorak, because, SMRT exec "setxkbmap dvorak" +exec /home/ahosking/.screenlayout/lyrical.sh exec --no-startup-id ~/.fehbg -exec /home/ahosking/.screenlayout/home_desktop.sh exec --no-startup-id nm-applet exec --no-startup-id nextcloud exec --no-startup-id insync start From 84c246024912f87ca5baaa1b86a748cc6383b3f2 Mon Sep 17 00:00:00 2001 From: Alexander Hosking Date: Tue, 11 Sep 2018 00:57:59 -0400 Subject: [PATCH 7/9] Update vim themes --- system/.vimrc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/system/.vimrc b/system/.vimrc index f38774f..c0746bd 100755 --- a/system/.vimrc +++ b/system/.vimrc @@ -17,7 +17,7 @@ Plugin 'nightsense/vimspectr' call vundle#end() " Themes from https://github.com/nightsense/vimspectr -colorscheme vimspectr90wflat-dark +colorscheme vimspectrgrey-dark "let g:vimspectr60flat_dark_StatusLine = 'orange' "execute pathogen#infect('bundle/{}') From c7e8d2cc0ec6f4fc325156a91302ec1d67fdcb0f Mon Sep 17 00:00:00 2001 From: Alexander Hosking Date: Tue, 16 Oct 2018 01:40:31 -0400 Subject: [PATCH 8/9] Add Split SSH configurations --- .ssh/config | 3 +++ .ssh/config.d/config.d | 1 + .ssh/config.d/home | 23 +++++++++++++++++++++++ install.sh | 10 ++++++---- 4 files changed, 33 insertions(+), 4 deletions(-) create mode 100644 .ssh/config create mode 120000 .ssh/config.d/config.d create mode 100644 .ssh/config.d/home diff --git a/.ssh/config b/.ssh/config new file mode 100644 index 0000000..f6478a9 --- /dev/null +++ b/.ssh/config @@ -0,0 +1,3 @@ +### Master SSH Config + +Include config.d/* diff --git a/.ssh/config.d/config.d b/.ssh/config.d/config.d new file mode 120000 index 0000000..db56510 --- /dev/null +++ b/.ssh/config.d/config.d @@ -0,0 +1 @@ +/home/ahosking/dotfiles/.ssh/config.d \ No newline at end of file diff --git a/.ssh/config.d/home b/.ssh/config.d/home new file mode 100644 index 0000000..e457181 --- /dev/null +++ b/.ssh/config.d/home @@ -0,0 +1,23 @@ +#### Home SSH Config +host home + hostname home.ahoskingit.com + user ahosking + +host home-decrypt + hostname 192.168.1.187 + user root + port 4422 + +host git.ahoskingit.com + hostname git.ahoskingit.com + port 9022 + +host home-desktop + hostname 192.168.1.187 + user ahosking + ProxyCommand ssh -fNg -R 8700:localhost:22 -p 87 home -W %h:%p + +host home-server + hostname 192.168.1.15 + user ahosking + ProxyCommand ssh -fNg -R 8700:localhost:22 -p 87 home -W %h:%p diff --git a/install.sh b/install.sh index ab99d39..145deaf 100755 --- a/install.sh +++ b/install.sh @@ -13,18 +13,18 @@ export EXTRA_DIR mkdir -p ~/apps ### install packages -sudo apt-get install -y -f python-pip python-dev powerline arandr +## sudo apt-get install -y -f python-pip python-dev powerline arandr ## install kryptonite -curl https://krypt.co/kr | sh +##curl https://krypt.co/kr | sh #vim backup folders mkdir -p ~/.vim/{backup_files,swap_files,undo_files} #install vundle -git clone https://github.com/VundleVim/Vundle.vim.git ~/.vim/bundle/Vundle.vim +##git clone https://github.com/VundleVim/Vundle.vim.git ~/.vim/bundle/Vundle.vim #Install pyenv -git clone https://github.com/pyenv/pyenv.git ~/.pyenv +##git clone https://github.com/pyenv/pyenv.git ~/.pyenv # Bunch of symlinks ln -sfv ~/dotfiles ~/.dotfiles @@ -33,6 +33,8 @@ ln -sfv ~/.vim/bundle/vimspectr/shell ~/.vimspectr-shell ln -sfv "$DOTFILES_DIR/run/.profile" ~ ln -sfv "$DOTFILES_DIR/run/.xprofile" ~ ln -sfv "$DOTFILES_DIR/run/.bashrc" ~ +ln -sfv "$DOTFILES_DIR/.ssh/config.d" ~/.ssh/config.d +ln -sfv "$DOTFILES_DIR/.ssh/config" ~/.ssh/config mkdir ~/bin ln -sfv "$DOTFILES_DIR/system/.bruise" ~/bin/bruise ln -sfv "$DOTFILES_DIR/.screenlayout" ~ From 04fc3df02fecbd1ce7f19f8577bb8f280c031a09 Mon Sep 17 00:00:00 2001 From: Alexander Hosking Date: Tue, 16 Oct 2018 01:46:18 -0400 Subject: [PATCH 9/9] Proper git configs bugin --- .ssh/config.d/automated_bytes | 16 ++++++++++++++++ .ssh/config.d/config.d | 1 - .ssh/config.d/home | 19 +++++++++++++++++++ .ssh/config.d/lyrical | 22 ++++++++++++++++++++++ 4 files changed, 57 insertions(+), 1 deletion(-) create mode 100644 .ssh/config.d/automated_bytes delete mode 120000 .ssh/config.d/config.d create mode 100644 .ssh/config.d/lyrical diff --git a/.ssh/config.d/automated_bytes b/.ssh/config.d/automated_bytes new file mode 100644 index 0000000..e75e74c --- /dev/null +++ b/.ssh/config.d/automated_bytes @@ -0,0 +1,16 @@ +### For Automated Bytes Work + +host clouda-webs + hostname 104.37.195.87 + user ubuntu + identityfile ~/.ssh/ahosking + +host do-webs + hostname 138.197.154.98 + user root + identityfile ~/.ssh/ahosking + +host vultr-webs + hostname 45.63.19.159 + user ahosking + identityfile ~/.ssh/ahosking diff --git a/.ssh/config.d/config.d b/.ssh/config.d/config.d deleted file mode 120000 index db56510..0000000 --- a/.ssh/config.d/config.d +++ /dev/null @@ -1 +0,0 @@ -/home/ahosking/dotfiles/.ssh/config.d \ No newline at end of file diff --git a/.ssh/config.d/home b/.ssh/config.d/home index e457181..56f835c 100644 --- a/.ssh/config.d/home +++ b/.ssh/config.d/home @@ -21,3 +21,22 @@ host home-server hostname 192.168.1.15 user ahosking ProxyCommand ssh -fNg -R 8700:localhost:22 -p 87 home -W %h:%p + +host plex + hostname 192.168.1.16 + user ahosking + +host 192.168.1.14 + user ahoskingit +host 192.168.1.18 + user ahoskingit + +#Tunnel +Host home-tunnel + hostname home.ahoskingit.com + user ahosking + port 87 + IdentityFile /home/ahosking/.ssh/id_rsa + LocalForward 9999 localhost:22 + ServerAliveInterval 30 + ServerAliveCountMax 3 diff --git a/.ssh/config.d/lyrical b/.ssh/config.d/lyrical new file mode 100644 index 0000000..92a9ae6 --- /dev/null +++ b/.ssh/config.d/lyrical @@ -0,0 +1,22 @@ +#Lyrical +Host *.lyricalsecurity.com + IdentityFile ~/.ssh/ahosking + +Host lyrical +hostname 66.207.196.194 +port 87 + +Host lyrical-proxy +hostname 66.207.196.194 +port 87 +DynamicForward 9999 +# ssh -D 9999 -C -q -N lyrical + +Host newportal + Hostname 138.197.135.240 + IdentityFile ~/.ssh/ahosking + ProxyCommand ssh -W %h:%p lyrical + +Host ls.bitbucket.org + HostName bitbucket.org + IdentityFile ~/.ssh/ahosking