diff options
author | InigoGutierrez <inigogf.95@gmail.com> | 2018-11-29 17:11:42 +0100 |
---|---|---|
committer | InigoGutierrez <inigogf.95@gmail.com> | 2018-11-29 17:11:42 +0100 |
commit | 8e4f61e861f52a3d7e9acd2472f7ae9caa52ee35 (patch) | |
tree | 0608005d78eecd5bdd242df6d1e4f00c8ac7bde6 | |
parent | ed0b4b912056e3a0f1cbf1d030e1fb0b85d6cb58 (diff) | |
download | configs-8e4f61e861f52a3d7e9acd2472f7ae9caa52ee35.tar.gz configs-8e4f61e861f52a3d7e9acd2472f7ae9caa52ee35.zip |
jue nov 29 17:11:47 CET 2018
-rw-r--r-- | files/i3/config | 13 | ||||
-rw-r--r-- | files/qutebrowser/config.py | 23 | ||||
-rw-r--r-- | files/ranger/rifle.conf | 53 | ||||
-rw-r--r-- | files/rcs/.Xresources | 4 | ||||
-rw-r--r-- | files/rcs/.vimrc | 15 |
5 files changed, 66 insertions, 42 deletions
diff --git a/files/i3/config b/files/i3/config index 72f7c13..0f49e6e 100644 --- a/files/i3/config +++ b/files/i3/config @@ -179,8 +179,10 @@ client.urgent $red $black $white $red $red # for window config for_window [class="^.*"] border pixel 2 -for_window [instance="floating"] floating enable border pixel 1 for_window [title="floating"] floating enable border pixel 1 +for_window [title="noborder"] border none +for_window [title="invisible"] floating enable +for_window [title="invisible"] border none for_window [title="mpvfloat"] floating enable for_window [title="mpvfloat"] sticky enable for_window [title="mpvfloat"] border pixel 1 @@ -200,6 +202,10 @@ bindsym $mod+Control+Shift+r exec bash ~/scripts/prompt.sh "Reboot?" "$reboot" # lock (image must be .png) bindsym $mod+Control+l exec i3lock -i /home/inigo/images/wallpapers/lockbg.png -f +# scratchpad +bindsym $mod+minus move scratchpad +bindsym $mod+plus scratchpad show + # From https://faq.i3wm.org/question/3747/enabling-multimedia-keys/?answer=3759#post-id-3759 # Pulse Audio controls set $volChange 2 @@ -295,7 +301,10 @@ bindsym $mod+Shift+r mode "resize" # finds out, if available) bar { position top - font pango:monospace 6 + font pango:monospace 7 + #font pango:proggy 8 + #font -*-clean-*-*-*-*-12-*-*-*-*-70-*-* + #font pango:Terminus 10px colors { background $black statusline $white2 diff --git a/files/qutebrowser/config.py b/files/qutebrowser/config.py index e660432..cdd0e7e 100644 --- a/files/qutebrowser/config.py +++ b/files/qutebrowser/config.py @@ -1340,7 +1340,8 @@ c.url.searchengines = { 'mkm': 'https://www.cardmarket.com/en/Magic/MainPage/showSearchResult?searchFor={}', 'gi': 'https://game-icons.net/search.html?q={}', 'bc': 'https://bandcamp.com/search?q={}', - 'mdd': 'https://www.megadede.com/search/{}' + 'mdd': 'https://www.megadede.com/search/{}', + 'gh': 'https://www.github.com/search?q={}' } ## Page(s) to open at the start. @@ -1531,27 +1532,27 @@ config.bind(';d', 'hint links download') ## Custom normal mode bindings # open url with mpv -config.bind(',v', 'spawn i3 exec mpv {url}') -config.bind(',fv', 'hint links spawn i3 exec mpv {hint-url}') -config.bind(',V', 'spawn i3 exec bash /home/inigo/scripts/mpvFloat.sh {url}') -config.bind(',fV', 'hint links spawn i3 exec bash /home/inigo/scripts/mpvFloat.sh {hint-url}') +config.bind(',v', 'spawn i3-msg exec mpv {url}') +config.bind(',fv', 'hint links spawn i3-msg exec mpv {hint-url}') +config.bind(',V', 'spawn i3-msg exec bash /home/inigo/scripts/mpvFloat.sh {url}') +config.bind(',fV', 'hint links spawn i3-msg exec bash /home/inigo/scripts/mpvFloat.sh {hint-url}') #download url's video in ~/videos/qutebrowser config.bind(',d', 'spawn youtube-dl -o ~/videos/qutebrowser/%(title)s.%(ext)s {url}') # same as previous, but showing urxvt -config.bind(',D', 'spawn i3 exec bash /home/inigo/scripts/youtube-dlFloat.sh {url}') +config.bind(',D', 'spawn i3-msg exec bash /home/inigo/scripts/youtube-dlFloat.sh {url}') # two same commands, using hints instead than current url config.bind(',fd', 'hint links spawn youtube-dl -o ~/videos/qutebrowser/%(title)s.%(ext)s {hint-url}') -config.bind(',fD', 'hint links spawn i3 exec bash /home/inigo/scripts/youtube-dlFloat.sh {hint-url}') +config.bind(',fD', 'hint links spawn i3-msg exec bash /home/inigo/scripts/youtube-dlFloat.sh {hint-url}') # download url's audio in mp3 in ~/music/qutebrowser config.bind(',a', 'spawn youtube-dl -o ~/music/qutebrowser/%(title)s.%(ext)s -x --audio-format mp3 {url}') # same as previous, but showing urxvt -config.bind(',A', 'spawn i3 exec bash /home/inigo/scripts/youtube-dlFloatAudio.sh {url}') +config.bind(',A', 'spawn i3-msg exec bash /home/inigo/scripts/youtube-dlFloatAudio.sh {url}') # two same commands, using hints instead than current url config.bind(',fa', 'hint links spawn youtube-dl -o ~/music/qutebrowser/%(title)s.%(ext)s -x --audio-format mp3 {hint-url}') -config.bind(',fA', 'hint links spawn i3 exec bash /home/inigo/scripts/youtube-dlFloatAudio.sh {hint-url}') +config.bind(',fA', 'hint links spawn i3-msg exec bash /home/inigo/scripts/youtube-dlFloatAudio.sh {hint-url}') # open images with pqiv -config.bind(',i', 'spawn i3 exec "pqiv -i {url}"') -config.bind(',fi', 'hint links spawn i3 exec "pqiv -i {hint-url}"') +config.bind(',i', 'spawn i3-msg exec bash pqiv -T pqivfloat -i {url}') +config.bind(',fi', 'hint links spawn i3-msg exec bash pqiv -T pqivfloat -i {hint-url}') ## Bindings for caret mode # config.bind('$', 'move-to-end-of-line', mode='caret') diff --git a/files/ranger/rifle.conf b/files/ranger/rifle.conf index 2edad44..0de68be 100644 --- a/files/ranger/rifle.conf +++ b/files/ranger/rifle.conf @@ -109,25 +109,26 @@ ext php = php -- "$1" # Audio without X #------------------------------------------- mime ^audio|ogg$, terminal, has mpv = urxvt -title "floating" -geometry "120x4-0-0" -e mpv --no-audio-display "$@" & -mime ^audio|ogg$, terminal, has mplayer2 = mplayer2 -- "$@" -mime ^audio|ogg$, terminal, has mplayer = mplayer -- "$@" -ext midi?, terminal, has wildmidi = wildmidi -- "$@" +#mime ^audio|ogg$, terminal, has mplayer2 = mplayer2 -- "$@" +#mime ^audio|ogg$, terminal, has mplayer = mplayer -- "$@" +#ext midi?, terminal, has wildmidi = wildmidi -- "$@" #-------------------------------------------- # Video/Audio with a GUI #------------------------------------------- -mime ^video|audio, has gmplayer, X, flag f = gmplayer -- "$@" -mime ^video|audio, has smplayer, X, flag f = smplayer "$@" -mime ^video, has mpv, X, flag f = bash ~/scripts/mpvFloatLoop.sh "$@" mime ^video, has mpv, X, flag f = bash ~/scripts/mpvFloat.sh "$@" +mime ^video, has mpv, X, flag f = bash ~/scripts/mpvFloatLoop.sh "$@" +mime ^video, has mpv, X, flag f = mpv -- "$@" mime ^video, has mpv, X, flag f = mpv --fs -- "$@" -mime ^video, has mplayer2, X, flag f = mplayer2 -- "$@" -mime ^video, has mplayer2, X, flag f = mplayer2 -fs -- "$@" -mime ^video, has mplayer, X, flag f = mplayer -- "$@" -mime ^video, has mplayer, X, flag f = mplayer -fs -- "$@" mime ^video|audio, has vlc, X, flag f = vlc -- "$@" -mime ^video|audio, has totem, X, flag f = totem -- "$@" -mime ^video|audio, has totem, X, flag f = totem --fullscreen -- "$@" +#mime ^video|audio, has gmplayer, X, flag f = gmplayer -- "$@" +#mime ^video|audio, has smplayer, X, flag f = smplayer "$@" +#mime ^video, has mplayer2, X, flag f = mplayer2 -- "$@" +#mime ^video, has mplayer2, X, flag f = mplayer2 -fs -- "$@" +#mime ^video, has mplayer, X, flag f = mplayer -- "$@" +#mime ^video, has mplayer, X, flag f = mplayer -fs -- "$@" +#mime ^video|audio, has totem, X, flag f = totem -- "$@" +#mime ^video|audio, has totem, X, flag f = totem --fullscreen -- "$@" #-------------------------------------------- # Video without X: @@ -139,17 +140,17 @@ mime ^video, terminal, !X, has mplayer = mplayer -- "$@" #------------------------------------------- # Documents #------------------------------------------- -ext pdf, has llpp, X, flag f = llpp "$@" ext pdf, has zathura, X, flag f = zathura -- "$@" ext pdf, has mupdf, X, flag f = mupdf "$@" ext pdf, has mupdf-x11,X, flag f = mupdf-x11 "$@" -ext pdf, has apvlv, X, flag f = apvlv -- "$@" -ext pdf, has xpdf, X, flag f = xpdf -- "$@" -ext pdf, has evince, X, flag f = evince -- "$@" -ext pdf, has atril, X, flag f = atril -- "$@" -ext pdf, has okular, X, flag f = okular -- "$@" -ext pdf, has epdfview, X, flag f = epdfview -- "$@" -ext pdf, has qpdfview, X, flag f = qpdfview "$@" +#ext pdf, has llpp, X, flag f = llpp "$@" +#ext pdf, has apvlv, X, flag f = apvlv -- "$@" +#ext pdf, has xpdf, X, flag f = xpdf -- "$@" +#ext pdf, has evince, X, flag f = evince -- "$@" +#ext pdf, has atril, X, flag f = atril -- "$@" +#ext pdf, has okular, X, flag f = okular -- "$@" +#ext pdf, has epdfview, X, flag f = epdfview -- "$@" +#ext pdf, has qpdfview, X, flag f = qpdfview "$@" ext docx?, has catdoc, terminal = catdoc -- "$@" | "$PAGER" @@ -174,14 +175,14 @@ mime ^image/svg, has inkscape, X, flag f = inkscape -- "$@" mime ^image/svg, has display, X, flag f = display -- "$@" mime ^image, has pqiv, X, flag f = pqiv -i -- "$@" -mime ^image, has sxiv, X, flag f = sxiv -- "$@" mime ^image, has feh, X, flag f = feh -- "$@" -mime ^image, has mirage, X, flag f = mirage -- "$@" -mime ^image, has ristretto, X, flag f = ristretto "$@" -mime ^image, has eog, X, flag f = eog -- "$@" -mime ^image, has eom, X, flag f = eom -- "$@" mime ^image, has gimp, X, flag f = gimp -- "$@" -ext xcf, X, flag f = gimp -- "$@" +#mime ^image, has sxiv, X, flag f = sxiv -- "$@" +#mime ^image, has mirage, X, flag f = mirage -- "$@" +#mime ^image, has ristretto, X, flag f = ristretto "$@" +#mime ^image, has eog, X, flag f = eog -- "$@" +#mime ^image, has eom, X, flag f = eom -- "$@" +#ext xcf, X, flag f = gimp -- "$@" #------------------------------------------- # Archives diff --git a/files/rcs/.Xresources b/files/rcs/.Xresources index 3a1c6a8..0602423 100644 --- a/files/rcs/.Xresources +++ b/files/rcs/.Xresources @@ -52,11 +52,11 @@ ! [<n>] is opacity % URxvt.background: Black -URxvt.foreground: White +URxvt.foreground: #b2ffe5 URxvt.scrollBar: false URxvt.cursorColor: #3f00ff !URxvt.title: urxvt -URxvt.fading: 30 +URxvt.fading: 20 URxvt.transparent: true URxvt.shading: 20 !URxvt.visualBell: true ! Visual signal when bell character processed diff --git a/files/rcs/.vimrc b/files/rcs/.vimrc index 582a6f7..9b00256 100644 --- a/files/rcs/.vimrc +++ b/files/rcs/.vimrc @@ -2,9 +2,19 @@ execute pathogen#infect() filetype plugin indent on -" From above video, line number config +" Inspired by https://github.com/LukeSmithxyz/voidrice/blob/master/.vimrc +set nocompatible +set encoding=utf-8 set number set relativenumber +set splitbelow +set splitright + +" Shortcuts for split navigation +map <C-h> <C-w>h +map <C-j> <C-w>j +map <C-k> <C-w>k +map <C-l> <C-w>l " Make tabs appear as 4 spaces (default is 8) set tabstop=4 @@ -14,6 +24,9 @@ set tabstop=4 syntax enable syntax on +" Autoupdate ~/.Xresources +autocmd BufWritePost ~/.Xresources !xrdb % + """ Remaps """ inoremap ,, <Esc>/<++><Enter>cf> inoremap ,e <Esc> |