Compare commits

...
Sign in to create a new pull request.

45 commits

Author SHA1 Message Date
f125756dbd update supertab 2020-10-07 21:36:10 -07:00
34aa88aa30 aliases 2020-09-11 19:56:46 -07:00
6efe0f0545 add v1 of my own font 2020-08-17 15:28:39 -07:00
149edc1d43 add hugo stuff and remove auto-folding 2020-06-16 12:11:29 -07:00
6841031dea various updates 2020-05-21 11:41:13 -07:00
f8bba57269 rename barak-theme 2020-05-21 11:40:57 -07:00
cff1220f4a add neovim updater to bin 2020-03-09 18:05:24 -07:00
958c97f582 initial merge 2020-03-03 13:05:08 -08:00
25e11721fb updated configs 2020-03-03 12:39:36 -08:00
6b826bc4ab update xfce4 conf 2020-03-03 12:39:05 -08:00
6e4516de0e update portia settings 2020-03-03 12:38:08 -08:00
6c3fb5af50 add golden ratio resize to i3 2020-02-06 13:28:24 -08:00
d3ef01a71a fixkeyboard 2020-02-06 13:28:20 -08:00
f24aa9b6ea add golden ratio resize to i3 2020-02-06 13:27:09 -08:00
6ff20d3983 coc-setup 2019-11-27 14:34:27 -08:00
a3274d364e coc for vim 2019-11-18 14:56:24 -08:00
1225e52427 update, use zeal 2019-11-18 14:48:36 -08:00
b361bf52e1 various shell improvements 2019-10-09 18:45:55 -07:00
e932f9e3fe update vimrc colors with signify 2019-06-07 13:41:12 -07:00
405541f534 update for new tmux 2019-06-07 13:40:00 -07:00
4fb0ea1292 simpler golang 2019-05-21 19:52:46 -07:00
31c9d70d42 coc for vim 2019-05-21 18:29:35 -07:00
072228591e ganymede update 2019-05-21 2019-05-21 14:50:48 -07:00
415cc078f7 Add git.barakmich.com to gitconfig 2019-05-21 14:50:07 -07:00
ba47277ae8 nvim and capslock 2019-05-21 14:50:07 -07:00
42b369f40e ganymede v0 2019-05-21 14:50:07 -07:00
f34c23f532 reorganize plugins 2019-05-21 14:37:21 -07:00
52c6726aac base latex 2019-05-20 17:12:17 -07:00
144e32baf9 markdown and scala 2019-05-19 22:16:45 -07:00
0b64b1cbe2 Institude Filepath, veonim, and git-diff3-style 2019-04-01 11:05:32 -07:00
52f28e2d1b add tig config 2019-02-04 15:56:13 -08:00
9a13fa283d misc work fixes 2019-01-29 16:02:37 -08:00
b1f0fba89a add gblame 2018-09-13 16:45:12 -07:00
5115a6f7f8 add tunnel program and zotero hookup 2018-08-21 11:17:44 -07:00
f889fc1903 update portia 2018-08-21 11:17:08 -07:00
f784422c1b tmux from 1 2018-08-10 15:05:36 -07:00
992577be97 update mutt and mailcap 2018-08-10 13:33:41 -07:00
297f126215 reindent zshrc 2018-08-09 14:53:43 -07:00
08db411ea4 update vimrc 2018-08-09 14:52:49 -07:00
a4d3acc92c mutt keybindings 2018-08-07 14:49:43 -07:00
3758e4cb45 change vimfiler, add remote keybindings for i3 2018-07-05 12:59:28 -07:00
4ad34c4e48 add remmina files 2018-06-29 15:10:47 -07:00
f49657495b Adds ALE, LanguageClient, and clang 2018-06-25 13:21:31 -07:00
c257164aee vimrc paths 2018-06-01 13:50:30 -07:00
a9b2ef65c5 portia1 2018-06-01 13:49:09 -07:00
67 changed files with 1640 additions and 1049 deletions

View file

@ -79,6 +79,9 @@ alias saupdate="sa-learn --mbox --spam ~/mail/spam"
alias pshosers="ps axeo pcpu,pid,user,command | sort -k 1 -r | head -11 "
alias memhosers="ps axeo size,pcpu,pid,user,command | sort -n -r | head -11 "
alias psx="ps auxwww | grep $1"
alias blaze="bazel"
alias pb='curl -F c=@- https://busb.us/'
alias pburl='curl -F c=@- https://busb.us/u'
#work
alias totemp="cd `pwd | sed 's/controllers/templates/'`"

View file

@ -142,8 +142,8 @@ if [ -f /etc/bash_completion ]; then
. /etc/bash_completion
fi
if [ -f ~/.bash_google ]; then
. ~/.bash_google
if [ -f ~/.bash_work ]; then
. ~/.bash_work
fi
if [ -n "`which fortune`" ]; then

View file

@ -0,0 +1,9 @@
{
"dependencies": {
"coc-go": ">=0.9.2",
"coc-json": ">=1.2.6",
"coc-python": ">=1.2.12",
"coc-snippets": ">=2.2.1",
"coc-solargraph": ">=1.1.6"
}
}

435
.config/polybar/config Normal file
View file

@ -0,0 +1,435 @@
;==========================================================
;
;
; ██████╗ ██████╗ ██╗ ██╗ ██╗██████╗ █████╗ ██████╗
; ██╔══██╗██╔═══██╗██║ ╚██╗ ██╔╝██╔══██╗██╔══██╗██╔══██╗
; ██████╔╝██║ ██║██║ ╚████╔╝ ██████╔╝███████║██████╔╝
; ██╔═══╝ ██║ ██║██║ ╚██╔╝ ██╔══██╗██╔══██║██╔══██╗
; ██║ ╚██████╔╝███████╗██║ ██████╔╝██║ ██║██║ ██║
; ╚═╝ ╚═════╝ ╚══════╝╚═╝ ╚═════╝ ╚═╝ ╚═╝╚═╝ ╚═╝
;
;
; To learn more about how to configure Polybar
; go to https://github.com/polybar/polybar
;
; The README contains a lot of information
;
;==========================================================
[colors]
;background = ${xrdb:color0:#222}
background = #222
background-alt = #444
;background = #404552
;background-alt = #383c4a
;foreground = ${xrdb:color7:#222}
foreground = #dfdfdf
foreground-alt = #555
;foreground = #4b5162
;foreground-alt = #5294e2
primary = #ffb52a
secondary = #e60053
alert = #bd2c40
[bar/example]
;monitor = ${env:MONITOR:HDMI-1}
width = 100%
height = 27
;offset-x = 1%
;offset-y = 1%
radius = 6.0
fixed-center = false
background = ${colors.background}
foreground = ${colors.foreground}
line-size = 3
line-color = #f00
border-size = 4
border-color = #00000000
padding-left = 0
padding-right = 2
module-margin-left = 1
module-margin-right = 2
font-0 = fixed:pixelsize=10;1
font-1 = unifont:fontformat=truetype:size=8:antialias=false;0
font-2 = siji:pixelsize=10;1
modules-left = i3
modules-center =
modules-right = xbacklight pulseaudio xkeyboard memory cpu wlan eth battery temperature date powermenu
tray-position = right
tray-padding = 2
;tray-background = #0063ff
;wm-restack = bspwm
;wm-restack = i3
;override-redirect = true
;scroll-up = bspwm-desknext
;scroll-down = bspwm-deskprev
;scroll-up = i3wm-wsnext
;scroll-down = i3wm-wsprev
cursor-click = pointer
cursor-scroll = ns-resize
enable-ipc = true
[module/xwindow]
type = internal/xwindow
label = %title:0:30:...%
[module/xkeyboard]
type = internal/xkeyboard
blacklist-0 = num lock
format-prefix = " "
format-prefix-foreground = ${colors.foreground-alt}
format-prefix-underline = ${colors.secondary}
label-layout = %layout%
label-layout-underline = ${colors.secondary}
label-indicator-padding = 2
label-indicator-margin = 1
label-indicator-background = ${colors.secondary}
label-indicator-underline = ${colors.secondary}
[module/filesystem]
type = internal/fs
interval = 25
mount-0 = /
label-mounted = %{F#0a81f5}%mountpoint%%{F-}: %percentage_used%%
label-unmounted = %mountpoint% not mounted
label-unmounted-foreground = ${colors.foreground-alt}
[module/bspwm]
type = internal/bspwm
label-focused = %index%
label-focused-background = ${colors.background-alt}
label-focused-underline= ${colors.primary}
label-focused-padding = 2
label-occupied = %index%
label-occupied-padding = 2
label-urgent = %index%!
label-urgent-background = ${colors.alert}
label-urgent-padding = 2
label-empty = %index%
label-empty-foreground = ${colors.foreground-alt}
label-empty-padding = 2
; Separator in between workspaces
; label-separator = |
[module/i3]
type = internal/i3
format = <label-state> <label-mode>
index-sort = true
wrapping-scroll = false
; Only show workspaces on the same output as the bar
;pin-workspaces = true
label-mode-padding = 2
label-mode-foreground = #000
label-mode-background = ${colors.primary}
; focused = Active workspace on focused monitor
label-focused = %index%
label-focused-background = ${colors.background-alt}
label-focused-underline= ${colors.primary}
label-focused-padding = 2
; unfocused = Inactive workspace on any monitor
label-unfocused = %index%
label-unfocused-padding = 2
; visible = Active workspace on unfocused monitor
label-visible = %index%
label-visible-background = ${self.label-focused-background}
label-visible-underline = ${self.label-focused-underline}
label-visible-padding = ${self.label-focused-padding}
; urgent = Workspace with urgency hint set
label-urgent = %index%
label-urgent-background = ${colors.alert}
label-urgent-padding = 2
; Separator in between workspaces
; label-separator = |
[module/mpd]
type = internal/mpd
format-online = <label-song> <icon-prev> <icon-stop> <toggle> <icon-next>
icon-prev = 
icon-stop = 
icon-play = 
icon-pause = 
icon-next = 
label-song-maxlen = 25
label-song-ellipsis = true
[module/xbacklight]
type = internal/xbacklight
format = <label> <bar>
label = BL
bar-width = 10
bar-indicator = |
bar-indicator-foreground = #fff
bar-indicator-font = 2
bar-fill = ─
bar-fill-font = 2
bar-fill-foreground = #9f78e1
bar-empty = ─
bar-empty-font = 2
bar-empty-foreground = ${colors.foreground-alt}
[module/backlight-acpi]
inherit = module/xbacklight
type = internal/backlight
card = intel_backlight
[module/cpu]
type = internal/cpu
interval = 2
;format-prefix = " "
format-prefix = "C "
format-prefix-foreground = ${colors.foreground-alt}
format-underline = #f90000
label = %percentage:2%%
[module/memory]
type = internal/memory
interval = 2
;format-prefix = " "
format-prefix = "M "
format-prefix-foreground = ${colors.foreground-alt}
format-underline = #4bffdc
label = %percentage_used%%
[module/wlan]
type = internal/network
interface = wlp4s0
interval = 3.0
format-connected = <ramp-signal> <label-connected>
format-connected-underline = #9f78e1
label-connected = %essid% %local_ip%
format-disconnected =
;format-disconnected = <label-disconnected>
;format-disconnected-underline = ${self.format-connected-underline}
;label-disconnected = %ifname% disconnected
;label-disconnected-foreground = ${colors.foreground-alt}
ramp-signal-0 = ▁
ramp-signal-1 = ▃
ramp-signal-2 = ▅
ramp-signal-3 = ▇
ramp-signal-4 = ▀
;ramp-signal-0 = 1
;ramp-signal-1 = 2
;ramp-signal-2 = 3
;ramp-signal-3 = 4
;ramp-signal-4 = 5
ramp-signal-foreground = ${colors.foreground-alt}
[module/eth]
type = internal/network
interface = wwp0s20f0u6i12
interval = 3.0
format-connected-underline = #55aa55
format-connected-prefix = " "
format-connected-prefix-foreground = ${colors.foreground-alt}
label-connected = %local_ip%
format-disconnected =
;format-disconnected = <label-disconnected>
;format-disconnected-underline = ${self.format-connected-underline}
;label-disconnected = %ifname% disconnected
;label-disconnected-foreground = ${colors.foreground-alt}
[module/date]
type = internal/date
interval = 5
date =
date-alt = " %Y-%m-%d"
time = %H:%M
time-alt = %H:%M:%S
format-prefix = 
format-prefix-foreground = ${colors.foreground-alt}
format-underline = #0a6cf5
label = %date% %time%
[module/pulseaudio]
type = internal/pulseaudio
format-volume = <label-volume> <bar-volume>
label-volume = VOL %percentage%%
label-volume-foreground = ${root.foreground}
label-muted = 🔇 muted
label-muted-foreground = #666
bar-volume-width = 10
bar-volume-foreground-0 = #55aa55
bar-volume-foreground-1 = #55aa55
bar-volume-foreground-2 = #55aa55
bar-volume-foreground-3 = #55aa55
bar-volume-foreground-4 = #55aa55
bar-volume-foreground-5 = #f5a70a
bar-volume-foreground-6 = #ff5555
bar-volume-gradient = false
bar-volume-indicator = |
bar-volume-indicator-font = 2
bar-volume-fill = ─
bar-volume-fill-font = 2
bar-volume-empty = ─
bar-volume-empty-font = 2
bar-volume-empty-foreground = ${colors.foreground-alt}
[module/alsa]
type = internal/alsa
format-volume = <label-volume> <bar-volume>
label-volume = VOL
label-volume-foreground = ${root.foreground}
format-muted-prefix = " "
format-muted-foreground = ${colors.foreground-alt}
label-muted = sound muted
bar-volume-width = 10
bar-volume-foreground-0 = #55aa55
bar-volume-foreground-1 = #55aa55
bar-volume-foreground-2 = #55aa55
bar-volume-foreground-3 = #55aa55
bar-volume-foreground-4 = #55aa55
bar-volume-foreground-5 = #f5a70a
bar-volume-foreground-6 = #ff5555
bar-volume-gradient = false
bar-volume-indicator = |
bar-volume-indicator-font = 2
bar-volume-fill = ─
bar-volume-fill-font = 2
bar-volume-empty = ─
bar-volume-empty-font = 2
bar-volume-empty-foreground = ${colors.foreground-alt}
[module/battery]
type = internal/battery
battery = BAT0
adapter = AC
full-at = 98
format-charging = <animation-charging> <label-charging>
format-charging-underline = #ffb52a
format-discharging = <animation-discharging> <label-discharging>
format-discharging-underline = ${self.format-charging-underline}
format-full-prefix = " "
format-full-prefix-foreground = ${colors.foreground-alt}
format-full-underline = ${self.format-charging-underline}
ramp-capacity-0 = 
ramp-capacity-1 = 
ramp-capacity-2 = 
ramp-capacity-foreground = ${colors.foreground-alt}
animation-charging-0 = 
animation-charging-1 = 
animation-charging-2 = 
animation-charging-foreground = ${colors.foreground-alt}
animation-charging-framerate = 750
animation-discharging-0 = 
animation-discharging-1 = 
animation-discharging-2 = 
animation-discharging-foreground = ${colors.foreground-alt}
animation-discharging-framerate = 750
[module/temperature]
type = internal/temperature
thermal-zone = 0
warn-temperature = 60
format = <ramp> <label>
format-underline = #f50a4d
format-warn = <ramp> <label-warn>
format-warn-underline = ${self.format-underline}
label = %temperature-c%
label-warn = %temperature-c%
label-warn-foreground = ${colors.secondary}
ramp-0 = 
ramp-1 = 
ramp-2 = 
ramp-foreground = ${colors.foreground-alt}
[module/powermenu]
type = custom/menu
expand-right = true
format-spacing = 1
label-open = 
label-open-foreground = ${colors.secondary}
label-close =  cancel
label-close-foreground = ${colors.secondary}
label-separator = |
label-separator-foreground = ${colors.foreground-alt}
menu-0-0 = reboot
menu-0-0-exec = menu-open-1
menu-0-1 = power off
menu-0-1-exec = menu-open-2
menu-1-0 = cancel
menu-1-0-exec = menu-open-0
menu-1-1 = reboot
menu-1-1-exec = sudo reboot
menu-2-0 = power off
menu-2-0-exec = sudo poweroff
menu-2-1 = cancel
menu-2-1-exec = menu-open-0
[settings]
screenchange-reload = true
;compositing-background = xor
;compositing-background = screen
;compositing-foreground = source
;compositing-border = over
pseudo-transparency = true
[global/wm]
margin-top = 5
margin-bottom = 5
; vim:ft=dosini

View file

@ -7,8 +7,8 @@
title_transmit_bg_color = "#535d6c"
[keybindings]
close_term = <Primary><Shift>w
cycle_next = <Primary>j
cycle_prev = <Primary>k
cycle_next = None
cycle_prev = None
paste = <Shift>Insert
split_vert = <Primary><Shift>v
[layouts]
@ -24,7 +24,6 @@
[profiles]
[[default]]
background_darkness = 0.8
background_type = transparent
cursor_color = "#ffffff"
font = Droid Sans Mono Dotted 15
foreground_color = "#ffffff"

View file

@ -1,6 +0,0 @@
Command=hostname -s
UseLabel=0
Text=hostname
UpdatePeriod=60000
Font=Sans Bold 16

View file

@ -1,40 +1,40 @@
favorites=exo-web-browser.desktop,exo-mail-reader.desktop,exo-file-manager.desktop,pidgin.desktop,exo-terminal-emulator.desktop
recent=xfce-mouse-settings.desktop,xfce-ui-settings.desktop,firefox.desktop,exo-terminal-emulator.desktop
button-title=Applications Menu
favorites=exo-terminal-emulator.desktop,exo-file-manager.desktop,exo-mail-reader.desktop,exo-web-browser.desktop
recent=exo-terminal-emulator.desktop,xfce-settings-manager.desktop,xfce-ui-settings.desktop
button-title=Applications
button-icon=xfce4-whiskermenu
button-single-row=false
show-button-title=false
show-button-icon=true
launcher-show-name=true
launcher-show-description=false
launcher-show-description=true
launcher-show-tooltip=true
item-icon-size=1
item-icon-size=2
hover-switch-category=false
category-show-name=true
category-icon-size=0
load-hierarchy=true
category-icon-size=1
load-hierarchy=false
recent-items-max=10
favorites-in-recent=true
display-recent-default=false
position-search-alternate=true
position-search-alternate=false
position-commands-alternate=false
position-categories-alternate=false
menu-width=400
menu-height=500
menu-width=545
menu-height=585
menu-opacity=100
command-settings=xfce4-settings-manager
show-command-settings=true
command-lockscreen=xflock4
show-command-lockscreen=true
command-switchuser=dm-tool switch-to-greeter
show-command-switchuser=false
command-switchuser=gdmflexiserver
show-command-switchuser=true
command-logout=xfce4-session-logout
show-command-logout=true
command-menueditor=menulibre
show-command-menueditor=true
command-profile=mugshot
show-command-profile=true
search-actions=5
search-actions=4
[action0]
name=Man Pages
@ -43,24 +43,18 @@ command=exo-open --launch TerminalEmulator man %s
regex=false
[action1]
name=Web Search
pattern=?
command=exo-open --launch WebBrowser https://duckduckgo.com/?q=%u
regex=false
[action2]
name=Wikipedia
pattern=!w
command=exo-open --launch WebBrowser https://en.wikipedia.org/wiki/%u
regex=false
[action3]
[action2]
name=Run in Terminal
pattern=!
command=exo-open --launch TerminalEmulator %s
regex=false
[action4]
[action3]
name=Open URI
pattern=^(file|http|https):\\/\\/(.*)$
command=exo-open \\0

View file

@ -3,9 +3,9 @@
<channel name="displays" version="1.0">
<property name="Default" type="empty">
<property name="eDP1" type="string" value="1. LGD 14&quot;">
<property name="Active" type="bool" value="false"/>
<property name="Active" type="bool" value="true"/>
<property name="Resolution" type="string" value="2560x1440"/>
<property name="RefreshRate" type="double" value="59.997716"/>
<property name="RefreshRate" type="double" value="60.004441"/>
<property name="Rotation" type="int" value="0"/>
<property name="Reflection" type="string" value="0"/>
<property name="Primary" type="bool" value="true"/>
@ -14,7 +14,7 @@
<property name="Y" type="int" value="0"/>
</property>
</property>
<property name="DP2" type="string" value="2. Hewlett Packard 27&quot;">
<property name="DP1" type="string" value="2. Dell 27&quot;">
<property name="Active" type="bool" value="true"/>
<property name="Resolution" type="string" value="3840x2160"/>
<property name="RefreshRate" type="double" value="59.996625"/>
@ -26,5 +26,43 @@
<property name="Y" type="int" value="0"/>
</property>
</property>
<property name="HDMI2" type="string" value="2. HCG 7&quot;">
<property name="Active" type="bool" value="true"/>
<property name="Resolution" type="string" value="1920x1080"/>
<property name="RefreshRate" type="double" value="60.000000"/>
<property name="Rotation" type="int" value="0"/>
<property name="Reflection" type="string" value="0"/>
<property name="Primary" type="bool" value="false"/>
<property name="Position" type="empty">
<property name="X" type="int" value="2560"/>
<property name="Y" type="int" value="0"/>
</property>
</property>
<property name="HDMI1" type="string" value="2. AJA Video Systems, Inc. 32&quot;">
<property name="Active" type="bool" value="true"/>
<property name="Resolution" type="string" value="1920x1080"/>
<property name="RefreshRate" type="double" value="30.000000"/>
<property name="Rotation" type="int" value="0"/>
<property name="Reflection" type="string" value="0"/>
<property name="Primary" type="bool" value="false"/>
<property name="Position" type="empty">
<property name="X" type="int" value="0"/>
<property name="Y" type="int" value="0"/>
</property>
</property>
<property name="rdp0" type="string" value="rdp0">
<property name="Active" type="bool" value="true"/>
<property name="Resolution" type="string" value="2736x1824"/>
<property name="RefreshRate" type="double" value="50.000000"/>
<property name="Rotation" type="int" value="0"/>
<property name="Reflection" type="string" value="0"/>
<property name="Primary" type="bool" value="false"/>
<property name="Position" type="empty">
<property name="X" type="int" value="0"/>
<property name="Y" type="int" value="0"/>
</property>
</property>
</property>
<property name="Notify" type="bool" value="true"/>
<property name="ActiveProfile" type="string" value="Default"/>
</channel>

View file

@ -4,8 +4,9 @@
<property name="misc-volume-management" type="empty"/>
<property name="shortcuts-icon-size" type="empty"/>
<property name="last-view" type="string" value="ThunarIconView"/>
<property name="last-icon-view-zoom-level" type="string" value="THUNAR_ZOOM_LEVEL_NORMAL"/>
<property name="last-window-width" type="int" value="2556"/>
<property name="last-window-height" type="int" value="1411"/>
<property name="last-icon-view-zoom-level" type="string" value="THUNAR_ZOOM_LEVEL_75_PERCENT"/>
<property name="last-window-width" type="int" value="1916"/>
<property name="last-window-height" type="int" value="2131"/>
<property name="last-window-maximized" type="bool" value="false"/>
<property name="last-location-bar" type="string" value="ThunarLocationEntry"/>
</channel>

View file

@ -23,11 +23,76 @@
<property name="image-style" type="int" value="5"/>
<property name="last-image" type="string" value="/usr/share/xfce4/backdrops/xubuntu-wallpaper.png"/>
</property>
<property name="workspace1" type="empty">
<property name="color-style" type="int" value="0"/>
<property name="image-style" type="int" value="5"/>
<property name="last-image" type="string" value="/usr/share/backgrounds/xfce/xfce-teal.jpg"/>
</property>
<property name="workspace2" type="empty">
<property name="color-style" type="int" value="0"/>
<property name="image-style" type="int" value="5"/>
<property name="last-image" type="string" value="/usr/share/backgrounds/xfce/xfce-teal.jpg"/>
</property>
<property name="workspace3" type="empty">
<property name="color-style" type="int" value="0"/>
<property name="image-style" type="int" value="5"/>
<property name="last-image" type="string" value="/usr/share/backgrounds/xfce/xfce-teal.jpg"/>
</property>
<property name="workspace4" type="empty">
<property name="color-style" type="int" value="0"/>
<property name="image-style" type="int" value="5"/>
<property name="last-image" type="string" value="/usr/share/backgrounds/xfce/xfce-teal.jpg"/>
</property>
<property name="workspace5" type="empty">
<property name="color-style" type="int" value="0"/>
<property name="image-style" type="int" value="5"/>
<property name="last-image" type="string" value="/usr/share/backgrounds/xfce/xfce-teal.jpg"/>
</property>
<property name="workspace6" type="empty">
<property name="color-style" type="int" value="0"/>
<property name="image-style" type="int" value="5"/>
<property name="last-image" type="string" value="/usr/share/backgrounds/xfce/xfce-teal.jpg"/>
</property>
</property>
<property name="monitor1" type="empty">
<property name="image-path" type="empty"/>
<property name="image-style" type="empty"/>
<property name="image-show" type="empty"/>
<property name="workspace0" type="empty">
<property name="color-style" type="int" value="0"/>
<property name="image-style" type="int" value="5"/>
<property name="last-image" type="string" value="/usr/share/backgrounds/xfce/xfce-teal.jpg"/>
</property>
<property name="workspace1" type="empty">
<property name="color-style" type="int" value="0"/>
<property name="image-style" type="int" value="5"/>
<property name="last-image" type="string" value="/usr/share/backgrounds/xfce/xfce-teal.jpg"/>
</property>
<property name="workspace2" type="empty">
<property name="color-style" type="int" value="0"/>
<property name="image-style" type="int" value="5"/>
<property name="last-image" type="string" value="/usr/share/backgrounds/xfce/xfce-teal.jpg"/>
</property>
<property name="workspace3" type="empty">
<property name="color-style" type="int" value="0"/>
<property name="image-style" type="int" value="5"/>
<property name="last-image" type="string" value="/usr/share/backgrounds/xfce/xfce-teal.jpg"/>
</property>
<property name="workspace4" type="empty">
<property name="color-style" type="int" value="0"/>
<property name="image-style" type="int" value="5"/>
<property name="last-image" type="string" value="/usr/share/backgrounds/xfce/xfce-teal.jpg"/>
</property>
<property name="workspace5" type="empty">
<property name="color-style" type="int" value="0"/>
<property name="image-style" type="int" value="5"/>
<property name="last-image" type="string" value="/usr/share/backgrounds/xfce/xfce-teal.jpg"/>
</property>
<property name="workspace6" type="empty">
<property name="color-style" type="int" value="0"/>
<property name="image-style" type="int" value="5"/>
<property name="last-image" type="string" value="/usr/share/backgrounds/xfce/xfce-teal.jpg"/>
</property>
</property>
</property>
</property>

View file

@ -1,14 +1,30 @@
<?xml version="1.0" encoding="UTF-8"?>
<channel name="xfce4-notifyd" version="1.0">
<property name="notify-location" type="empty"/>
<property name="theme" type="empty"/>
<property name="initial-opacity" type="empty"/>
<property name="notify-location" type="uint" value="2"/>
<property name="theme" type="string" value="Default"/>
<property name="expire-timeout" type="int" value="6"/>
<property name="initial-opacity" type="double" value="1.000000"/>
<property name="applications" type="empty">
<property name="known_applications" type="array">
<value type="string" value="Electron"/>
<value type="string" value="FileZilla"/>
<value type="string" value="Firefox"/>
<value type="string" value="fixkeyboard"/>
<value type="string" value="geary"/>
<value type="string" value="hexchat"/>
<value type="string" value="nm-applet"/>
<value type="string" value="notify-send"/>
<value type="string" value="org.gnome.FeedReader"/>
<value type="string" value="ScudCloud"/>
<value type="string" value="Thunderbird"/>
<value type="string" value="Xfce4-notifyd settings"/>
<value type="string" value="xfce4-power-manager"/>
<value type="string" value="xfce4-settings-helper"/>
</property>
</property>
<property name="log-level" type="uint" value="0"/>
<property name="log-level-apps" type="uint" value="0"/>
<property name="primary-monitor" type="uint" value="1"/>
<property name="do-fadeout" type="bool" value="false"/>
</channel>

View file

@ -1,93 +1,102 @@
<?xml version="1.0" encoding="UTF-8"?>
<channel name="xfce4-panel" version="1.0">
<property name="panels" type="uint" value="1">
<property name="panel-0" type="empty">
<property name="configver" type="int" value="2"/>
<property name="panels" type="array">
<value type="int" value="1"/>
<property name="panel-1" type="empty">
<property name="position" type="string" value="p=6;x=0;y=0"/>
<property name="length" type="uint" value="100"/>
<property name="position-locked" type="bool" value="true"/>
<property name="plugin-ids" type="array">
<value type="int" value="1"/>
<value type="int" value="12"/>
<value type="int" value="2"/>
<value type="int" value="3"/>
<value type="int" value="13"/>
<value type="int" value="4"/>
<value type="int" value="5"/>
<value type="int" value="8"/>
<value type="int" value="9"/>
<value type="int" value="10"/>
<value type="int" value="11"/>
</property>
<property name="background-style" type="uint" value="0"/>
<property name="background-alpha" type="uint" value="80"/>
<property name="size" type="uint" value="24"/>
<property name="length-adjust" type="bool" value="true"/>
<property name="span-monitors" type="bool" value="false"/>
<property name="enter-opacity" type="uint" value="100"/>
<property name="leave-opacity" type="uint" value="100"/>
<property name="mode" type="uint" value="0"/>
<property name="plugin-ids" type="array">
<value type="int" value="11"/>
<value type="int" value="4"/>
<value type="int" value="3"/>
<value type="int" value="15"/>
<value type="int" value="8"/>
<value type="int" value="5"/>
<value type="int" value="6"/>
<value type="int" value="2"/>
</property>
<property name="autohide-behavior" type="uint" value="0"/>
<property name="background-alpha" type="uint" value="77"/>
<property name="background-style" type="uint" value="0"/>
<property name="length-adjust" type="bool" value="false"/>
<property name="background-color" type="array">
<value type="uint" value="62965"/>
<value type="uint" value="63222"/>
<value type="uint" value="63479"/>
<value type="uint" value="65535"/>
</property>
<property name="span-monitors" type="bool" value="false"/>
</property>
</property>
<property name="plugins" type="empty">
<property name="plugin-1" type="string" value="whiskermenu"/>
<property name="plugin-2" type="string" value="tasklist">
<property name="flat-buttons" type="bool" value="true"/>
</property>
<property name="plugin-3" type="string" value="separator">
<property name="style" type="uint" value="0"/>
<property name="plugin-2" type="string" value="actions"/>
<property name="plugin-3" type="string" value="tasklist"/>
<property name="plugin-15" type="string" value="separator">
<property name="expand" type="bool" value="true"/>
<property name="style" type="uint" value="0"/>
</property>
<property name="plugin-4" type="string" value="systray">
<property name="show-frame" type="bool" value="false"/>
<property name="size-max" type="uint" value="22"/>
<property name="plugin-5" type="string" value="clock">
<property name="digital-format" type="string" value="%R"/>
<property name="mode" type="uint" value="2"/>
</property>
<property name="plugin-6" type="string" value="systray">
<property name="names-visible" type="array">
<value type="string" value="network"/>
<value type="string" value="skype"/>
<value type="string" value="smuxi-frontend-gnome"/>
<value type="string" value="nicotine.py"/>
<value type="string" value="task manager"/>
<value type="string" value="deluge"/>
<value type="string" value="steam"/>
<value type="string" value="blueberry-tray.py"/>
<value type="string" value="foobnix"/>
<value type="string" value="google-chrome-beta"/>
<value type="string" value="orage"/>
<value type="string" value="org.remmina.remmina"/>
<value type="string" value="vlc"/>
<value type="string" value="sabnzbd.py"/>
<value type="string" value="clementine"/>
<value type="string" value="bluetooth"/>
<value type="string" value="mumble"/>
<value type="string" value="scudcloud slack"/>
<value type="string" value="franz"/>
<value type="string" value="xfce4-power-manager"/>
<value type="string" value="deadbeef"/>
<value type="string" value="ramme"/>
<value type="string" value="virt-manager"/>
<value type="string" value="pidgin"/>
<value type="string" value="tomahawk"/>
<value type="string" value="polly"/>
<value type="string" value="scudcloud slack_ssb"/>
<value type="string" value="sylpheed"/>
<value type="string" value="keybase"/>
<value type="string" value="synergy"/>
<value type="string" value="slack"/>
<value type="string" value="hexchat"/>
<value type="string" value="zoom"/>
<value type="string" value="remmina remote desktop client"/>
<value type="string" value="networkmanager applet"/>
<value type="string" value="blueman-applet"/>
<value type="string" value="mailspring"/>
<value type="string" value="remmina"/>
</property>
</property>
<property name="plugin-5" type="string" value="notification-plugin"/>
<property name="plugin-6" type="string" value="indicator">
<property name="blacklist" type="array">
<value type="string" value="libappmenu.so"/>
</property>
<property name="known-indicators" type="array">
<value type="string" value="com.canonical.indicator.messages"/>
<property name="show-frame" type="bool" value="false"/>
<property name="names-ordered" type="array">
<value type="string" value="joplin"/>
<value type="string" value="zeal"/>
<value type="string" value="remmina remote desktop client"/>
<value type="string" value="org.remmina.remmina"/>
</property>
</property>
<property name="plugin-7" type="string" value="statusnotifier">
<property name="icon-size" type="uint" value="22"/>
<property name="menu-is-primary" type="bool" value="true"/>
<property name="mode-whitelist" type="bool" value="false"/>
<property name="single-row" type="bool" value="false"/>
<property name="square-icons" type="bool" value="false"/>
<property name="symbolic-icons" type="bool" value="true"/>
<property name="known-items" type="array">
<value type="string" value="remmina-icon"/>
<value type="string" value="blueman"/>
<value type="string" value="nm-applet"/>
</property>
<property name="plugin-11" type="string" value="whiskermenu"/>
<property name="plugin-4" type="string" value="pager">
<property name="rows" type="uint" value="1"/>
</property>
<property name="plugin-8" type="string" value="power-manager-plugin"/>
<property name="plugin-9" type="string" value="pulseaudio">
<property name="enable-keyboard-shortcuts" type="bool" value="true"/>
<property name="enable-mpris" type="bool" value="true"/>
<property name="mixer-command" type="string" value="pavucontrol"/>
<property name="mpris-players" type="string" value="parole"/>
<property name="show-notifications" type="bool" value="true"/>
</property>
<property name="plugin-10" type="string" value="separator">
<property name="plugin-8" type="string" value="separator">
<property name="style" type="uint" value="0"/>
<property name="expand" type="bool" value="false"/>
</property>
<property name="plugin-11" type="string" value="clock">
<property name="digital-format" type="string" value="%d %b, %H:%M:%S"/>
</property>
<property name="plugin-12" type="string" value="pager"/>
<property name="plugin-13" type="string" value="genmon"/>
</property>
<property name="configver" type="int" value="2"/>
</channel>

View file

@ -13,7 +13,7 @@
<property name="dpms-on-battery-sleep" type="empty"/>
<property name="dpms-on-battery-off" type="empty"/>
<property name="show-panel-label" type="empty"/>
<property name="brightness-switch-restore-on-exit" type="int" value="-1"/>
<property name="brightness-switch-restore-on-exit" type="int" value="0"/>
<property name="brightness-switch" type="int" value="0"/>
</property>
</channel>

View file

@ -2,90 +2,92 @@
<channel name="xfwm4" version="1.0">
<property name="general" type="empty">
<property name="activate_action" type="empty"/>
<property name="box_move" type="empty"/>
<property name="box_resize" type="empty"/>
<property name="button_layout" type="empty"/>
<property name="button_offset" type="empty"/>
<property name="button_spacing" type="empty"/>
<property name="click_to_focus" type="empty"/>
<property name="cycle_apps_only" type="empty"/>
<property name="cycle_draw_frame" type="empty"/>
<property name="cycle_preview" type="empty"/>
<property name="double_click_distance" type="empty"/>
<property name="double_click_time" type="empty"/>
<property name="focus_delay" type="empty"/>
<property name="focus_new" type="empty"/>
<property name="frame_opacity" type="empty"/>
<property name="full_width_title" type="empty"/>
<property name="maximized_offset" type="empty"/>
<property name="mousewheel_rollup" type="empty"/>
<property name="placement_mode" type="empty"/>
<property name="raise_delay" type="empty"/>
<property name="raise_on_click" type="empty"/>
<property name="raise_on_focus" type="empty"/>
<property name="repeat_urgent_blink" type="empty"/>
<property name="scroll_workspaces" type="empty"/>
<property name="shadow_delta_height" type="empty"/>
<property name="shadow_delta_width" type="empty"/>
<property name="shadow_delta_x" type="empty"/>
<property name="shadow_delta_y" type="empty"/>
<property name="shadow_opacity" type="empty"/>
<property name="show_app_icon" type="empty"/>
<property name="show_dock_shadow" type="empty"/>
<property name="show_frame_shadow" type="empty"/>
<property name="show_popup_shadow" type="empty"/>
<property name="snap_to_border" type="empty"/>
<property name="snap_to_windows" type="empty"/>
<property name="snap_width" type="empty"/>
<property name="theme" type="empty"/>
<property name="title_alignment" type="empty"/>
<property name="title_font" type="empty"/>
<property name="title_horizontal_offset" type="empty"/>
<property name="title_shadow_active" type="empty"/>
<property name="title_shadow_inactive" type="empty"/>
<property name="title_vertical_offset_active" type="empty"/>
<property name="title_vertical_offset_inactive" type="empty"/>
<property name="urgent_blink" type="empty"/>
<property name="use_compositing" type="empty"/>
<property name="workspace_count" type="int" value="1"/>
<property name="workspace_names" type="array">
<value type="string" value="1"/>
<value type="string" value="2"/>
<value type="string" value="3"/>
<value type="string" value="4"/>
<value type="string" value="9"/>
<value type="string" value="10"/>
<value type="string" value="10"/>
<value type="string" value="Workspace 8"/>
</property>
<property name="wrap_resistance" type="empty"/>
<property name="wrap_windows" type="empty"/>
<property name="wrap_workspaces" type="empty"/>
<property name="activate_action" type="string" value="bring"/>
<property name="borderless_maximize" type="bool" value="true"/>
<property name="box_move" type="bool" value="false"/>
<property name="box_resize" type="bool" value="false"/>
<property name="button_layout" type="string" value="O|SHMC"/>
<property name="button_offset" type="int" value="0"/>
<property name="button_spacing" type="int" value="0"/>
<property name="click_to_focus" type="bool" value="true"/>
<property name="cycle_apps_only" type="bool" value="false"/>
<property name="cycle_draw_frame" type="bool" value="true"/>
<property name="cycle_hidden" type="bool" value="true"/>
<property name="cycle_minimum" type="bool" value="true"/>
<property name="cycle_preview" type="bool" value="true"/>
<property name="cycle_tabwin_mode" type="int" value="0"/>
<property name="cycle_workspaces" type="bool" value="false"/>
<property name="double_click_action" type="string" value="maximize"/>
<property name="double_click_distance" type="int" value="5"/>
<property name="double_click_time" type="int" value="250"/>
<property name="easy_click" type="string" value="Alt"/>
<property name="focus_delay" type="int" value="250"/>
<property name="focus_hint" type="bool" value="true"/>
<property name="focus_new" type="bool" value="true"/>
<property name="frame_opacity" type="int" value="100"/>
<property name="full_width_title" type="bool" value="true"/>
<property name="horiz_scroll_opacity" type="bool" value="false"/>
<property name="inactive_opacity" type="int" value="100"/>
<property name="maximized_offset" type="int" value="0"/>
<property name="mousewheel_rollup" type="bool" value="true"/>
<property name="move_opacity" type="int" value="100"/>
<property name="placement_mode" type="string" value="center"/>
<property name="placement_ratio" type="int" value="20"/>
<property name="popup_opacity" type="int" value="100"/>
<property name="prevent_focus_stealing" type="bool" value="false"/>
<property name="raise_delay" type="int" value="250"/>
<property name="raise_on_click" type="bool" value="true"/>
<property name="raise_on_focus" type="bool" value="false"/>
<property name="raise_with_any_button" type="bool" value="true"/>
<property name="repeat_urgent_blink" type="bool" value="false"/>
<property name="resize_opacity" type="int" value="100"/>
<property name="scroll_workspaces" type="bool" value="true"/>
<property name="shadow_delta_height" type="int" value="0"/>
<property name="shadow_delta_width" type="int" value="0"/>
<property name="shadow_delta_x" type="int" value="0"/>
<property name="shadow_delta_y" type="int" value="-3"/>
<property name="shadow_opacity" type="int" value="50"/>
<property name="show_app_icon" type="bool" value="false"/>
<property name="show_dock_shadow" type="bool" value="true"/>
<property name="show_frame_shadow" type="bool" value="true"/>
<property name="show_popup_shadow" type="bool" value="false"/>
<property name="snap_resist" type="bool" value="false"/>
<property name="snap_to_border" type="bool" value="true"/>
<property name="snap_to_windows" type="bool" value="false"/>
<property name="snap_width" type="int" value="10"/>
<property name="sync_to_vblank" type="bool" value="false"/>
<property name="theme" type="string" value="Default"/>
<property name="tile_on_move" type="bool" value="true"/>
<property name="title_alignment" type="string" value="center"/>
<property name="title_font" type="string" value="Sans Bold 9"/>
<property name="title_horizontal_offset" type="int" value="0"/>
<property name="titleless_maximize" type="bool" value="false"/>
<property name="title_shadow_active" type="string" value="false"/>
<property name="title_shadow_inactive" type="string" value="false"/>
<property name="title_vertical_offset_active" type="int" value="0"/>
<property name="title_vertical_offset_inactive" type="int" value="0"/>
<property name="toggle_workspaces" type="bool" value="false"/>
<property name="unredirect_overlays" type="bool" value="true"/>
<property name="urgent_blink" type="bool" value="false"/>
<property name="use_compositing" type="bool" value="true"/>
<property name="workspace_count" type="int" value="1"/>
<property name="wrap_cycle" type="bool" value="true"/>
<property name="wrap_layout" type="bool" value="true"/>
<property name="workspace_names" type="array">
<value type="string" value="1"/>
<value type="string" value="Workspace 2"/>
<value type="string" value="Workspace 3"/>
<value type="string" value="Workspace 4"/>
<value type="string" value="9"/>
<value type="string" value="9"/>
<value type="string" value="Workspace 7"/>
<value type="string" value="10"/>
<value type="string" value="Workspace 9"/>
<value type="string" value="Workspace 10"/>
</property>
<property name="wrap_resistance" type="int" value="10"/>
<property name="wrap_windows" type="bool" value="true"/>
<property name="wrap_workspaces" type="bool" value="false"/>
<property name="zoom_desktop" type="bool" value="true"/>
</property>
</channel>

View file

@ -3,7 +3,7 @@
<channel name="xsettings" version="1.0">
<property name="Net" type="empty">
<property name="ThemeName" type="string" value="Arc"/>
<property name="IconThemeName" type="string" value="elementary-xfce"/>
<property name="IconThemeName" type="string" value="elementary-xfce-dark"/>
<property name="DoubleClickTime" type="empty"/>
<property name="DoubleClickDistance" type="empty"/>
<property name="DndDragThreshold" type="empty"/>
@ -32,12 +32,15 @@
<property name="ToolbarStyle" type="empty"/>
<property name="ToolbarIconSize" type="empty"/>
<property name="MenuImages" type="empty"/>
<property name="ButtonImages" type="empty"/>
<property name="ButtonImages" type="bool" value="true"/>
<property name="MenuBarAccel" type="empty"/>
<property name="CursorThemeName" type="string" value="elementary"/>
<property name="CursorThemeSize" type="empty"/>
<property name="DecorationLayout" type="empty"/>
</property>
<property name="Gdk" type="empty">
<property name="WindowScalingFactor" type="empty"/>
</property>
<property name="Xfce" type="empty">
<property name="LastCustomDPI" type="int" value="120"/>
</property>

View file

@ -0,0 +1,199 @@
# ____ ____
# / __/___ / __/
# / /_/_ / / /_
# / __/ / /_/ __/
# /_/ /___/_/-completion.zsh
#
# - $FZF_TMUX (default: 0)
# - $FZF_TMUX_HEIGHT (default: '40%')
# - $FZF_COMPLETION_TRIGGER (default: '**')
# - $FZF_COMPLETION_OPTS (default: empty)
if [[ $- =~ i ]]; then
# To use custom commands instead of find, override _fzf_compgen_{path,dir}
if ! declare -f _fzf_compgen_path > /dev/null; then
_fzf_compgen_path() {
echo "$1"
command find -L "$1" \
-name .git -prune -o -name .svn -prune -o \( -type d -o -type f -o -type l \) \
-a -not -path "$1" -print 2> /dev/null | sed 's@^\./@@'
}
fi
if ! declare -f _fzf_compgen_dir > /dev/null; then
_fzf_compgen_dir() {
command find -L "$1" \
-name .git -prune -o -name .svn -prune -o -type d \
-a -not -path "$1" -print 2> /dev/null | sed 's@^\./@@'
}
fi
###########################################################
__fzfcmd_complete() {
[ -n "$TMUX_PANE" ] && [ "${FZF_TMUX:-0}" != 0 ] && [ ${LINES:-40} -gt 15 ] &&
echo "fzf-tmux -d${FZF_TMUX_HEIGHT:-40%}" || echo "fzf"
}
__fzf_generic_path_completion() {
local base lbuf compgen fzf_opts suffix tail fzf dir leftover matches
base=$1
lbuf=$2
compgen=$3
fzf_opts=$4
suffix=$5
tail=$6
fzf="$(__fzfcmd_complete)"
setopt localoptions nonomatch
eval "base=$base"
[[ $base = *"/"* ]] && dir="$base"
while [ 1 ]; do
if [[ -z "$dir" || -d ${dir} ]]; then
leftover=${base/#"$dir"}
leftover=${leftover/#\/}
[ -z "$dir" ] && dir='.'
[ "$dir" != "/" ] && dir="${dir/%\//}"
matches=$(eval "$compgen $(printf %q "$dir")" | FZF_DEFAULT_OPTS="--height ${FZF_TMUX_HEIGHT:-40%} --reverse $FZF_DEFAULT_OPTS $FZF_COMPLETION_OPTS" ${=fzf} ${=fzf_opts} -q "$leftover" | while read item; do
echo -n "${(q)item}$suffix "
done)
matches=${matches% }
if [ -n "$matches" ]; then
LBUFFER="$lbuf$matches$tail"
fi
zle reset-prompt
break
fi
dir=$(dirname "$dir")
dir=${dir%/}/
done
}
_fzf_path_completion() {
__fzf_generic_path_completion "$1" "$2" _fzf_compgen_path \
"-m" "" " "
}
_fzf_dir_completion() {
__fzf_generic_path_completion "$1" "$2" _fzf_compgen_dir \
"" "/" ""
}
_fzf_feed_fifo() (
command rm -f "$1"
mkfifo "$1"
cat <&0 > "$1" &
)
_fzf_complete() {
local fifo fzf_opts lbuf fzf matches post
fifo="${TMPDIR:-/tmp}/fzf-complete-fifo-$$"
fzf_opts=$1
lbuf=$2
post="${funcstack[2]}_post"
type $post > /dev/null 2>&1 || post=cat
fzf="$(__fzfcmd_complete)"
_fzf_feed_fifo "$fifo"
matches=$(cat "$fifo" | FZF_DEFAULT_OPTS="--height ${FZF_TMUX_HEIGHT:-40%} --reverse $FZF_DEFAULT_OPTS $FZF_COMPLETION_OPTS" ${=fzf} ${=fzf_opts} -q "${(Q)prefix}" | $post | tr '\n' ' ')
if [ -n "$matches" ]; then
LBUFFER="$lbuf$matches"
fi
zle reset-prompt
command rm -f "$fifo"
}
_fzf_complete_telnet() {
_fzf_complete '+m' "$@" < <(
command grep -v '^\s*\(#\|$\)' /etc/hosts | command grep -Fv '0.0.0.0' |
awk '{if (length($2) > 0) {print $2}}' | sort -u
)
}
_fzf_complete_ssh() {
_fzf_complete '+m' "$@" < <(
setopt localoptions nonomatch
command cat <(cat ~/.ssh/config ~/.ssh/config.d/* /etc/ssh/ssh_config 2> /dev/null | command grep -i '^host ' | command grep -v '[*?]' | awk '{for (i = 2; i <= NF; i++) print $1 " " $i}') \
<(command grep -oE '^[[a-z0-9.,:-]+' ~/.ssh/known_hosts | tr ',' '\n' | tr -d '[' | awk '{ print $1 " " $1 }') \
<(command grep -v '^\s*\(#\|$\)' /etc/hosts | command grep -Fv '0.0.0.0') |
awk '{if (length($2) > 0) {print $2}}' | sort -u
)
}
_fzf_complete_export() {
_fzf_complete '-m' "$@" < <(
declare -xp | sed 's/=.*//' | sed 's/.* //'
)
}
_fzf_complete_unset() {
_fzf_complete '-m' "$@" < <(
declare -xp | sed 's/=.*//' | sed 's/.* //'
)
}
_fzf_complete_unalias() {
_fzf_complete '+m' "$@" < <(
alias | sed 's/=.*//'
)
}
fzf-completion() {
local tokens cmd prefix trigger tail fzf matches lbuf d_cmds
setopt localoptions noshwordsplit noksh_arrays noposixbuiltins
# http://zsh.sourceforge.net/FAQ/zshfaq03.html
# http://zsh.sourceforge.net/Doc/Release/Expansion.html#Parameter-Expansion-Flags
tokens=(${(z)LBUFFER})
if [ ${#tokens} -lt 1 ]; then
zle ${fzf_default_completion:-expand-or-complete}
return
fi
cmd=${tokens[1]}
# Explicitly allow for empty trigger.
trigger=${FZF_COMPLETION_TRIGGER-'**'}
[ -z "$trigger" -a ${LBUFFER[-1]} = ' ' ] && tokens+=("")
tail=${LBUFFER:$(( ${#LBUFFER} - ${#trigger} ))}
# Kill completion (do not require trigger sequence)
if [ $cmd = kill -a ${LBUFFER[-1]} = ' ' ]; then
fzf="$(__fzfcmd_complete)"
matches=$(command ps -ef | sed 1d | FZF_DEFAULT_OPTS="--height ${FZF_TMUX_HEIGHT:-50%} --min-height 15 --reverse $FZF_DEFAULT_OPTS --preview 'echo {}' --preview-window down:3:wrap $FZF_COMPLETION_OPTS" ${=fzf} -m | awk '{print $2}' | tr '\n' ' ')
if [ -n "$matches" ]; then
LBUFFER="$LBUFFER$matches"
fi
zle reset-prompt
# Trigger sequence given
elif [ ${#tokens} -gt 1 -a "$tail" = "$trigger" ]; then
d_cmds=(${=FZF_COMPLETION_DIR_COMMANDS:-cd pushd rmdir})
[ -z "$trigger" ] && prefix=${tokens[-1]} || prefix=${tokens[-1]:0:-${#trigger}}
[ -z "${tokens[-1]}" ] && lbuf=$LBUFFER || lbuf=${LBUFFER:0:-${#tokens[-1]}}
if eval "type _fzf_complete_${cmd} > /dev/null"; then
eval "prefix=\"$prefix\" _fzf_complete_${cmd} \"$lbuf\""
elif [ ${d_cmds[(i)$cmd]} -le ${#d_cmds} ]; then
_fzf_dir_completion "$prefix" "$lbuf"
else
_fzf_path_completion "$prefix" "$lbuf"
fi
# Fall back to default completion
else
zle ${fzf_default_completion:-expand-or-complete}
fi
}
[ -z "$fzf_default_completion" ] && {
binding=$(bindkey '^I')
[[ $binding =~ 'undefined-key' ]] || fzf_default_completion=$binding[(s: :w)2]
unset binding
}
zle -N fzf-completion
bindkey '^I' fzf-completion
fi

View file

@ -0,0 +1,85 @@
# Key bindings
# ------------
if [[ $- == *i* ]]; then
# CTRL-T - Paste the selected file path(s) into the command line
__fsel() {
local cmd="${FZF_CTRL_T_COMMAND:-"command find -L . -mindepth 1 \\( -path '*/\\.*' -o -fstype 'sysfs' -o -fstype 'devfs' -o -fstype 'devtmpfs' -o -fstype 'proc' \\) -prune \
-o -type f -print \
-o -type d -print \
-o -type l -print 2> /dev/null | cut -b3-"}"
setopt localoptions pipefail 2> /dev/null
eval "$cmd" | FZF_DEFAULT_OPTS="--height ${FZF_TMUX_HEIGHT:-40%} --reverse $FZF_DEFAULT_OPTS $FZF_CTRL_T_OPTS" $(__fzfcmd) -m "$@" | while read item; do
echo -n "${(q)item} "
done
local ret=$?
echo
return $ret
}
__fzf_use_tmux__() {
[ -n "$TMUX_PANE" ] && [ "${FZF_TMUX:-0}" != 0 ] && [ ${LINES:-40} -gt 15 ]
}
__fzfcmd() {
__fzf_use_tmux__ &&
echo "fzf-tmux -d${FZF_TMUX_HEIGHT:-40%}" || echo "fzf"
}
fzf-file-widget() {
LBUFFER="${LBUFFER}$(__fsel)"
local ret=$?
zle reset-prompt
return $ret
}
zle -N fzf-file-widget
bindkey '^T' fzf-file-widget
# Ensure precmds are run after cd
fzf-redraw-prompt() {
local precmd
for precmd in $precmd_functions; do
$precmd
done
zle reset-prompt
}
zle -N fzf-redraw-prompt
# ALT-C - cd into the selected directory
fzf-cd-widget() {
local cmd="${FZF_ALT_C_COMMAND:-"command find -L . -mindepth 1 \\( -path '*/\\.*' -o -fstype 'sysfs' -o -fstype 'devfs' -o -fstype 'devtmpfs' -o -fstype 'proc' \\) -prune \
-o -type d -print 2> /dev/null | cut -b3-"}"
setopt localoptions pipefail 2> /dev/null
local dir="$(eval "$cmd" | FZF_DEFAULT_OPTS="--height ${FZF_TMUX_HEIGHT:-40%} --reverse $FZF_DEFAULT_OPTS $FZF_ALT_C_OPTS" $(__fzfcmd) +m)"
if [[ -z "$dir" ]]; then
zle redisplay
return 0
fi
cd "$dir"
local ret=$?
zle fzf-redraw-prompt
return $ret
}
zle -N fzf-cd-widget
bindkey '\ec' fzf-cd-widget
# CTRL-R - Paste the selected command from history into the command line
fzf-history-widget() {
local selected num
setopt localoptions noglobsubst noposixbuiltins pipefail 2> /dev/null
selected=( $(fc -rl 1 |
FZF_DEFAULT_OPTS="--height ${FZF_TMUX_HEIGHT:-40%} $FZF_DEFAULT_OPTS -n2..,.. --tiebreak=index --bind=ctrl-r:toggle-sort $FZF_CTRL_R_OPTS --query=${(qqq)LBUFFER} +m" $(__fzfcmd)) )
local ret=$?
if [ -n "$selected" ]; then
num=$selected[1]
if [ -n "$num" ]; then
zle vi-fetch-history -n $num
fi
fi
zle reset-prompt
return $ret
}
zle -N fzf-history-widget
bindkey '^R' fzf-history-widget
fi

View file

@ -1,35 +1,53 @@
;;; init.el --- Spacemacs Initialization File
;;; init.el -*- lexical-binding: t; -*-
;;
;; Copyright (c) 2012-2016 Sylvain Benner & Contributors
;; Author: Henrik Lissner <henrik@lissner.net>
;; URL: https://github.com/hlissner/doom-emacs
;;
;; Author: Sylvain Benner <sylvain.benner@gmail.com>
;; URL: https://github.com/syl20bnr/spacemacs
;; ================= =============== =============== ======== ========
;; \\ . . . . . . .\\ //. . . . . . .\\ //. . . . . . .\\ \\. . .\\// . . //
;; ||. . ._____. . .|| ||. . ._____. . .|| ||. . ._____. . .|| || . . .\/ . . .||
;; || . .|| ||. . || || . .|| ||. . || || . .|| ||. . || ||. . . . . . . ||
;; ||. . || || . .|| ||. . || || . .|| ||. . || || . .|| || . | . . . . .||
;; || . .|| ||. _-|| ||-_ .|| ||. . || || . .|| ||. _-|| ||-_.|\ . . . . ||
;; ||. . || ||-' || || `-|| || . .|| ||. . || ||-' || || `|\_ . .|. .||
;; || . _|| || || || || ||_ . || || . _|| || || || |\ `-_/| . ||
;; ||_-' || .|/ || || \|. || `-_|| ||_-' || .|/ || || | \ / |-_.||
;; || ||_-' || || `-_|| || || ||_-' || || | \ / | `||
;; || `' || || `' || || `' || || | \ / | ||
;; || .===' `===. .==='.`===. .===' /==. | \/ | ||
;; || .==' \_|-_ `===. .===' _|_ `===. .===' _-|/ `== \/ | ||
;; || .==' _-' `-_ `=' _-' `-_ `=' _-' `-_ /| \/ | ||
;; || .==' _-' '-__\._-' '-_./__-' `' |. /| | ||
;; ||.==' _-' `' | /==.||
;; ==' _-' \/ `==
;; \ _-' `-_ /
;; `'' ``'
;;
;; This file is not part of GNU Emacs.
;; These demons are not part of GNU Emacs.
;;
;;; License: GPLv3
;;; License: MIT
;; Without this comment emacs25 adds (package-initialize) here
;; (package-initialize)
;; A big contributor to startup times is garbage collection. We up the gc
;; threshold to temporarily prevent it from running, then reset it later by
;; enabling `gcmh-mode'. Not resetting it will cause stuttering/freezes.
(setq gc-cons-threshold most-positive-fixnum)
;; Increase gc-cons-threshold, depending on your system you may set it back to a
;; lower value in your dotfile (function `dotspacemacs/user-config')
(setq gc-cons-threshold 100000000)
;; In noninteractive sessions, prioritize non-byte-compiled source files to
;; prevent the use of stale byte-code. Otherwise, it saves us a little IO time
;; to skip the mtime checks on every *.elc file.
(setq load-prefer-newer noninteractive)
(defconst spacemacs-version "0.200.3" "Spacemacs version.")
(defconst spacemacs-emacs-min-version "24.4" "Minimal version of Emacs.")
(let (file-name-handler-alist)
;; Ensure Doom is running out of this file's directory
(setq user-emacs-directory (file-name-directory load-file-name)))
(if (not (version<= spacemacs-emacs-min-version emacs-version))
(message (concat "Your version of Emacs (%s) is too old. "
"Spacemacs requires Emacs version %s or above.")
emacs-version spacemacs-emacs-min-version)
(load-file (concat (file-name-directory load-file-name)
"core/core-load-paths.el"))
(require 'core-spacemacs)
(spacemacs/init)
(spacemacs/maybe-install-dotfile)
(configuration-layer/sync)
(spacemacs-buffer/display-info-box)
(spacemacs/setup-startup-hook)
(require 'server)
(unless (server-running-p) (server-start)))
;; Load the heart of Doom Emacs
(load (concat user-emacs-directory "core/core")
nil 'nomessage)
;; And let 'er rip!
(doom-initialize)
(if noninteractive
(doom-initialize-packages)
(doom-initialize-core)
(doom-initialize-modules))

View file

@ -249,7 +249,6 @@ This requires library `rainbow-mode'.")
;nil
;'(("\\<\\(\\(0[xX]\\|0[bB]\\)?-?[0-9a-fA-F]+\\.?[0-9]*?[fFlL]?\\)\\>" 1 '((t (:foreground "#E3AC3D")))))))))
(provide-theme 'barak)
;;;###autoload
;; (add-to-list 'safe-local-eval-forms
@ -260,3 +259,7 @@ This requires library `rainbow-mode'.")
;; indent-tabs-mode: nil
;; eval: (when (require 'rainbow-mode nil t) (rainbow-mode 1))
;; End:
(provide-theme 'barak)
(provide 'barak-theme)
;;; barak-theme ends here

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View file

@ -16,6 +16,12 @@
ours = "!f() { git checkout --ours $@ && git add $@; }; f"
theirs = "!f() { git checkout --theirs $@ && git add $@; }; f"
praise = blame
; blame = "gblame"
reabsorb = rebase -i --autosquash
flog = "!f() { git ls-tree -r --full-name HEAD | awk '{print $4}' | xargs -i sh -c 'echo $(git log --oneline {} | wc -l) {}'; }; f"
fileprimary = "!f() { git blame --line-porcelain $@ | grep \"author \" | cut -d \" \" -f 2- | sort | uniq -c | sort -n | tail -n 1 | sed -e 's/\\s\\+[0-9]\\+ //g'; }; f"
newbranch = "!f() { git fetch origin && git checkout origin/master && git checkout -b $@; }; f"
nb = newbranch
[diff]
renamelimit = 0
@ -39,4 +45,7 @@
enabled = true
[url "git@github.com:"]
insteadOf = https://github.com/
insteadOf = https://github.com
[url "git@git.barakmich.com:"]
insteadOf = https://git.barakmich.com

View file

@ -15,7 +15,7 @@ set $mod Mod1
# is used in the bar {} block below.
# This font is widely installed, provides lots of unicode glyphs, right-to-left
# text rendering and scalability on retina/hidpi displays (thanks to pango).
font pango:DejaVu Sans Mono 13
font pango:Droid Sans Mono 11
# Before i3 v4.8, we used to recommend this one as the default:
# font -misc-fixed-medium-r-normal--13-120-75-75-C-70-iso10646-1
# The font above is very space-efficient, that is, it looks good, sharp and
@ -42,7 +42,7 @@ floating_modifier $mod
# start a terminal
bindsym $mod+Shift+Return exec run_terminal
bindsym Control+space exec rofi -show run -fuzzy -terminal run_terminal
bindsym Control+space exec --no-startup-id rofi -show run -fuzzy -terminal run_terminal
# kill focused window
bindsym $mod+Shift+c kill
@ -54,7 +54,8 @@ bindsym $mod+d exec i3-dmenu-desktop --dmenu='rofi -dmenu'
bindsym $mod+F12 exec xscreensaver-command -lock
bindsym $mod+Shift+y exec xinput-toggle -r yubikey -n -e -t 10
bindsym $mod+Shift+f exec --no-startup-id xmodmap ~/.Xmodmap
bindsym $mod+Control+Shift+f exec fixkeyboard
bindsym $mod+Shift+s exec xfce4-screenshooter
# There also is the (new) i3-dmenu-desktop which only displays applications
# shipping a .desktop file. It is a wrapper around dmenu, so you need that
# installed.
@ -94,6 +95,8 @@ bindsym $mod+v split h
# enter fullscreen mode for the focused container
bindsym $mod+f fullscreen
bindsym $mod+b fullscreen toggle global
# change container layout (stacked, tabbed, toggle split)
bindsym $mod+s layout stacking
@ -143,6 +146,8 @@ bindsym $mod+Shift+r restart
# exit i3 (logs you out of your X session)
bindsym $mod+Shift+q exec "i3-nagbar -t warning -m 'You pressed the exit shortcut. Do you really want to exit i3? This will end your X session.' -b 'Yes, exit i3' 'i3-msg exit'"
bindsym $mod+u resize set width 62ppt
# resize window (you can also use the mouse for that)
mode "resize" {
# These bindings trigger as soon as you enter the resize mode
@ -194,6 +199,18 @@ mode "moveworkspace" {
}
bindsym $mod+t mode "moveworkspace"
bindsym $mod+y move workspace to output left
mode "goremote" {
# bindsym g exec "remmina -c ~/.local/share/remmina/1523485448993.remmina"; mode "default"
bindsym g exec "run_terminal -x ssh barak@10.42.1.8 -J barak@barakmich.com:2222"; mode "default"
bindsym t exec "run_terminal -x ssh -p 2222 barak@rack.0b100.net"; mode "default"
bindsym p exec "run_terminal -x ssh -p 2222 barak@barakmich.com"; mode "default"
bindsym Return mode "default"
bindsym Escape mode "default"
}
bindsym $mod+Shift+Control+r mode "goremote"
# Start i3bar to display a workspace bar (plus the system information i3status
# finds out, if available)
@ -204,3 +221,4 @@ bindsym $mod+t mode "moveworkspace"
#tray_output primary
#}
exec --no-startup-id xfce4-panel --disable-wm-check
#exec --no-startup-id polybar example

View file

@ -0,0 +1,47 @@
[remmina]
sound=off
sharefolder=
name=ganymede
cert_ignore=0
console=0
ssh_enabled=1
exec=
clientname=
loadbalanceinfo=
server=10.42.1.8
colordepth=64
ssh_auth=3
postcommand=
group=
sharesmartcard=0
quality=1
username=barak
ssh_charset=
ssh_loopback=0
ssh_username=barak
gateway_password=
gateway_server=
gateway_username=
microphone=0
execpath=
resolution_width=
gateway_usage=0
disableautoreconnect=0
password=.
resolution_height=
security=
domain=
disablepasswordstoring=0
precommand=
ssh_server=barakmich.com:2222
protocol=RDP
shareprinter=0
gateway_domain=
disableclipboard=0
ssh_privatekey=
last_success=20190426
window_maximize=0
window_height=1411
window_width=1276
viewmode=4
keyboard_grab=1

View file

@ -1,3 +1,2 @@
text/html; w3m -I %{charset} -T text/html -cols 150; copiousoutput;
text/html; w3m -I %{charset} -T text/html -cols 150 -o display_link_number=1; copiousoutput;
#text/html; pandoc -f html -t markdown; copiousoutput;

View file

@ -1,10 +1,10 @@
set imap_user = "barak@barakmich.com"
set imap_user = "bmichener@lyft.com"
#set imap_pass = "secret"
source ~/.mutt/secret
set smtp_url = "smtp://barak@barakmich.com@smtp.gmail.com:587/"
set smtp_url = "smtp://bmichener@lyft.com@smtp.gmail.com:587/"
#set smtp_pass = "secret"
set from = "me@barakmich.com"
set from = "barakmich@lyft.com"
set realname = "Barak Michener"
set folder = "imaps://imap.gmail.com:993"

View file

@ -42,20 +42,19 @@ set -g status-fg white
set -g status-bg default
# default window title colors
set-window-option -g window-status-fg white
set-window-option -g window-status-bg default
set-window-option -g window-status-attr dim
set-window-option -g window-status-style fg=white,bg=default,dim
# active window title colors
set-window-option -g window-status-current-fg cyan
set-window-option -g window-status-current-bg default
set-window-option -g window-status-current-attr bright
set-window-option -g window-status-current-style fg=cyan,bg=default,bright
set -g status-left '#[fg=green][ #H ][ '
set -g status-right '#[fg=green]][ #[fg=blue]%Y-%m-%d #[fg=white]%I:%M #[fg=green]]'
set -g status-right '#[fg=green]][ #[bright]#[fg=blue]%Y-%m-%d #[fg=white]%I:%M #[dim]#[fg=green]]'
# Notifying if other windows has activities
setw -g monitor-activity on
set -g visual-activity on
# Highlighting the active window in status bar
setw -g window-status-current-bg red
setw -g window-status-current-style bg=red,bright
setw -g aggressive-resize on
setw -g window-size largest

40
.vim/coc-settings.json Normal file
View file

@ -0,0 +1,40 @@
{
"suggest.timeout": 5000,
"suggest.enablePreview": true,
"suggest.enablePreselect": false,
"suggest.noselect": true,
//"solargraph.useBundler": true,
"diagnostic.displayByAle": false,
"diagnostic.checkCurrentLine": true,
"python.linting.pylintEnabled": false,
"python.linting.flake8Enabled": true,
"python.linting.mypyEnabled": true,
"python.linting.mypyArgs": ["--ignore-missing-imports"],
"python.venvFolders": [".virtualenvs"],
"python.jediEnabled": true,
"python.autoComplete.addBrackets": false,
"suggest.detailField": "abbr",
"suggest.snippetIndicator": "",
"languageserver": {
"ccls": {
"command": "ccls",
"filetypes": ["c", "cc", "cpp", "cuda", "objc", "objcpp"],
"rootPatterns": [".ccls", "compile_commands.json", ".vim/", ".git/", ".hg/"],
"initializationOptions": {
"cache": {
"directory": ".ccls-cache"
}
}
},
// "golang": {
// "command": "gopls",
// "rootPatterns": ["go.mod", ".vim/", ".git/", ".hg/"],
// "filetypes": ["go"]
//}
},
"python.autoComplete.extraPaths": [
"${env:SPARK_HOME}/python",
"${env:SPARK_HOME}/python/pyspark"
]
}

View file

@ -38,7 +38,7 @@ hi Normal ctermfg=253 ctermbg=NONE
" -------------
" any comment
hi Comment guifg=#238e23 gui=italic
hi Comment ctermfg=34 cterm=none
hi Comment ctermfg=34 cterm=italic
" Constant Group
@ -287,13 +287,13 @@ hi WildMenu ctermfg=16 ctermbg=186 cterm=bold
" ----
" added line
hi DiffAdd guifg=#80a090 guibg=#313c36 gui=none
hi DiffAdd ctermfg=18 ctermbg=22 cterm=none
hi DiffAdd ctermfg=fg ctermbg=22 cterm=none
" changed line
hi DiffChange guifg=NONE guibg=#4a343a gui=none
hi DiffChange ctermfg=fg ctermbg=52 cterm=none
hi DiffChange ctermfg=fg ctermbg=58 cterm=none
" deleted line
hi DiffDelete guifg=#6c6661 guibg=#3c3631 gui=none
hi DiffDelete ctermfg=59 ctermbg=58 cterm=none
hi DiffDelete ctermfg=fg ctermbg=52 cterm=none
" changed text within line
hi DiffText guifg=#f05060 guibg=#4a343a gui=bold
hi DiffText ctermfg=203 ctermbg=52 cterm=bold
@ -322,11 +322,13 @@ hi Search ctermbg=214 cterm=none
" Popup Menu
" ----------
" normal item in popup
"hi Pmenu guifg=#e0e0e0 guibg=#303840 gui=none
"hi Pmenu ctermfg=253 ctermbg=233 cterm=none
hi Pmenu guifg=#e0e0e0 guibg=#303840 gui=none
hi Pmenu ctermfg=253 ctermbg=233 cterm=none
hi Pmenu ctermfg=253 ctermbg=237 cterm=none
" selected item in popup
hi PmenuSel guifg=#cae682 guibg=#505860 gui=none
hi PmenuSel ctermfg=186 ctermbg=237 cterm=none
hi PmenuSel ctermfg=186 ctermbg=239 cterm=none
" scrollbar in popup
hi PMenuSbar guibg=#505860 gui=none
hi PMenuSbar ctermbg=59 cterm=none
@ -419,3 +421,16 @@ hi DONE guifg=green guibg=NONE ctermfg=green ctermbg=NONE
"
hi deniteMatchedChar guifg=#FFFFFF guibg=#5F87FF ctermfg=15 ctermbg=27
hi link NormalFloat Pmenu
" Vim-Signify
" ----
hi SignifySignAdd guifg=#80a090 guibg=#181818 gui=none
hi SignifySignAdd ctermfg=29 ctermbg=233 cterm=none
hi SignifySignChange guifg=#4a343a guibg=#181818 gui=none
hi SignifySignChange ctermfg=100 ctermbg=233 cterm=none
hi SignifySignDelete guifg=#6c6661 guibg=#181818 gui=none
hi SignifySignDelete ctermfg=124 ctermbg=233 cterm=none
hi CocErrorSign ctermfg=166 guifg=#d03000

View file

@ -36,11 +36,11 @@ au! BufNewFile,BufRead *.pde setf arduino
augroup org
" leave these as is:
au! BufRead,BufWrite,BufWritePost,BufNewFile *.org
au BufRead,BufNewFile *.org call org#SetOrgFileType()
"au BufRead,BufNewFile *.org call org#SetOrgFileType()
au BufRead,BufNewFile *.org :GitGutterDisable
au BufRead *.org :PreLoadTags
au BufWrite *.org :PreWriteTags
au BufWritePost *.org :PostWriteTags
"au BufRead *.org :PreLoadTags
"au BufWrite *.org :PreWriteTags
"au BufWritePost *.org :PostWriteTags
augroup END
au BufNewFile,BufRead motd.public,/tmp/motd.public.r.* setf motd

File diff suppressed because it is too large Load diff

162
.vimrc
View file

@ -81,11 +81,22 @@ if exists('veonim')
" set linespace=10
endif
if exists('gnvim')
set guifont=Droid\ Sans\ Mono\ Dotted:h15
endif
" * Polyglot
let g:tex_flavor = 'latex'
let g:polyglot_disabled = ['latex']
" Required:
set runtimepath+=/home/barak/.vim/bundle/repos/github.com/Shougo/dein.vim
" Required:
call plug#begin('/home/barak/.vim/bundle')
" Aw, fuck, I can't believe you've done this.
" Plugins that must be first
Plug '/home/barak/.vim/bundle/repos/github.com/Shougo/dein.vim'
@ -106,7 +117,8 @@ Plug 'ambv/black'
Plug 'kana/vim-textobj-user'
" Plugins I wish I used more
Plug 'hsitz/VimOrganizer'
"Plug 'hsitz/VimOrganizer'
Plug 'jceb/vim-orgmode'
Plug 'tpope/vim-fugitive'
Plug 'tpope/vim-unimpaired'
Plug 'b4winckler/vim-angry'
@ -114,10 +126,11 @@ Plug 'tpope/vim-surround'
Plug 'junegunn/vim-easy-align'
Plug 'bps/vim-textobj-python'
" Plugins I NEED
Plug 'scrooloose/nerdcommenter'
Plug 'sjbach/lusty'
Plug 'w0rp/ale'
"Plug 'sjbach/lusty'
"Plug 'w0rp/ale'
Plug 'airblade/vim-gitgutter'
Plug 'vim-airline/vim-airline'
Plug 'vim-airline/vim-airline-themes'
@ -133,6 +146,7 @@ Plug 'tpope/vim-abolish'
Plug 'sheerun/vim-polyglot'
Plug 'Shougo/denite.nvim'
Plug 'plytophogy/vim-virtualenv'
Plug 'ervandew/supertab'
" Plugins I NEEDED
@ -159,21 +173,27 @@ Plug 'Shougo/context_filetype.vim'
Plug 'idris-hackers/idris-vim', {'for': 'idris'}
Plug 'derekwyatt/vim-scala', {'for': 'scala'}
Plug 'hwayne/tla.vim'
Plug 'zchee/vim-goasm'
" Plugins that autocomplete
Plug 'Shougo/deoplete.nvim'
Plug 'zchee/deoplete-clang'
Plug 'zchee/deoplete-go', {'build': {'unix': 'make'}}
Plug 'zchee/deoplete-jedi'
Plug 'davidhalter/jedi-vim'
Plug 'eagletmt/neco-ghc', {'for': 'haskell'}
Plug 'eagletmt/ghcmod-vim', {'for': 'haskell'}
Plug 'racer-rust/vim-racer', {'for': 'rust'}
Plug 'autozimu/LanguageClient-neovim', {
\ 'branch': 'next',
\ 'do': 'bash install.sh',
\ }
"Plug 'Shougo/deoplete.nvim'
"Plug 'zchee/deoplete-clang'
"Plug 'zchee/deoplete-go', {'build': {'unix': 'make'}}
"Plug 'zchee/deoplete-jedi'
"Plug 'davidhalter/jedi-vim'
"Plug 'eagletmt/neco-ghc', {'for': 'haskell'}
"Plug 'eagletmt/ghcmod-vim', {'for': 'haskell'}
"Plug 'racer-rust/vim-racer', {'for': 'rust'}
"Plug 'autozimu/LanguageClient-neovim', {
"\ 'branch': 'next',
"\ 'do': 'bash install.sh',
"\ }
"Plug 'ensime/ensime-vim', { 'do': ':UpdateRemotePlugins' }
Plug 'neoclide/coc.nvim', {'branch': 'release'}
"Plug 'prabirshrestha/async.vim'
"Plug 'prabirshrestha/vim-lsp'
"Plug 'prabirshrestha/asyncomplete.vim'
"Plug 'prabirshrestha/asyncomplete-lsp.vim'
" Plugins that do specific things
Plug 'Shougo/vimproc.vim'
@ -188,9 +208,29 @@ Plug 'lervag/vimtex'
" Unclear
Plug 'ncm2/float-preview.nvim'
Plug 'tomasiser/vim-code-dark'
Plug 'robertbasic/vim-hugo-helper'
call plug#end()
nmap <silent> gd <Plug>(coc-definition)
nmap <silent> gy <Plug>(coc-type-definition)
nmap <silent> gi <Plug>(coc-implementation)
nmap <silent> gr <Plug>(coc-references)
imap <Leader>, <Plug>(coc-snippets-expand)
" Use K to show documentation in preview window
nnoremap <silent> K :call <SID>show_documentation()<CR>
function! s:show_documentation()
if (index(['vim','help'], &filetype) >= 0)
execute 'h '.expand('<cword>')
else
call CocAction('doHover')
endif
endfunction
"NeoBundle 'eclim'
"https://git.wincent.com/command-t.git
@ -208,6 +248,7 @@ autocmd InsertLeave * if pumvisible() == 0|pclose|endif
"source ~/.vim/supertab.vim
"source ~/.vim/charm.vim
"source ~/.vim/plugin/AppleT.vim
"source ~/.vim/vim-lsp-conf.vim
runtime macros/matchit.vim
" Completion features (TODO: Add to filetype.vim)
@ -217,13 +258,13 @@ autocmd FileType python set tags+=$HOME/.vim/tags/python.ctags
"autocmd FileType python call SuperTabSetCompletionType("<C-X><C-O>")
" Set filetype for VimOrganizer
au! BufRead,BufWrite,BufWritePost,BufNewFile *.org
au BufEnter *.org call org#SetOrgFileType()
"au! BufRead,BufWrite,BufWritePost,BufNewFile *.org
"au BufEnter *.org call org#SetOrgFileType()
"au! BufRead,BufWrite,BufWritePost,BufNewFile *.org
"au BufEnter *.org call org#SetOrgFileType()
command! OrgCapture :call org#CaptureBuffer()
command! OrgCaptureFile :call org#OpenCaptureFile()
"command! OrgCapture :call org#CaptureBuffer()
"command! OrgCaptureFile :call org#OpenCaptureFile()
" Cull trailing whitespace for all files.
autocmd BufWritePre * :call AutoTrimWhitespace()
@ -245,19 +286,21 @@ setlocal cursorline
" ** PLUGIN CONFIGURATION **
" * SuperTab
let g:SuperTabDefaultCompletionType = "<c-n>"
"
" Change the source rank
call deoplete#custom#option('sources', {
\ 'python': ['LanguageClient', 'jedi'],
\})
call deoplete#custom#source('buffer', 'rank', 1)
let g:deoplete#sources#clang#libclang_path = '/usr/lib/llvm-6.0/lib/libclang.so'
let g:deoplete#sources#clang#clang_header = '/usr/lib/llvm-6.0/lib/clang'
let g:deoplete#enable_at_startup = 1
let g:deoplete#sources = {}
let g:deoplete#sources.scala = ['buffer', 'tags', 'omni']
let g:deoplete#omni#input_patterns = {}
let g:deoplete#omni#input_patterns.scala = ['[^. *\t0-9]\.\w*',': [A-Z]\w', '[\[\t\( ][A-Za-z]\w*']
"call deoplete#custom#option('sources', {
"\ 'python': ['LanguageClient', 'jedi'],
"\})
"call deoplete#custom#source('buffer', 'rank', 1)
"let g:deoplete#sources#clang#libclang_path = '/usr/lib/llvm-6.0/lib/libclang.so'
"let g:deoplete#sources#clang#clang_header = '/usr/lib/llvm-6.0/lib/clang'
"let g:deoplete#enable_at_startup = 1
"let g:deoplete#sources = {}
"let g:deoplete#sources.scala = ['buffer', 'tags', 'omni']
"let g:deoplete#omni#input_patterns = {}
"let g:deoplete#omni#input_patterns.scala = ['[^. *\t0-9]\.\w*',': [A-Z]\w', '[\[\t\( ][A-Za-z]\w*']
" * Vim general/Unknown
let python_highlight_all = 1
let g:Tb_MaxSize=0
@ -279,8 +322,6 @@ let g:syntastic_auto_loc_list = 2
let g:syntastic_loc_list_height = 10
" E111 = Spaces should be multiples of 4. I use 2.
"
" * Polyglot
let g:polyglot_disabled = ['latex']
" * ALE
let g:airline#extensions#ale#enabled = 1
@ -310,12 +351,15 @@ let g:LustyJugglerShowKeys = 'a'
let g:buftabs_only_basename = 1
"let g:buftabs_in_statusline=1
" Bufferline
" * Bufferline
let g:bufferline_echo = 0
let g:bufferline_modified = '+'
let g:bufferline_show_bufnr = 1
let g:bufferline_rotate = 1
" * auto-pairs
let g:AutoPairsMultilineClose = 0
" * NERDTree
"let g:NERDChristmasTree = 1
"let g:NERDChristmasTree = 1
@ -327,6 +371,13 @@ let g:NERDTreeDirArrows=0
let g:NERDTreeMarkBookmarks = 0
let g:NERDTreeMinimalUI = 1
" * Signify
let g:signify_realtime = 0
let g:signify_vcs_list = ['git']
let g:signify_sign_change = '~'
let g:signify_sign_changedelete = g:signify_sign_change
let g:signify_sign_show_count = 0
" * VimFiler
let g:vimfiler_tree_indentation = 2
@ -359,7 +410,7 @@ let g:ycm_use_ultisnips_completer = 1
" * UltiSnips
let g:UltiSnipsSnippetDirectories=["UltiSnips", "usnips"]
let g:UltiSnipsExpandTrigger="<Leader>,"
"let g:UltiSnipsExpandTrigger="<Leader>,"
let g:UltiSnipsJumpForwardTrigger="<Leader>,"
let g:UltiSnipsJumpBackwardTrigger="<Leader><s-,>"
@ -371,7 +422,7 @@ let g:UltiSnipsJumpBackwardTrigger="<Leader><s-,>"
"let g:miniBufExplForceSyntaxEnable = 1
" Markdown
let g:markdown_enable_folding = 1
let g:markdown_enable_folding = 0
let g:markdown_enable_mappings = 0
let g:markdown_enable_spell_checking = 0
let g:markdown_enable_input_abbreviations = 0
@ -436,11 +487,12 @@ let g:ctrlp_match_window = 'bottom,order:ttb,min:1,max:15'
let g:go_fmt_command = "goimports"
"let g:go_auto_type_info = 1
let g:go_updatetime = 300
"let g:go_bin_path = "$HOME/.go/bin"
let g:go_bin_path = $HOME . "/.go/bin"
"let g:go_def_mode = 'gopls'
"let g:go_info_mode = 'gopls'
let g:go_def_mode = 'guru'
" ** STATUSLINE **
"
set laststatus=2
set statusline=%t "tail of the filename
"set statusline+=[%{&ff}] "file format
@ -654,7 +706,8 @@ nnoremap gK :bdelete!<CR>
" I use gn/gp to cycle through open tabs/buffers
nnoremap gn :bn<CR>
nnoremap gp :bp<CR>
nnoremap gz :pclose<CR>
"nnoremap gz :pclose<CR>
nnoremap gz :!zeal "<cword>"&<CR><CR>
" The single most handy way to get around a file. Cursor over a word, and then
" type g* -- you'll go to the next instance of that word in the file. Make it
" easier to reach by calling it gw (go-word) instead of hidden away.
@ -727,8 +780,8 @@ nnoremap <Leader>fn :lnext<CR>
" Prev quickfix.
nnoremap <Leader>fp :lprev<CR>
"nnoremap <silent> <Leader>aa :<C-u>Denite -mode=normal -buffer-name=search-buffer grep<CR>
nnoremap <silent> <Leader>ac :<C-u>Denite -resume -mode=normal -buffer-name=search-buffer<CR>
nnoremap <silent> <Leader>aw :<C-u>DeniteCursorWord -mode=normal -buffer-name=search-buffer grep<CR>
nnoremap <silent> <Leader>ac :<C-u>Denite -resume -buffer-name=search-buffer<CR>
nnoremap <silent> <Leader>aw :<C-u>DeniteCursorWord -buffer-name=search-buffer grep<CR>
call denite#custom#map('insert', '<Enter>', '<C-o>')
call denite#custom#var('grep', 'command', ['pt'])
call denite#custom#var('grep', 'default_opts',
@ -738,10 +791,26 @@ call denite#custom#var('grep', 'pattern_opt', [])
call denite#custom#var('grep', 'separator', ['--'])
call denite#custom#var('grep', 'final_opts', [])
call denite#custom#option('search-buffer', 'highlight_matched_char', 'deniteMatchedChar')
nnoremap <silent> <Leader>g :<C-u>Denite -buffer-name=search-buffer grep<CR>
nnoremap <silent> <Leader>aa :<C-u>RipGrep!<CR>
nnoremap <C-l> :<C-u>Files! `git rev-parse --show-toplevel`<CR>
nnoremap <C-k> :<C-u>Buffers<CR>
"nnoremap <silent> <Leader>aa :<C-u>RipGrep!<CR>
autocmd FileType denite call s:denite_my_settings()
function! s:denite_my_settings() abort
nnoremap <silent><buffer><expr> <CR>
\ denite#do_map('do_action')
nnoremap <silent><buffer><expr> d
\ denite#do_map('do_action', 'delete')
nnoremap <silent><buffer><expr> p
\ denite#do_map('do_action', 'preview')
nnoremap <silent><buffer><expr> q
\ denite#do_map('quit')
nnoremap <silent><buffer><expr> i
\ denite#do_map('open_filter_buffer')
nnoremap <silent><buffer><expr> <Space>
\ denite#do_map('toggle_select').'j'
endfunction
nnoremap <silent> <Leader>aa :<C-u>Denite -buffer-name=search-buffer grep<CR>
"nnoremap <silent> <Leader>aa :<C-u>RipGrep!<CR>
nnoremap <C-k> :<C-u>Files! `git rev-parse --show-toplevel`<CR>
" nnoremap <C-k> :<C-u>Buffers<CR>
" For C++ -- A is a great plugin which allows you to jump from the c file to the
" header and vice-versa. Mneumonic here is headerheader.
nnoremap <Leader>hh :A<CR>
@ -752,6 +821,7 @@ nnoremap <silent> <Leader>o :CtrlPBuffer<CR>
"nnoremap <Leader>p :PTW
nnoremap <Leader>p :LustyJugglePrevious<CR>
nnoremap <Leader>jd :YcmCompleter GoToDefinitionElseDeclaration<CR>
nnoremap <Leader>mm :w<CR>:make!<CR>
" ** EXTRA INCLUDES **
"
@ -763,7 +833,7 @@ endif
" ** SEE ALSO **
" filetype.vim
command Comments lexpr system('/home/barak/src/gogh/src/github.com/barakmich/gogh/gogh')
command Comments lexpr system('/home/bmichener/src/gogh/src/github.com/barakmich/gogh/gogh')
"call remote#host#RegisterPlugin('python3', '/home/barak/.vim/bundle/deoplete.nvim/rplugin/python3/deoplete', [

View file

@ -16,21 +16,23 @@ xfsettingsd &
xrdb -merge .Xdefaults &
#gnome-settings-daemon &
xscreensaver -no-splash &
#xscreensaver -no-splash &
#kupfer --no-splash &
rofi -key-run control-space -fuzzy -terminal run_terminal &
nm-applet &
gnome-sound-applet &
#nm-applet &
#gnome-sound-applet &
remmina -i &
#setxkbmap -option ctrl:nocaps &
setxkbmap -option ctrl:nocaps &
xmodmap ~/.Xmodmap &
xset +fp $HOME/.local/share/fonts
xset fp rehash
#synclient PalmDetect=1
# Running a really minimal arch system? This helps:
/usr/lib/xfce4/notifyd/xfce4-notifyd &
pulseaudio --start &
blueman-applet &
#blueman-applet &
#wicd-gtk --tray &
if [ -f ~/.xrandrrc ]; then
@ -39,9 +41,9 @@ fi
~/.fehbg &
if command -v compton &>/dev/null; then
compton -b --config ~/.compton.conf &
fi
#if command -v compton &>/dev/null; then
#compton -b --config ~/.compton.conf &
#fi
#exec awesome
exec i3
#exec startxfce4

8
.zshrc
View file

@ -132,7 +132,15 @@ if [ -f '/home/barak/local/google-cloud-sdk/path.zsh.inc' ]; then source '/home/
# The next line enables shell command completion for gcloud.
if [ -f '/home/barak/local/google-cloud-sdk/completion.zsh.inc' ]; then source '/home/barak/local/google-cloud-sdk/completion.zsh.inc'; fi
if [ -f "$HOME/.zshrc_work" ]; then source "$HOME/.zshrc_work"; fi
if [ -f "$HOME/.config/zsh/fzf-completion.zsh" ]; then source "$HOME/.config/zsh/fzf-completion.zsh"; fi
if [ -f "$HOME/.config/zsh/fzf-key-bindings.zsh" ]; then source "$HOME/.config/zsh/fzf-key-bindings.zsh"; fi
# This enables autocomplete for kubectl
if [ $commands[kubectl] ]; then
source <(kubectl completion zsh)
fi
export PATH="$HOME/.yarn/bin:$HOME/.config/yarn/global/node_modules/.bin:$PATH"

8
bin/fixkeyboard Executable file
View file

@ -0,0 +1,8 @@
#!/bin/bash
#python -c 'from ctypes import *; X11 = cdll.LoadLibrary("libX11.so.6"); display = X11.XOpenDisplay(None); X11.XkbLockModifiers(display, c_uint(0x0100), c_uint(2), c_uint(0)); X11.XCloseDisplay(display)'
setxkbmap -option ctrl:nocaps
if which notify-send >/dev/null; then
notify-send -t 1500 -a fixkeyboard "Fixed" "CapsLock Disbled"
fi

3
bin/neovim/update.sh Executable file
View file

@ -0,0 +1,3 @@
#!/bin/sh
curl -LO https://github.com/neovim/neovim/releases/download/nightly/nvim.appimage
chmod +x nvim.appimage

1
bin/nvim Symbolic link
View file

@ -0,0 +1 @@
./neovim/nvim.appimage

View file

@ -1,11 +1,11 @@
#!/usr/bin/env bash
if [ -n "`which terminator`" ]; then
terminator
elif [ -n "`which gnome-terminal`" ]; then
gnome-terminal
if [ -n "`which gnome-terminal`" ]; then
gnome-terminal $@
elif [ -n "`which terminator`" ]; then
terminator $@
elif [ -n "`which urxvt`" ]; then
urxvt
urxvt $@
else
xterm
xterm $@
fi