summaryrefslogtreecommitdiff
path: root/.config
diff options
context:
space:
mode:
Diffstat (limited to '.config')
-rw-r--r--.config/aliasrc2
-rw-r--r--.config/shortcutrc2
-rw-r--r--.config/sxhkd/sxhkdrc5
-rw-r--r--.config/vifm/vifmrc11
4 files changed, 13 insertions, 7 deletions
diff --git a/.config/aliasrc b/.config/aliasrc
index 736dc14..742b497 100644
--- a/.config/aliasrc
+++ b/.config/aliasrc
@@ -23,7 +23,7 @@
| dfa | yadm add |
| dfc | yadm commit |
| dfp | yadm pull |
-| dfup | yadm commit -a && yadm push all master && dwmbar |
+| dfup | yadm commit -a && yadm push all master && kill -39 $(pidof dwmblocks)|
| e | $EDITOR |
| ew | nvim ./main.rnw |
| fetch | clear && printf '\n$(pfetch)\n$(bars)\n' |
diff --git a/.config/shortcutrc b/.config/shortcutrc
index 4d850e6..248caf5 100644
--- a/.config/shortcutrc
+++ b/.config/shortcutrc
@@ -30,5 +30,5 @@
| Scripts | sc | $HOME/.local/bin |
| Hotkeys | sx | $HOME/.config/sxhkd |
| Images | img | $HOME/Dropbox/A/Personnal/Photos/unsorted |
-| Compilation | cmp | $HOME/compilation |
+| Compilation | cmp | $HOME/Compilation |
|----------------+-----+--------------------------------------------------|
diff --git a/.config/sxhkd/sxhkdrc b/.config/sxhkd/sxhkdrc
index 42ceac9..42123b2 100644
--- a/.config/sxhkd/sxhkdrc
+++ b/.config/sxhkd/sxhkdrc
@@ -140,7 +140,7 @@ super + n
#-# Floating Apps/Utilities #-#
## Network Manager
-super + shift + n
+XF86WLAN
killall nmtui || dropdowntoggle network nmtui
## TUI Audio Mixer (alsamixer)
super + p
@@ -258,3 +258,6 @@ super + shift + {bracketright, bracketleft}
## Toggle music playback
super + backslash
playerctl play-pause
+# ## Network Manager
+# super + shift + n
+# killall nmtui || dropdowntoggle network nmtui
diff --git a/.config/vifm/vifmrc b/.config/vifm/vifmrc
index 25da74f..b7ea213 100644
--- a/.config/vifm/vifmrc
+++ b/.config/vifm/vifmrc
@@ -137,7 +137,7 @@ set rulerformat=
" CSV/Excel
-filetype *.csv,*.xlsx libreoffice %c %i
+filetype *.xlsx libreoffice %c %i
fileviewer *.csv sed "s/,,,,/,,-,,/g;s/,,/ /g" %c | column -t | sed "s/ - / /g" | cut -c -%pw
" HTMLs
@@ -145,8 +145,8 @@ fileviewer *.html w3m -dump %c
filextype *.html,*.htm firefox %f 2>/dev/null &
" Text based files
-filetype <text/*> nvim
-fileviewer <text/*> env -uCOLORTERM bat --color always --theme base16 --wrap never --pager never %c -p
+filetype <*.csv,text/*> nvim
+fileviewer <*.csv,text/*> env -uCOLORTERM bat --color always --theme base16 --wrap never --pager never %c -p
fileviewer *.[ch],*.[ch]pp,*.[ch]xx env -uCOLORTERM bat --color always --theme base16 --wrap never --pager never %c -p
" PDFs
@@ -260,7 +260,7 @@ nnoremap gb :file &<cr>l
nnoremap yd :!echo %d | xclip -i -selection clipboard %i<cr>
" Yank current file path into the clipboard
-nnoremap yf :!echo %c:p | xclip -i -selection clipboard %i<cr>
+nnoremap yf :!echo %c:p | xsel -b %i<cr>
" Mappings for faster renaming
nnoremap I cw<c-a>
@@ -270,6 +270,9 @@ nnoremap A cw
" Extract an archive
nnoremap x :!/home/siddharth/bin/utils/extract %f &<cr>
+" Share Files with dropbox
+ nnoremap s :!dbshare %d/%b &<cr>
+
" Make a new directory
nnoremap mkd :mkdir<space>
"}}}