Browse Source

Fixed some vifm stuff and am moving back to ranger for the time being while I slowly bring vifm up to speed

tags/v0.5.0
Micah Halter 1 year ago
parent
commit
cda68311f2
6 changed files with 13 additions and 9 deletions
  1. +1
    -1
      i3/.config/i3/config
  2. +1
    -1
      scripts/.config/Scripts/dmenumount
  3. +1
    -1
      scripts/.config/Scripts/dmenuumount
  4. +1
    -1
      scripts/.config/Scripts/dmenuunicode
  5. +8
    -4
      vifm/.config/vifm/vifmrc
  6. +1
    -1
      zsh/.zshrc

+ 1
- 1
i3/.config/i3/config View File

@@ -3,7 +3,7 @@ set $mod Mod1
floating_modifier $mod

# set variables
set $file 'vifm'
set $file 'ranger'
set $browser 'qutebrowser'
set $term 'urxvt'
set $cliprog --no-startup-id zsh $HOME/.config/i3/scripts/cliprog


+ 1
- 1
scripts/.config/Scripts/dmenumount View File

@@ -16,4 +16,4 @@ if [[ ! -d "$mountpoint" ]]; then
mkdiryn=$(echo -e "No\nYes" | $dmenu -i -p "Create?")
[[ "$mkdiryn" = Yes ]] && sudo mkdir -p "$mountpoint"
fi
sudo mount $chosen $mountpoint && pgrep -x dunst && notify-send "$chosen mounted to $mountpoint"
sudo mount $chosen $mountpoint && notify-send "$chosen mounted to $mountpoint"

+ 1
- 1
scripts/.config/Scripts/dmenuumount View File

@@ -9,4 +9,4 @@ drives=$(lsblk -lp | grep "\(part\|lvm\)[[:space:]]\+/" | grep -v "$exclusionreg
[[ "$drives" = "" ]] && exit
chosen=$(echo "$drives" | $dmenu -i -p "Unmount:" | awk '{print $1}')
[[ "$chosen" = "" ]] && exit
sudo umount $chosen && pgrep -x dunst && notify-send "$chosen unmounted."
sudo umount $chosen && notify-send "$chosen unmounted."

+ 1
- 1
scripts/.config/Scripts/dmenuunicode View File

@@ -4,4 +4,4 @@ source ~/.cache/wal/colors.sh

grep -v "#" $HOME/.config/Scripts/unicode | dmenu -nb "$background" -nf "$foreground" -sb "$foreground" -sf "$background" -fn "xos4 Terminus-16" -i -l 20 | awk '{print $1}' | tr -d '\n' | xclip -selection clipboard

[ "$(xclip -o -selection clipboard)" != "" ] && pgrep -x dunst >/dev/null && notify-send "$(xclip -o -selection clipboard) copied to clipboard."
[ "$(xclip -o -selection clipboard)" != "" ] && notify-send "$(xclip -o -selection clipboard) copied to clipboard."

+ 8
- 4
vifm/.config/vifm/vifmrc View File

@@ -3,6 +3,8 @@ source $HOME/.config/vifm/vifmshortcuts

let $VIFM_SERVER_NAME = v:servername

fileview */ tree %c -L 1

map <C-h> <C-w>h
map <C-j> <C-w>j
map <C-k> <C-w>k
@@ -11,12 +13,12 @@ map <C-o> <C-w>o
map <C-s> <C-w>s
map <C-v> <C-w>v

nnoremap o :file &<cr>l
nnoremap o :file &<CR>l
map E :!$EDITOR %f<CR>
map mkd :mkdir<space>
map x :!chmod +x %f
map X :!$HOME/.config/Scripts/extract %f
map Tg :!tar -cvzf %c:r.tar.gz %f
map x :!chmod +x %f<CR>
map X :!$HOME/.config/Scripts/extract %f<CR>
map Tg :!tar -cvzf %c:r.tar.gz %f<CR>

" document commands
map Mk :!compiler %f<CR>
@@ -174,3 +176,5 @@ nnoremap ,c :write | edit $MYVIFMRC | restart<cr>

" Toggle wrap setting on ,w key
nnoremap ,w :set wrap!<cr>

view

+ 1
- 1
zsh/.zshrc View File

@@ -19,7 +19,7 @@ export SPACESHIP_VI_MODE_SUFFIX=''
export SPACESHIP_VI_MODE_COLOR=$SPACESHIP_CHAR_COLOR_SUCCESS

# set up environmental variables
export FILE="vifm"
export FILE="ranger"
export EDITOR="nvim"
export USE_EDITOR=$EDITOR
export VISUAL=$EDITOR


Loading…
Cancel
Save