From 331ba4108de3f611e671ac0491833a6e11b75edb Mon Sep 17 00:00:00 2001 From: umgbhalla Date: Wed, 18 Jan 2023 02:50:38 +0530 Subject: [PATCH] fix(base): misc updated --- base/nvim/.config/nvim/lua/user/init.lua | 41 ++++++++++++++----- base/scripts/.scripts/send-clip | 2 +- base/zsh/.config/zsh/aliases.zsh | 2 +- base/zsh/.config/zsh/funcs.zsh | 4 +- themes/cr0nus/bspwm/.config/bspwm/bspwmrc | 2 +- themes/cr0nus/dunst/.config/dunst/dunstrc | 6 +-- .../cr0nus/polybar/.config/polybar/bars.ini | 18 ++++---- .../cr0nus/polybar/.config/polybar/config.ini | 2 +- .../polybar/.config/polybar/modules.ini | 36 ++++++++-------- themes/cr0nus/sxhkd/.config/sxhkd/sxhkdrc | 21 +++++++--- 10 files changed, 83 insertions(+), 51 deletions(-) diff --git a/base/nvim/.config/nvim/lua/user/init.lua b/base/nvim/.config/nvim/lua/user/init.lua index 2faca80..16ddc83 100644 --- a/base/nvim/.config/nvim/lua/user/init.lua +++ b/base/nvim/.config/nvim/lua/user/init.lua @@ -232,6 +232,27 @@ local config = { }, { "SirVer/ultisnips" }, { "umgbhalla/nvim-snippets" }, + { "ggandor/leap.nvim", config = function() require("leap").add_default_mappings() end }, + { + "ggandor/leap-spooky.nvim", + config = function() + require("leap-spooky").setup { + affixes = { + -- These will generate mappings for all native text objects, like: + -- (ir|ar|iR|aR|im|am|iM|aM){obj}. + -- Special line objects will also be added, by repeating the affixes. + -- E.g. `yrr` and `ymm` will yank a line in the current + -- window. + -- You can also use 'rest' & 'move' as mnemonics. + remote = { window = "r", cross_window = "R" }, + magnetic = { window = "m", cross_window = "M" }, + }, + -- If this option is set to true, the yanked text will automatically be pasted + -- at the cursor position if the unnamed register is in use. + paste_on_remote_yank = false, + } + end, + }, -- { -- "ray-x/lsp_signature.nvim", -- event = "BufRead", @@ -340,7 +361,7 @@ local config = { vim.g.neovide_cursor_vfx_mode = "sonicboom" vim.diagnostic.config { virtual_text = false, - virtual_lines = { only_current_line = true }, + virtual_lines = { only_current_line = false }, } vim.cmd [[ filetype plugin indent on @@ -352,16 +373,16 @@ local config = { autocmd Filetype lua set foldignore=-- set foldlevel=999 augroup END - let g:LargeFile = 1000000 " file is large if size greater than 1MB - autocmd BufReadPre,BufRead * let f=getfsize(expand("")) | if f > g:LargeFile || f == -2 | call LargeFile() | endif - function LargeFile() - augroup anyfold - autocmd! " remove AnyFoldActivate - autocmd Filetype setlocal foldmethod=indent " fall back to indent folding - augroup END - endfunction ]] end, } - +-- let g:LargeFile = 1000000 " file is large if size greater than 1MB +-- autocmd BufReadPre,BufRead * let f=getfsize(expand("")) | if f > g:LargeFile || f == -2 | call LargeFile() | endif +-- function LargeFile() +-- augroup anyfold +-- autocmd! " remove AnyFoldActivate +-- autocmd Filetype setlocal foldmethod=indent " fall back to indent folding +-- augroup END +-- endfunction +-- return config diff --git a/base/scripts/.scripts/send-clip b/base/scripts/.scripts/send-clip index 4dc1ee6..f04fae5 100755 --- a/base/scripts/.scripts/send-clip +++ b/base/scripts/.scripts/send-clip @@ -22,5 +22,5 @@ export FZF_DEFAULT_OPTS=" -1 -i input=$(clipmenu) echo $input -device=$(kdeconnect-cli -a | grep -o '[[:alnum:]]\{16\}') +device=$(kdeconnect-cli -a --id-only) kdeconnect-cli --share $input -d $device diff --git a/base/zsh/.config/zsh/aliases.zsh b/base/zsh/.config/zsh/aliases.zsh index b48df63..49a0a13 100644 --- a/base/zsh/.config/zsh/aliases.zsh +++ b/base/zsh/.config/zsh/aliases.zsh @@ -25,7 +25,7 @@ alias neo='neofetch --backend kitty --source Downloads/figma/Slice\ 1\ \(4\).png alias srt='du -sh ./* | sort -h | bat' alias siz='du -sh ' alias ttystat='echo $(tty) $TERM ${COLUMNS}x$LINES' -alias upwr='upower -i $(upower -e | grep BAT) | grep -E "state|to\ full|percentage|time\ to\ empty"' +alias upwr='upower -i $(upower -e | grep BAT) | grep -E "state|to full|percentage|time to empty"' alias docker-compose="docker compose" alias syms='exa --icons --color=always --group-directories-first -a | grep ">"' alias whatkey="cat > /dev/null" diff --git a/base/zsh/.config/zsh/funcs.zsh b/base/zsh/.config/zsh/funcs.zsh index be864bd..112ee7d 100644 --- a/base/zsh/.config/zsh/funcs.zsh +++ b/base/zsh/.config/zsh/funcs.zsh @@ -325,8 +325,8 @@ archive() { # >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> keyb(){ -setxkbmap -option caps:swapescape && xset r rate 230 30 -notify-send "caps esc swapped and keyrate set to 230::30" +setxkbmap -option caps:swapescape && xset r rate 180 50 +notify-send "caps esc swapped and keyrate set to 180::50" } # >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> diff --git a/themes/cr0nus/bspwm/.config/bspwm/bspwmrc b/themes/cr0nus/bspwm/.config/bspwm/bspwmrc index 696538f..9aa4d44 100755 --- a/themes/cr0nus/bspwm/.config/bspwm/bspwmrc +++ b/themes/cr0nus/bspwm/.config/bspwm/bspwmrc @@ -13,7 +13,7 @@ # {{{ setup # Bar sudo light -S 50 & -xset r rate 230 30 +xset r rate 180 50 setxkbmap -option caps:swapescape & # setxkbmap -option caps:ctrl_modifier & bspc monitor -d 1 2 3 4 5 6 7 8 9 10 diff --git a/themes/cr0nus/dunst/.config/dunst/dunstrc b/themes/cr0nus/dunst/.config/dunst/dunstrc index 69ad50d..eae5aff 100644 --- a/themes/cr0nus/dunst/.config/dunst/dunstrc +++ b/themes/cr0nus/dunst/.config/dunst/dunstrc @@ -3,8 +3,8 @@ follow = none width = 300 height = 300 - origin = top-left - offset = 155x40 + origin = bottom-center + offset = 0x32 scale = 0 notification_limit = 0 progress_bar = true @@ -13,7 +13,7 @@ progress_bar_min_width = 150 progress_bar_max_width = 300 indicate_hidden = yes - transparency = 25 + transparency = 0 separator_height = 2 padding = 4 horizontal_padding = 10 diff --git a/themes/cr0nus/polybar/.config/polybar/bars.ini b/themes/cr0nus/polybar/.config/polybar/bars.ini index 0d00999..797f536 100644 --- a/themes/cr0nus/polybar/.config/polybar/bars.ini +++ b/themes/cr0nus/polybar/.config/polybar/bars.ini @@ -6,21 +6,21 @@ # Use this to detach the bar if your WM is locking its size/position. override-redirect = false # Put the bar at the bottom of the screen -bottom = false +bottom = true # Prefer fixed center position for the `modules-center` block # When false, the center position will be based on the size of the other blocks. fixed-center = true # Dimension defined as pixel value (e.g. 35) or percentage (e.g. 50%), # the percentage can optionally be extended with a pixel offset like so: # 50%:-10, this will result in a width or height of 50% minus 10 pixels -width = 85% +width = 66% height = 30 # Offset defined as pixel value (e.g. 35) or percentage (e.g. 50%) # the percentage can optionally be extended with a pixel offset like so: # 50%:-10, this will result in an offset in the x or y direction # of 50% minus 10 pixels -offset-x = 10% +offset-x = 17% ; offset-y = -5 # Background ARGB color (e.g. #f00, #ff992a, #ddff1023) @@ -74,8 +74,8 @@ border-top-size = 0 # Individual side values can be defined using: # padding-{left,right} ; padding = 0 -padding-left = 4 -; padding-right = 0 +padding-left = 2 +padding-right = 2 # Fonts are defined using ; # Font names are specified using a fontconfig pattern. @@ -101,10 +101,10 @@ font-4 = "CaskaydiaCove Nerd Font:size=14;6" ; # Opacity value between 0.0 and 1.0 used on fade in/out # Modules are added to one of the available blocks -modules-left = sps date_i date calendar_i sps backlight sps battery sps audio_i sps memory sps network separatorIndent cpu power -modules-center = +modules-left = bluetooth +modules-center = sps date_i date calendar_i sps backlight sps battery audio_i sps memory sps network separatorIndent cpu power ; modules-center = polywins sps mod sps bspwm spotify separatorIndent -modules-right = bluetooth sps bspwm sps +modules-right = sps bspwm sps dim-value = 1.0 ; line-size = 2 # Restack the bar window and put it above the @@ -141,7 +141,7 @@ width = 1 height = 30 # Bottom left to imitate gnome-shells systray -bottom = false +bottom = true # REQUIRED for us to be able to move the window override-redirect = false diff --git a/themes/cr0nus/polybar/.config/polybar/config.ini b/themes/cr0nus/polybar/.config/polybar/config.ini index 88eb356..335d8fa 100644 --- a/themes/cr0nus/polybar/.config/polybar/config.ini +++ b/themes/cr0nus/polybar/.config/polybar/config.ini @@ -49,7 +49,7 @@ screenchange-reload = true ;# Active Colors dg = #897161 ; dg = #000000 -bg = #00000000 +bg = #cc000000 fg = #FBF1C7 ; fg = #ffffff diff --git a/themes/cr0nus/polybar/.config/polybar/modules.ini b/themes/cr0nus/polybar/.config/polybar/modules.ini index 9a21723..d1c236e 100644 --- a/themes/cr0nus/polybar/.config/polybar/modules.ini +++ b/themes/cr0nus/polybar/.config/polybar/modules.ini @@ -169,17 +169,17 @@ reverse-scroll = true ; ws-icon-default = -; ws-icon-0 = "I;%{T3}1%{T-}" -; ws-icon-1 = "II;%{T3}2%{T-}" -; ws-icon-2 = "III;%{T3}3%{T-}" -; ws-icon-3 = "IV;%{T3}4%{T-}" -; ws-icon-4 = "V;%{T3}5%{T-}" -; ws-icon-5 = "VI;%{T3}6%{T-}" -; ws-icon-6 = "VII;%{T3}7%{T-}" -; ws-icon-7 = "VIII;%{T3}8%{T-}" -; ws-icon-8 = "IX;%{T3}9%{T-}" -; ws-icon-9 = "X;%{T3}0%{T-}" -; ws-icon-default = %{T3}%{T-} +ws-icon-0 = "I" +ws-icon-1 = "II" +ws-icon-2 = "III" +ws-icon-3 = "IV" +ws-icon-4 = "V" +ws-icon-5 = "VI" +ws-icon-6 = "VII" +ws-icon-7 = "VIII" +ws-icon-8 = "IX" +ws-icon-9 = "X" +ws-icon-default = "A" ; ws-icon-0 = "I;%{T1}  %{T-}" ; ws-icon-1 = "II;%{T1}  %{T-}" @@ -195,28 +195,28 @@ reverse-scroll = true format = -# format = +; format = format-font = 5 -label-focused = "  " +; label-focused = "  " ; label-focused = ❨❨%icon%❩❩ ; label-focused = ❮%icon%❯ ; label-focused = %icon% -; label-focused = %index% +label-focused = %index% label-focused-foreground = ${color.blue2} label-focused-background = ${color.alt-bg} label-focused-padding = 0 -; label-occupied = %icon% -label-occupied = "  " +label-occupied = %index% +; label-occupied = "  " label-occupied-foreground = ${color.blue3} label-occupied-background = ${color.alt-bg} label-occupied-padding = 0 -; label-empty = -label-empty = "  " +label-empty = +; label-empty = "  " ; label-empty =  ; label-empty = %icon% label-empty-foreground = ${color.blue4} diff --git a/themes/cr0nus/sxhkd/.config/sxhkd/sxhkdrc b/themes/cr0nus/sxhkd/.config/sxhkd/sxhkdrc index 7f3e8bf..7b7a4f5 100644 --- a/themes/cr0nus/sxhkd/.config/sxhkd/sxhkdrc +++ b/themes/cr0nus/sxhkd/.config/sxhkd/sxhkdrc @@ -20,23 +20,23 @@ super + Next # scratchpad center super + Return - tdrop -ma -w 98% -h 96% -x 1% -y 3% -n 1 kitty + tdrop -ma -w 100% -h 94% -y 2% -n 1 kitty # scratchpad left super + semicolon - tdrop -ma -w 38% -h 96% -x 1% -y 3% -n 1 kitty + tdrop -ma -w 38% -h 94% -y 2% -n 1 kitty # scratchpad right super + apostrophe - tdrop -ma -w 62% -h 96% -x 38% -y 3% -n 1 kitty + tdrop -ma -w 62% -h 96% -x 38% -y 2% -n 1 kitty # tmux scratchpad top super + backslash - tdrop -ma -w 98% -h 38% -x 1% -y 3% -n 1 kitty + tdrop -ma -w 100% -h 36% -y 2% -n 1 kitty # tmux scratchpad bottom super + slash - tdrop -ma -w 100% -h 38% -x 1% -y 57% -n 1 kitty + tdrop -ma -w 100% -h 38% -y 57% -n 1 kitty # terminal kitty super + shift + Return @@ -308,6 +308,17 @@ super + {Up,Down,Left,Right} +# Multimedia keys +super + shift + Up + volume up + # pactl -- set-sink-volume 0 +5% + +# Still muøltimedia +super + shift + Down + volume down + # pactl -- set-sink-volume 0 -5% + + # Multimedia keys XF86AudioRaiseVolume volume up