Skip to content

Commit

Permalink
fix(base): misc updated
Browse files Browse the repository at this point in the history
  • Loading branch information
umgbhalla committed Jan 17, 2023
1 parent 945ddf3 commit 331ba41
Show file tree
Hide file tree
Showing 10 changed files with 83 additions and 51 deletions.
41 changes: 31 additions & 10 deletions base/nvim/.config/nvim/lua/user/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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<leap>` and `ymm<leap>` 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",
Expand Down Expand Up @@ -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
Expand All @@ -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("<afile>")) | if f > g:LargeFile || f == -2 | call LargeFile() | endif
function LargeFile()
augroup anyfold
autocmd! " remove AnyFoldActivate
autocmd Filetype <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("<afile>")) | if f > g:LargeFile || f == -2 | call LargeFile() | endif
-- function LargeFile()
-- augroup anyfold
-- autocmd! " remove AnyFoldActivate
-- autocmd Filetype <filetype> setlocal foldmethod=indent " fall back to indent folding
-- augroup END
-- endfunction
--
return config
2 changes: 1 addition & 1 deletion base/scripts/.scripts/send-clip
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 1 addition & 1 deletion base/zsh/.config/zsh/aliases.zsh
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
4 changes: 2 additions & 2 deletions base/zsh/.config/zsh/funcs.zsh
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
# >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>

Expand Down
2 changes: 1 addition & 1 deletion themes/cr0nus/bspwm/.config/bspwm/bspwmrc
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 3 additions & 3 deletions themes/cr0nus/dunst/.config/dunst/dunstrc
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down
18 changes: 9 additions & 9 deletions themes/cr0nus/polybar/.config/polybar/bars.ini
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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-name>;<vertical-offset>
# Font names are specified using a fontconfig pattern.
Expand All @@ -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
Expand Down Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion themes/cr0nus/polybar/.config/polybar/config.ini
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ screenchange-reload = true
;# Active Colors
dg = #897161
; dg = #000000
bg = #00000000
bg = #cc000000
fg = #FBF1C7
; fg = #ffffff

Expand Down
36 changes: 18 additions & 18 deletions themes/cr0nus/polybar/.config/polybar/modules.ini
Original file line number Diff line number Diff line change
Expand Up @@ -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-}"
Expand All @@ -195,28 +195,28 @@ reverse-scroll = true


format = <label-state> <label-mode>
# format = <label-state>
; format = <label-state>

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}
Expand Down
21 changes: 16 additions & 5 deletions themes/cr0nus/sxhkd/.config/sxhkd/sxhkdrc
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 331ba41

Please sign in to comment.