Skip to content

Commit

Permalink
lfrc stuff, other stuff too idk
Browse files Browse the repository at this point in the history
  • Loading branch information
ediw8311xht committed Dec 27, 2024
1 parent 9eefe61 commit 18b2ff0
Show file tree
Hide file tree
Showing 10 changed files with 44 additions and 25 deletions.
16 changes: 8 additions & 8 deletions bashrc_files/aliases.sh
Original file line number Diff line number Diff line change
Expand Up @@ -139,23 +139,23 @@ alias tl=' task list'
#--------------------------------------------------lisp----------------------------------#
alias vlime_start=' sbcl --load ~/.local/share/nvim/plugged/vlime/lisp/start-vlime.lisp'
#----------------------------------------------------------------------------------------#
alias mdview=' markdown_view_w3m "$( fd -tf ".*[.]md" | fzf)"'
alias htmlcheck=' xmllint --html'
alias ac=' compgen -c | grep -x'
alias cz=' ccze -m ansi'
alias e=' manage_emacs.sh -n'
alias mdview=' markdown_view_w3m "$( fd -tf ".*[.]md" | fzf)"'
alias htmlcheck=' xmllint --html'
alias ac=' compgen -c | grep -x'
alias cz=' ccze -m ansi'
alias e=' manage_emacs.sh -n'
alias g=' grep -Pi'
alias r=' \rg --pcre2 -i'
alias t=' trash-put'
alias v=' sc-im'
alias B=' bat'
alias C=' cd ..'
alias P=' readlink -f'
alias wh=' whereis'
alias wh=' whereis'
alias klr=' kalker --angle-unit rad'
alias kld=' kalker --angle-unit deg'
alias grf=' grep --file="-" -Fi "${HOME}/.bashrc" "${HOME}/bashrc_files/"* <<<'
alias gr=' grep --file="-" -Pi "${HOME}/.bashrc" "${HOME}/bashrc_files/"* <<<'
alias grf=' grep --file="-" -Fin "${HOME}/.bashrc" "${HOME}/bashrc_files/"* <<<'
alias gr=' grep --file="-" -Pin "${HOME}/.bashrc" "${HOME}/bashrc_files/"* <<<'
alias nf=' fzf_edit'
alias xf=' xdg-open "$(fzf --preview="ctpv {}")"'
alias xr=' echo ""; nvim "${HOME}/.Xresources"; xrdb "${HOME}/.Xresources"'
Expand Down
9 changes: 9 additions & 0 deletions bashrc_files/functions.sh
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,15 @@ man_all_pages() {
markdown_view_w3m() {
w3m -T text/html < <(pandoc -s "${1}" 2>/dev/null)
}
size_of_dir() {
local tdir="${1:-.}"
if ! [[ -d "${tdir}" ]] ; then
echo "Directory: '${tdir}' not found." >&2
return 1
else
du -axhc --time --max-depth=1 "${tdir}" | sort -h
fi
}
#get_outdated_pip() {
# local zfile
# local IFS=$'\n'
Expand Down
8 changes: 5 additions & 3 deletions i3wm/regular_bindings.conf
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,10 @@ $SF Super_L $B1 move container to output $MON_1
$SF BackSpace $B1 move container to output $MON_2
$SF equal $B1 move container to output $MON_P
#---------------------------------------------------BINDINGS-------------------------------------------------------#

$Mb button9 $_ exec screengrab
$Mb button8 $_ [title="i3s_kitty_term"] scratchpad show

$Br a $B1 focus parent
$Br b $B1 floating toggle ; move position center
$Br c $_ exec /usr/local/bin/st -c 'special_float' -n 'i3s_note' /usr/bin/env nvim -O "file:///$HOME/Desktop/Coding/WEB_BROWSER/Firefox/"*
Expand All @@ -73,13 +77,11 @@ $Br t $B1 [class="Zathura"] scratchpad show
$Br u $B1 [title="i3s_kitty_term"] scratchpad show
$Br v $_ split v
$Br w $_ layout tabbed
$Br x $_ exec $monitor_script 'rotate' '$MON_1' 'right'
$Br x $_ exec $monitor_script 'rotate' '$MON_2' 'right'
$Br y $_ exec $xmsg_script "Freekey"; mode freekey
$Br z $_ exec $xmsg_script "Zathura"; mode zathura

#bindsym button9 $_ exec screengrab
$Mb button9 $_ exec screengrab
$Mb button8 $_ [title="i3s_kitty_term"] scratchpad show
$SF d $_ exec $xmsg_script "run_program"; mode run_program
$SF e $_ exec $HOME/bin/custom_exit.sh
$SF h $B1 move left 20px
Expand Down
2 changes: 1 addition & 1 deletion lf/lfrc
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ map J push 3j
map O $mimeopen --ask $fx #-----------ASK AND THEN OPEN IN NEW WINDOW-----------------#
map P push :!echo<space>""<left>
map Q &lf -remote 'send quit'; lf -remote 'quit'
map RF push :rename<enter><c-a><c-k>
map RF push :rename<enter><c-u>
map RN rename
map RR :reload
map Sb :set drawbox!
Expand Down
8 changes: 4 additions & 4 deletions mimeapps.list
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,12 @@ application/json=nvim.desktop;
application/mobi=zathura.desktop;
application/pdf=zathura.desktop;
application/schema+json=nvim.desktop;
application/toml=nvim.desktop
application/vnd.ms-publisher=nvim.desktop
application/vnd.ms-publisher=nvim.desktop
application/toml=nvim.desktop;
application/vnd.ms-publisher=nvim.desktop;
application/vnd.ms-publisher=nvim.desktop;
application/x-ankiaddon=anki.desktop;
application/x-apkg=anki.desktop;
application/x-bittorrent=transmission-qt.desktop
application/x-bittorrent=deluge.desktop;
application/x-colpkg=anki.desktop;
application/x-compressed-tar=org.gnome.FileRoller.desktop;
application/x-desktop=nvim.desktop;
Expand Down
1 change: 1 addition & 0 deletions nvim/init.vim
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,7 @@ lua require('functions')
lua require('autocmd')
source ${HOME}/.config/nvim/plugins.vim
source ${HOME}/.config/nvim/functions.vim
source ${HOME}/.config/nvim/mappings.vim
lua require('mytreesitter')
lua require('base')

Expand Down
16 changes: 8 additions & 8 deletions nvim/lua/mappings.lua
Original file line number Diff line number Diff line change
Expand Up @@ -35,12 +35,12 @@ local regular_mappings={
{ '', T, '', '+', 'g_' },
{ '', T, '', ',', '<leader>' },

{ n, F, '', '<C-S-e>', 'be' },
{ n, F, '', '<C-S-E>', 'bbe' },
{ n, F, '', '/', '/\\v\\c' },
{ n, F, '', '<C-S-h>', '<C-w>h' },
{ n, F, '', '<C-S-j>', '<C-w>j' },
{ n, F, '', '<C-S-k>', '<C-w>k' },
{ n, F, '', '<C-S-l>', '<C-w>l' },
{ n, F, '', '<C-S-H>', '<C-w>h' },
{ n, F, '', '<C-S-J>', '<C-w>j' },
{ n, F, '', '<C-S-K>', '<C-w>k' },
{ n, F, '', '<C-S-L>', '<C-w>l' },
{ n, F, '', '<C-\\>', '/\\V' },
{ n, F, '', '<C-_>', '/\\v' },
{ n, F, '', '<C-h>', '<C-w>h' },
Expand All @@ -60,8 +60,8 @@ local regular_mappings={
{ '', F, '', ',;', ',' },
{ '', F, '', 'x', '"xx' },
{ t, T, '', '<C-w>', '<C-\\><C-n>' },
{ v, F, 'Sub char insensitive', '<C-s>', ':s/\\V\\v\\c' },
{ v, F, 'Sub char sensitive', '<C-S-s>', ':s/\\V\\v' },
{ v, F, 'Sub char insensitive', '<C-s>', ':s/\\%V\\v\\c' },
{ v, F, 'Sub char sensitive', '<C-S-s>', ':s/\\%V\\v' },
{ n, F, '', '<C-n>' , ':NERDTreeToggle<CR>' },
{ v, F, '', '`', 'zf' },
}
Expand Down Expand Up @@ -106,7 +106,7 @@ local leader_mappings={
{ n, F, '', 'oq' , ':silent !"qutebrowser" %<CR>' },
{ n, F, '', 'q' , ':bd' },
{ n, F, '', 's' , '<C-w><C-p>' },
-- { n, F, '', 'S' , ':source ~/.config/nvim/init.vim<esc>' },
{ n, F, '', 'S' , ':source ~/.config/nvim/init.vim<esc>' },
{ n, F, '', 'T' , ':term<esc>' },
{ n, F, '', 'u' , ':Lf<esc>' },
{ n, F, '', 'vv' , ':call TogVE()<CR>' },
Expand Down
2 changes: 2 additions & 0 deletions nvim/mappings.vim
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@

vnoremap ftg gg
3 changes: 3 additions & 0 deletions xorg/Xresources
Original file line number Diff line number Diff line change
Expand Up @@ -309,3 +309,6 @@ i3wm.other_monitor_1_resy: 900
i3wm.primary_monitor: DP-1
i3wm.primary_monitor_resx: 1920
i3wm.primary_monitor_resy: 1080
i3wm.other_monitor_2: HDMI-3
i3wm.other_monitor_2_resx: 1080
i3wm.other_monitor_2_resy: 1920
4 changes: 3 additions & 1 deletion zathura/zathurarc
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,18 @@
#---------------------------------------#
#----SETTINGS---------------------------#
#---------------------------------------#
set incremental-search false
set show-recent 100
set adjust-open best-fit
set continuous-hist-save true
set database sqlite
set guioptions s
set n-completion-items 20
set n-completion-items 5
set page-padding 0
set pages-per-row 1
#set sandbox none
#set s andbox strict
set page-cache-size 200
set scroll-step 100
set selection-clipboard clipboard
set show-hidden true
Expand Down

0 comments on commit 18b2ff0

Please sign in to comment.