Add 'search' script

+ Change Transmission client to stig
+ Edit Xresources colors
+ Edit nvim colors
+ Change pdf viewer in vifmrc to zathura
+ Bind 'search' script in sxhkdrc
This commit is contained in:
Wiktor Zykubek 2020-05-22 09:57:50 +02:00
parent 8cd5de43a7
commit 6088e22cd8
6 changed files with 26 additions and 7 deletions

View File

@ -40,7 +40,7 @@ st.font: Monospace:pixelsize=13:antialias=true:autohint=true:hintstyle=hintmediu
*.color11: #c9895b *.color11: #c9895b
! blue ! blue
*.color4: #6f97b8 *.color4: #385872
*.color12: #6f97b8 *.color12: #6f97b8
! magenta ! magenta

View File

@ -55,7 +55,7 @@ hi PmenuThumb ctermfg=8 ctermbg=8
hi PmenuSbar ctermfg=0 ctermbg=0 hi PmenuSbar ctermfg=0 ctermbg=0
hi StatusLineNC ctermfg=8 ctermbg=NONE cterm=bold hi StatusLineNC ctermfg=8 ctermbg=NONE cterm=bold
hi StatusLine ctermfg=14 ctermbg=NONE cterm=NONE hi StatusLine ctermfg=14 ctermbg=NONE cterm=NONE
hi MyStatuslineFilename ctermfg=4 ctermbg=NONE hi MyStatuslineFilename ctermfg=12 ctermbg=NONE
hi MyStatuslineFiletype ctermfg=9 ctermbg=none cterm=italic hi MyStatuslineFiletype ctermfg=9 ctermbg=none cterm=italic
hi MyStatuslineLineCol ctermfg=1 ctermbg=none cterm=none hi MyStatuslineLineCol ctermfg=1 ctermbg=none cterm=none
@ -99,7 +99,7 @@ hi Constant ctermfg=3 cterm=none
hi Identifier ctermfg=180 hi Identifier ctermfg=180
hi Statement ctermfg=13 cterm=italic hi Statement ctermfg=13 cterm=italic
hi PreProc ctermfg=13 hi PreProc ctermfg=13
hi Type ctermfg=4 cterm=bold hi Type ctermfg=12 cterm=bold
hi Special ctermfg=135 hi Special ctermfg=135
" hi Error ctermfg=0 " hi Error ctermfg=0

View File

@ -1,8 +1,10 @@
super + Return super + Return
$TERMINAL $TERMINAL
super + b
$BROWSER
super + shift + b super + shift + b
$BROWSER
super + b
search
super + ctrl + b
torbrowser-launcher torbrowser-launcher
super + d super + d
rofi -show run rofi -show run

View File

@ -110,7 +110,7 @@ filetype *.ftp
\ FUSE_MOUNT2|curlftpfs -o ftp_port=-,,disable_eprt %PARAM %DESTINATION_DIR %CLEAR, \ FUSE_MOUNT2|curlftpfs -o ftp_port=-,,disable_eprt %PARAM %DESTINATION_DIR %CLEAR,
" Pdf " Pdf
filextype *.pdf mupdf %c %i &, apvlv %c, xpdf %c filextype *.pdf zathura %c %i &, apvlv %c, xpdf %c
fileviewer *.pdf pdftotext -nopgbrk %c - fileviewer *.pdf pdftotext -nopgbrk %c -
" PostScript " PostScript

17
.local/bin/scripts/search Executable file
View File

@ -0,0 +1,17 @@
#!/bin/sh
# Search in $BROWSER or use bookmarks from file.
bmfile="$HOME/.config/bookmarks"
m() { rofi -dmenu -width 600 -i -p "Search" -l "$(wc -l "$bmfile")" ;}
chosen="$(
sed 's/http.*\/ //g' "$bmfile" | m
)"
[ ! "$chosen" ] && exit 0
url="$(grep "$chosen" "$bmfile" | awk '{ print $1 }')"
[ ! "$url" ] && url="https://duckduckgo.com/?q=$chosen"
"$BROWSER" "$url"

View File

@ -2,4 +2,4 @@
# Run torrent client. # Run torrent client.
"$TERMINAL" -e tremc "$TERMINAL" -e stig