summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarc Vertes <mvertes@free.fr>2020-02-15 22:10:43 +0100
committerMarc Vertes <mvertes@free.fr>2020-02-15 22:10:43 +0100
commit6072454910045c093b8911bcd92d9db584312bf3 (patch)
treec7d11db8778bfbd902e7ad261fc696c8be4fee99
parent141502a84b8258095463becc4da6b2e19c311d8d (diff)
update
-rw-r--r--.bashrc7
-rw-r--r--.config/i3/config9
-rw-r--r--.profile6
-rw-r--r--.vimrc6
4 files changed, 21 insertions, 7 deletions
diff --git a/.bashrc b/.bashrc
index 2233d5f..a028766 100644
--- a/.bashrc
+++ b/.bashrc
@@ -41,6 +41,7 @@ export TERMINAL=xt
alias cl='cf xft:Mono:size=12'
alias ls='ls --color=auto'
alias ll='ls -alF'
+alias op='xdg-open'
alias git='hub'
alias go11='go1.11.13'
alias go12='go1.12.9'
@@ -64,12 +65,16 @@ alias by='go build cmd/yaegi/yaegi.go'
alias cy='cd ~/go/src/github.com/containous/yaegi'
alias ty='go test -v -short ./interp'
alias ya='rlwrap -pblue ./yaegi'
-alias dya='YAEGI_AST_DOT=1 YAEGI_CFG_DOT=1 ya'
+alias dya='YAEGI_AST_DOT=1 YAEGI_CFG_DOT=1 ./yaegi'
ws() (cd ~/Wiki && git status --short)
export -f ws
#PS1='[\u@\h \W]\$ '
+# fzf
+. /usr/share/fzf/completion.bash
+. /usr/share/fzf/key-bindings.bash
+
# Display git status in prompt
. ~/.bash-powerline.sh
diff --git a/.config/i3/config b/.config/i3/config
index 609bd3e..58a48f3 100644
--- a/.config/i3/config
+++ b/.config/i3/config
@@ -26,13 +26,14 @@ font fixed
# xss-lock grabs a logind suspend inhibit lock and will use i3lock to lock the
# screen before suspend. Use loginctl lock-session to lock your screen.
-exec --no-startup-id xss-lock --transfer-sleep-lock -- i3lock --nofork
+#exec --no-startup-id xss-lock --transfer-sleep-lock -- i3lock --nofork
# NetworkManager is the most popular way to manage wireless networks on Linux,
# and nm-applet is a desktop environment-independent system tray GUI for it.
#exec --no-startup-id nm-applet
#exec --no-startup-id sudo wpa_gui -t -i wlo1
+# pulse audio systray icon
exec --no-startup-id pasystray
# Use pactl to adjust volume in PulseAudio.
@@ -46,6 +47,7 @@ bindsym XF86AudioMicMute exec --no-startup-id pactl set-source-mute @DEFAULT_SOU
for_window [class="Arandr"] floating enable
for_window [class="Brave-browser"] floating enable
for_window [class="Chromium"] floating enable
+for_window [instance="Task Manager - Chromium"] floating enable
for_window [instance="DOTTY"] floating enable
for_window [class="discord"] floating enable
for_window [class="display"] floating enable
@@ -53,6 +55,7 @@ for_window [class="feh"] floating enable
for_window [class="firefox"] floating enable
for_window [class="gnuplot_qt"] floating enable
for_window [class="Geeqie"] floating enable
+for_window [class="Gitk"] floating enable
for_window [class="Keybase"] floating enable
for_window [class="MuPDF"] floating enable
for_window [class="Pavucontrol"] floating enable
@@ -72,9 +75,9 @@ bindsym button3 floating toggle
floating_modifier $mod
# start a terminal
-bindsym $mod+Return exec i3-sensible-terminal
+bindsym $mod+Return exec xt
bindsym F9 exec chromium
-bindsym F10 exec i3-sensible-terminal
+bindsym F10 exec xt
# kill focused window
bindsym $mod+Shift+a kill
diff --git a/.profile b/.profile
index 7ed9008..0db42b4 100644
--- a/.profile
+++ b/.profile
@@ -1,10 +1,10 @@
# ~/.profile
-export PATH=~/bin:$PATH:~/go/bin
+PATH=~/bin:$PATH:~/go/bin
-[ "${SHELL##*/}" = bash ] && [ -f ~/.bashrc ] && . ~/.bashrc
+[ "${SHELL##*/}" = bash ] && . ~/.bashrc
-# Last action: auto start X11 when logged on first terminal
+# Last action: auto start X11 when logged on first console
case $HOSTNAME in
(swift) [ "$(tty)" != /dev/tty1 ] || exec startx ;;
esac
diff --git a/.vimrc b/.vimrc
index 8e1e7c7..b811da5 100644
--- a/.vimrc
+++ b/.vimrc
@@ -3,6 +3,7 @@ set nocp
filetype plugin on
call plug#begin()
+Plug 'bilalq/lite-dfm'
Plug 'fatih/vim-go', { 'do': ':GoInstallBinaries' }
call plug#end()
@@ -54,6 +55,11 @@ noremap <buffer> @ :s,^#,,
" hi MatchParen cterm=reverse term=reverse ctermfg=white
"
+" Fix spell highlighting
+hi clear SpellBad
+hi SpellBad cterm=underline
+hi SpellBad gui=undercurl
+
noremap <leader>o :!xdg-open <cfile>&<cr><cr>
noremap <C-g> :tag <c-r><c-w><cr>