Merged
This commit is contained in:
commit
ff38460a8f
|
@ -7,12 +7,15 @@ function run {
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
. ~/.config/compton/launch.sh
|
run ~/.config/compton/launch.sh
|
||||||
#run ~/.config/awesome/autohidewibox.py ~/.config/awesome/autohidewibox.conf
|
#run ~/.config/awesome/autohidewibox.py ~/.config/awesome/autohidewibox.conf
|
||||||
run ~/setbg.sh
|
run ~/setbg.sh
|
||||||
run dunst
|
run dunst
|
||||||
run pulseeffects --gapplication-service
|
run pulseeffects --gapplication-service
|
||||||
|
<<<<<<< HEAD
|
||||||
xsetwacom set "Wacom HID 50DB Finger touch" Gesture off
|
xsetwacom set "Wacom HID 50DB Finger touch" Gesture off
|
||||||
run touchegg
|
run touchegg
|
||||||
run nm-applet
|
run nm-applet
|
||||||
#run music_wake.sh
|
#run music_wake.sh
|
||||||
|
=======
|
||||||
|
>>>>>>> 0d908b167965b06afc60f528d598a6abea56a879
|
||||||
|
|
|
@ -1,5 +1,18 @@
|
||||||
return {
|
return {
|
||||||
widgets = {
|
widgets = {
|
||||||
|
top = {
|
||||||
|
left = {
|
||||||
|
|
||||||
|
},
|
||||||
|
mid = {
|
||||||
|
|
||||||
|
},
|
||||||
|
right = {
|
||||||
|
"volume",
|
||||||
|
"clock"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
bottom = {
|
||||||
left = {
|
left = {
|
||||||
|
|
||||||
},
|
},
|
||||||
|
@ -9,8 +22,8 @@ return {
|
||||||
right = {
|
right = {
|
||||||
"memory",
|
"memory",
|
||||||
"cpu",
|
"cpu",
|
||||||
"volume",
|
"thermal",
|
||||||
"clock"
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
volume = {
|
volume = {
|
||||||
|
|
|
@ -16,7 +16,7 @@ local menubar = require("menubar")
|
||||||
local hotkeys_popup = require("awful.hotkeys_popup")
|
local hotkeys_popup = require("awful.hotkeys_popup")
|
||||||
local vicious = require("vicious")
|
local vicious = require("vicious")
|
||||||
local timer = require("gears.timer")
|
local timer = require("gears.timer")
|
||||||
local config = require("config_laptop")
|
local config = require("config_desktop")
|
||||||
local quake = require("quake")
|
local quake = require("quake")
|
||||||
|
|
||||||
-- Enable hotkeys help widget for VIM and other apps
|
-- Enable hotkeys help widget for VIM and other apps
|
||||||
|
|
|
@ -239,9 +239,9 @@ mode "resize" {
|
||||||
bindsym $mod+r mode "resize"
|
bindsym $mod+r mode "resize"
|
||||||
|
|
||||||
# Pulse Audio controls
|
# Pulse Audio controls
|
||||||
bindsym XF86AudioRaiseVolume exec --no-startup-id sh -c "pactl set-sink-mute 0 false && pactl set-sink-volume 0 +5%"
|
bindsym XF86AudioRaiseVolume exec --no-startup-id sh -c "pactl set-sink-mute 1 false && pactl set-sink-volume 1 +5%"
|
||||||
bindsym XF86AudioLowerVolume exec --no-startup-id sh -c "pactl set-sink-mute 0 false && pactl set-sink-volume 0 -5%"
|
bindsym XF86AudioLowerVolume exec --no-startup-id sh -c "pactl set-sink-mute 1 false && pactl set-sink-volume 1 -5%"
|
||||||
bindsym XF86AudioMute exec --no-startup-id sh -c "pactl set-sink-mute 0 toggle"
|
bindsym XF86AudioMute exec --no-startup-id sh -c "pactl set-sink-mute 1 toggle"
|
||||||
|
|
||||||
|
|
||||||
# Workspace assignment
|
# Workspace assignment
|
||||||
|
|
|
@ -53,9 +53,7 @@ font-5 = "Font Awesome 5 Brands:pixelsize=12;1"
|
||||||
modules-left = i3 workspaces-xmonad
|
modules-left = i3 workspaces-xmonad
|
||||||
modules-center = xwindow
|
modules-center = xwindow
|
||||||
;weather update installed
|
;weather update installed
|
||||||
modules-right = temperature xbacklight volume wlan battery date
|
modules-right = temperature xbacklight memory volume wlan battery date
|
||||||
|
|
||||||
tray-postion = right
|
|
||||||
|
|
||||||
override-redirect = false
|
override-redirect = false
|
||||||
|
|
||||||
|
|
|
@ -5,11 +5,11 @@ killall polybar
|
||||||
if type "xrandr"; then
|
if type "xrandr"; then
|
||||||
for m in $(xrandr --query | grep " connected" | cut -d" " -f1); do
|
for m in $(xrandr --query | grep " connected" | cut -d" " -f1); do
|
||||||
MONITOR=$m polybar --reload bar1 &
|
MONITOR=$m polybar --reload bar1 &
|
||||||
MONITOR=$m polybar --reload touchbar &
|
#MONITOR=$m polybar --reload touchbar &
|
||||||
done
|
done
|
||||||
else
|
else
|
||||||
polybar --reload bar1 &
|
polybar --reload bar1 &
|
||||||
polybar --reload touchbar &
|
#polybar --reload touchbar &
|
||||||
fi
|
fi
|
||||||
|
|
||||||
sleep 1
|
sleep 1
|
||||||
|
|
32
.vimrc
32
.vimrc
|
@ -29,27 +29,39 @@ call plug#end() " required
|
||||||
|
|
||||||
filetype plugin indent on " required
|
filetype plugin indent on " required
|
||||||
|
|
||||||
let g:LanguageClient_serverCommands = {
|
|
||||||
\ 'r': ['R', '--slave', '-e', 'languageserver::run()'],
|
|
||||||
\ }
|
|
||||||
|
|
||||||
let g:deoplete#enable_at_startup = 1
|
let g:deoplete#enable_at_startup = 1
|
||||||
let g:deoplete#sources#clang#libclang_path = "/usr/lib/libclang.so"
|
let g:deoplete#sources#clang#libclang_path = "/usr/lib/libclang.so"
|
||||||
let g:deoplete#sources#clang#clang_header = "/usr/lib/clang"
|
let g:deoplete#sources#clang#clang_header = "/usr/lib/clang"
|
||||||
let g:deoplete#sources#rust#racer_binary='/usr/bin/racer'
|
let g:deoplete#sources#rust#racer_binary='/usr/bin/racer'
|
||||||
let g:deoplete#sources#rust#rust_source_path='/usr/src/rust/src'
|
let g:deoplete#sources#rust#rust_source_path='/usr/src/rust/src'
|
||||||
|
|
||||||
|
let g:LanguageClient_serverCommands = {
|
||||||
|
\ 'lua': ['lua-lsp'],
|
||||||
|
\ }
|
||||||
|
let g:LanguageClient_autoStart = 1
|
||||||
|
|
||||||
set tags+=./.tags
|
set tags+=./.tags
|
||||||
|
|
||||||
|
|
||||||
" Session management
|
" Session management
|
||||||
|
|
||||||
set switchbuf=useopen,usetab
|
set switchbuf=useopen,usetab
|
||||||
|
|
||||||
|
let g:session = 0
|
||||||
|
|
||||||
|
fu! AutoSaveSess()
|
||||||
|
if g:session == 1
|
||||||
|
call SaveSess()
|
||||||
|
endif
|
||||||
|
endfunction
|
||||||
|
|
||||||
fu! SaveSess()
|
fu! SaveSess()
|
||||||
|
execute 'NERDTreeTabsClose'
|
||||||
execute 'mksession! ' . getcwd() . '/.session.vim'
|
execute 'mksession! ' . getcwd() . '/.session.vim'
|
||||||
|
let g:session = 1
|
||||||
|
endfunction
|
||||||
|
|
||||||
|
fu! RemoveSess()
|
||||||
|
shell "rm " . getcwd() . "/.session.vim"
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
fu! RestoreSess()
|
fu! RestoreSess()
|
||||||
|
@ -63,15 +75,19 @@ if filereadable(getcwd() . '/.session.vim')
|
||||||
execute 'sb ' . file
|
execute 'sb ' . file
|
||||||
endif
|
endif
|
||||||
endfor
|
endfor
|
||||||
|
let g:session = 1
|
||||||
endif
|
endif
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
|
:command Savesess call SaveSess()
|
||||||
|
:command Restoresess call RestoreSess()
|
||||||
|
:command Removesess call RemoveSess()
|
||||||
|
|
||||||
" Save session on quitting Vim
|
" Save session on quitting Vim
|
||||||
autocmd VimLeave * NERDTreeTabsClose
|
autocmd VimLeave * call AutoSaveSess()
|
||||||
autocmd VimLeave * call SaveSess()
|
|
||||||
|
|
||||||
" Restore session on starting Vim
|
" Restore session on starting Vim
|
||||||
autocmd VimEnter * nested call RestoreSess()
|
"autocmd VimEnter * nested call RestoreSess()
|
||||||
|
|
||||||
"----------------------
|
"----------------------
|
||||||
|
|
||||||
|
|
11
.zshrc
11
.zshrc
|
@ -1,5 +1,6 @@
|
||||||
# If you come from bash you might have to change your $PATH.
|
# If you come from bash you might have to change your $PATH.
|
||||||
export PATH=$HOME/bin:/usr/local/bin:$PATH
|
export PATH=$HOME/bin:/usr/local/bin:$PATH
|
||||||
|
export PATH="$PATH:$HOME/go/bin:$HOME/.cargo/bin"
|
||||||
|
|
||||||
export ZSH=/usr/share/oh-my-zsh
|
export ZSH=/usr/share/oh-my-zsh
|
||||||
|
|
||||||
|
@ -50,6 +51,11 @@ export ZSH=/usr/share/oh-my-zsh
|
||||||
#POWERLEVEL9K_RIGHT_PROMPT_ELEMENTS=(${P9K__RIGHT})
|
#POWERLEVEL9K_RIGHT_PROMPT_ELEMENTS=(${P9K__RIGHT})
|
||||||
|
|
||||||
#POWERLEVEL9K_SHOW_CHANGESET=true
|
#POWERLEVEL9K_SHOW_CHANGESET=true
|
||||||
|
#
|
||||||
|
if [[ $TERM == xterm-termite ]]; then
|
||||||
|
. /etc/profile.d/vte.sh
|
||||||
|
__vte_osc7
|
||||||
|
fi
|
||||||
|
|
||||||
HYPHEN_INSENSITIVE="true"
|
HYPHEN_INSENSITIVE="true"
|
||||||
COMPLETION_WAITING_DOTS="true"
|
COMPLETION_WAITING_DOTS="true"
|
||||||
|
@ -176,12 +182,12 @@ c() {
|
||||||
|
|
||||||
alias ga="git add ."
|
alias ga="git add ."
|
||||||
alias gc="git commit -m"
|
alias gc="git commit -m"
|
||||||
|
alias gac="git commit -a -m"
|
||||||
alias gpsh="git push"
|
alias gpsh="git push"
|
||||||
alias gpll="git pull"
|
alias gpll="git pull"
|
||||||
|
|
||||||
gacp() {
|
gacp() {
|
||||||
ga &&
|
gac $1 &&
|
||||||
gc $1 &&
|
|
||||||
gpsh
|
gpsh
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -221,3 +227,4 @@ export PATH=$HOME/bin:/usr/local/bin:$PATH
|
||||||
eval $(thefuck --alias)
|
eval $(thefuck --alias)
|
||||||
alias config='/usr/bin/git --git-dir=/home/daan/.cfg/ --work-tree=/home/daan'
|
alias config='/usr/bin/git --git-dir=/home/daan/.cfg/ --work-tree=/home/daan'
|
||||||
alias config='/usr/bin/git --git-dir=/home/daan/.cfg/ --work-tree=/home/daan'
|
alias config='/usr/bin/git --git-dir=/home/daan/.cfg/ --work-tree=/home/daan'
|
||||||
|
source /home/daan/.local/bin/tp
|
||||||
|
|
Loading…
Reference in New Issue