Skip to content

Commit

Permalink
FKJ
Browse files Browse the repository at this point in the history
  • Loading branch information
ediw8311xht committed Sep 1, 2024
1 parent 2acc34b commit 597ef38
Show file tree
Hide file tree
Showing 14 changed files with 100 additions and 78 deletions.
5 changes: 3 additions & 2 deletions bashrc_files/aliases.sh
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ alias pacsel=' pacman -Qs'
alias pacil=' pacman -Qi'
alias pacfrom=' pacman -Qo'
alias pacfiles=' pacman -Qql'
alias pacf=' pacman -Fl'
alias pacool=' pacman -Sl | grep -Fi "[installed]" | grep -i'
alias pacnot=' pacman -Sl | grep -vFi "[installed]" | grep -i'
#--------------------------------------------------cd------------------------------------#
Expand Down Expand Up @@ -116,7 +117,7 @@ alias men=' man_all_pages'
alias sman=' man -K --regex'
#--------------------------------------------------nvim----------------------------------#
alias nv=' nvim'
alias nvgr=' grep --file="-" -Pri "${HOME}/.config/nvim/" <<< '
alias nvgr=' fd . -tf "${XDG_CONFIG_HOME}/nvim/" -x grep --color="always" -Pi'
alias full_ednv=' fd . -tf -0 "${HOME}/.config/nvim/" -X nvim -c "Buffers"'
alias ednv=' nvim -c "Buffers" "${XDG_CONFIG_HOME}/nvim/lua/"*.lua "${XDG_CONFIG_HOME}/nvim/"*.vim'
alias nva=' fd . --exact-depth 1 -tf -0 -X nvim -c "Buffers"'
Expand Down Expand Up @@ -181,7 +182,7 @@ alias tracenet=' strace'
alias upfonts=' fc-cache -f -v; echo $?'
alias getmonospacefonts='fc-list :spacing=100 | grep -i '
alias sctl=' journalctl | ccze -m ansi'
alias ebash=' nvim -c "Buffers" "${HOME}/.bashrc" "${HOME}/bashrc_files/"*; source "${HOME}/.bashrc"'
alias ebash=' nvim -c "Buffers" "${HOME}/.bashrc" "${HOME}/.bash_profile" "${HOME}/bashrc_files/"*; source "${HOME}/.bashrc"'
alias emime=' nvim "${HOME}/.config/mimeapps.list"'
alias ysb=' source "${HOME}/.bashrc"'
alias i3gr=' grep --file="-" -Pri "${HOME}/.config/i3/" <<< '
Expand Down
4 changes: 0 additions & 4 deletions bashrc_files/exports.sh
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,3 @@ export LUA_CPATH='/usr/local/lib/lua/5.4/?.so;/usr/lib/lua/5.4/?.so;/usr/local/l







1 change: 1 addition & 0 deletions i3wm/config
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
set $balance_workspace $HOME/.local/bin/i3_balance_workspace
set $polybar_script $HOME/bin/polybar_manipulate.sh
set $xmsg_script $HOME/bin/xmsg_quick.sh
set $zathura_recent $HOME/bin/zathura_recent.sh
#-------------------------------------------------SPECIAL-BINDS-----------#
#sticky toggle
set $scratchpad_default floating enable, move scratchpad, scratchpad show, move position center
Expand Down
39 changes: 25 additions & 14 deletions i3wm/modes.conf
Original file line number Diff line number Diff line change
Expand Up @@ -182,24 +182,35 @@ mode "mpv" {
}

mode "zathura" {
bindsym g exec $zathura_script -g
bindsym d exec $zathura_script -d
bindsym r exec $zathura_script -r
bindsym o exec $zathura_script -o
bindsym Shift+o exec $zathura_script -O

bindsym Shift+minus exec $zathura_script -p-
bindsym minus exec $zathura_script -p-
bindsym plus exec $zathura_script -p+
bindsym equal exec $zathura_script -p+
bindsym g exec $zathura_script '-g'
bindsym d exec $zathura_script '-d'
bindsym r exec $zathura_script '-r'
bindsym o exec $zathura_script '-o'
bindsym Shift+o exec $zathura_script '-O'
bindsym Shift+minus exec $zathura_script '-p-'
bindsym minus exec $zathura_script '-p-'
bindsym Shift+equal exec $zathura_script '-p+'
bindsym equal exec $zathura_script '-p+'

bindsym $mod+Escape $mode_be_default
bindsym Escape $mode_be_default
}

#mode "config" {
# bindsym d exec $border_script
# bindsym Escape $mode_be_default
#}
mode "run_program" {
bindsym b exec $border_script ; $mode_be_default
bindsym c exec chromium ; $mode_be_default
bindsym d exec deluge ; $mode_be_default
bindsym f exec firefox ; $mode_be_default
bindsym o exec obsidian ; $mode_be_default
bindsym p exec gthumb ; $mode_be_default
bindsym r exec rnote ; $mode_be_default
bindsym t exec thunar ; $mode_be_default
bindsym y exec freetube ; $mode_be_default
bindsym z exec $zathura_recent ; $mode_be_default

bindsym Shift+r exec rofi -show drun ; $mode_be_default
bindsym Shift+z exec $zathura_recent '-a' ; $mode_be_default
bindsym Escape $mode_be_default
}

#---------------------------------------------------END------------------------------------------------------------#
3 changes: 1 addition & 2 deletions i3wm/regular_bindings.conf
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ $Br z $_ exec /usr/local/bin/st -c 'special_float' -n 'i3s_not

#bindsym button9 $_ exec screengrab
$Mb button9 $_ exec screengrab
$SF d $_ exec rofi -show drun
$SF d $_ exec $xmsg_script "run_program"; mode run_program
$SF e $_ exec $HOME/bin/custom_exit.sh
$SF h $B1 move left 20px
$SF i $_ exec $xmsg_script "MPV" ; mode mpv
Expand All @@ -95,7 +95,6 @@ $SF v $_ split h
$SF x $_ exec $clipboard_script "DATE" "TIME"

$SF_CTRL e $_ exec $zathura_script -o
$SF_CTRL d $_ exec $border_script
$SF_CTRL h $B1 move left 20px
$SF_CTRL j $B1 move down 20px
$SF_CTRL k $B1 move up 20px
Expand Down
60 changes: 31 additions & 29 deletions lf/lfrc
Original file line number Diff line number Diff line change
Expand Up @@ -80,22 +80,15 @@ cmd toggle_info ${{
fi
}}

map bB &$BROWSER $fx
map bQ &qutebrowser $fx

map C :quit
map Q &lf -remote 'send quit'; lf -remote 'quit'
#-----------OPEN IN NEW WINDOW------------------------------#
map o &mimeopen $fx
#-----------ASK AND THEN OPEN IN NEW WINDOW-----------------#
map O $mimeopen --ask $fx
map m push :!mkdir<space>

# - CD -
# Uppercase
map <gt>C cd ~/.config/
map <gt>D cd ~/Desktop/
map <gt>P cd ~/Pictures/
map <gt>SS cd ~/Desktop/SCHOOL/
map <gt>SM cd ~/Desktop/SCHOOL/COMP_SCI_1/
map <gt>SC cd ~/Desktop/SCHOOL/CALC/

# Lowercase
map <gt>b cd ~/bin/
Expand All @@ -109,8 +102,6 @@ map <gt>l cd ~/MyLibrary/
map <gt>p cd ~/Pictures/
map <gt>v cd ~/Videos/

map e np
map E :open_editor
map <lt>p set preview!
map <lt><lt> set ratios 2:3:5
map <lt>0 set ratios 1:2:3
Expand All @@ -123,26 +114,37 @@ map <lt>6 set ratios 1:6
map <lt>7 set ratios 1:7
map <lt>8 set ratios 1:8
map <lt>9 set ratios 1:9

map <esc> clear
map <enter> shell
map I :toggle_info "size:atime"
map H set hidden!
map d set dironly!
map r set reverse!
map U :unselect; clear
map TR :trash
map RR :reload
map RN rename
map RF push :rename<enter><c-a><c-k>
map P push :!echo<space>""<left>
map K push 3k
map J push 3j
map VG invert-below
map Vg :invert-below; invert
map ; :mark-save
## remove filter with <c-r>
map <c-f> :filter
#map C :quit
map ; :mark-save
map K push 3k
map E :open_editor
map H set hidden!
map I :toggle_info "size:atime"
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 RN rename
map RR :reload
map TR :trash
map U :unselect; clear
map VG invert-below
map Vg :invert-below; invert

map bB &$BROWSER $fx
map bQ &qutebrowser $fx
map c &xclip -selection "clipboard" -i -r <<< "${fx[*]}"
map d set dironly!
map e np
map m push :!mkdir<space>
map o &mimeopen $fx #-----------OPEN IN NEW WINDOW------------------------------#
map r set reverse!
map x cut
## remove filter with <c-r>
#------------------------------------------------------------------#
#-----------CALL WITH THIS function to use autocd------------------#
#------------------------------------------------------------------#
Expand Down
2 changes: 2 additions & 0 deletions nvim/autocmd.vim
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ autocmd BufNewFile *.kalker 0read ${HOME}/.config/nvim/language_specific/tem
autocmd BufNewFile *.exs 0read ${HOME}/.config/nvim/language_specific/templates/template.exs | :silent w | :silent !chmod 700 %
autocmd BufNewFile *.ex 0read ${HOME}/.config/nvim/language_specific/templates/template.ex | :silent w | :silent !chmod 600 %
autocmd BufNewFile *.html 0read ${HOME}/.config/nvim/language_specific/templates/template.html | :silent w | :silent !chmod 600 %
autocmd BufNewFile *.cpp 0read ${HOME}/.config/nvim/language_specific/templates/template.cpp | :silent w | :silent !chmod 600 %

autocmd BufNewFile,BufRead ~/.bashrc setfiletype bash
autocmd BufNewFile,BufRead ~/bashrc_files/* setfiletype bash
Expand All @@ -23,6 +24,7 @@ autocmd BufNewFile,BufRead ${HOME}/.config/i3/* setfiletype i3
autocmd BufNewFile,BufRead *.ex,*.exs setfiletype elixir

autocmd Filetype elixir setlocal tabstop=2 shiftwidth=2 softtabstop=2 expandtab
autocmd Filetype cpp source ${HOME}/.config/nvim/language_specific/cpp.vim
autocmd Filetype lua source ${HOME}/.config/nvim/language_specific/lua.vim
autocmd Filetype kalker source ${HOME}/.config/nvim/language_specific/kalker.vim
autocmd Filetype css source ${HOME}/.config/nvim/language_specific/css.vim
Expand Down
2 changes: 2 additions & 0 deletions nvim/language_specific/cpp.vim
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@

nnoremap <buffer> <leader>x :!"$HOME/bin/make_run_cpp.sh" %<esc>
6 changes: 6 additions & 0 deletions nvim/language_specific/templates/template.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#include <iostream>

int main()
{
return 0;
}
8 changes: 4 additions & 4 deletions nvim/leader_bindings.vim
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@ let g:bindings_l_noremap = [
" \[ 'cC' , ':call Toggle(&colorcolumn, 0, "set colorcolumn=80", "set colorcolumn=0")<esc>', "toggles color column (Line length indicator)" ],
" \[ 'cc' , ':set nocursorline!<esc>' ],
" \[ 'CH' , ':checkhealth<esc>' ],
" \[ 'D' , ':bdelete<esc><enter>' ],
" \[ 'Dd' , ':bdelete<esc><enter>' ],
" \[ 'DG' , ':bd!<esc>' ],
" \[ 'df' , ':%s/\s\+\ze$//gc<esc>' , "finds and optionally deletes extra space at end of line" ],
" \[ 'e' , ':set cursorcolumn!<esc>' ],
" \[ 'E' , ':call feedkeys(":e " . FilePathFull() . "/")<cr>' ],
Expand Down Expand Up @@ -69,10 +70,10 @@ let g:bindings_l_noremap = [
"\[ 'x' , ':w<esc>:!%:p<esc>' ],

let g:bindings_l_vnoremap = [
\[ 'm' , ':!bc<esc>' ],
\[ 'M' , ':!dc<esc>' ],
\[ 'm' , ':!bc<esc>' ],
\[ 'vc' , ':!column -o " " -t<enter>' ],
\[ 'vs' , ':!sort -n<enter>' ],
\[ 'vs' , ':sort<enter>' ],
\]

"call M_Map( "nnoremap" , g:bindings_l_nnoremap, 1)
Expand All @@ -86,5 +87,4 @@ call M_Map( "vnoremap" , g:bindings_l_vnoremap, 1)
" \[ 'vm' , ':put =eval("<C-r>0")' ],
" \[ 'vq' , ':put =eval("<C-r>0")<esc>' ],
" \[ 'out' , 'q:iput =execute("<C-r>0")<esc>A<C-c>' ],
" \[ 'ZG' , ':bd!<esc>' ],

2 changes: 1 addition & 1 deletion nvim/lua/base.lua
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ which_key.setup({
},
icons = {
breadcrumb = ">", -- symbol used in the command line area that shows your active key combo
separator = "", -- symbol used between a key and it's label
separator = "|", -- symbol used between a key and it's label
group = "+", -- symbol prepended to a group
ellipsis = "",
-- set to false to disable all mapping icons,
Expand Down
4 changes: 2 additions & 2 deletions polybar/configs/config_mini.ini
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
cursor-click = pointer
cursor-scroll = ns-resize
modules-left = i3
; offset-x = 0% - 40px
offset-x = 0% - 40px
width = 50px
bottom = true
height = 28px
Expand All @@ -55,7 +55,7 @@
cursor-click = pointer
cursor-scroll = ns-resize
modules-right = i3 TimeEST pulseaudio
; offset-x = 0%
offset-x = 0%
width = 10%
bottom = true
height = 2%
Expand Down
4 changes: 2 additions & 2 deletions polybar/configs/config_small.ini
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@
secondary = #060033
line-color = #f00
alert = #bd2c40
offset-x = 70%
; offset-x = 70%
width = 30%
bottom = true
offset-y = 0px
Expand Down Expand Up @@ -88,7 +88,7 @@
secondary = #060033
line-color = #f00
alert = #bd2c40
offset-x = 70%
; offset-x = 70%
width = 30%
bottom = true
offset-y = 0px
Expand Down
38 changes: 20 additions & 18 deletions zathura/zathurarc
Original file line number Diff line number Diff line change
Expand Up @@ -2,24 +2,26 @@
#---------------------------------------#
#----SETTINGS---------------------------#
#---------------------------------------#
set adjust-open best-fit
set continuous-hist-save true
set database sqlite
set guioptions s
set n-completion-items 20
set page-padding 0
set pages-per-row 1
#set sandbox none
#set sandbox strict
set scroll-step 100
set selection-clipboard clipboard
set show-hidden true
#set smooth-reload true
set statusbar-home-tilde true
set vertical-center true
set window-title-basename true
set window-title-home-tilde true
set zoom-step 4
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 page-padding 0
set pages-per-row 1
#set sandbox none
#set s andbox strict
set scroll-step 100
set selection-clipboard clipboard
set show-hidden true
#set smooth-reload true
set window-title-home-tilde true
set statusbar-home-tilde true
set vertical-center true
set window-title-basename true
set window-title-home-tilde true
set zoom-step 4
# status bar and scrollbar
#---------------------------------------#
#----MAPPINGS----------------UNSET------#
Expand Down

0 comments on commit 597ef38

Please sign in to comment.