Skip to content

Commit

Permalink
KFSAJD
Browse files Browse the repository at this point in the history
  • Loading branch information
ediw8311xht committed Aug 7, 2024
1 parent 76605d2 commit 7855999
Show file tree
Hide file tree
Showing 5 changed files with 32 additions and 24 deletions.
2 changes: 2 additions & 0 deletions i3wm/config
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
set $emacs_script $HOME/bin/manage_emacs.sh
set $border_script $HOME/bin/i3wm_change_border.sh
set $clipboard_script $HOME/bin/add_to_clip.sh
set $refresh_script $HOME/bin/refresh_browser.sh
#-------------------------------------------------SPECIAL-BINDS-----------#
#sticky toggle
set $scratchpad_default floating enable, move scratchpad, scratchpad show, move position center
Expand Down Expand Up @@ -54,6 +55,7 @@
set_from_resource $R_GAPS i3wm.R_GAPS 0
set_from_resource $L_GAPS i3wm.L_GAPS 0
set_from_resource $BRAVE_SCALE brave.BRAVE_SCALE 1
set_from_resource $BROWSER i3wm.browser brave
#-------------------------------------------------------INCLUDE-----------#
include $BORDER_FILE
include regular_bindings.conf
Expand Down
36 changes: 19 additions & 17 deletions i3wm/regular_bindings.conf
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@
$Br Menu $_ [class="Emacs"] scratchpad show
$Br Return $_ exec /usr/local/bin/st
$Br comma $B1
$Br minus $_ exec $refresh_script --hard "$BROWSER"
#$Br KP_Home
#$Br KP_Begin
#$Br KP_Up
Expand All @@ -71,7 +72,6 @@
#BM KP_Next

#$SF minus $B1 move position mouse
$SF minus $_ exec /bin/qutebrowser ":reload"
$Br period $_ gaps inner all toggle $IN_GAPS, \
gaps top all toggle $TOP_GAPS, \
gaps bottom all toggle $BOT_GAPS, \
Expand All @@ -86,28 +86,29 @@
#$SF a
#$SF b
#$SF c
$SF d $_ exec rofi -show drun
$SF e $_ exec $HOME/bin/custom_exit.sh
$SF d $_ exec rofi -show drun
$SF e $_ exec $HOME/bin/custom_exit.sh
#$SF f
$SF h $B1 move left 20px
$SF i $_ $xm_hd "MPV" ; mode mpv
$SF j $B1 move down 20px
$SF k $B1 move up 20px
$SF l $B1 move right 20px
$SF m $_ floating enable, $scratchpad_default, move position center, move scratchpad, scratchpad show
$SF n $_ exec /usr/local/bin/st -c 'special_note' -n 'i3s_note' nvim "$HOME/Documents/Notepad/note.txt"
#$SF o reserved
$SF p $_ exec /usr/bin/brave --incognito
$SF q $_ kill
$SF h $B1 move left 20px
$SF i $_ $xm_hd "MPV" ; mode mpv
$SF j $B1 move down 20px
$SF k $B1 move up 20px
$SF l $B1 move right 20px
$SF m $_ floating enable, $scratchpad_default, move position center, move scratchpad, scratchpad show
$SF n $_ exec /usr/local/bin/st -c 'special_note' -n 'i3s_note' nvim "$HOME/Documents/Notepad/note.txt"
#$SF o reserved
$SF p $_ exec /usr/bin/brave --incognito
$SF q $_ kill
#$SF r
#$SF s
$SF t $_ exec /usr/bin/torbrowser-launcher; exec sleep 1 && i3-msg '[class="Tor Browser"] scratchpad show'
$SF u $_ exec /usr/bin/kitty --title='i3s_kitty_term'
$SF v $_ split h
$SF x $_ exec $clipboard_script "DATE" "TIME"
$SF t $_ exec /usr/bin/torbrowser-launcher; exec sleep 1 && i3-msg '[class="Tor Browser"] scratchpad show'
$SF u $_ exec /usr/bin/kitty --title='i3s_kitty_term'
$SF v $_ split h
$SF x $_ exec $clipboard_script "DATE" "TIME"
#$SF y
#$SF z
#--------------------------------------------[^a-z]-SHIFT-BINDS----------------------------------------------------#
$SF minus $_ exec /bin/qutebrowser ":reload"
$SF less $_ exec $zathura_script -p-
$SF greater $_ exec $zathura_script -p+
$SF slash $_ exec $zathura_script -d
Expand Down Expand Up @@ -153,5 +154,6 @@
$SF_CTRL less $_ exec "i3-msg 'gaps inner all minus 10'"
$SF_CTRL greater $_ exec "i3-msg 'gaps inner all plus 10'"
$SF_CTRL Menu $_ exec $emacs_script -r
$SF_CTRL minus $_ exec $refresh_script "$BROWSER"
#---------------------------------------------------END------------------------------------------------------------#

13 changes: 7 additions & 6 deletions nvim/autocmd.vim
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,13 @@ autocmd FileType * setlocal formatoptions-=c formatoptions-=r formatoptions-=o
"autocmd Filetype vim setlocal omnifunc=v:lua.vim.lsp.omnifunc
autocmd BufNewFile,BufRead ~/.config/zathura/* set syntax=zathurarc

autocmd BufNewFile *.sh 0read ${XDG_CONFIG_HOME}/nvim/language_specific/templates/template.sh | :silent w | :silent !chmod 700 %
autocmd BufNewFile *.py 0read ${XDG_CONFIG_HOME}/nvim/language_specific/templates/template.py | :silent w | :silent !chmod 700 %
autocmd BufNewFile *.kalker 0read ${XDG_CONFIG_HOME}/nvim/language_specific/templates/template.kalker | :silent w | :silent !chmod 700 %
autocmd BufNewFile *.exs 0read ${XDG_CONFIG_HOME}/nvim/language_specific/templates/template.exs | :silent w | :silent !chmod 700 %
autocmd BufNewFile *.ex 0read ${XDG_CONFIG_HOME}/nvim/language_specific/templates/template.ex | :silent w | :silent !chmod 600 %
autocmd BufNewFile *.html 0read ${XDG_CONFIG_HOME}/nvim/language_specific/templates/template.html | :silent w | :silent !chmod 600 %

autocmd BufNewFile,BufRead ~/.bashrc setfiletype bash
autocmd BufNewFile,BufRead ~/bashrc_files/* setfiletype bash
autocmd BufNewFile,BufRead *.sh setfiletype bash
Expand All @@ -26,12 +33,6 @@ autocmd Filetype markdown source ${XDG_CON
autocmd BufNewFile,BufRead ~/.bashrc source ${XDG_CONFIG_HOME}/nvim/language_specific/bashrc.vim


autocmd BufNewFile *.sh 0read ${XDG_CONFIG_HOME}/nvim/language_specific/templates/template.sh | :silent w | :silent !chmod 700 %
autocmd BufNewFile *.py 0read ${XDG_CONFIG_HOME}/nvim/language_specific/templates/template.py | :silent w | :silent !chmod 700 %
autocmd BufNewFile *.kalker 0read ${XDG_CONFIG_HOME}/nvim/language_specific/templates/template.kalker | :silent w | :silent !chmod 700 %
autocmd BufNewFile *.exs 0read ${XDG_CONFIG_HOME}/nvim/language_specific/templates/template.exs | :silent w | :silent !chmod 700 %
autocmd BufNewFile *.ex 0read ${XDG_CONFIG_HOME}/nvim/language_specific/templates/template.ex | :silent w | :silent !chmod 600 %
autocmd BufNewFile *.html 0read ${XDG_CONFIG_HOME}/nvim/language_specific/templates/template.html | :silent w | :silent !chmod 600 %
autocmd VimLeave * call ClipBoardExit()

"--------- HELP ---------"
Expand Down
3 changes: 2 additions & 1 deletion nvim/init.vim
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ let g:myFg = [ ".", ".", ".", ".", ".",

let g:python3_host_prog="/usr/bin/python"

source ${HOME}/.config/nvim/autocmd.vim
source ${HOME}/.config/nvim/functions.vim
source ${HOME}/.config/nvim/plugins.vim
lua require('mytreesitter')
Expand Down Expand Up @@ -116,8 +117,8 @@ colorscheme pop-punk

source ${HOME}/.config/nvim/leader_bindings.vim
source ${HOME}/.config/nvim/etc_bindings.vim
:call CorrectColors()
source ${HOME}/.config/nvim/autocmd.vim
:call CorrectColors()

"let g:bracey_refresh_on_save = 1
"let g:bracey_eval_on_save = 1
Expand Down
2 changes: 2 additions & 0 deletions xorg/Xresources
Original file line number Diff line number Diff line change
Expand Up @@ -280,6 +280,7 @@ Zutty.border: 5px
!!!!ON!!!!!!!!!
!*.shading: 20
!*.alphaOffset: 0.1
i3wm.browser: brave
i3wm.BORDER_FILE: borders/border_flash.conf

i3wm.IN_GAPS: 10
Expand All @@ -291,6 +292,7 @@ i3wm.L_GAPS: 0
brave.BRAVE_SCALE: 1



!---------------NSXIV---------------!
*.window.background: #000000
*.window.foreground: #AAAAAA
Expand Down

0 comments on commit 7855999

Please sign in to comment.