Updated config to work with Arch
This commit is contained in:
@@ -26,6 +26,11 @@ function gvx() { urxvt --help 2>&1 | grep $1 ; }
|
|||||||
# list file sizes in megabytes with depth 1
|
# list file sizes in megabytes with depth 1
|
||||||
alias dum="du -d 1 -B M"
|
alias dum="du -d 1 -B M"
|
||||||
|
|
||||||
|
# pacman
|
||||||
|
function pcs() { sudo pacman -S $1 ; }
|
||||||
|
function pcr() { sudo pacman -R $1 ; }
|
||||||
|
function mpk() { makepkg -si ; }
|
||||||
|
|
||||||
# install deb files
|
# install deb files
|
||||||
function ideb() { sudo dpkg -i $1 ; }
|
function ideb() { sudo dpkg -i $1 ; }
|
||||||
|
|
||||||
@@ -122,10 +127,11 @@ alias auc5="xdotool click --repeat 1000000 --delay 500 1"
|
|||||||
alias kauc="pkill -f xdotool"
|
alias kauc="pkill -f xdotool"
|
||||||
|
|
||||||
alias vbn="cvlc --loop --alsa-gain 1 ~/Music/brown-noise.mp3"
|
alias vbn="cvlc --loop --alsa-gain 1 ~/Music/brown-noise.mp3"
|
||||||
alias vlm="alsamixer -c 2"
|
alias vlm="alsamixer -c 0"
|
||||||
alias rmsw="rm .sw*"
|
alias rmsw="rm .sw*"
|
||||||
|
|
||||||
function rs(){ redshift -O $(echo "scale=2;$1*1000" | bc) ; }
|
# function rs(){ redshift -O $(echo "scale=2;$1*1000" | bc) ; }
|
||||||
|
function rs(){ redshift -O $1 ; }
|
||||||
alias rx="redshift -x"
|
alias rx="redshift -x"
|
||||||
|
|
||||||
# python related {{{ #
|
# python related {{{ #
|
||||||
@@ -140,6 +146,7 @@ function py() { python $1 ; }
|
|||||||
|
|
||||||
# NZXT {{{
|
# NZXT {{{
|
||||||
if [ "$(hostname)" = "NZXT" ]; then
|
if [ "$(hostname)" = "NZXT" ]; then
|
||||||
|
|
||||||
# rotate monitor {{{ #
|
# rotate monitor {{{ #
|
||||||
function rt() {
|
function rt() {
|
||||||
output="HDMI-0"
|
output="HDMI-0"
|
||||||
|
|||||||
@@ -1 +1 @@
|
|||||||
echo "Kevin 🚀"
|
echo "Kevin"
|
||||||
|
|||||||
@@ -1,14 +1,17 @@
|
|||||||
|
set $mod Mod1
|
||||||
|
|
||||||
# applications {{{ #
|
# applications {{{ #
|
||||||
# startup {{{ #
|
# startup {{{ #
|
||||||
set $def_term "rxvt-unicode"
|
set $browser "firefox"
|
||||||
|
set $def_term "urxvt"
|
||||||
exec redshift -O 4000
|
exec redshift -O 4000
|
||||||
# random bg
|
# random bg
|
||||||
exec ~/.local/bin/wal -i "$HOME/Pictures/Backgrounds/vibrant"
|
exec wal -i "$HOME/Pictures/Backgrounds/dim"
|
||||||
# exec_always ~/.local/bin/wal -i "$HOME/Pictures/Backgrounds/retro-mountains-pink.jpg"
|
# exec_always ~/.local/bin/wal -i "$HOME/Pictures/Backgrounds/retro-mountains-pink.jpg"
|
||||||
exec imwheel
|
exec imwheel
|
||||||
# exec --no-startup-id i3-msg 'workspace 1 ; exec $def_term'
|
# exec --no-startup-id i3-msg 'workspace 1 ; exec $def_term'
|
||||||
exec --no-startup-id i3-msg 'workspace 2 ; exec $def_term'
|
exec --no-startup-id i3-msg 'workspace 2 ; exec $def_term'
|
||||||
exec --no-startup-id i3-msg 'workspace 3 ; exec google-chrome'
|
exec --no-startup-id i3-msg 'workspace 3 ; exec $browser'
|
||||||
# }}} startup #
|
# }}} startup #
|
||||||
|
|
||||||
set $sch_dir "$HOME/Documents/School"
|
set $sch_dir "$HOME/Documents/School"
|
||||||
@@ -20,7 +23,7 @@ bindsym Mod4+2 exec xdotool click --repeat 10 --delay 100 1
|
|||||||
bindsym Mod4+3 exec xdotool click --repeat 20 --delay 100 1
|
bindsym Mod4+3 exec xdotool click --repeat 20 --delay 100 1
|
||||||
# bindsym $mod+control+Return exec i3-sensible-terminal
|
# bindsym $mod+control+Return exec i3-sensible-terminal
|
||||||
bindsym $mod+control+Return exec $def_term
|
bindsym $mod+control+Return exec $def_term
|
||||||
bindsym Mod4+c exec google-chrome
|
bindsym Mod4+c exec $browser
|
||||||
bindsym Mod4+e exec nemo
|
bindsym Mod4+e exec nemo
|
||||||
bindsym Mod4+f exec firefox
|
bindsym Mod4+f exec firefox
|
||||||
bindsym Mod4+o exec okular
|
bindsym Mod4+o exec okular
|
||||||
@@ -91,10 +94,10 @@ bindsym control+Shift+x kill
|
|||||||
|
|
||||||
# container display {{{ #
|
# container display {{{ #
|
||||||
# backgrounds
|
# backgrounds
|
||||||
bindsym $mod+q exec ~/.local/bin/wal -i "$HOME/Pictures/Backgrounds/vibrant"
|
bindsym $mod+q exec wal -i "$HOME/Pictures/Backgrounds/vibrant"
|
||||||
bindsym $mod+w exec ~/.local/bin/wal -i "$HOME/Pictures/Backgrounds/dim"
|
bindsym $mod+w exec wal -i "$HOME/Pictures/Backgrounds/dim"
|
||||||
bindsym $mod+r exec ~/.local/bin/wal -i "$HOME/Pictures/Backgrounds/"
|
bindsym $mod+r exec wal -i "$HOME/Pictures/Backgrounds/"
|
||||||
bindsym $mod+z exec ~/.local/bin/wal -i "$HOME/Pictures/Backgrounds/sunset-2.jpg"
|
bindsym $mod+z exec wal -i "$HOME/Pictures/Backgrounds/sunset-2.jpg"
|
||||||
|
|
||||||
# enter fullscreen mode for the focused container
|
# enter fullscreen mode for the focused container
|
||||||
bindsym $mod+f fullscreen toggle
|
bindsym $mod+f fullscreen toggle
|
||||||
@@ -132,14 +135,14 @@ bindsym $mod+F2 workspace $ws2; exec $def_term
|
|||||||
|
|
||||||
set $ws3 "3 "
|
set $ws3 "3 "
|
||||||
workspace $ws3 output $benq
|
workspace $ws3 output $benq
|
||||||
bindsym $mod+F3 workspace $ws3; exec google-chrome
|
bindsym $mod+F3 workspace $ws3; exec $browser
|
||||||
|
|
||||||
set $ws4 "4 "
|
set $ws4 "4 "
|
||||||
workspace $ws4 output $samsung
|
workspace $ws4 output $samsung
|
||||||
|
|
||||||
set $ws5 "5 "
|
set $ws5 "5 "
|
||||||
workspace $ws5 output $benq
|
workspace $ws5 output $benq
|
||||||
bindsym $mod+F5 workspace $ws5; exec google-chrome
|
bindsym $mod+F5 workspace $ws5; exec $browser
|
||||||
bindsym Mod4+g workspace $ws5; layout stacking; exec steam
|
bindsym Mod4+g workspace $ws5; layout stacking; exec steam
|
||||||
|
|
||||||
set $ws6 "6 "
|
set $ws6 "6 "
|
||||||
@@ -228,8 +231,9 @@ bindsym $mod+control+l resize shrink width 3 px or 3 ppt
|
|||||||
# remove window titlebars
|
# remove window titlebars
|
||||||
for_window [class="^.*"] border pixel 2
|
for_window [class="^.*"] border pixel 2
|
||||||
# default gaps
|
# default gaps
|
||||||
gaps inner 25
|
# gaps inner 25
|
||||||
gaps outer 5
|
gaps inner 0
|
||||||
|
gaps outer 0
|
||||||
|
|
||||||
bindsym control+shift+plus gaps inner all set 25;gaps outer all set 5
|
bindsym control+shift+plus gaps inner all set 25;gaps outer all set 5
|
||||||
bindsym control+shift+0 gaps inner all set 0;gaps outer all set 0
|
bindsym control+shift+0 gaps inner all set 0;gaps outer all set 0
|
||||||
@@ -274,9 +278,9 @@ font pango:Hack 11
|
|||||||
# }}} mod key/font #
|
# }}} mod key/font #
|
||||||
|
|
||||||
# media keys {{{ #
|
# media keys {{{ #
|
||||||
bindsym XF86AudioRaiseVolume exec --no-startup-id amixer -c 2 sset Master 3+
|
bindsym XF86AudioRaiseVolume exec --no-startup-id amixer -c 0 sset Master 3+
|
||||||
bindsym XF86AudioLowerVolume exec --no-startup-id amixer -c 2 sset Master 3-
|
bindsym XF86AudioLowerVolume exec --no-startup-id amixer -c 0 sset Master 3-
|
||||||
bindsym XF86AudioMute exec --no-startup-id amixer -D pulse set Master 2+ toggle
|
bindsym XF86AudioMute exec --no-startup-id amixer -D pulse set Master 0+ toggle
|
||||||
|
|
||||||
# Media player controls
|
# Media player controls
|
||||||
bindsym XF86AudioPlay exec "dbus-send --print-reply --dest=org.mpris.MediaPlayer2.spotify /org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player.PlayPause"
|
bindsym XF86AudioPlay exec "dbus-send --print-reply --dest=org.mpris.MediaPlayer2.spotify /org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player.PlayPause"
|
||||||
@@ -12,24 +12,24 @@ print_info() {
|
|||||||
info "Terminal" term
|
info "Terminal" term
|
||||||
info "Shell" shell
|
info "Shell" shell
|
||||||
info "Font" font
|
info "Font" font
|
||||||
|
info "Packages" packages
|
||||||
info "Terminal Font" term_font
|
info "Terminal Font" term_font
|
||||||
info "WM" wm
|
info "WM" wm
|
||||||
info "WM Theme" wm_theme
|
info "WM Theme" wm_theme
|
||||||
info "Theme" theme
|
info "Theme" theme
|
||||||
# info "Icons" icons
|
# info "Icons" icons
|
||||||
info "CPU" cpu
|
info "CPU" cpu
|
||||||
info "CPU Usage" cpu_usage
|
# info "CPU Usage" cpu_usage
|
||||||
info "GPU" gpu
|
info "GPU" gpu
|
||||||
info "Memory" memory
|
info "Memory" memory
|
||||||
info "Resolution" resolution
|
info "Resolution" resolution
|
||||||
info "Uptime" uptime
|
# info "Uptime" uptime
|
||||||
info "Install Date" install_date
|
info "Install Date" install_date
|
||||||
info "Song" song
|
info "Song" song
|
||||||
|
|
||||||
# info "Users" users
|
# info "Users" users
|
||||||
# info "Host" model
|
# info "Host" model
|
||||||
# info "Kernel" kernel
|
# info "Kernel" kernel
|
||||||
# info "Packages" packages
|
|
||||||
# info "DE" de
|
# info "DE" de
|
||||||
# info "GPU Driver" gpu_driver # Linux only
|
# info "GPU Driver" gpu_driver # Linux only
|
||||||
# info "Disk" disk
|
# info "Disk" disk
|
||||||
@@ -1,7 +1,7 @@
|
|||||||
# Get directory variables from script.
|
# Get directory variables from script.
|
||||||
. ../dirs.sh
|
. ../dirs.sh
|
||||||
# List of dotfiles I want to link to system.
|
# List of dotfiles I want to link to system.
|
||||||
dotfiles="bashrc gitconfig inputrc vimrc Xresources zshrc"
|
dotfiles=(bashrc gitconfig inputrc vimrc Xresources zshrc)
|
||||||
# cd $dot_dir
|
# cd $dot_dir
|
||||||
for dotfile in $dotfiles; do
|
for dotfile in $dotfiles; do
|
||||||
# Remove system dotfile.
|
# Remove system dotfile.
|
||||||
|
|||||||
@@ -66,25 +66,25 @@ Plug 'lervag/vimtex'
|
|||||||
let g:vimtex_view_general_viewer = 'okular'
|
let g:vimtex_view_general_viewer = 'okular'
|
||||||
|
|
||||||
" auto-completion for various languages
|
" auto-completion for various languages
|
||||||
Plug 'Valloric/YouCompleteMe'
|
" Plug 'Valloric/YouCompleteMe'
|
||||||
|
|
||||||
" wrote short bits of text that expand into whatever you want
|
" wrote short bits of text that expand into whatever you want
|
||||||
" demo: https://www.youtube.com/watch?v=Zik6u0klD40
|
" demo: https://www.youtube.com/watch?v=Zik6u0klD40
|
||||||
Plug 'SirVer/ultisnips'
|
" Plug 'SirVer/ultisnips'
|
||||||
" better key bindings for UltiSnipsExpandTrigger
|
" better key bindings for UltiSnipsExpandTrigger
|
||||||
let g:UltiSnipsExpandTrigger = "<tab>"
|
" let g:UltiSnipsExpandTrigger = "<tab>"
|
||||||
let g:UltiSnipsJumpForwardTrigger = "<tab>"
|
" let g:UltiSnipsJumpForwardTrigger = "<tab>"
|
||||||
let g:UltiSnipsJumpBackwardTrigger = "<C-tab>"
|
" let g:UltiSnipsJumpBackwardTrigger = "<C-tab>"
|
||||||
|
|
||||||
" custom snippets
|
" custom snippets
|
||||||
Plug 'Kevin-Mok/vim-snippets'
|
" Plug 'Kevin-Mok/vim-snippets'
|
||||||
|
|
||||||
" to make YouCompleteMe work with UltiSnips (both use Tab)
|
" to make YouCompleteMe work with UltiSnips (both use Tab)
|
||||||
Plug 'ervandew/supertab'
|
" Plug 'ervandew/supertab'
|
||||||
" make YCM compatible with UltiSnips (using supertab)
|
" make YCM compatible with UltiSnips (using supertab)
|
||||||
let g:ycm_key_list_select_completion = ['<C-n>', '<Down>']
|
" let g:ycm_key_list_select_completion = ['<C-n>', '<Down>']
|
||||||
let g:ycm_key_list_previous_completion = ['<C-p>', '<Up>']
|
" let g:ycm_key_list_previous_completion = ['<C-p>', '<Up>']
|
||||||
let g:SuperTabDefaultCompletionType = '<C-n>'
|
" let g:SuperTabDefaultCompletionType = '<C-n>'
|
||||||
|
|
||||||
" easily comment/uncomment lines
|
" easily comment/uncomment lines
|
||||||
Plug 'scrooloose/nerdcommenter'
|
Plug 'scrooloose/nerdcommenter'
|
||||||
@@ -100,6 +100,7 @@ Plug 'easymotion/vim-easymotion'
|
|||||||
" status bar displaying various info about the current buffer
|
" status bar displaying various info about the current buffer
|
||||||
Plug 'vim-airline/vim-airline'
|
Plug 'vim-airline/vim-airline'
|
||||||
Plug 'vim-airline/vim-airline-themes'
|
Plug 'vim-airline/vim-airline-themes'
|
||||||
|
let g:airline_powerline_fonts = 1
|
||||||
|
|
||||||
" continue Markdown lists when started
|
" continue Markdown lists when started
|
||||||
Plug 'dkarter/bullets.vim'
|
Plug 'dkarter/bullets.vim'
|
||||||
|
|||||||
@@ -1,8 +1,9 @@
|
|||||||
# 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
|
|
||||||
|
|
||||||
# Path to your oh-my-zsh installation.
|
# Path to your oh-my-zsh installation.
|
||||||
export ZSH=/home/kevin/.oh-my-zsh
|
export ZSH=/home/kevin/.oh-my-zsh
|
||||||
|
export EDITOR=/usr/bin/vim
|
||||||
|
export VISUAL=/usr/bin/vim
|
||||||
|
|
||||||
# Set name of the theme to load. Optionally, if you set this to "random"
|
# Set name of the theme to load. Optionally, if you set this to "random"
|
||||||
# it'll load a random theme each time that oh-my-zsh is loaded.
|
# it'll load a random theme each time that oh-my-zsh is loaded.
|
||||||
|
|||||||
Reference in New Issue
Block a user