Update
This commit is contained in:
39
.bashrc
39
.bashrc
@@ -1,11 +1,12 @@
|
|||||||
[[ $- != *i* ]] && return
|
[[ $- != *i* ]] && return
|
||||||
|
|
||||||
set -o vi
|
set -o vi
|
||||||
|
stty -ixon
|
||||||
|
|
||||||
unset HISTFILE
|
|
||||||
export LESSHISTFILE=-
|
|
||||||
export PYTHONSTARTUP=~/.pythonrc
|
export PYTHONSTARTUP=~/.pythonrc
|
||||||
export XAUTHORITY=~/.cache/.Xauthority
|
export XAUTHORITY=~/.cache/.Xauthority
|
||||||
|
export WINEPREFIX="$HOME/.wine_osu"
|
||||||
|
export WINEARCH=win32
|
||||||
|
|
||||||
# Import colorscheme from "wal" asynchronously
|
# Import colorscheme from "wal" asynchronously
|
||||||
# & # Run the process in the background.
|
# & # Run the process in the background.
|
||||||
@@ -24,34 +25,12 @@ alias installed_packages="comm -23 <(pacman -Qeq | sort) <(pacman -Qgq base base
|
|||||||
alias unused_packages="pacman -Qtdq"
|
alias unused_packages="pacman -Qtdq"
|
||||||
|
|
||||||
alias piavpn="sh /opt/pia/run.sh > /dev/null 2>&1 &"
|
alias piavpn="sh /opt/pia/run.sh > /dev/null 2>&1 &"
|
||||||
|
alias multimc="vblank_mode=0 multimc"
|
||||||
bind_amd() {
|
alias osu="wine ~/.wine_osu/drive_c/Program\ Files/osu\!/osu\!.exe"
|
||||||
modprobe vfio
|
alias osud="cd ~/.wine_osu/drive_c/Program\ Files/osu\!/"
|
||||||
modprobe vfio_pci
|
alias sleep="systemctl suspend"
|
||||||
|
alias mop6="sudo go-mtpfs /home/josh/OP6 &"
|
||||||
# VGA
|
alias umop6="sudo fusermount -u /home/josh/OP6"
|
||||||
echo '0000:01:00.0' > /sys/bus/pci/devices/0000:01:00.0/driver/unbind
|
|
||||||
echo '1002 67b1' > /sys/bus/pci/drivers/vfio-pci/new_id
|
|
||||||
echo '0000:01:00.0' > /sys/bus/pci/devices/0000:01:00.0/driver/bind
|
|
||||||
echo '1002 67b1' > /sys/bus/pci/drivers/vfio-pci/remove_id
|
|
||||||
|
|
||||||
# Audio
|
|
||||||
echo '0000:01:00.1' > /sys/bus/pci/devices/0000:01:00.1/driver/unbind
|
|
||||||
echo '1002 aac8' > /sys/bus/pci/drivers/vfio-pci/new_id
|
|
||||||
echo '0000:01:00.1' > /sys/bus/pci/devices/0000:01:00.1/driver/bind
|
|
||||||
echo '1002 aac8' > /sys/bus/pci/drivers/vfio-pci/remove_id
|
|
||||||
|
|
||||||
sleep 1
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
unbind_amd() {
|
|
||||||
echo 1 > /sys/bus/pci/devices/0000:01:00.0/remove
|
|
||||||
echo 1 > /sys/bus/pci/devices/0000:01:00.1/remove
|
|
||||||
echo 1 > /sys/bus/pci/rescan
|
|
||||||
|
|
||||||
sleep 1
|
|
||||||
}
|
|
||||||
|
|
||||||
PS1="\u@\h:\w \$ "
|
PS1="\u@\h:\w \$ "
|
||||||
|
|
||||||
|
|||||||
File diff suppressed because one or more lines are too long
@@ -8,7 +8,7 @@ hide_kernel_threads=1
|
|||||||
hide_userland_threads=1
|
hide_userland_threads=1
|
||||||
shadow_other_users=0
|
shadow_other_users=0
|
||||||
show_thread_names=0
|
show_thread_names=0
|
||||||
show_program_path=1
|
show_program_path=0
|
||||||
highlight_base_name=1
|
highlight_base_name=1
|
||||||
highlight_megabytes=1
|
highlight_megabytes=1
|
||||||
highlight_threads=1
|
highlight_threads=1
|
||||||
|
|||||||
@@ -3,15 +3,10 @@ font pango:DejaVu Sans Mono 9
|
|||||||
|
|
||||||
exec_always setxkbmap ee
|
exec_always setxkbmap ee
|
||||||
|
|
||||||
# ovmf
|
exec_always "xrandr --output HDMI1 --mode 2560x1440 --rate 59.95 --output HDMI2 --mode 1920x1080 --rate 59.93 --left-of HDMI1"
|
||||||
#exec_always "xrandr --output HDMI1 --mode 2560x1440 --rate 59.95 --output HDMI2 --mode 1920x1080 --rate 59.93 --left-of HDMI1"
|
|
||||||
# normal
|
|
||||||
exec_always "xrandr --output HDMI-3 --mode 2560x1440 --rate 59.95 --output DVI-D-1 --mode 1920x1080 --rate 59.93 --left-of HDMI-3"
|
|
||||||
|
|
||||||
exec_always ~/.scripts/daemons.sh
|
exec_always ~/.scripts/daemons.sh
|
||||||
|
|
||||||
# NOTE: The '#f0f0f0' in the lines below is the color i3 will use if
|
|
||||||
# it fails to get colors from Xresources.
|
|
||||||
set_from_resource $fg color7 #f0f0f0
|
set_from_resource $fg color7 #f0f0f0
|
||||||
set_from_resource $bg color2 #f0f0f0
|
set_from_resource $bg color2 #f0f0f0
|
||||||
|
|
||||||
@@ -36,6 +31,8 @@ bindsym $mod+Ctrl+q kill
|
|||||||
bindsym $mod+s exec ~/.scripts/dmenu-run.sh
|
bindsym $mod+s exec ~/.scripts/dmenu-run.sh
|
||||||
bindsym $mod+Return exec urxvt
|
bindsym $mod+Return exec urxvt
|
||||||
|
|
||||||
|
bindsym Ctrl+Shift+3 exec flameshot gui
|
||||||
|
|
||||||
bindsym $mod+F1 exec ~/.scripts/audio.sh toggle-mute
|
bindsym $mod+F1 exec ~/.scripts/audio.sh toggle-mute
|
||||||
bindsym $mod+F2 exec ~/.scripts/audio.sh lower
|
bindsym $mod+F2 exec ~/.scripts/audio.sh lower
|
||||||
bindsym $mod+F3 exec ~/.scripts/audio.sh raise
|
bindsym $mod+F3 exec ~/.scripts/audio.sh raise
|
||||||
|
|||||||
Binary file not shown.
@@ -1 +1 @@
|
|||||||
750
|
703
|
||||||
|
|||||||
@@ -67,6 +67,8 @@ P show-progress
|
|||||||
Alt+1 set window-scale 0.25
|
Alt+1 set window-scale 0.25
|
||||||
Alt+2 set window-scale 0.5
|
Alt+2 set window-scale 0.5
|
||||||
Alt+3 set window-scale 1.0
|
Alt+3 set window-scale 1.0
|
||||||
|
Alt+4 set window-scale 1.25
|
||||||
|
Alt+5 set window-scale 1.5
|
||||||
Shift+WHEEL_UP no-osd cycle-values video-rotate "90" "180" "270" "0"
|
Shift+WHEEL_UP no-osd cycle-values video-rotate "90" "180" "270" "0"
|
||||||
Shift+WHEEL_DOWN no-osd cycle-values video-rotate "270" "180" "90" "0"
|
Shift+WHEEL_DOWN no-osd cycle-values video-rotate "270" "180" "90" "0"
|
||||||
|
|
||||||
|
|||||||
@@ -7,6 +7,8 @@ map cW bulkrename %s
|
|||||||
map mkd console mkdir%space
|
map mkd console mkdir%space
|
||||||
map D console delete
|
map D console delete
|
||||||
|
|
||||||
|
map Z shell 7z x %s
|
||||||
|
|
||||||
map ytv console shell youtube-dl -ic%space
|
map ytv console shell youtube-dl -ic%space
|
||||||
map yta console shell youtube-dl -xic%space
|
map yta console shell youtube-dl -xic%space
|
||||||
|
|
||||||
|
|||||||
@@ -11,7 +11,7 @@ case $1 in
|
|||||||
notify-send -t 250 "VOL: $(pamixer --get-volume)"
|
notify-send -t 250 "VOL: $(pamixer --get-volume)"
|
||||||
pkill -RTMIN+1 i3blocks
|
pkill -RTMIN+1 i3blocks
|
||||||
;;
|
;;
|
||||||
"toggle_mute")
|
"toggle-mute")
|
||||||
pamixer --toggle-mute
|
pamixer --toggle-mute
|
||||||
notify-send -t 250 "MUTE: $(pamixer --get-mute)"
|
notify-send -t 250 "MUTE: $(pamixer --get-mute)"
|
||||||
;;
|
;;
|
||||||
|
|||||||
@@ -5,4 +5,5 @@
|
|||||||
[[ ! $(pidof mpd) ]] && mpd &
|
[[ ! $(pidof mpd) ]] && mpd &
|
||||||
[[ ! $(pidof transmission-daemon) ]] && transmission-daemon &
|
[[ ! $(pidof transmission-daemon) ]] && transmission-daemon &
|
||||||
[[ ! $(pidof dunst) ]] && dunst &
|
[[ ! $(pidof dunst) ]] && dunst &
|
||||||
|
[[ ! $(pidof flameshot) ]] && flameshot &
|
||||||
|
|
||||||
|
|||||||
@@ -13,7 +13,7 @@ sudo -A mount "$chosen" && exit 0
|
|||||||
# You may want to change the line below for more suggestions for mounting.
|
# You may want to change the line below for more suggestions for mounting.
|
||||||
# I.e. you can increase the depth of the search, or add directories.
|
# I.e. you can increase the depth of the search, or add directories.
|
||||||
# This will increase the load time briefly though.
|
# This will increase the load time briefly though.
|
||||||
mp="$(find /mnt /media /mount /home -type d -maxdepth 5 2>/dev/null | ~/.scripts/dmen.sh -i -p "Mount point:")"
|
mp="$(find /mnt /media /mount /home -type d -maxdepth 5 2>/dev/null | ~/.scripts/dmenu.sh -i -p "Mount point:")"
|
||||||
[ "$mp" = "" ] && exit 1
|
[ "$mp" = "" ] && exit 1
|
||||||
if [ ! -d "$mp" ]; then
|
if [ ! -d "$mp" ]; then
|
||||||
mkdiryn=$(printf "No\\nYes" | ~/.scripts/dmenu.sh -i -p "$mp does not exist. Create it?")
|
mkdiryn=$(printf "No\\nYes" | ~/.scripts/dmenu.sh -i -p "$mp does not exist. Create it?")
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
case $1 in
|
case $1 in
|
||||||
"toggle")
|
"toggle-playback")
|
||||||
mpc toggle
|
mpc toggle
|
||||||
;;
|
;;
|
||||||
"prev")
|
"prev")
|
||||||
|
|||||||
@@ -7,15 +7,20 @@ fi
|
|||||||
|
|
||||||
kernel_modules="vfio_pci vfio vfio_iommu_type1 vfio_virqfd"
|
kernel_modules="vfio_pci vfio vfio_iommu_type1 vfio_virqfd"
|
||||||
|
|
||||||
|
ovmf_xrandr="xrandr --output HDMI1 --mode 2560x1440 --rate 59.95 --output HDMI2 --mode 1920x1080 --rate 59.93 --left-of HDMI1"
|
||||||
|
default_xrandr="xrandr --output HDMI-3 --mode 2560x1440 --rate 59.95 --output DVI-D-2 --mode 1920x1080 --rate 59.93 --left-of HDMI-3"
|
||||||
|
|
||||||
select choice1 in "enable vfio" "disable vfio" "exit"; do
|
select choice1 in "enable vfio" "disable vfio" "exit"; do
|
||||||
case $choice1 in
|
case $choice1 in
|
||||||
"enable vfio")
|
"enable vfio")
|
||||||
sudo echo "options vfio-pci ids=1002:67b1,1002:aac8" >> /etc/modprobe.d/vfio.conf
|
sudo echo "options vfio-pci ids=1002:67b1,1002:aac8" >> /etc/modprobe.d/vfio.conf
|
||||||
sudo sed -i -e "s/MODULES=()/MODULES=($kernel_modules)/g" /etc/mkinitcpio.conf
|
sudo sed -i -e "s/MODULES=()/MODULES=($kernel_modules)/g" /etc/mkinitcpio.conf
|
||||||
|
sed -i -e "s/$default_xrandr/$ovmf_xrandr/g" /home/josh/.config/i3/config
|
||||||
break;;
|
break;;
|
||||||
"disable vfio")
|
"disable vfio")
|
||||||
sudo rm /etc/modprobe.d/vfio.conf
|
sudo rm /etc/modprobe.d/vfio.conf
|
||||||
sudo sed -i -e "s/MODULES=($kernel_modules)/MODULES=()/g" /etc/mkinitcpio.conf
|
sudo sed -i -e "s/MODULES=($kernel_modules)/MODULES=()/g" /etc/mkinitcpio.conf
|
||||||
|
sed -i -e "s/$ovmf_xrandr/$default_xrandr/g" /home/josh/.config/i3/config
|
||||||
break;;
|
break;;
|
||||||
"exit")
|
"exit")
|
||||||
exit;;
|
exit;;
|
||||||
@@ -27,6 +32,17 @@ select choice2 in "yes" "no"; do
|
|||||||
case $choice2 in
|
case $choice2 in
|
||||||
"yes")
|
"yes")
|
||||||
sudo mkinitcpio -p linux
|
sudo mkinitcpio -p linux
|
||||||
|
echo "make sure to switch to PEG/IGD in bios"
|
||||||
|
echo "reboot now?"
|
||||||
|
select choice2 in "yes" "no"; do
|
||||||
|
case $choice2 in
|
||||||
|
"yes")
|
||||||
|
sudo reboot
|
||||||
|
break;;
|
||||||
|
"no")
|
||||||
|
break;;
|
||||||
|
esac
|
||||||
|
done
|
||||||
break;;
|
break;;
|
||||||
"no")
|
"no")
|
||||||
exit;;
|
exit;;
|
||||||
|
|||||||
46
.vimrc
46
.vimrc
@@ -1,7 +1,51 @@
|
|||||||
syntax on
|
syntax on
|
||||||
set number
|
set number
|
||||||
set tabstop=4
|
set tabstop=4
|
||||||
set autoindent
|
execute pathogen#infect()
|
||||||
|
filetype plugin indent on
|
||||||
set viminfo=
|
set viminfo=
|
||||||
let g:netrw_dirhistmax = 0
|
let g:netrw_dirhistmax = 0
|
||||||
|
|
||||||
|
map <F3> :!wc <C-R>%<CR>
|
||||||
|
|
||||||
|
inoremap <Tab><Space> <Esc>/<++><Enter>"_c4l
|
||||||
|
vnoremap <Tab><Space> <Esc>/<++><Enter>"_c4l
|
||||||
|
|
||||||
|
autocmd FileType tex inoremap ,fr \begin{frame}<Enter>\frametitle{}<Enter><Enter><++><Enter><Enter>\end{frame}<Enter><Enter><++><Esc>6kf}i
|
||||||
|
autocmd FileType tex inoremap ,fi \begin{fitch}<Enter><Enter>\end{fitch}<Enter><Enter><++><Esc>3kA
|
||||||
|
autocmd FileType tex inoremap ,exe \begin{exe}<Enter>\ex<Space><Enter>\end{exe}<Enter><Enter><++><Esc>3kA
|
||||||
|
autocmd FileType tex inoremap ,em \emph{}<++><Esc>T{i
|
||||||
|
autocmd FileType tex inoremap ,bf \textbf{}<++><Esc>T{i
|
||||||
|
autocmd FileType tex vnoremap , <ESC>`<i\{<ESC>`>2la}<ESC>?\\{<Enter>a
|
||||||
|
autocmd FileType tex inoremap ,it \textit{}<++><Esc>T{i
|
||||||
|
autocmd FileType tex inoremap ,ct \textcite{}<++><Esc>T{i
|
||||||
|
autocmd FileType tex inoremap ,cp \parencite{}<++><Esc>T{i
|
||||||
|
autocmd FileType tex inoremap ,glos {\gll<Space><++><Space>\\<Enter><++><Space>\\<Enter>\trans{``<++>''}}<Esc>2k2bcw
|
||||||
|
autocmd FileType tex inoremap ,x \begin{xlist}<Enter>\ex<Space><Enter>\end{xlist}<Esc>kA<Space>
|
||||||
|
autocmd FileType tex inoremap ,ol \begin{enumerate}<Enter><Enter>\end{enumerate}<Enter><Enter><++><Esc>3kA\item<Space>
|
||||||
|
autocmd FileType tex inoremap ,ul \begin{itemize}<Enter><Enter>\end{itemize}<Enter><Enter><++><Esc>3kA\item<Space>
|
||||||
|
autocmd FileType tex inoremap ,li <Enter>\item<Space>
|
||||||
|
autocmd FileType tex inoremap ,ref \ref{}<Space><++><Esc>T{i
|
||||||
|
autocmd FileType tex inoremap ,tab \begin{tabular}<Enter><++><Enter>\end{tabular}<Enter><Enter><++><Esc>4kA{}<Esc>i
|
||||||
|
autocmd FileType tex inoremap ,ot \begin{tableau}<Enter>\inp{<++>}<Tab>\const{<++>}<Tab><++><Enter><++><Enter>\end{tableau}<Enter><Enter><++><Esc>5kA{}<Esc>i
|
||||||
|
autocmd FileType tex inoremap ,can \cand{}<Tab><++><Esc>T{i
|
||||||
|
autocmd FileType tex inoremap ,con \const{}<Tab><++><Esc>T{i
|
||||||
|
autocmd FileType tex inoremap ,v \vio{}<Tab><++><Esc>T{i
|
||||||
|
autocmd FileType tex inoremap ,a \href{}{<++>}<Space><++><Esc>2T{i
|
||||||
|
autocmd FileType tex inoremap ,sc \textsc{}<Space><++><Esc>T{i
|
||||||
|
autocmd FileType tex inoremap ,chap \chapter{}<Enter><Enter><++><Esc>2kf}i
|
||||||
|
autocmd FileType tex inoremap ,sec \section{}<Enter><Enter><++><Esc>2kf}i
|
||||||
|
autocmd FileType tex inoremap ,ssec \subsection{}<Enter><Enter><++><Esc>2kf}i
|
||||||
|
autocmd FileType tex inoremap ,sssec \subsubsection{}<Enter><Enter><++><Esc>2kf}i
|
||||||
|
autocmd FileType tex inoremap ,st <Esc>F{i*<Esc>f}i
|
||||||
|
autocmd FileType tex inoremap ,beg \begin{DELRN}<Enter><++><Enter>\end{DELRN}<Enter><Enter><++><Esc>4k0fR:MultipleCursorsFind<Space>DELRN<Enter>c
|
||||||
|
autocmd FileType tex inoremap ,up <Esc>/usepackage<Enter>o\usepackage{}<Esc>i
|
||||||
|
autocmd FileType tex nnoremap ,up /usepackage<Enter>o\usepackage{}<Esc>i
|
||||||
|
autocmd FileType tex inoremap ,tt \texttt{}<Space><++><Esc>T{i
|
||||||
|
autocmd FileType tex inoremap ,bt {\blindtext}
|
||||||
|
autocmd FileType tex inoremap ,nu $\varnothing$
|
||||||
|
autocmd FileType tex inoremap ,col \begin{columns}[T]<Enter>\begin{column}{.5\textwidth}<Enter><Enter>\end{column}<Enter>\begin{column}{.5\textwidth}<Enter><++><Enter>\end{column}<Enter>\end{columns}<Esc>5kA
|
||||||
|
autocmd FileType tex inoremap ,rn (\ref{})<++><Esc>F}i
|
||||||
|
autocmd FileType tex inoremap ,no \noun{}{<++>}<Esc>ba
|
||||||
|
autocmd FileType tex inoremap ,ve \vreb{}{<++>}<Esc>bh
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user