dgy
/
hexagons
Archived
1
0
Fork 0

2 errores boludos. Lockscreen. plugin de ranger para tmux

This commit is contained in:
deadguy 2019-06-23 10:54:59 -03:00
parent 2ec1046c9f
commit 7eecda04f3
Signed by: dgy
GPG Key ID: 37CA55B52CF63730
5 changed files with 37 additions and 13 deletions

View File

@ -35,7 +35,7 @@ blur-background-fixed = true;
blur-kern = "3x3box";
opacity-rule = [
"0:_NET_WM_STATE@:32a *= '_NET_WM_STATE_HIDDEN'"
"0:_NET_WM_STATE@:32a *= '_NET_WM_STATE_HIDDEN'",
"35:class_g = 'Bspwm' && class_i = 'presel_feedback'",
];

View File

@ -69,6 +69,8 @@ set foldnestmax=10 " Deepest fold is 10 levels
set foldmethod=marker " Markers are used to specify folds.
set foldlevelstart=10
set foldclose=all
set title
set titlestring=%t%(\ %M%)%(\ (%{expand(\"%:~:.:h\")})%)%(\ %a%)
set selectmode=key
set keymodel=startsel
set softtabstop=4
@ -106,7 +108,7 @@ let mapleader="\<SPACE>"
let maplocalleader=","
let formatlistpat='^\s*\(\d\+[\]:.)}\t ]\|[*-][\t ]\)\s*'
" }}}
" Read-Only {{{
" Read Only {{{
if &readonly
set laststatus=0
set cmdheight=0
@ -116,8 +118,6 @@ if &readonly
set colorcolumn=0
set signcolumn=no
let g:ale_disabled
let w:airline_disabled=1
let g:loaded_airline = 0
endif
" }}}
" {{{ Ale

View File

@ -0,0 +1,23 @@
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
import os
import sys
import ranger.api
old_hook_init = ranger.api.hook_init
def hook_init(fm):
def on_cd():
if fm.thisdir:
title = os.path.basename(fm.thisdir.path)
sys.stdout.write("\033k" + "ranger:" + title + "\033\\")
sys.stdout.flush()
fm.signal_bind('cd', on_cd)
return old_hook_init(fm)
ranger.api.hook_init = hook_init

View File

@ -14,6 +14,7 @@ set-option -g history-limit 102400
# Ventanas
set -g base-index 1
set -g renumber-windows on
set -g allow-rename on
setw -g automatic-rename on
# Panes

View File

@ -34,16 +34,16 @@ c8='#eeeeecff'
c9='#12121200'
cA='#c4a000ff'
lock="$HOME/Pictures/lockscreen/trilock.png"
image=$(mktemp --suffix=.png)
trap 'rm -f "$image"' SIGINT SIGTERM EXIT
lock="$HOME/Pictures/lockscreen/alienlock.png"
# image=$(mktemp --suffix=.png)
# trap 'rm -f "$image"' SIGINT SIGTERM EXIT
maim -u \
| convert png:- -scale 10% -scale 1000% \
"$lock" -gravity center -composite -matte "$image"
# maim -u \
# | convert png:- -scale 10% -scale 1000% \
# "$lock" -gravity center -composite -matte "$image"
i3lock \
--image="$image" \
--image="$lock" \
--insidevercolor=$c5 \
--insidewrongcolor=$c3 \
--insidecolor=$c0 \
@ -57,15 +57,15 @@ i3lock \
--keyhlcolor=$c4 \
--bshlcolor=$c3 \
--layoutcolor=$c9 \
--indpos="683:420" \
--modsize=18 \
--refresh-rate=30 \
--radius=120 \
--radius=80 \
--ring-width=4 \
--veriftext='' \
--wrongtext='' \
--noinputtext='' \
--ignore-empty-password \
-B \
--nofork &
pid="$!"