Skip to content

Commit

Permalink
kitty kat
Browse files Browse the repository at this point in the history
  • Loading branch information
ediw8311xht committed Nov 7, 2024
1 parent 1d4b3ae commit b1fcbc6
Show file tree
Hide file tree
Showing 9 changed files with 131 additions and 73 deletions.
2 changes: 1 addition & 1 deletion bashrc_files/aliases.sh
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ alias sman=' man -K --regex'
#--------------------------------------------------nvim----------------------------------#
alias nv=' 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 full_ednv=' fd . -tf -0 "${HOME}/.config/nvim/" "${HOME}/.local/share/nvim/site/ftplugin/" -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"'
alias nvcpp=' fd . --exact-depth 1 -e cpp -e h -tf -0 -X nvim -c "Buffers"'
Expand Down
1 change: 1 addition & 0 deletions i3wm/config
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
set $polybar_script $HOME/bin/polybar_manipulate.sh
set $xmsg_script $HOME/bin/xmsg_quick.sh
set $bluetooth_script $HOME/bin/ubluetoggle.sh
set $toggle_r_rate $HOME/bin/keyme7baby
#-------------------------------------------------Special-Binds-----------#
#sticky toggle
set $scratchpad_default floating enable, move scratchpad, scratchpad show, move position center
Expand Down
2 changes: 2 additions & 0 deletions i3wm/modes.conf
Original file line number Diff line number Diff line change
Expand Up @@ -206,9 +206,11 @@ mode "run_program" {
bindsym d exec deluge ; $mode_be_default
bindsym f exec firefox ; $mode_be_default
bindsym k exec keepassxc ; $mode_be_default
bindsym l exec librewolf ; $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 Shift+r exec $toggle_r_rate -r ; $mode_be_default
bindsym s exec sioyek ; $mode_be_default
bindsym t exec thunar ; $mode_be_default
bindsym x exec xournalpp ; $mode_be_default
Expand Down
10 changes: 8 additions & 2 deletions kitty/kitty.conf
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,7 @@
background_blur 0
background_tint_gaps 1.0
background #000000
window_margin_width 10.0
#dim_opacity 0.9
#window_border_width 5px
#draw_minimal_borders no
#inactive_border_color #cccccc
# active_border_color #00ff00
Expand Down Expand Up @@ -71,6 +69,13 @@
inactive_tab_foreground #AAA
inactive_tab_background #000
inactive_tab_font_style normal
# Windows
enabled_layouts tall, grid, vertical, fat
window_margin_width 1
window_padding_width 2
inactive_border_color #333
active_border_color #999
window_border_width 1px
# Font
font_family Agave Regular
bold_font Agave Bold
Expand Down Expand Up @@ -139,6 +144,7 @@
map kitty_mod+k neighboring_window up
map kitty_mod+l neighboring_window right
map kitty_mod+q close_window
map kitty_mod+i next_layout

map kitty_mod+o open_url_with_hints
map kitty_mod+s show_scrollback
Expand Down
3 changes: 3 additions & 0 deletions mimeapps.list
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ x-scheme-handler/https=brave-browser.desktop;
application/vnd.openxmlformats-officedocument.wordprocessingml.document=libreoffice-writer.desktop;

[Default Applications]
application/x-xz-compressed-tar=org.gnome.FileRoller.desktop
application/x-compressed-tar=org.gnome.FileRoller.desktop
application/zip=org.gnome.FileRoller.desktop
application/epub+zip=org.pwmt.zathura-pdf-mupdf.desktop;
application/epub=zathura.desktop;
application/gzip=engrampa.desktop;
Expand Down
70 changes: 36 additions & 34 deletions nvim/lua/mappings.lua
Original file line number Diff line number Diff line change
Expand Up @@ -17,40 +17,42 @@ local v = 'v';


local regular_mappings={
{ i, F, '', '<C-K>', '<esc>lC' },
{ i, F, '', '<C-\\>', '<esc>ui' },
{ i, F, '', '<C-a>', '<esc>I' },
{ i, F, '', '<C-b>', '<left>' },
{ i, F, '', '<C-e>', '<esc>A' },
{ i, F, '', '<C-f>', '<right>' },
{ i, F, '', 'jk', '<esc>' },
{ '', T, '', '+', 'g_' },
{ '', T, '', ',', '<leader>' },
{ 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-\\>', '/\\V' },
{ n, F, '', '<C-_>', '/\\v' },
{ n, F, '', '<C-h>', '<C-w>h' },
{ n, F, '', '<C-j>', '<C-w>j' },
{ n, F, '', '<C-k>', '<C-w>k' },
{ n, F, '', '<C-l>', '<C-w>l' },
{ n, F, '', '<C-p>', '<C-i>' },
{ n, F, '', '<C-s>', ':%s/\\v' },
{ n, F, '', '<C-w>n', ':new<esc><C-w>L' },
{ n, F, '', '<esc>', ':noh<esc>:echon ""<enter>' },
{ n, F, '', '?', '?\\v\\c' },
{ n, F, '', 'ZG', ':wqall<CR>' },
{ n, F, '', '\\', '/\\V\\c' },
{ n, F, '', '\\|', '?\\V\\c' },
{ n, F, '', '`', '@=(foldlevel(\'.\')?\'za\':"<Space>")<CR>' },
{ '', F, '', ',;', ',' },
{ '', F, '', 'x', '"xx' },
{ t, T, '', '<C-w>', '<C-\\><C-n>' },
{ v, F, '', '<C-s>', ':s/\\%V\\v' },
{ v, F, '', '`', 'zf' },
{ i, F, '', '<C-K>', '<esc>lC' },
{ i, F, '', '<C-\\>', '<esc>ui' },
{ i, F, '', '<C-a>', '<esc>I' },
{ i, F, '', '<C-b>', '<left>' },
{ i, F, '', '<C-e>', '<esc>A' },
{ i, F, '', '<C-f>', '<right>' },
{ i, F, '', 'jk', '<esc>' },
{ '', T, '', '+', 'g_' },
{ '', T, '', ',', '<leader>' },
{ 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-\\>', '/\\V' },
{ n, F, '', '<C-_>', '/\\v' },
{ n, F, '', '<C-h>', '<C-w>h' },
{ n, F, '', '<C-j>', '<C-w>j' },
{ n, F, '', '<C-k>', '<C-w>k' },
{ n, F, '', '<C-l>', '<C-w>l' },
{ n, F, '', '<C-p>', '<C-i>' },
{ n, F, 'Sub char insensitive', '<C-s>', ':%s/\\v\\c' },
{ n, F, 'Sub char sensitive', '<C-S-s>', ':%s/\\v' },
{ n, F, '', '<C-w>n', ':new<esc><C-w>L' },
{ n, F, '', '<esc>', ':noh<esc>:echon ""<enter>' },
{ n, F, '', '?', '?\\v\\c' },
{ n, F, '', 'ZG', ':wqall<CR>' },
{ n, F, '', '\\', '/\\V\\c' },
{ n, F, '', '\\|', '?\\V\\c' },
{ n, F, '', '`', '@=(foldlevel(\'.\')?\'za\':"<Space>")<CR>' },
{ '', 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, '', '`', 'zf' },
}

local leader_mappings={
Expand Down
24 changes: 24 additions & 0 deletions nvim/spell/en.utf-8.add
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
Machu Picchu
Altiplanos
Tierra del Fuego
Estrecho de Todos los Santos
#eturne
Returne/!
#mscripten/!
#mscripten/!
WASM/!
Emscripten/!
modeline/!
stdin/!
#sfasf/!
#sfasf
asfasf/!
Modeline
Emscripten
Modeline
Modeline
WASM
lastpipe
CharlesDuffy
Modeline
modeline
Binary file added nvim/spell/en.utf-8.add.spl
Binary file not shown.
92 changes: 56 additions & 36 deletions xorg/SetKeys.sh
Original file line number Diff line number Diff line change
@@ -1,40 +1,60 @@
#!/usr/bin/env bash

if [[ ! "${1,,}" = '--y' ]] ; then
xset +fp /usr/share/fonts/misc 2>/dev/null
xset +fp /usr/share/fonts/* 2>/dev/null
xset +fp "${HOME}/.local/share/fonts/"* 2>/dev/null
xset -dpms
xset s off
xset r rate 200 40
fi
#xset r off
##### This turns off mouse acceleration
##### xinput --set-prop 12 "libinput Accel Speed" -1
##### Increases mouse speed, neccesary to adjust this value if you do not want mouse acceleration.
##### xinput --set-prop 12 "Coordinate Transformation Matrix" 1, 0, 0, 0, 1, 0, 0, 0, 0.44
#xmodmap -e "keycode 49 = 0x0000 0xffeb 0x0000 0xffeb"
#xmodmap -e "keycode 108 = 0x007e 0x0060 0x007e 0x0060"
#xmodmap -e "keycode 133 = 0x007e 0x0060 0x007e 0x0060"
#check_mod_map() {
# local a=(
# 'Mod1 Alt_R'
# 'Mod1 Meta_R'
# 'Mod4 asciitilde'
# )
# for i in "${a[@]}" ; do
# if xmodmap -pm | grep -qF "${i}" ; then
# xmodmap -e 'remove Mod1 = Alt_R'
# fi
# done
#}
xmodmap "$HOME/.Xmodmap"
# vi: ft=bash

if xmodmap -pm | grep -iq 'Mod1.*Alt_R' ; then
xmodmap -e 'remove Mod1 = Alt_R'
fi
toggle_r_rate() {
if xset q | grep -q -Pi 'auto[ ]*repeat[:][ ]*on' ; then
xset r off
notify-send -t 3000 $'Keyboard Repeat: \nOff'
else
xset r rate 200 40
notify-send -t 3000 $'Keyboard Repeat: \nOn'
fi
}

xmodmap -e 'remove Mod1 = Super_R'
xmodmap -e 'remove Mod1 = Meta_R'
xmodmap -e 'remove Mod4 = asciitilde'
xmodmap -e 'add Mod1 = Alt_L'
main() {
if [[ "${1,,}" = "-r" ]] ; then
toggle_r_rate "${@:2}"
else
if [[ ! "${1,,}" = '--y' ]] ; then
xset +fp /usr/share/fonts/misc 2>/dev/null
xset +fp /usr/share/fonts/* 2>/dev/null
xset +fp "${HOME}/.local/share/fonts/"* 2>/dev/null
xset -dpms
xset s off
xset r rate 200 40
fi
#xset r off
##### This turns off mouse acceleration
##### xinput --set-prop 12 "libinput Accel Speed" -1
##### Increases mouse speed, neccesary to adjust this value if you do not want mouse acceleration.
##### xinput --set-prop 12 "Coordinate Transformation Matrix" 1, 0, 0, 0, 1, 0, 0, 0, 0.44
#xmodmap -e "keycode 49 = 0x0000 0xffeb 0x0000 0xffeb"
#xmodmap -e "keycode 108 = 0x007e 0x0060 0x007e 0x0060"
#xmodmap -e "keycode 133 = 0x007e 0x0060 0x007e 0x0060"
#check_mod_map() {
# local a=(
# 'Mod1 Alt_R'
# 'Mod1 Meta_R'
# 'Mod4 asciitilde'
# )
# for i in "${a[@]}" ; do
# if xmodmap -pm | grep -qF "${i}" ; then
# xmodmap -e 'remove Mod1 = Alt_R'
# fi
# done
#}
xmodmap "$HOME/.Xmodmap"

if xmodmap -pm | grep -iq 'Mod1.*Alt_R' ; then
xmodmap -e 'remove Mod1 = Alt_R'
fi

xmodmap -e 'remove Mod1 = Super_R'
xmodmap -e 'remove Mod1 = Meta_R'
xmodmap -e 'remove Mod4 = asciitilde'
xmodmap -e 'add Mod1 = Alt_L'
fi
}

main "${@}"

0 comments on commit b1fcbc6

Please sign in to comment.