mirror of
https://github.com/LukeSmithxyz/voidrice.git
synced 2026-03-20 01:37:45 +01:00
More i3-gaps tweaks and file changes
This commit is contained in:
parent
7e975ee022
commit
ed4cfb0e10
@ -1,26 +0,0 @@
|
||||
#!/bin/bash
|
||||
|
||||
#This is the ffmpeg command that the audio shortcut in i3 will run.
|
||||
|
||||
#Picks a file name for the output file based on availability:
|
||||
|
||||
if [[ -f ~/output.flac ]]
|
||||
then
|
||||
n=1
|
||||
while [[ -f ~/output_$n.flac ]]
|
||||
do
|
||||
n=$((n+1))
|
||||
done
|
||||
filename="output_$n.flac"
|
||||
else
|
||||
filename="output.flac"
|
||||
fi
|
||||
|
||||
#The actual ffmpeg command:
|
||||
|
||||
ffmpeg \
|
||||
-thread_queue_size 1024 \
|
||||
-f alsa -ar 44100 -i hw:1 \
|
||||
-af "volume=12" \
|
||||
-c:v libx264 -r 30 -c:a flac $filename
|
||||
#-c:v ffvhuff -r 30 -c:a flac $filename
|
||||
24
.config/Scripts/audio_alsa.sh
Executable file
24
.config/Scripts/audio_alsa.sh
Executable file
@ -0,0 +1,24 @@
|
||||
#!/bin/bash
|
||||
|
||||
#This is the ffmpeg command that the screencast shortcut in i3 will run.
|
||||
|
||||
#Picks a file name for the output file based on availability:
|
||||
|
||||
if [[ -f ~/output.flac ]]
|
||||
then
|
||||
n=1
|
||||
while [[ -f $HOME/output_$n.flac ]]
|
||||
do
|
||||
n=$((n+1))
|
||||
done
|
||||
filename="$HOME/output_$n.flac"
|
||||
else
|
||||
filename="$HOME/output.flac"
|
||||
fi
|
||||
|
||||
#The actual ffmpeg command:
|
||||
|
||||
ffmpeg -y \
|
||||
-f alsa -ar 44100 -i hw:1 \
|
||||
$filename
|
||||
|
||||
@ -7,13 +7,13 @@
|
||||
if [[ -f ~/output.flac ]]
|
||||
then
|
||||
n=1
|
||||
while [[ -f ~/output_$n.flac ]]
|
||||
while [[ -f $HOME/output_$n.flac ]]
|
||||
do
|
||||
n=$((n+1))
|
||||
done
|
||||
filename="output_$n.flac"
|
||||
filename="$HOME/output_$n.flac"
|
||||
else
|
||||
filename="output.flac"
|
||||
filename="$HOME/output.flac"
|
||||
fi
|
||||
|
||||
#The actual ffmpeg command:
|
||||
@ -17,23 +17,15 @@ shopt -s autocd
|
||||
|
||||
#Basic Aliases
|
||||
alias v="vim"
|
||||
#alias sv="sudo vim"
|
||||
alias r="ranger"
|
||||
alias ls='ls -hN --color=auto --group-directories-first'
|
||||
#alias ls='ls -hN --color=auto --group-directories-first'
|
||||
alias ls='ls++'
|
||||
alias lsa='ls -A'
|
||||
g() { cd $1 && ls -a ;}
|
||||
alias b="cd .. && ls -a"
|
||||
alias ?="man"
|
||||
alias q="exit"
|
||||
alias mkd="mkdir -pv"
|
||||
mkcd() { mkdir -vp $1 && cd $1 ;}
|
||||
alias e="exit"
|
||||
|
||||
alias mutt="mutt -F ~/.config/mutt/muttrc"
|
||||
alias mocp="mocp --config ~/.config/moc/config"
|
||||
alias calcurse="calcurse -D ~/.config/calcurse"
|
||||
alias weechat="weechat -d ~/.config/weechat"
|
||||
alias syncthing="syncthing -home='$HOME/.syncthing'"
|
||||
alias tmux="tmux -f ~/.config/Scripts/tmux.conf"
|
||||
#NEWSBEUTER and W3M
|
||||
alias crep="grep --color=always"
|
||||
|
||||
alias Xi="sudo xbps-install"
|
||||
alias Xu="sudo xbps-remove -R"
|
||||
@ -41,42 +33,42 @@ alias Xup="sudo xbps-install -Suv"
|
||||
alias Xc="xbps-remove -Oo"
|
||||
alias Xq="xbps-query -Rs"
|
||||
alias XI="xbps-query -s"
|
||||
alias Xl="xbps-query -l"
|
||||
|
||||
#Term only
|
||||
alias mute="pamixer -m"
|
||||
alias vd="pamixer -d 10"
|
||||
alias vu="pamixer -i 10"
|
||||
alias p="mocp -G &> /dev/null"
|
||||
alias next="mocp -f &> /dev/null"
|
||||
alias prev="mocp -r &> /dev/null"
|
||||
alias mnt="sudo bash ~/.config/Scripts/mount.sh"
|
||||
alias umnt="sudo bash ~/.config/Scripts/unmount.sh"
|
||||
alias sdn="sudo shutdown now"
|
||||
|
||||
alias screenfetch="screenfetch -t"
|
||||
alias yt="youtube-dl -ic"
|
||||
alias yta="youtube-dl -xic"
|
||||
|
||||
alias webedit="ssh -l lukesmith -p 2222 lukesmith.xyz"
|
||||
alias web="ssh -l lukesmith -p 2222 lukesmith.xyz"
|
||||
alias desk="ssh -l luke -p 22 10.193.0.46"
|
||||
serversend() { rsync -avr --rsh='ssh -p2222' $1 YOURNAME@YOURSERVER.xyz ;}
|
||||
alias ein="ssh -l einchan -p 22 104.238.215.7"
|
||||
alias starwars="telnet towel.blinkenlights.nl"
|
||||
|
||||
alias newnet="sudo systemctl restart NetworkManager"
|
||||
alias newnet="sudo sv restart NetworkManager"
|
||||
alias atltime="sudo timedatectl set-timezone America/New_York && i3 restart"
|
||||
alias tuctime="sudo timedatectl set-timezone America/Phoenix && i3 restart"
|
||||
|
||||
bl() { convert $@ -resize 1440x1080\> bl_$@ ;}
|
||||
|
||||
alias pingme="ping lukesmith.xyz"
|
||||
|
||||
alias youtube="youtube-viewer"
|
||||
alias YT="youtube-viewer"
|
||||
alias syt="youtube-viewer"
|
||||
|
||||
alias etym="sdcv -u \"English Etymology\""
|
||||
alias spword="sdcv -u quick_spanish-english"
|
||||
alias tosp="sdcv -u quick_english-spanish"
|
||||
alias frword="sdcv -u quick_french-english"
|
||||
alias tofr="sdcv -u quick_english-french"
|
||||
alias lword="sdcv -u quick_latin-english"
|
||||
alias tol="sdcv -u quick_english-latin"
|
||||
alias rusword="sdcv -u quick_russian-english"
|
||||
alias torus="sdcv -u quick_english-russian"
|
||||
alias portword="sdcv -u quick_portuguese-english"
|
||||
alias toport="sdcv -u quick_english-portuguese"
|
||||
alias itword="sdcv -u quick_italian-english"
|
||||
alias toit="sdcv -u quick_english-italian"
|
||||
alias gword="sdcv -u quick_german-english"
|
||||
alias tog="sdcv -u quick_english-german"
|
||||
|
||||
alias Txa="cp ~/Documents/LaTeX/article.tex"
|
||||
alias Txs="cp ~/Documents/LaTeX/beamer.tex"
|
||||
@ -89,26 +81,26 @@ folder() { echo -e "$1\t$2" >> ~/.config/Scripts/folders && i3 restart ;}
|
||||
weath() { curl wttr.in/$1 ;}
|
||||
alias work="mkdir ~/Work && cd ~/Work"
|
||||
|
||||
CF() { cd ~/.config/$1 && ls ;}
|
||||
|
||||
alias now="vim ~/Documents/Phonology/squib1.tex"
|
||||
|
||||
CF() { cd ~/.config/$1 && ls ;}
|
||||
|
||||
alias ethspeed="speedometer -r enp0s25"
|
||||
|
||||
note() { echo "$@" >> ~/notes ;}
|
||||
alias notes="vim ~/notes"
|
||||
|
||||
alias extract="~/.config/Script/ext.sh"
|
||||
alias extract="~/.config/Scripts/extract.sh"
|
||||
|
||||
alias refresh="python ~/.config/Scripts/shortcuts.py"
|
||||
|
||||
backup() { cp $1 $1.bu ;}
|
||||
|
||||
#alias man="w3mman"
|
||||
|
||||
alias mailsync="bash ~/.config/Scripts/mailsyncloop.sh"
|
||||
|
||||
alias wifispeed="speedometer -r wlp2s0"
|
||||
alias wifispeed="speedometer -r wlp3s0"
|
||||
|
||||
alias trigger="bash ~/Creations/Scripts/trigger.sh"
|
||||
|
||||
alias bbs="python ~/.config/i3/bar/bumblebee-status"
|
||||
|
||||
@ -116,7 +108,46 @@ alias tr="transmission-remote"
|
||||
|
||||
alias servs="ls /etc/sv"
|
||||
|
||||
alias debase="sudo umount /home/Shared/Videos"
|
||||
alias debase="sudo umount /home/Shared/Videos && xrandr --output LVDS1 --auto --output VGA1 --off && bash ~/.config/polybar/launch.sh &> /dev/null"
|
||||
|
||||
serven() { sudo ln -s /etc/sv/$1 /var/service/ ;}
|
||||
servdis() { sudo rm /var/service/$1 ;}
|
||||
|
||||
aurinstall() { curl -O https://aur.archlinux.org/cgit/aur.git/snapshot/$1.tar.gz && tar -xvzf $1.tar.gz && cd $1 && makepkg --noconfirm -si && cd .. && rm -rf $1 $1.tar.gz ;}
|
||||
|
||||
alias menuk="xmodmap -e 'keycode 135 = Super_R'"
|
||||
alias imgt="bash ~/.config/Scripts/imgt.sh"
|
||||
|
||||
alias ref="python ~/.config/Scripts/shortcuts.py && source ~/.bashrc"
|
||||
alias ka="killall"
|
||||
alias bars="bash ~/.config/polybar/launch.sh"
|
||||
|
||||
|
||||
alias lsc="xrandr --output LVDS1 --auto --output VGA1 --off && bash ~/.config/polybar/launch.sh &> /dev/null"
|
||||
alias vsc="xrandr --output VGA1 --auto --output LVDS1 --off && bash ~/.config/polybar/launch.sh &> /dev/null"
|
||||
alias dsc="xrandr --output LVDS1 --auto --output VGA1 --auto --right-of LVDS1 && bash ~/.config/polybar/launch.sh &> /dev/null"
|
||||
|
||||
alias speedvid="bash ~/.config/Scripts/speedvid.sh"
|
||||
tag() {
|
||||
if [[ -f $1 ]]
|
||||
then
|
||||
echo "Enter a title."
|
||||
read title
|
||||
echo "Enter an artist name."
|
||||
read artist
|
||||
echo "Enter an album."
|
||||
read album
|
||||
echo "Enter an track number."
|
||||
read numb
|
||||
eyeD3 --remove-all "$1"
|
||||
eyeD3 -a "$artist" -t "$title" -n "$numb" -A "$album" "$1"
|
||||
else
|
||||
echo "No file found."
|
||||
fi
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
#Directory Shortcuts:
|
||||
|
||||
1
.config/Scripts/screencast.sh → .config/Scripts/screencast_alsa.sh
Normal file → Executable file
1
.config/Scripts/screencast.sh → .config/Scripts/screencast_alsa.sh
Normal file → Executable file
@ -24,6 +24,5 @@ ffmpeg -y \
|
||||
-i :0.0 \
|
||||
-thread_queue_size 1024 \
|
||||
-f alsa -ar 44100 -i hw:1 \
|
||||
-af "volume=12" \
|
||||
-c:v libx264 -r 30 -c:a flac $filename
|
||||
#-c:v ffvhuff -r 30 -c:a flac $filename
|
||||
@ -7,13 +7,13 @@
|
||||
if [[ -f ~/output.mkv ]]
|
||||
then
|
||||
n=1
|
||||
while [[ -f ~/output_$n.mkv ]]
|
||||
while [[ -f $HOME/output_$n.mkv ]]
|
||||
do
|
||||
n=$((n+1))
|
||||
done
|
||||
filename="output_$n.mkv"
|
||||
filename="$HOME/output_$n.mkv"
|
||||
else
|
||||
filename="output.mkv"
|
||||
filename="$HOME/output.mkv"
|
||||
fi
|
||||
|
||||
#The actual ffmpeg command:
|
||||
6
.config/Scripts/video.sh
Normal file → Executable file
6
.config/Scripts/video.sh
Normal file → Executable file
@ -7,13 +7,13 @@
|
||||
if [[ -f ~/output.mkv ]]
|
||||
then
|
||||
n=1
|
||||
while [[ -f ~/output_$n.mkv ]]
|
||||
while [[ -f $HOME/output_$n.mkv ]]
|
||||
do
|
||||
n=$((n+1))
|
||||
done
|
||||
filename="output_$n.mkv"
|
||||
filename="$HOME/output_$n.mkv"
|
||||
else
|
||||
filename="output.mkv"
|
||||
filename="$HOME/output.mkv"
|
||||
fi
|
||||
|
||||
#The actual ffmpeg command:
|
||||
|
||||
@ -3,6 +3,8 @@ set number
|
||||
set relativenumber
|
||||
set so=10
|
||||
|
||||
vnoremap <C-c> "*y
|
||||
nnoremap <C-t> :tabnew<cr>
|
||||
|
||||
"""BASIC TOOLS
|
||||
"Navigating with guides
|
||||
@ -23,15 +25,22 @@ map <C-l> <C-w>l
|
||||
set nocompatible
|
||||
filetype plugin on
|
||||
|
||||
nnoremap S :%s//g<Left><Left>
|
||||
|
||||
"""LATEX
|
||||
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{}<Space><++><Esc>T{i
|
||||
autocmd FileType tex inoremap ;bf \textbf{}<Space><++><Esc>T{i
|
||||
autocmd FileType tex inoremap ;it \textit{}<Space><++><Esc>T{i
|
||||
autocmd FileType tex inoremap ;ct \textcite{}<Space><++><Esc>T{i
|
||||
autocmd FileType tex inoremap ;cp \parencite{}<Space><++><Esc>T{i
|
||||
autocmd FileType tex inoremap ;em \emph{}<++><Esc>T{i
|
||||
autocmd FileType tex inoremap ;bf \textbf{}<++><Esc>T{i
|
||||
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 ;em \emph{}<Space><++><Esc>T{i
|
||||
"autocmd FileType tex inoremap ;bf \textbf{}<Space><++><Esc>T{i
|
||||
"autocmd FileType tex inoremap ;it \textit{}<Space><++><Esc>T{i
|
||||
"autocmd FileType tex inoremap ;ct \textcite{}<Space><++><Esc>T{i
|
||||
"autocmd FileType tex inoremap ;cp \parencite{}<Space><++><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>
|
||||
@ -45,6 +54,7 @@ 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
|
||||
@ -60,6 +70,8 @@ autocmd FileType tex inoremap ;col \begin{columns}[T]<Enter>\begin{column}{.5\te
|
||||
autocmd FileType tex inoremap ;rn (\ref{})<++><Esc>F}i
|
||||
"""END
|
||||
|
||||
autocmd FileType tex inoremap ;ent \gloss{}{<++>}{<++>}<Enter><++><Esc>k0f}i
|
||||
|
||||
"""Logical Symbols
|
||||
autocmd FileType tex inoremap ;m $$<Space><++><Esc>2T$i
|
||||
autocmd FileType tex inoremap ;M $$$$<Enter><Enter><++><Esc>2k$hi
|
||||
@ -75,6 +87,8 @@ autocmd FileType tex inoremap ;fa {\forall}
|
||||
autocmd FileType tex inoremap ;ex {\exists}
|
||||
autocmd FileType tex inoremap ;dia {\Diamond}
|
||||
autocmd FileType tex inoremap ;box {\Box}
|
||||
autocmd FileType tex inoremap ;gt {\textgreater}
|
||||
autocmd FileType tex inoremap ;lt {\textless}
|
||||
"""END
|
||||
|
||||
autocmd Filetype tex inoremap ;nom {\textsc{nom}}
|
||||
@ -112,6 +126,18 @@ autocmd FileType tex inoremap ;au {\textopeno}
|
||||
autocmd FileType tex inoremap ;O {\textopeno}
|
||||
autocmd FileType tex inoremap ;glot {\textglotstop}
|
||||
autocmd FileType tex inoremap ;ch {\textteshlig}
|
||||
|
||||
"For Indo-European
|
||||
autocmd FileType tex inoremap ;dh d\textsuperscript{h}
|
||||
autocmd FileType tex inoremap ;bh b\textsuperscript{h}
|
||||
autocmd FileType tex inoremap ;gh g\textsuperscript{h}
|
||||
autocmd FileType tex inoremap ;gwh g\textsuperscript{hw}
|
||||
autocmd FileType tex inoremap ;kw k\textsuperscript{w}
|
||||
autocmd FileType tex inoremap ;gw g\textsuperscript{w}
|
||||
autocmd FileType tex inoremap ;h1 {h\textsubscript{1}}
|
||||
autocmd FileType tex inoremap ;h2 {h\textsubscript{2}}
|
||||
autocmd FileType tex inoremap ;h3 {h\textsubscript{3}}
|
||||
autocmd FileType tex inoremap ;h4 {h\textsubscript{4}}
|
||||
"""END
|
||||
|
||||
"""HTML
|
||||
@ -125,6 +151,8 @@ autocmd FileType html inoremap ;a <a<Space>href=""><++></a><Space><++><Esc>F"i
|
||||
autocmd FileType html inoremap ;ul <ul><Enter><li></li><Enter></ul><Enter><Enter><++><Esc>03kf<i
|
||||
autocmd FileType html inoremap ;li <Esc>o<li></li><Esc>F>a
|
||||
autocmd FileType html inoremap ;ol <ol><Enter><li></li><Enter></ol><Enter><Enter><++><Esc>03kf<i
|
||||
autocmd FileType html inoremap -- –
|
||||
autocmd FileType html inoremap --- —
|
||||
|
||||
"""END
|
||||
|
||||
@ -147,20 +175,32 @@ autocmd Filetype markdown inoremap ;1 #<Space><Enter><++><Esc>kA
|
||||
autocmd Filetype markdown inoremap ;2 ##<Space><Enter><++><Esc>kA
|
||||
autocmd Filetype markdown inoremap ;3 ###<Space><Enter><++><Esc>kA
|
||||
autocmd Filetype markdown inoremap ;l --------<Enter>
|
||||
autocmd Filetype markdown nnoremap <C-p> :!pandoc<Space>-t<Space>beamer<Space>-s<Space><C-r>%<space>-o<Space><C-r>%<Backspace><Backspace>pdf<Space>-V<Space>theme:Copenhagen<Space>--latex-engine=xelatex<Enter>
|
||||
autocmd Filetype markdown map <F5> :!pandoc<space><C-r>%<space>-o<space><C-r>%.pdf<Enter><Enter>
|
||||
|
||||
|
||||
syntax on
|
||||
|
||||
"au BufWinLeave * mkview
|
||||
"au BufWinEnter * silent loadview
|
||||
au BufWinLeave * mkview
|
||||
au BufWinEnter * silent loadview
|
||||
|
||||
colorscheme slate
|
||||
|
||||
let g:vimwiki_ext2syntax = {'.md': 'markdown', '.markdown': 'markdown', '.mdown': 'markdown'}
|
||||
map <F5> :!w<Enter>:!pdflatex <C-r>%<Enter>
|
||||
"Spell-check set to F6
|
||||
map <F6> :setlocal spell! spelllang=en_us<CR>
|
||||
map <F10> :Goyo<CR>
|
||||
inoremap <F10> <esc>:Goyo<CR>a
|
||||
|
||||
set wildmode=longest,list,full
|
||||
set wildmenu
|
||||
|
||||
vmap <expr> ++ VMATH_YankAndAnalyse()
|
||||
nmap ++ vip++
|
||||
|
||||
vnoremap K xkP`[V`]
|
||||
vnoremap J xp`[V`]
|
||||
vnoremap L >gv
|
||||
vnoremap H <gv
|
||||
|
||||
"autocmd BufWritePost *.md !pandoc <C-r>% -o <C-r>&<Backspace><Backspace>pdf && evince <C-r>%<Backspace><Backspace>pdf
|
||||
|
||||
@ -1,9 +1,10 @@
|
||||
# vim: filetype=i3
|
||||
|
||||
#This is Luke Smith's i3-gaps configuration file.
|
||||
#Email me: http://lukesmith.xyz
|
||||
#Me: http://lukesmith.xyz
|
||||
#Email: luke@lukesmith.xyz
|
||||
#YouTube Channel: https://youtube.com/c/LukeSmithxyz
|
||||
#YouTube: https://youtube.com/c/LukeSmithxyz
|
||||
#Github: https://github.com/LukeSmithxyz
|
||||
|
||||
###---Basic Definitions---###
|
||||
#Needed for i3-gaps
|
||||
@ -14,12 +15,10 @@ gaps outer 15
|
||||
font pango:hack 9
|
||||
set $mod Mod4
|
||||
set $term urxvt
|
||||
set $screencast --no-startup-id bash ~/.config/Scripts/screencast.sh
|
||||
set $screencast_sys --no-startup-id bash ~/.config/Scripts/screencast_sys.sh
|
||||
set $video --no-startup-id bash ~/.config/Scripts/video.sh
|
||||
set $audio --no-startup-id bash ~/.config/Scripts/audio.sh
|
||||
set $stoprec --no-startup-id killall ffmpeg
|
||||
set $stoprec --no-startup-id killall ffmpeg & killall screenkey
|
||||
set $flash --no-startup-id bash ~/.config/Scripts/flash_win.sh
|
||||
set $browser firefox
|
||||
|
||||
|
||||
###---Starting External Scripts---###
|
||||
@ -35,8 +34,6 @@ exec --no-startup-id sudo mount -a
|
||||
exec --no-startup-id compton
|
||||
#Refresh bash/ranger shortcuts:
|
||||
exec --no-startup-id python ~/.config/Scripts/shortcuts.py
|
||||
#Remove any previous polybars
|
||||
#exec --no-startup-id killall polybar
|
||||
#Try to load VGA screen if available:
|
||||
exec --no-startup-id ~/.config/Scripts/screen.sh v
|
||||
#Launch Polybar where appropriate:
|
||||
@ -44,9 +41,10 @@ exec_always --no-startup-id ~/.config/polybar/launch.sh
|
||||
#Add wallpaper:
|
||||
exec --no-startup-id feh --bg-scale ~/.config/wall.png
|
||||
#Remaps the caps lock button to escape and uses the US international keyboard with dead keys
|
||||
exec --no-startup-id setxkbmap -layout us -variant altgr-intl -option caps:escape
|
||||
exec_always --no-startup-id setxkbmap -layout us -variant altgr-intl -option caps:escape
|
||||
#Remap Menu button to Super:
|
||||
exec_always --no-startup-id xmodmap ~/.config/Scripts/remaps
|
||||
exec_always --no-startup-id xmodmap -e 'keycode 135 = Super_R'
|
||||
bindsym Menu exec --no-startup-id xmodmap -e 'keycode 135 = Super_R'
|
||||
#Unclutter makes the mouse invisible after a brief period
|
||||
exec --no-startup-id unclutter
|
||||
#Disables touchpad; you might like like this one! (I only use the ThinkPad trackpoint).
|
||||
@ -87,6 +85,16 @@ set $beg --no-startup-id mpc seek 0%
|
||||
#set $bigbak --no-startup-id cmus-remote -k -120
|
||||
#set $beg --no-startup-id cmus-remote -k 00:00:00
|
||||
|
||||
#FOR ALSA/AMIXER
|
||||
set $inc --no-startup-id amixer sset Master 2%+
|
||||
set $biginc --no-startup-id amixer sset Master 5%+
|
||||
set $dec --no-startup-id amixer sset Master 2%-
|
||||
set $bigdec --no-startup-id amixer sset Master 5%-
|
||||
set $mute --no-startup-id amixer sset Master toggle
|
||||
set $truemute --no-startup-id amixer sset Master mute
|
||||
set $screencast --no-startup-id bash ~/.config/Scripts/screencast_alsa.sh
|
||||
set $audio --no-startup-id bash ~/.config/Scripts/audio_alsa.sh
|
||||
|
||||
#For PULSEAUDIO/PAMIXER
|
||||
#set $inc --no-startup-id pamixer --allow-boost -i 5
|
||||
#set $biginc --no-startup-id pamixer --allow-boost -i 15
|
||||
@ -95,14 +103,8 @@ set $beg --no-startup-id mpc seek 0%
|
||||
#set $mute --no-startup-id pamixer --allow-boost -t
|
||||
#set $micmute --no-startup-id pamixer --allow-boost -t
|
||||
#set $truemute --no-startup-id pamixer -m
|
||||
|
||||
#FOR ALSA/AMIXER
|
||||
set $inc --no-startup-id amixer sset Master 2%+
|
||||
set $biginc --no-startup-id amixer sset Master 5%+
|
||||
set $dec --no-startup-id amixer sset Master 2%-
|
||||
set $bigdec --no-startup-id amixer sset Master 5%-
|
||||
set $mute --no-startup-id amixer sset Master toggle
|
||||
set $truemute --no-startup-id amixer sset Master mute
|
||||
#set $screencast --no-startup-id bash ~/.config/Scripts/screencast_pulse.sh
|
||||
#set $audio --no-startup-id bash ~/.config/Scripts/audio_pulse.sh
|
||||
|
||||
|
||||
###---Dropdown/Scratchpad Windows---###
|
||||
@ -138,6 +140,8 @@ bindsym $mod+Shift+BackSpace exec sudo reboot
|
||||
|
||||
bindsym $mod+grave exec $flash
|
||||
#bindsym $mod+asciitilde
|
||||
#STOP/HIDE EVERYTHING:
|
||||
bindsym $mod+Shift+Delete exec $mute ; exec $pause ; workspace lmao ; exec $term -e htop ; exec $term -e ranger
|
||||
|
||||
|
||||
###---Letter Key Bindings---###
|
||||
@ -145,7 +149,7 @@ bindsym $mod+q kill
|
||||
bindsym $mod+Shift+q kill
|
||||
|
||||
bindsym $mod+w exec --no-startup-id $term -e w3m http://lukesmith.xyz
|
||||
bindsym $mod+Shift+w exec --no-startup-id $BROWSER
|
||||
bindsym $mod+Shift+w exec --no-startup-id $browser
|
||||
|
||||
bindsym $mod+e exec $term -e mutt
|
||||
#bindsym $mod+Shift+e
|
||||
@ -181,7 +185,7 @@ bindsym $mod+d exec rofi -show run
|
||||
bindsym $mod+Shift+d gaps inner current set 0; gaps outer current set 0
|
||||
|
||||
bindsym $mod+f fullscreen toggle
|
||||
bindsym $mod+Shift+f exec --no-startup-id syncthing
|
||||
#bindsym $mod+Shift+f
|
||||
|
||||
bindsym $mod+g workspace prev
|
||||
bindsym $mod+Shift+g exec --no-startup-id gimp; workspace $ws5
|
||||
@ -205,7 +209,7 @@ bindsym $mod+x exec --no-startup-id ~/.config/i3/lock.sh
|
||||
bindsym $mod+Shift+x exec sudo shutdown -h now
|
||||
|
||||
bindsym $mod+c exec $term -e weechat
|
||||
bindsym $mod+Shift+c exec --no-startup-id audacity
|
||||
#bindsym $mod+Shift+c
|
||||
|
||||
bindsym $mod+v exec urxvt -e ncmpcpp -s visualizer
|
||||
#bindsym $mod+Shift+v
|
||||
@ -308,7 +312,7 @@ workspace $ws8 gaps outer 0
|
||||
|
||||
|
||||
###---Function Buttons---###
|
||||
bindsym F1 nop
|
||||
#bindsym F1 nop
|
||||
#bindsym F2
|
||||
#bindsym F3
|
||||
#bindsym F4
|
||||
@ -321,7 +325,7 @@ bindsym F1 nop
|
||||
bindsym F11 fullscreen toggle
|
||||
#bindsym F12
|
||||
|
||||
bindsym $mod+F1 exec --no-startup-id mupdf ~/.config/Scripts/luke_guide.pdf
|
||||
bindsym $mod+F1 exec --no-startup-id mupdf ~/.config/Scripts/i3_guide.md.pdf
|
||||
bindsym $mod+F2 exec --no-startup-id python ~/.config/Scripts/shortcuts.py
|
||||
bindsym $mod+F3 exec --no-startup-id arandr
|
||||
bindsym $mod+F4 exec --no-startup-id sudo zzz
|
||||
@ -347,65 +351,116 @@ bindsym $mod+Shift+Right move right
|
||||
|
||||
|
||||
###---Media Keys---###
|
||||
|
||||
#Volume keys
|
||||
bindsym $mod+plus exec $inc
|
||||
bindsym $mod+Shift+plus exec $biginc
|
||||
|
||||
bindsym $mod+minus exec $dec
|
||||
bindsym $mod+Shift+minus exec $bigdec
|
||||
|
||||
bindsym $mod+bracketleft exec $lilbak
|
||||
bindsym $mod+Shift+bracketleft exec $bigbak
|
||||
|
||||
bindsym $mod+bracketright exec $lilfor
|
||||
bindsym $mod+Shift+bracketright exec $bigfor
|
||||
|
||||
bindsym $mod+greater exec $inc
|
||||
bindsym $mod+Shift+greater exec $biginc
|
||||
|
||||
bindsym $mod+less exec $dec
|
||||
bindsym $mod+Shift+less exec $bigdec
|
||||
|
||||
#For advancing forward/backward in an mpd song
|
||||
bindsym $mod+bracketleft exec $lilbak
|
||||
bindsym $mod+Shift+bracketleft exec $bigbak
|
||||
bindsym $mod+bracketright exec $lilfor
|
||||
bindsym $mod+Shift+bracketright exec $bigfor
|
||||
|
||||
#Print screen takes a screenshot.
|
||||
#With shift, it takes one only of the given window.
|
||||
bindsym Print exec --no-startup-id scrot
|
||||
bindsym Shift+Print exec --no-startup-id scrot -u
|
||||
|
||||
bindsym Scroll_Lock exec $audio
|
||||
bindsym Num_Lock exec $video
|
||||
#For recording audio/video or stop recording. Also screenkey for visual typing.
|
||||
bindsym $mod+Print exec --no-startup-id screenkey
|
||||
bindsym $mod+Scroll_Lock exec $audio
|
||||
|
||||
|
||||
bindsym $mod+Insert exec $screencast
|
||||
bindsym $mod+Shift+Insert exec $video
|
||||
|
||||
bindsym Pause exec $audio
|
||||
bindsym Shift+Pause exec $screencast_sys
|
||||
bindsym $mod+Pause exec $stoprec
|
||||
|
||||
bindsym $mod+Pause exec $video
|
||||
bindsym $mod+Delete exec $stoprec
|
||||
bindsym XF86Launch1 exec $stoprec
|
||||
bindsym $mod+XF86Launch1 exec --no-startup-id xset dpms force off
|
||||
|
||||
bindsym XF86AudioPlay exec $pause
|
||||
bindsym XF86AudioPause exec $pause
|
||||
|
||||
|
||||
###---Extra XF86 Keys---###
|
||||
#These are the extra media keys that some keyboards have.
|
||||
bindsym XF86AudioMute exec $mute
|
||||
bindsym XF86AudioLowerVolume exec $dec
|
||||
bindsym XF86AudioRaiseVolume exec $inc
|
||||
bindsym XF86PowerOff exec sudo shutdown -h now
|
||||
#bindsym XF86Copy exec
|
||||
#bindsym XF86Open exec
|
||||
#bindsym XF86Paste exec
|
||||
#bindsym XF86Cut exec
|
||||
#bindsym XF86MenuKB exec
|
||||
bindsym XF86Calculator exec $term -e R -q
|
||||
bindsym XF86Sleep exec sudo zzz
|
||||
#bindsym XF86WakeUp exec
|
||||
bindsym XF86Explorer exec $term -e ranger
|
||||
#bindsym XF86Send exec
|
||||
#bindsym XF86Xfer exec
|
||||
bindsym XF86WWW exec --no-startup-id $browser
|
||||
#bindsym XF86DOS exec
|
||||
bindsym XF86ScreenSaver exec exec --no-startup-id ~/.config/i3/lock.sh
|
||||
#bindsym XF86RotateWindows exec
|
||||
#bindsym XF86TaskPane exec
|
||||
#bindsym XF86Favorites exec
|
||||
bindsym XF86MyComputer exec $term -e ranger
|
||||
#bindsym XF86Back exec
|
||||
#bindsym XF86Forward exec
|
||||
bindsym XF86Eject exec sudo umount -R /mnt
|
||||
bindsym XF86AudioNext exec $next
|
||||
bindsym XF86AudioPlay exec $pause
|
||||
bindsym XF86AudioPrev exec $prev
|
||||
bindsym XF86AudioStop exec $pause
|
||||
|
||||
bindsym XF86AudioRaiseVolume exec $inc
|
||||
bindsym XF86AudioLowerVolume exec $dec
|
||||
bindsym XF86AudioMute exec $mute
|
||||
bindsym XF86AudioRecord exec $audio
|
||||
bindsym XF86AudioRewind exec $lilbak
|
||||
bindsym XF86AudioForward exec $lilfor
|
||||
#bindsym XF86Phone exec
|
||||
#bindsym XF86Tools exec
|
||||
bindsym XF86HomePage exec $browser https://lukesmith.xyz
|
||||
bindsym XF86Reload restart
|
||||
#bindsym XF86ScrollUp exec
|
||||
#bindsym XF86ScrollDown exec
|
||||
#bindsym XF86New exec
|
||||
#bindsym XF86LaunchA exec
|
||||
#bindsym XF86LaunchB exec
|
||||
#bindsym XF86Launch2 exec
|
||||
#bindsym XF86Launch3 exec
|
||||
#bindsym XF86Launch4 exec
|
||||
#bindsym XF86Launch5 exec
|
||||
#bindsym XF86Launch6 exec
|
||||
#bindsym XF86Launch7 exec
|
||||
#bindsym XF86Launch8 exec
|
||||
#bindsym XF86Launch9 exec
|
||||
bindsym XF86AudioMicMute exec $micmute
|
||||
|
||||
|
||||
###---Extra Keys---###
|
||||
bindsym XF86Mail exec $term -e mutt
|
||||
bindsym XF86MyComputer exec $term -e ranger /
|
||||
#bindsym $mod+XF86MyComputer exec
|
||||
bindsym XF86HomePage exec --no-startup-id $BROWSER lukesmith.xyz
|
||||
bindsym $mod+XF86HomePage exec --no-startup-id $BROWSER
|
||||
bindsym $mod+XF86WWW exec --no-startup-id $BROWSER
|
||||
|
||||
bindsym XF86Calculator exec $term -name math -e R -q
|
||||
|
||||
bindsym XF86MonBrightnessUp exec --no-startup-id xbacklight -inc 15
|
||||
#bindsym XF86TouchpadToggle exec
|
||||
bindsym XF86TouchpadOn exec --no-startup-id exec synclient TouchpadOff=0
|
||||
bindsym XF86TouchpadOff exec --no-startup-id exec synclient TouchpadOff=1
|
||||
bindsym XF86Suspend exec --no-startup-id ~/.config/i3/lock.sh
|
||||
bindsym XF86Close kill
|
||||
bindsym XF86WebCam exec mpv /dev/video0
|
||||
bindsym XF86Mail exec $term -e mutt
|
||||
bindsym XF86Messenger exec $term -e weechat
|
||||
bindsym XF86Search exec $browser https://duckduckgo.com
|
||||
#bindsym XF86Go exec
|
||||
#bindsym XF86Finance exec
|
||||
#bindsym XF86Game exec
|
||||
bindsym XF86Shop exec $browser https://ebay.com
|
||||
bindsym XF86MonBrightnessDown exec --no-startup-id xbacklight -dec 15
|
||||
bindsym XF86MonBrightnessUp exec --no-startup-id xbacklight -inc 15
|
||||
bindsym XF86AudioMedia exec $music
|
||||
bindsym XF86Display exec --no-startup-id arandr
|
||||
#bindsym XF86KbdLightOnOff exec
|
||||
bindsym XF86KbdBrightnessDown exec --no-startup-id xbacklight -dec 15
|
||||
bindsym XF86KbdBrightnessUp exec --no-startup-id xbacklight -inc 15
|
||||
#bindsym XF86Reply exec
|
||||
#bindsym XF86MailForward exec
|
||||
#bindsym XF86Save exec
|
||||
bindsym XF86Documents exec $term -e ranger ~/Documents
|
||||
#bindsym XF86Battery exec
|
||||
#bindsym XF86Bluetooth exec
|
||||
bindsym XF86WLAN exec --no-startup-id sudo sv restart NetworkManager
|
||||
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user