diff options
-rw-r--r-- | .bash_profile | 16 | ||||
-rw-r--r-- | .bashrc | 8 | ||||
-rw-r--r-- | .config/X11/Xresources | 1 | ||||
-rwxr-xr-x[-rw-r--r--] | .config/X11/xinitrc (renamed from .xinitrc) | 18 | ||||
-rwxr-xr-x | .config/i3/after | 5 | ||||
-rw-r--r-- | .config/i3/config | 4 | ||||
-rwxr-xr-x | .config/i3/extra/screenshot (renamed from .config/i3/custom/screenshot) | 0 | ||||
-rw-r--r-- | .config/i3/init | 13 | ||||
-rwxr-xr-x | .config/polybar/launch (renamed from .config/polybar/launch.sh) | 0 | ||||
-rw-r--r-- | .config/readline/inputrc (renamed from .inputrc) | 0 | ||||
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | .vim/vimrc (renamed from .vimrc) | 17 |
12 files changed, 60 insertions, 23 deletions
diff --git a/.bash_profile b/.bash_profile index b82ed01..40853ae 100644 --- a/.bash_profile +++ b/.bash_profile @@ -4,4 +4,18 @@ [[ -f ~/.bashrc ]] && . ~/.bashrc -[[ $(fgconsole 2>/dev/null) == 1 ]] && exec startx -- vt1 +export XDG_CONFIG_HOME=$HOME/.config +export XDG_CACHE_HOME=$HOME/.cache +export XDG_DATA_HOME=$HOME/.local/share +export XDG_STATE_HOME=$HOME/.local/state +export XDG_DATA_DIRS="/usr/local/share:/usr/share" +export XDG_CONFIG_DIRS="/etc/xdg" + +export XAUTHORITY="$XDG_RUNTIME_DIR"/Xauthority +export HISTFILE="$XDG_STATE_HOME"/bash/history +export INPUTRC="$XDG_CONFIG_HOME"/readline/inputrc +export PASSWORD_STORE_DIR="$XDG_DATA_HOME"/pass +export GTK_RC_FILES="$XDG_CONFIG_HOME"/gtk-1.0/gtkrc +export GTK2_RC_FILES="$XDG_CONFIG_HOME"/gtk-2.0/gtkrc + +[[ $(fgconsole 2>/dev/null) == 1 ]] && exec startx "$XDG_CONFIG_HOME/X11/xinitrc" -- vt1 @@ -75,7 +75,6 @@ esac # enable color support of ls and also add handy aliases if [ -x /usr/bin/dircolors ]; then test -r ~/.dircolors && eval "$(dircolors -b ~/.dircolors)" || eval "$(dircolors -b)" - alias ls='ls --color=auto' #alias dir='dir --color=auto' #alias vdir='vdir --color=auto' @@ -88,9 +87,9 @@ fi #export GCC_COLORS='error=01;31:warning=01;35:note=01;36:caret=01;32:locus=01:quote=01' # some more ls aliases -alias ll='ls -AlF' -alias la='ls -A' -alias l='ls -CF' +alias ls='exa -F' +alias ll='exa -laF' +alias lh='exa -ld .*' # Add an "alert" alias for long running commands. Use like so: # sleep 10; alert @@ -121,6 +120,7 @@ export VISUAL=vim export PS1='\[\033[35m\]\u@\h\[\033[37m\]:\[\033[0;34m\]\w\[\033[37m\]$ ' # Shell prompt export PAGER=most +alias cvim='GIT_DIR=$HOME/.cfg GIT_WORK_TREE=$HOME nvim' alias mv='mv -i' alias rm='rm -i' alias gs='git status' diff --git a/.config/X11/Xresources b/.config/X11/Xresources new file mode 100644 index 0000000..3f90eb3 --- /dev/null +++ b/.config/X11/Xresources @@ -0,0 +1 @@ +Xft.dpi: 108 diff --git a/.xinitrc b/.config/X11/xinitrc index 43f2cff..c4b828a 100644..100755 --- a/.xinitrc +++ b/.config/X11/xinitrc @@ -1,7 +1,7 @@ #!/bin/sh -userresources=$HOME/.Xresources -usermodmap=$HOME/.Xmodmap +userresources=$XDG_CONFIG_HOME/X11/Xresources +usermodmap=$XDG_CONFIG_HOME/X11/Xmodmap sysresources=/etc/X11/xinit/.Xresources sysmodmap=/etc/X11/xinit/.Xmodmap @@ -32,16 +32,4 @@ if [ -d /etc/X11/xinit/xinitrc.d ] ; then unset f fi - -greenclip daemon & -playerctld daemon & -nitrogen --restore & -redshift -l 56:10 & -pcmanfm -d & -nm-applet & -exec i3 & wmpid=$! - -sleep 5 -$HOME/.autostart & - -wait $wmpid +source $HOME/.config/i3/init diff --git a/.config/i3/after b/.config/i3/after new file mode 100755 index 0000000..10edd01 --- /dev/null +++ b/.config/i3/after @@ -0,0 +1,5 @@ +#!/bin/sh + +xset r rate 300 25 & +gtk-launch piavpn & +openrgb -p no-rgb & diff --git a/.config/i3/config b/.config/i3/config index e4f41e5..533c0c3 100644 --- a/.config/i3/config +++ b/.config/i3/config @@ -16,7 +16,7 @@ bindsym $mod+Return exec --no-startup-id alacritty bindsym $mod+b exec --no-startup-id firefox bindsym $mod+e exec --no-startup-id pcmanfm bindsym $mod+f fullscreen toggle -bindsym $mod+Shift+s exec --no-startup-id ~/.config/i3/custom/screenshot +bindsym $mod+Shift+s exec --no-startup-id ~/.config/i3/extra/screenshot bindsym $mod+d exec --no-startup-id rofi -show drun -show-icons -drun-display-format {name} bindsym $alt+Tab exec --no-startup-id rofi -show window -show-icons -drun-display-format {name} @@ -161,6 +161,6 @@ for_window [title="^Steam Keyboard$"] floating enable ##### Exec -exec_always --no-startup-id $HOME/.config/polybar/launch.sh +exec_always --no-startup-id $HOME/.config/polybar/launch exec_always --no-startup-id picom --config $HOME/.config/picom/picom.conf -b exec_always --no-startup-id setxkbmap -option grp:win_space_toggle us,dk diff --git a/.config/i3/custom/screenshot b/.config/i3/extra/screenshot index 9a443b1..9a443b1 100755 --- a/.config/i3/custom/screenshot +++ b/.config/i3/extra/screenshot diff --git a/.config/i3/init b/.config/i3/init new file mode 100644 index 0000000..0d3d123 --- /dev/null +++ b/.config/i3/init @@ -0,0 +1,13 @@ +#!/bin/sh + +greenclip daemon & +playerctld daemon & +nitrogen --restore & +redshift -l 56:10 & +pcmanfm -d & +nm-applet & +exec i3 & wmpid=$! + +sleep 5 +source $HOME/.config/i3/after +wait $wmpid diff --git a/.config/polybar/launch.sh b/.config/polybar/launch index ff5065a..ff5065a 100755 --- a/.config/polybar/launch.sh +++ b/.config/polybar/launch diff --git a/.inputrc b/.config/readline/inputrc index 236bfdd..236bfdd 100644 --- a/.inputrc +++ b/.config/readline/inputrc diff --git a/.gitignore b/.gitignore deleted file mode 100644 index e71a4f0..0000000 --- a/.gitignore +++ /dev/null @@ -1 +0,0 @@ -.cfg @@ -62,3 +62,20 @@ let &t_8f = "\<Esc>[38:2:%lu:%lu:%lum" let &t_8b = "\<Esc>[48:2:%lu:%lu:%lum" colorscheme doom-one highlight CursorLineNr cterm=bold ctermbg=Black ctermfg=Blue + +set runtimepath^=$XDG_CONFIG_HOME/vim +set runtimepath+=$XDG_DATA_HOME/vim +set runtimepath+=$XDG_CONFIG_HOME/vim/after + +set packpath^=$XDG_DATA_HOME/vim,$XDG_CONFIG_HOME/vim +set packpath+=$XDG_CONFIG_HOME/vim/after,$XDG_DATA_HOME/vim/after + +let g:netrw_home = $XDG_DATA_HOME."/vim" +call mkdir($XDG_DATA_HOME."/vim/spell", 'p') +set viewdir=$XDG_DATA_HOME/vim/view | call mkdir(&viewdir, 'p') + +set backupdir=$XDG_CACHE_HOME/vim/backup | call mkdir(&backupdir, 'p') +set directory=$XDG_CACHE_HOME/vim/swap | call mkdir(&directory, 'p') +set undodir=$XDG_CACHE_HOME/vim/undo | call mkdir(&undodir, 'p') + +if !has('nvim') | set viminfofile=$XDG_CACHE_HOME/vim/viminfo | endif |