limpieza y reorganizacion masiva. la migracion a void cada vez mas cerca
This commit is contained in:
parent
0ec882fa3c
commit
f0318d90b9
87
.Xresources
87
.Xresources
|
@ -1,87 +0,0 @@
|
||||||
! special
|
|
||||||
*.foreground: #d3d7cf
|
|
||||||
*.background: #080808
|
|
||||||
*.cursorColor: #d3d7cf
|
|
||||||
|
|
||||||
! black
|
|
||||||
*.color0: #222222
|
|
||||||
*.color8: #555555
|
|
||||||
|
|
||||||
! red
|
|
||||||
*.color1: #ec5252
|
|
||||||
*.color9: #fb4934
|
|
||||||
|
|
||||||
! green
|
|
||||||
*.color2: #407e4a
|
|
||||||
*.color10: #98971a
|
|
||||||
|
|
||||||
! yellow
|
|
||||||
*.color3: #d79921
|
|
||||||
*.color11: #fabd2f
|
|
||||||
|
|
||||||
! blue
|
|
||||||
*.color4: #008bbd
|
|
||||||
*.color12: #0474a7
|
|
||||||
|
|
||||||
! magenta
|
|
||||||
*.color5: #b16286
|
|
||||||
*.color13: #d3869b
|
|
||||||
|
|
||||||
! cyan
|
|
||||||
*.color6: #689d64
|
|
||||||
*.color14: #8ec07c
|
|
||||||
|
|
||||||
! white
|
|
||||||
*.color7: #a89984
|
|
||||||
*.color15: #c9c9c9
|
|
||||||
|
|
||||||
URxvt.font: xft:blex mono nerd font:pixelsize=14
|
|
||||||
URxvt.boldFont:
|
|
||||||
URxvt.perl-ext-common: default,clipboard,url-select
|
|
||||||
URxvt.urlLauncher: /usr/bin/firefox -new-tab
|
|
||||||
URxvt.url-select.launcher: /usr/bin/firefox -new-tab
|
|
||||||
URxvt.url-select.underline: true
|
|
||||||
URxvt.urlButton: 1
|
|
||||||
URxvt.colorUL: #4682B4
|
|
||||||
URxvt.lineSpace: 0
|
|
||||||
URxvt.secondaryScreen: 1
|
|
||||||
URxvt.secondaryScroll: 0
|
|
||||||
URxvt.secondaryWheel: 1
|
|
||||||
URxvt.print-pipe: "cat > /dev/null"
|
|
||||||
URxvt.keysym.Shift-Control-C: perl:clipboard:copy
|
|
||||||
URxvt.keysym.Shift-Control-V: perl:clipboard:paste
|
|
||||||
URxvt.keysym.M-u: perl:url-select:select_next
|
|
||||||
URxvt.keysym.C-minus: resize-font:smaller
|
|
||||||
URxvt.keysym.C-equal: resize-font:bigger
|
|
||||||
URxvt.keysym.C-0: resize-font:reset
|
|
||||||
URxvt.keysym.C-question: resize-font:show
|
|
||||||
URxvt.clipboard.autocopy: true
|
|
||||||
URxvt.intensityStyles: false
|
|
||||||
URxvt*internalBorder: 12
|
|
||||||
URxvt*externalBorder: 0
|
|
||||||
URxvt*scrollBar: false
|
|
||||||
URxvt*scrollBar_right: false
|
|
||||||
URxvt*letterSpace: 0
|
|
||||||
URxvt*depth: 32
|
|
||||||
URxvt*saveline: 0
|
|
||||||
URxvt*scrollTtyOutput: false
|
|
||||||
URxvt*scrollWithBuffer: true
|
|
||||||
URxvt*scrollTtyKeypress: true
|
|
||||||
URxvt*iso14755: false
|
|
||||||
URxvt*iso14755_52: false
|
|
||||||
URxvt*dynamicColors: on
|
|
||||||
URxvt*cutchars: "\"()*,<>[]{}|\'"
|
|
||||||
|
|
||||||
! esto afecta a pd-l2ork y otras cosas, guarda
|
|
||||||
Xft.autohint: 0
|
|
||||||
Xft.lcdfilter: lcddefault
|
|
||||||
Xft.hintstyle: hintmedium
|
|
||||||
Xft.hinting: 1
|
|
||||||
Xft.antialias: 1
|
|
||||||
Xft.rgba: rgb
|
|
||||||
|
|
||||||
Xcursor.theme: Alkano
|
|
||||||
|
|
||||||
Sxiv.font: tamzen:size=10
|
|
||||||
Sxiv.foreground: #d3d7cf
|
|
||||||
Sxiv.background: #080808
|
|
|
@ -0,0 +1,55 @@
|
||||||
|
! special
|
||||||
|
*.foreground: #b3b1ad
|
||||||
|
*.background: #080808
|
||||||
|
*.cursorColor: #b3b1ad
|
||||||
|
|
||||||
|
! black
|
||||||
|
*.color0: #0a0e14
|
||||||
|
*.color8: #222222
|
||||||
|
|
||||||
|
! red
|
||||||
|
*.color1: #ff3333
|
||||||
|
*.color9: #ff3333
|
||||||
|
|
||||||
|
! green
|
||||||
|
*.color2: #aec82a
|
||||||
|
*.color10: #bae67e
|
||||||
|
|
||||||
|
! yellow
|
||||||
|
*.color3: #ffb454
|
||||||
|
*.color11: #ffd580
|
||||||
|
|
||||||
|
! blue
|
||||||
|
*.color4: #008bbd
|
||||||
|
*.color12: #73d0ff
|
||||||
|
|
||||||
|
! magenta
|
||||||
|
*.color5: #ab6ba6
|
||||||
|
*.color13: #f28779
|
||||||
|
|
||||||
|
! cyan
|
||||||
|
*.color6: #6fa69f
|
||||||
|
*.color14: #95e6cb
|
||||||
|
|
||||||
|
! white
|
||||||
|
*.color7: #a89984
|
||||||
|
*.color15: #ffffff
|
||||||
|
|
||||||
|
!st.font: JetBrainsMono Nerd Font:pixelsize=15:antialias=true:autohint=true;
|
||||||
|
!st.alpha: 0.85
|
||||||
|
|
||||||
|
! dmenu
|
||||||
|
dmenu.font: SF Pro Text:pixelsize=16:antialias=true:autohint=true;
|
||||||
|
|
||||||
|
Xft.autohint: 0
|
||||||
|
Xft.lcdfilter: lcddefault
|
||||||
|
Xft.hintstyle: hintmedium
|
||||||
|
Xft.hinting: 1
|
||||||
|
Xft.antialias: 1
|
||||||
|
Xft.rgba: rgb
|
||||||
|
|
||||||
|
Xcursor.theme: Alkano
|
||||||
|
|
||||||
|
Sxiv.font: cozette:size=10
|
||||||
|
Sxiv.foreground: #d3d7cf
|
||||||
|
Sxiv.background: #080808
|
|
@ -1,22 +1,37 @@
|
||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
set -euf -o pipefail
|
set -euf -o pipefail
|
||||||
|
|
||||||
multipantalla &
|
bspc rule -r "*"
|
||||||
|
|
||||||
# Si se usa un numero negativo en *_padding, solamente se ven huecos entre las ventanas, pero no entre las ventanas y los bordes del escritorio
|
monitors=("$(xrandr --listactivemonitors | awk '{print $4}' | sed '/^$/d')")
|
||||||
|
|
||||||
|
if [ "${#monitors[@]}" == "2" ]; then
|
||||||
|
bspc monitor "${monitors[0]}" -d 1 2 3 4 5
|
||||||
|
bspc monitor "${monitors[1]}" -d 6 7 8 9 10
|
||||||
|
|
||||||
|
if xrandr | grep "VGA1 connected"; then
|
||||||
|
xrandr --output LVDS1 --auto --output VGA1 --auto --right-of LVDS1
|
||||||
|
fi
|
||||||
|
setbg &
|
||||||
|
fi
|
||||||
|
|
||||||
|
bspc monitor -d 1 2 3 4 5 6 7 8 9 10
|
||||||
|
|
||||||
|
bspc config border_width 4
|
||||||
bspc config window_gap 6
|
bspc config window_gap 6
|
||||||
bspc config top_padding 0
|
bspc config top_padding 0
|
||||||
bspc config left_padding 0
|
bspc config left_padding 0
|
||||||
bspc config right_padding 0
|
bspc config right_padding 0
|
||||||
bspc config bottom_padding 0
|
bspc config bottom_padding 0
|
||||||
|
bspc config split_ratio 0.50
|
||||||
|
|
||||||
# Opciones
|
# Opciones
|
||||||
bspc config gapless_monocle true
|
bspc config gapless_monocle true
|
||||||
bspc config borderless_monocle true
|
bspc config borderless_monocle true
|
||||||
bspc config single_monocle true
|
bspc config single_monocle true
|
||||||
bspc config remove_unplugged_monitors true
|
|
||||||
bspc config remove_disabled_monitors true
|
|
||||||
bspc config ignore_ewmh_focus true
|
bspc config ignore_ewmh_focus true
|
||||||
|
bspc config remove_unplugged_monitors false
|
||||||
|
bspc config remove_disabled_monitors false
|
||||||
bspc config honor_size_hints false
|
bspc config honor_size_hints false
|
||||||
bspc config directional_focus_tightness low
|
bspc config directional_focus_tightness low
|
||||||
bspc config automatic_scheme longest_side
|
bspc config automatic_scheme longest_side
|
||||||
|
@ -26,24 +41,19 @@ bspc config pointer_modifier mod4
|
||||||
bspc config pointer_action1 resize_side
|
bspc config pointer_action1 resize_side
|
||||||
bspc config pointer_action2 resize_corner
|
bspc config pointer_action2 resize_corner
|
||||||
bspc config pointer_action3 move
|
bspc config pointer_action3 move
|
||||||
bspc config split_ratio 0.50
|
|
||||||
|
|
||||||
# xrdb
|
# xrdb
|
||||||
get_xrdb() {
|
get_xrdb() {
|
||||||
xrdb -query | grep "$1" | awk '{print $2}' | tail -n1
|
xrdb -query | grep "$1" | awk '{print $2}' | tail -n1
|
||||||
}
|
}
|
||||||
xrdb -merge "${HOME}/.Xresources"
|
|
||||||
|
|
||||||
# Colores
|
# Colores
|
||||||
bspc config normal_border_color "$(get_xrdb color0)"
|
bspc config normal_border_color "$(get_xrdb color0)"
|
||||||
bspc config focused_border_color "$(get_xrdb color4)"
|
bspc config focused_border_color "$(get_xrdb color4)"
|
||||||
bspc config active_border_color "$(get_xrdb color8)"
|
bspc config active_border_color "$(get_xrdb color8)"
|
||||||
bspc config presel_feedback_color "$(get_xrdb color5)"
|
bspc config presel_feedback_color "$(get_xrdb color5)"
|
||||||
bspc config border_width 2
|
|
||||||
|
|
||||||
# Flotantes
|
# Flotantes
|
||||||
# bspc rule -a REAPER state=floating, layer=below
|
|
||||||
bspc rule -a Pysol state=floating
|
|
||||||
bspc rule -a Pavucontrol state=floating
|
bspc rule -a Pavucontrol state=floating
|
||||||
bspc rule -a Catia state=floating
|
bspc rule -a Catia state=floating
|
||||||
bspc rule -a Cadence state=floating
|
bspc rule -a Cadence state=floating
|
||||||
|
@ -52,28 +62,19 @@ bspc rule -a mpv state=floating
|
||||||
bspc rule -a Gucharmap state=floating
|
bspc rule -a Gucharmap state=floating
|
||||||
bspc rule -a File-roller state=floating
|
bspc rule -a File-roller state=floating
|
||||||
bspc rule -a obs state=floating
|
bspc rule -a obs state=floating
|
||||||
bspc rule -a Pd-l2ork state=floating
|
|
||||||
bspc rule -a PdWindow state=floating
|
bspc rule -a PdWindow state=floating
|
||||||
bspc rule -a PatchWindow state=floating
|
bspc rule -a PatchWindow state=floating
|
||||||
bspc rule -a Nm-connection-editor state=floating
|
|
||||||
bspc rule -a Godot state=floating
|
bspc rule -a Godot state=floating
|
||||||
bspc rule -a Pinentry state=floating
|
bspc rule -a Pinentry state=floating
|
||||||
bspc rule -a Termite:flota state=floating
|
bspc rule -a St:flota state=floating
|
||||||
bspc rule -a Toplevel state=floating
|
bspc rule -a Toplevel state=floating
|
||||||
bspc rule -a Firefox state=floating
|
bspc rule -a Firefox state=floating
|
||||||
bspc rule -a Lxappearance state=floating
|
bspc rule -a Lxappearance state=floating
|
||||||
|
|
||||||
# Otros
|
# Otros
|
||||||
bspc rule -a Zathura state=tiled
|
bspc rule -a Zathura state=tiled
|
||||||
bspc rule -a Firefox:Navigator state=tiled, desktop=^2 follow=on
|
bspc rule -a Firefox:Navigator state=tiled, desktop='^2'
|
||||||
bspc rule -a Termite:archi desktop='^3'
|
bspc rule -a St:multi desktop='^1'
|
||||||
bspc rule -a Termite:multi desktop='^1'
|
|
||||||
|
|
||||||
unclutter &
|
xsetroot -cursor_name left_ptr &
|
||||||
|
borders &
|
||||||
sleep 3s
|
|
||||||
if xrandr | grep "VGA1 connected"; then
|
|
||||||
xrandr --output LVDS1 --auto --output VGA1 --auto --right-of LVDS1
|
|
||||||
fi
|
|
||||||
|
|
||||||
setbg &
|
|
||||||
|
|
|
@ -0,0 +1,11 @@
|
||||||
|
Section "Monitor"
|
||||||
|
Identifier "LVDS1"
|
||||||
|
Option "DPMS" "true"
|
||||||
|
EndSection
|
||||||
|
|
||||||
|
Section "ServerLayout"
|
||||||
|
Identifier "ServerLayout0"
|
||||||
|
Option "StandbyTime" "10"
|
||||||
|
Option "SuspendTime" "20"
|
||||||
|
Option "OffTime" "30"
|
||||||
|
EndSection
|
|
@ -1,6 +0,0 @@
|
||||||
[device-mac-randomization]
|
|
||||||
wifi.scan-rand-mac-address=yes
|
|
||||||
|
|
||||||
[connection-mac-randomization]
|
|
||||||
ethernet.cloned-mac-address=random
|
|
||||||
wifi.cloned-mac-address=random
|
|
|
@ -1,19 +0,0 @@
|
||||||
<?xml version="1.0"?>
|
|
||||||
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
|
|
||||||
<fontconfig>
|
|
||||||
<match>
|
|
||||||
<edit mode="prepend" name="family"><string>IBM Plex Sans</string></edit>
|
|
||||||
</match>
|
|
||||||
<match target="pattern">
|
|
||||||
<test qual="any" name="family"><string>serif</string></test>
|
|
||||||
<edit name="family" mode="assign" binding="same"><string>IBM Plex Serif</string></edit>
|
|
||||||
</match>
|
|
||||||
<match target="pattern">
|
|
||||||
<test qual="any" name="family"><string>sans-serif</string></test>
|
|
||||||
<edit name="family" mode="assign" binding="same"><string>IBM Plex Sans</string></edit>
|
|
||||||
</match>
|
|
||||||
<match target="pattern">
|
|
||||||
<test qual="any" name="family"><string>monospace</string></test>
|
|
||||||
<edit name="family" mode="assign" binding="same"><string>IBM Plex Mono</string></edit>
|
|
||||||
</match>
|
|
||||||
</fontconfig>
|
|
|
@ -1,147 +0,0 @@
|
||||||
#
|
|
||||||
# /etc/makepkg.conf
|
|
||||||
#
|
|
||||||
|
|
||||||
#########################################################################
|
|
||||||
# SOURCE ACQUISITION
|
|
||||||
#########################################################################
|
|
||||||
#
|
|
||||||
#-- The download utilities that makepkg should use to acquire sources
|
|
||||||
# Format: 'protocol::agent'
|
|
||||||
DLAGENTS=('ftp::/usr/bin/curl -fC - --ftp-pasv --retry 3 --retry-delay 3 -o %o %u'
|
|
||||||
'http::/usr/bin/curl -fLC - --retry 3 --retry-delay 3 -o %o %u'
|
|
||||||
'https::/usr/bin/curl -fLC - --retry 3 --retry-delay 3 -o %o %u'
|
|
||||||
'rsync::/usr/bin/rsync --no-motd -z %u %o'
|
|
||||||
'scp::/usr/bin/scp -C %u %o')
|
|
||||||
|
|
||||||
# Other common tools:
|
|
||||||
# /usr/bin/snarf
|
|
||||||
# /usr/bin/lftpget -c
|
|
||||||
# /usr/bin/wget
|
|
||||||
|
|
||||||
#-- The package required by makepkg to download VCS sources
|
|
||||||
# Format: 'protocol::package'
|
|
||||||
VCSCLIENTS=('bzr::bzr'
|
|
||||||
'git::git'
|
|
||||||
'hg::mercurial'
|
|
||||||
'svn::subversion')
|
|
||||||
|
|
||||||
#########################################################################
|
|
||||||
# ARCHITECTURE, COMPILE FLAGS
|
|
||||||
#########################################################################
|
|
||||||
#
|
|
||||||
CARCH="x86_64"
|
|
||||||
CHOST="x86_64-pc-linux-gnu"
|
|
||||||
|
|
||||||
#-- Compiler and Linker Flags
|
|
||||||
# -march (or -mcpu) builds exclusively for an architecture
|
|
||||||
# -mtune optimizes for an architecture, but builds for whole processor family
|
|
||||||
CPPFLAGS="-D_FORTIFY_SOURCE=2"
|
|
||||||
CFLAGS="-march=native -O2 -pipe -fstack-protector-strong -fno-plt"
|
|
||||||
CXXFLAGS="${CFLAGS}"
|
|
||||||
LDFLAGS="-Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now"
|
|
||||||
#-- Make Flags: change this for DistCC/SMP systems
|
|
||||||
MAKEFLAGS="-j$(nproc)"
|
|
||||||
#-- Debugging flags
|
|
||||||
DEBUG_CFLAGS="-g -fvar-tracking-assignments"
|
|
||||||
DEBUG_CXXFLAGS="-g -fvar-tracking-assignments"
|
|
||||||
|
|
||||||
#########################################################################
|
|
||||||
# BUILD ENVIRONMENT
|
|
||||||
#########################################################################
|
|
||||||
#
|
|
||||||
# Defaults: BUILDENV=(!distcc color !ccache check !sign)
|
|
||||||
# A negated environment option will do the opposite of the comments below.
|
|
||||||
#
|
|
||||||
#-- distcc: Use the Distributed C/C++/ObjC compiler
|
|
||||||
#-- color: Colorize output messages
|
|
||||||
#-- ccache: Use ccache to cache compilation
|
|
||||||
#-- check: Run the check() function if present in the PKGBUILD
|
|
||||||
#-- sign: Generate PGP signature file
|
|
||||||
#
|
|
||||||
BUILDENV=(!distcc color ccache check !sign)
|
|
||||||
#
|
|
||||||
#-- If using DistCC, your MAKEFLAGS will also need modification. In addition,
|
|
||||||
#-- specify a space-delimited list of hosts running in the DistCC cluster.
|
|
||||||
#DISTCC_HOSTS=""
|
|
||||||
#
|
|
||||||
#-- Specify a directory for package building.
|
|
||||||
#BUILDDIR=/tmp/makepkg
|
|
||||||
|
|
||||||
#########################################################################
|
|
||||||
# GLOBAL PACKAGE OPTIONS
|
|
||||||
# These are default values for the options=() settings
|
|
||||||
#########################################################################
|
|
||||||
#
|
|
||||||
# Default: OPTIONS=(strip docs !libtool !staticlibs emptydirs zipman purge !optipng !upx !debug)
|
|
||||||
# A negated option will do the opposite of the comments below.
|
|
||||||
#
|
|
||||||
#-- strip: Strip symbols from binaries/libraries
|
|
||||||
#-- docs: Save doc directories specified by DOC_DIRS
|
|
||||||
#-- libtool: Leave libtool (.la) files in packages
|
|
||||||
#-- staticlibs: Leave static library (.a) files in packages
|
|
||||||
#-- emptydirs: Leave empty directories in packages
|
|
||||||
#-- zipman: Compress manual (man and info) pages in MAN_DIRS with gzip
|
|
||||||
#-- purge: Remove files specified by PURGE_TARGETS
|
|
||||||
#-- optipng: Optimize PNG images with optipng
|
|
||||||
#-- upx: Compress binary executable files using UPX
|
|
||||||
#-- debug: Add debugging flags as specified in DEBUG_* variables
|
|
||||||
#
|
|
||||||
OPTIONS=(strip docs !libtool !staticlibs emptydirs zipman purge !optipng !upx !debug)
|
|
||||||
|
|
||||||
#-- File integrity checks to use. Valid: md5, sha1, sha256, sha384, sha512
|
|
||||||
INTEGRITY_CHECK=(md5)
|
|
||||||
#-- Options to be used when stripping binaries. See `man strip' for details.
|
|
||||||
STRIP_BINARIES="--strip-all"
|
|
||||||
#-- Options to be used when stripping shared libraries. See `man strip' for details.
|
|
||||||
STRIP_SHARED="--strip-unneeded"
|
|
||||||
#-- Options to be used when stripping static libraries. See `man strip' for details.
|
|
||||||
STRIP_STATIC="--strip-debug"
|
|
||||||
#-- Manual (man and info) directories to compress (if zipman is specified)
|
|
||||||
MAN_DIRS=({usr{,/local}{,/share},opt/*}/{man,info})
|
|
||||||
#-- Doc directories to remove (if !docs is specified)
|
|
||||||
DOC_DIRS=(usr/{,local/}{,share/}{doc,gtk-doc} opt/*/{doc,gtk-doc})
|
|
||||||
#-- Files to be removed from all packages (if purge is specified)
|
|
||||||
PURGE_TARGETS=(usr/{,share}/info/dir .packlist *.pod)
|
|
||||||
|
|
||||||
#########################################################################
|
|
||||||
# PACKAGE OUTPUT
|
|
||||||
#########################################################################
|
|
||||||
#
|
|
||||||
# Default: put built package and cached source in build directory
|
|
||||||
#
|
|
||||||
#-- Destination: specify a fixed directory where all packages will be placed
|
|
||||||
#PKGDEST=/home/packages
|
|
||||||
#-- Source cache: specify a fixed directory where source files will be cached
|
|
||||||
#SRCDEST=/home/sources
|
|
||||||
#-- Source packages: specify a fixed directory where all src packages will be placed
|
|
||||||
#SRCPKGDEST=/home/srcpackages
|
|
||||||
#-- Log files: specify a fixed directory where all log files will be placed
|
|
||||||
#LOGDEST=/home/makepkglogs
|
|
||||||
#-- Packager: name/email of the person or organization building packages
|
|
||||||
#PACKAGER="John Doe <john@doe.com>"
|
|
||||||
#-- Specify a key to use for package signing
|
|
||||||
#GPGKEY=""
|
|
||||||
|
|
||||||
#########################################################################
|
|
||||||
# COMPRESSION DEFAULTS
|
|
||||||
#########################################################################
|
|
||||||
#
|
|
||||||
COMPRESSGZ=(gzip -c -f -n)
|
|
||||||
COMPRESSBZ2=(bzip2 -c -f)
|
|
||||||
COMPRESSXZ=(xz -c -z - --threads=0)
|
|
||||||
COMPRESSLRZ=(lrzip -q)
|
|
||||||
COMPRESSLZO=(lzop -q)
|
|
||||||
COMPRESSZ=(compress -c -f)
|
|
||||||
|
|
||||||
#########################################################################
|
|
||||||
# EXTENSION DEFAULTS
|
|
||||||
#########################################################################
|
|
||||||
#
|
|
||||||
# WARNING: Do NOT modify these variables unless you know what you are
|
|
||||||
# doing.
|
|
||||||
#
|
|
||||||
PKGEXT='.pkg.tar.xz'
|
|
||||||
SRCEXT='.src.tar.gz'
|
|
||||||
|
|
||||||
# vim: set ft=sh ts=2 sw=2 et:
|
|
|
@ -1,29 +0,0 @@
|
||||||
# copy this file to /etc/
|
|
||||||
|
|
||||||
[settings]
|
|
||||||
usehal = false
|
|
||||||
|
|
||||||
[looks]
|
|
||||||
opacity = 45
|
|
||||||
bgcolor = black
|
|
||||||
buttontheme = rounded
|
|
||||||
buttons = lock, logout, restart, shutdown
|
|
||||||
|
|
||||||
[shortcuts]
|
|
||||||
lock = K
|
|
||||||
logout = L
|
|
||||||
switch = W
|
|
||||||
suspend = U
|
|
||||||
hibernate = H
|
|
||||||
restart = R
|
|
||||||
shutdown = S
|
|
||||||
cancel = Escape
|
|
||||||
|
|
||||||
[commands]
|
|
||||||
lock = exeflock4
|
|
||||||
logout = bspc quit 1
|
|
||||||
switch = dm-tool switch-to-greeter
|
|
||||||
suspend = fluxboxexit suspend
|
|
||||||
hibernate = fluxboxexit hibernate
|
|
||||||
restart = fluxboxexit reboot
|
|
||||||
shutdown = fluxboxexit shutdown
|
|
|
@ -3,7 +3,7 @@
|
||||||
markup = full
|
markup = full
|
||||||
format = "<b>%s</b>\n%b"
|
format = "<b>%s</b>\n%b"
|
||||||
sort = yes
|
sort = yes
|
||||||
indicate_hidden = no
|
indicate_hidden = no
|
||||||
alignment = left
|
alignment = left
|
||||||
bounce_freq = 0
|
bounce_freq = 0
|
||||||
show_age_threshold = -1
|
show_age_threshold = -1
|
||||||
|
@ -58,7 +58,7 @@
|
||||||
separator_color = frame
|
separator_color = frame
|
||||||
|
|
||||||
startup_notification = false
|
startup_notification = false
|
||||||
dmenu = /usr/bin/dmenu
|
dmenu = /usr/bin/dmenu -p dunst:
|
||||||
browser = /usr/bin/firefox -new-tab
|
browser = /usr/bin/firefox -new-tab
|
||||||
icon_position = right # Align icons left/right/off
|
icon_position = right # Align icons left/right/off
|
||||||
max_icon_size = 0
|
max_icon_size = 0
|
||||||
|
|
|
@ -17,7 +17,7 @@ window decoration {
|
||||||
VteTerminal,
|
VteTerminal,
|
||||||
vte-terminal {
|
vte-terminal {
|
||||||
padding: 5px;
|
padding: 5px;
|
||||||
padding-bottom: 0;
|
padding-bottom: 1px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.termite {
|
.termite {
|
||||||
|
|
|
@ -67,7 +67,6 @@ handle_extension() {
|
||||||
# HTML
|
# HTML
|
||||||
htm|html|xhtml)
|
htm|html|xhtml)
|
||||||
# Preview as text conversion
|
# Preview as text conversion
|
||||||
w3m -dump "${FILE_PATH}"
|
|
||||||
lynx -dump -- "${FILE_PATH}"
|
lynx -dump -- "${FILE_PATH}"
|
||||||
elinks -dump "${FILE_PATH}"
|
elinks -dump "${FILE_PATH}"
|
||||||
;; # Continue with next handler on failure
|
;; # Continue with next handler on failure
|
||||||
|
@ -84,7 +83,7 @@ handle_extension() {
|
||||||
handle_mime() {
|
handle_mime() {
|
||||||
local mimetype="${1}"
|
local mimetype="${1}"
|
||||||
case "${mimetype}" in
|
case "${mimetype}" in
|
||||||
text/html) w3m -dump "${FILE_PATH}" ;;
|
text/html) lynx -dump "${FILE_PATH}" ;;
|
||||||
text/troff) man ./ "${FILE_PATH}" | col -b ;;
|
text/troff) man ./ "${FILE_PATH}" | col -b ;;
|
||||||
text/* | */xml)
|
text/* | */xml)
|
||||||
# Syntax highlight
|
# Syntax highlight
|
||||||
|
@ -92,10 +91,8 @@ handle_mime() {
|
||||||
exit 2
|
exit 2
|
||||||
fi
|
fi
|
||||||
if [ "$( tput colors )" -ge 256 ]; then
|
if [ "$( tput colors )" -ge 256 ]; then
|
||||||
local pygmentize_format='terminal256'
|
|
||||||
local highlight_format='xterm256'
|
local highlight_format='xterm256'
|
||||||
else
|
else
|
||||||
local pygmentize_format='terminal'
|
|
||||||
local highlight_format='ansi'
|
local highlight_format='ansi'
|
||||||
fi
|
fi
|
||||||
highlight --replace-tabs="${HIGHLIGHT_TABWIDTH}" --out-format="${highlight_format}" \
|
highlight --replace-tabs="${HIGHLIGHT_TABWIDTH}" --out-format="${highlight_format}" \
|
267
.config/lf/lfrc
267
.config/lf/lfrc
|
@ -3,23 +3,21 @@ set shell zsh
|
||||||
set shellopts '-eu:--shwordsplit'
|
set shellopts '-eu:--shwordsplit'
|
||||||
set ifs "\n"
|
set ifs "\n"
|
||||||
set scrolloff 5
|
set scrolloff 5
|
||||||
set previewer ~/bin/lf-preview
|
set previewer ~/.config/lf/lf-preview
|
||||||
set wrapscroll
|
set wrapscroll
|
||||||
set number
|
|
||||||
set sortby time
|
set sortby time
|
||||||
set info size:time
|
set info size:time
|
||||||
set reverse
|
set reverse
|
||||||
set incsearch
|
set incsearch
|
||||||
set ratios '1:3:2'
|
|
||||||
set color256
|
set color256
|
||||||
set icons
|
set icons
|
||||||
|
|
||||||
%{{
|
%{{
|
||||||
w=$(tput cols)
|
w=$(tput cols)
|
||||||
if [ $w -le 80 ]; then
|
if [ $w -le 80 ]; then
|
||||||
lf -remote "send $id set ratios 5:1"
|
lf -remote "send $id set ratios 1:1"
|
||||||
elif [ $w -le 160 ]; then
|
elif [ $w -le 160 ]; then
|
||||||
lf -remote "send $id set ratios 1:3:2"
|
lf -remote "send $id set ratios 1:2:2"
|
||||||
else
|
else
|
||||||
lf -remote "send $id set ratios 1:3:2"
|
lf -remote "send $id set ratios 1:3:2"
|
||||||
fi
|
fi
|
||||||
|
@ -27,113 +25,184 @@ set icons
|
||||||
|
|
||||||
# Custom Functions
|
# Custom Functions
|
||||||
cmd open ${{
|
cmd open ${{
|
||||||
case $(file --mime-type $f -b) in
|
case $(file --mime-type $f -bL) in
|
||||||
text/troff) man ./ $f;;
|
text/troff) man ./ $f;;
|
||||||
text/*) $EDITOR $fx;;
|
text/*) $EDITOR $fx;;
|
||||||
image/x-xcf|image/svg+xml) setsid gimp $f >/dev/null 2>&1 & ;;
|
image/x-xcf|image/svg+xml) setsid gimp $f >/dev/null 2>&1 & ;;
|
||||||
image/gif) setsid sxiv-gif $f 2>/dev/null & ;;
|
image/gif) setsid sxiv-gif $f 2>/dev/null & ;;
|
||||||
image/*) setsid sxiv-rifle $f 2>/dev/null & ;;
|
image/*) setsid sxiv-rifle $f 2>/dev/null & ;;
|
||||||
audio/*) mpv $f ;;
|
audio/*) mpv --input-ipc-server=/tmp/mpvsoc$(date +%%s) $f ;;
|
||||||
video/*) setsid mpv $f >/dev/null 2>&1 & ;;
|
video/*) setsid mpv --input-ipc-server=/tmp/mpvsoc$(date +%%s) $f -quiet >/dev/null 2>&1 & ;;
|
||||||
application/pdf|application/cbz|application/cbr) setsid zathura $fx >/dev/null 2>&1 & ;;
|
application/pdf|application/cbz|application/cbr) setsid zathura $fx >/dev/null 2>&1 & ;;
|
||||||
*) for f in $fx; do setsid $OPENER $f >/dev/null 2>&1 & done;;
|
*) for f in $fx; do setsid $OPENER $f > /dev/null 2> /dev/null & done;;
|
||||||
esac
|
esac
|
||||||
}}
|
}}
|
||||||
|
|
||||||
cmd rename %[ -e $1 ] && printf "file exists" || mv $f $1
|
|
||||||
|
|
||||||
cmd bulkrename ${{
|
cmd bulkrename ${{
|
||||||
old=$(mktemp)
|
old=$(mktemp)
|
||||||
new=$(mktemp)
|
new=$(mktemp)
|
||||||
[ -n $fs ] && fs=$(ls)
|
[ -n $fs ] && fs=$(ls)
|
||||||
printf "$fs\n" > $old
|
printf "$fs\n" > $old
|
||||||
printf "$fs\n" > $new
|
printf "$fs\n" > $new
|
||||||
$EDITOR $new
|
$EDITOR $new
|
||||||
[ $(cat $new | wc -l) -ne $(cat $old | wc -l) ] && exit
|
[ $(cat $new | wc -l) -ne $(cat $old | wc -l) ] && exit
|
||||||
paste $old $new | while read names; do
|
paste $old $new | while read names; do
|
||||||
src=$(printf $names | cut -f1)
|
src=$(printf $names | cut -f1)
|
||||||
dst=$(printf $names | cut -f2)
|
dst=$(printf $names | cut -f2)
|
||||||
[ $src = $dst ] && continue
|
[ $src = $dst ] && continue
|
||||||
[ -e $dst ] && continue
|
[ -e $dst ] && continue
|
||||||
mv $src $dst
|
mv $src $dst
|
||||||
done
|
done
|
||||||
rm $old $new
|
rm $old $new
|
||||||
lf -remote "send $id unselect"
|
lf -remote "send $id unselect"
|
||||||
}}
|
}}
|
||||||
|
|
||||||
cmd extract ${{
|
|
||||||
set -f
|
# insert
|
||||||
case $f in
|
cmd rename-insert &{{
|
||||||
*.tar.bz|*.tar.bz2|*.tbz|*.tbz2) tar xjvf $f;;
|
if [ "$(echo "$fx" | wc -l)" -gt 1 ]; then
|
||||||
*.tar.gz|*.tgz) tar xzvf $f;;
|
lf -remote "send $id echo You can't change more than one file name"
|
||||||
*.tar.xz|*.txz) tar xJvf $f;;
|
lf -remote "send $id unselect"
|
||||||
*.zip) unzip $f;;
|
else
|
||||||
*.rar) unrar x $f;;
|
len="$(basename "$f" | wc -m)" # length of selected file/directory
|
||||||
*.7z) 7z x $f;;
|
for i in $(seq "$len"); do
|
||||||
esac
|
pos="${pos}<left>" # how many times do I have to press <left> in order to get first char
|
||||||
|
done
|
||||||
|
lf -remote "send $id rename"
|
||||||
|
lf -remote "send $id push $pos"
|
||||||
|
fi
|
||||||
}}
|
}}
|
||||||
|
|
||||||
# compress current file or selected files with tar and gunzip
|
# append before ext
|
||||||
cmd tar ${{
|
cmd rename-before-ext &{{
|
||||||
set -f
|
if [ "$(echo "$fx" | wc -l)" -gt 1 ]; then
|
||||||
mkdir $1
|
lf -remote "send $id echo You can't change more than one file name"
|
||||||
cp -r $fx $1
|
lf -remote "send $id unselect"
|
||||||
tar czf $1.tar.gz $1
|
else
|
||||||
rm -rf $1
|
if [ -d "$f" ]; then
|
||||||
|
lf -remote "send $id rename"
|
||||||
|
else
|
||||||
|
ext_len="$(echo ${f##*.} | wc -m)" # extention length
|
||||||
|
for i in $(seq "$ext_len"); do
|
||||||
|
pos="${pos}<left>"
|
||||||
|
done
|
||||||
|
lf -remote "send $id rename"
|
||||||
|
lf -remote "send $id push "$pos""
|
||||||
|
fi
|
||||||
|
fi
|
||||||
}}
|
}}
|
||||||
|
|
||||||
# compress current file or selected files with zip
|
# change its name entirely
|
||||||
cmd zip ${{
|
cmd rename-new &{{
|
||||||
set -f
|
if [ "$(echo "$fx" | wc -l)" -gt 1 ]; then
|
||||||
mkdir $1
|
lf -remote "send $id echo You can't change more than one file name"
|
||||||
cp -r $fx $1
|
lf -remote "send $id unselect"
|
||||||
zip -r $1.zip $1
|
else
|
||||||
rm -rf $1
|
lf -remote "send $id rename"
|
||||||
|
lf -remote "send $id push <c-u>"
|
||||||
|
fi
|
||||||
}}
|
}}
|
||||||
|
|
||||||
cmd paste %{{
|
|
||||||
load=$(lf -remote 'load')
|
|
||||||
mode=$(echo "$load" | sed -n '1p')
|
|
||||||
list=$(echo "$load" | sed '1d')
|
|
||||||
|
|
||||||
if [ $mode = 'copy' ]; then
|
cmd moveto ${{
|
||||||
cp -r --backup=numbered $list .
|
set -f
|
||||||
elif [ $mode = 'move' ]; then
|
clear; echo "Move to where?"
|
||||||
mv --backup=numbered $list .
|
dest="$(cut -d' ' -f2- ~/.config/directories | fzf)" &&
|
||||||
fi
|
eval mv -iv $fx $dest &&
|
||||||
|
notify-send "File(s) moved to $dest."
|
||||||
|
}}
|
||||||
|
|
||||||
lf -remote 'send load'
|
cmd copyto ${{
|
||||||
lf -remote 'send clear'
|
set -f
|
||||||
|
clear; echo "Copy to where?"
|
||||||
|
dest="$(cut -d' ' -f2- ~/.config/directories | fzf)" &&
|
||||||
|
eval cp -ivr $fx $dest &&
|
||||||
|
notify-send "File(s) copies to $dest."
|
||||||
|
}}
|
||||||
|
|
||||||
|
cmd paste ${{
|
||||||
|
send="while read -r line; do lf -remote \"send $id echo \$line\"; done && lf -remote 'send reload'"
|
||||||
|
load=$(lf -remote 'load')
|
||||||
|
mode=$(echo "$load" | sed -n '1p')
|
||||||
|
list=$(echo "$load" | sed '1d')
|
||||||
|
s='' && [ ! -w . ] && s='sudo'
|
||||||
|
case "$mode" in
|
||||||
|
copy) cmd='cp-p';; move) cmd='mv-p';;
|
||||||
|
esac
|
||||||
|
cmd="$cmd --new-line"
|
||||||
|
for f in $list; do
|
||||||
|
$s sh -c "$cmd --backup=numbered \"$f\" . | $send &"
|
||||||
|
done
|
||||||
|
lf -remote 'send load'
|
||||||
|
lf -remote 'send clear'
|
||||||
}}
|
}}
|
||||||
|
|
||||||
cmd paste-rsync &{{
|
cmd paste-rsync &{{
|
||||||
load=$(lf -remote 'load')
|
load=$(lf -remote 'load')
|
||||||
mode=$(echo "$load" | sed -n '1p')
|
mode=$(echo "$load" | sed -n '1p')
|
||||||
list=$(echo "$load" | sed '1d')
|
list=$(echo "$load" | sed '1d')
|
||||||
|
|
||||||
if [ $mode = 'copy']; then
|
if [ $mode = 'copy']; then
|
||||||
rsync -av --ignore-existing --progress $list . \
|
rsync -av --ignore-existing --progress $list . \
|
||||||
| stdbuf -i0 -o0 -e0 tr '\r' '\n' \
|
| stdbuf -i0 -o0 -e0 tr '\r' '\n' \
|
||||||
| while read line; do
|
| while read line; do
|
||||||
lf -remote "send $id echo $line"
|
lf -remote "send $id echo $line"
|
||||||
done
|
done
|
||||||
elif [ $mode = 'move' ]; then
|
elif [ $mode = 'move' ]; then
|
||||||
mv -n $list .
|
mv -n $list .
|
||||||
fi
|
fi
|
||||||
|
|
||||||
lf -remote 'send load'
|
lf -remote 'send load'
|
||||||
lf -remote 'send clear'
|
lf -remote 'send clear'
|
||||||
}}
|
}}
|
||||||
|
|
||||||
cmd fzf_jump ${{
|
cmd fzf_jump ${{
|
||||||
res="$(find . -maxdepth 3 | fzf-tmux --reverse --header='Jump to location')"
|
res="$(find . -maxdepth 3 | fzf-tmux --reverse --header='Jump to location')"
|
||||||
if [ -f "$res" ]; then
|
if [ -f "$res" ]; then
|
||||||
cmd="select"
|
cmd="select"
|
||||||
elif [ -d "$res" ]; then
|
elif [ -d "$res" ]; then
|
||||||
cmd="cd"
|
cmd="cd"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
lf -remote "send $id $cmd \"$res\""
|
lf -remote "send $id $cmd \"$res\""
|
||||||
|
}}
|
||||||
|
|
||||||
|
cmd broot_jump ${{
|
||||||
|
f=$(mktemp)
|
||||||
|
res="$(broot --outcmd $f && cat $f | sed 's/cd //')"
|
||||||
|
rm -f "$f"
|
||||||
|
if [ -f "$res" ]; then
|
||||||
|
cmd="select"
|
||||||
|
elif [ -d "$res" ]; then
|
||||||
|
cmd="cd"
|
||||||
|
fi
|
||||||
|
lf -remote "send $id $cmd \"$res\""
|
||||||
|
}}
|
||||||
|
|
||||||
|
cmd Link %{{
|
||||||
|
lf -remote 'load' | while read file; do
|
||||||
|
if [ ! -n "${mode+1}" ]; then
|
||||||
|
mode="$file"
|
||||||
|
continue
|
||||||
|
fi
|
||||||
|
files+=("$file")
|
||||||
|
done
|
||||||
|
if [ "${#files[@]}" -le 1 ]; then
|
||||||
|
lf -remote "send $id echo no files to link"
|
||||||
|
exit 0
|
||||||
|
fi
|
||||||
|
# symbolicly copy mode is indicating a soft link
|
||||||
|
if [[ "$mode" == copy ]]; then
|
||||||
|
ln -sr $files -t .
|
||||||
|
# while a move mode is indicating a hard link
|
||||||
|
elif [[ "$mode" == move ]]; then
|
||||||
|
ln $files -t .
|
||||||
|
fi
|
||||||
|
}}
|
||||||
|
|
||||||
|
cmd nopreview &{{
|
||||||
|
lf -remote "send $id set nopreview"
|
||||||
|
lf -remote "send $id set ratios 1:3" # or whatever
|
||||||
}}
|
}}
|
||||||
|
|
||||||
# Bindings
|
# Bindings
|
||||||
|
@ -151,13 +220,12 @@ map u
|
||||||
map e
|
map e
|
||||||
map /
|
map /
|
||||||
|
|
||||||
# Basic Functions
|
|
||||||
cmap <esc> cmd-escape
|
cmap <esc> cmd-escape
|
||||||
|
|
||||||
map | top
|
map | top
|
||||||
map ¿ bottom
|
map ¿ bottom
|
||||||
|
|
||||||
map <f-2> push :rename<space>
|
map <f-2> push A<c-u>
|
||||||
map <f-3> cut
|
map <f-3> cut
|
||||||
map <f-4> copy
|
map <f-4> copy
|
||||||
map <f-5> reload
|
map <f-5> reload
|
||||||
|
@ -177,25 +245,30 @@ map dd cut
|
||||||
map D %mv -i $fs .
|
map D %mv -i $fs .
|
||||||
map pp paste
|
map pp paste
|
||||||
map pr paste-rsync
|
map pr paste-rsync
|
||||||
|
|
||||||
map . set hidden!
|
map . set hidden!
|
||||||
map uu unselect
|
map uu unselect
|
||||||
map uy clear
|
map uy clear
|
||||||
map S shell
|
map S shell
|
||||||
|
|
||||||
# Rename with the filename on the command line
|
map cc push A<c-u> # new rename
|
||||||
map ra $lf -remote "send $id push :rename<space>$f"
|
map I push A<c-a> # at the very beginning
|
||||||
# Rename with the filename without the extension
|
map A rename # at the very end
|
||||||
map re $lf -remote "send $id push :rename<space>$f<a-b><a-d>"
|
map i push A<a-b><c-b>. # before extension
|
||||||
|
map a push A<a-b> # after extension
|
||||||
map B bulkrename
|
map B bulkrename
|
||||||
map bg $setbg $f
|
|
||||||
map cx %chmod +x $f
|
|
||||||
map o open $f
|
|
||||||
|
|
||||||
|
map P :Link
|
||||||
|
map f broot_jump
|
||||||
map <tab> $lf -remote "send $id select '$(fzf)'"
|
map <tab> $lf -remote "send $id select '$(fzf)'"
|
||||||
map / $lf -remote "send $id select \"$(FZF_DEFAULT_COMMAND='fd --max-depth=1' fzf-tmux)\""
|
map / $lf -remote "send $id select \"$(FZF_DEFAULT_COMMAND='fd --max-depth=1' fzf-tmux)\""
|
||||||
map F $find | lf -remote "send $id select $(fzf-tmux --height 50% --reverse --border --margin 5% --inline-info --color border:#005688,bg+:#16252E,fg+:#26c6da,hl+:#ffffff,hl:#26c6da)"
|
map F $find | lf -remote "send $id select $(fzf-tmux --height 50% --reverse --border --margin 5% --inline-info --color border:#005688,bg+:#16252E,fg+:#26c6da,hl+:#ffffff,hl:#26c6da)"
|
||||||
|
|
||||||
|
map cx %chmod +x $f
|
||||||
|
map bg $setbg $f
|
||||||
|
map o open $f
|
||||||
|
map u %du -sh $f
|
||||||
|
|
||||||
# Movement
|
# Movement
|
||||||
map gu cd ~/Documents/
|
map gu cd ~/Documents/
|
||||||
map gE cd /etc
|
map gE cd /etc
|
||||||
|
@ -203,11 +276,11 @@ map gU cd /usr
|
||||||
map gd cd ~/Downloads
|
map gd cd ~/Downloads
|
||||||
map g. cd ~/.config
|
map g. cd ~/.config
|
||||||
map gs cd ~/.local/share
|
map gs cd ~/.local/share
|
||||||
map gm cd ~/Music/Albums
|
map gr cd /run/media/deadguy
|
||||||
map gb cd ~/bin
|
map gm cd /mnt/remote
|
||||||
map gM cd /run/media/deadguy
|
map gc cd /mnt/cel
|
||||||
|
map gb cd ~/.local/bin
|
||||||
map gR cd /
|
map gR cd /
|
||||||
map gv cd ~/Videos/Learning
|
map gv cd ~/Videos/Learning
|
||||||
map gp cd ~/Pictures
|
map gp cd ~/Pictures
|
||||||
map gC cd ~/cel
|
|
||||||
map cg $$EDITOR ~/.config/lf/lfrc
|
map cg $$EDITOR ~/.config/lf/lfrc
|
||||||
|
|
|
@ -1,16 +1,14 @@
|
||||||
music_directory "~/Music/Albums/"
|
# playlist_directory "~/Music/Albums/0playlists"
|
||||||
playlist_directory "~/Music/Albums/0playlists"
|
music_directory "/mnt/remote"
|
||||||
db_file "~/.config/mpd/mpd.db"
|
db_file "~/.config/mpd/mpd.db"
|
||||||
log_file "~/.config/mpd/mpd.log"
|
log_file "~/.config/mpd/mpd.log"
|
||||||
pid_file "~/.config/mpd/mpd.pid"
|
pid_file "~/.config/mpd/mpd.pid"
|
||||||
state_file "~/.config/mpd/mpdstate"
|
state_file "~/.config/mpd/mpdstate"
|
||||||
sticker_file "~/.config/mpd/sticker.sql"
|
sticker_file "~/.config/mpd/sticker.sql"
|
||||||
|
|
||||||
user "deadguy"
|
|
||||||
|
|
||||||
audio_output {
|
audio_output {
|
||||||
type "pulse"
|
type "pulse"
|
||||||
name "pulse audio"
|
name "pulse audio"
|
||||||
}
|
}
|
||||||
|
|
||||||
audio_output {
|
audio_output {
|
||||||
|
@ -30,14 +28,13 @@ playlist_plugin {
|
||||||
enabled "true"
|
enabled "true"
|
||||||
}
|
}
|
||||||
|
|
||||||
bind_to_address "127.0.0.1"
|
bind_to_address "127.0.0.1"
|
||||||
bind_to_address "~/.config/mpd/socket"
|
bind_to_address "~/.config/mpd/socket"
|
||||||
port "6600"
|
port "6600"
|
||||||
gapless_mp3_playback "yes"
|
log_level "default"
|
||||||
log_level "default"
|
restore_paused "no"
|
||||||
restore_paused "no"
|
save_absolute_paths_in_playlists "no"
|
||||||
save_absolute_paths_in_playlists "no"
|
follow_outside_symlinks "no"
|
||||||
auto_update "yes"
|
auto_update "yes"
|
||||||
auto_update_depth "3"
|
auto_update_depth "3"
|
||||||
metadata_to_use "artist,album,title,track,name,composer,performer,disc"
|
metadata_to_use "artist,album,title,track,name,composer,performer,disc"
|
||||||
follow_outside_symlinks "no"
|
|
|
@ -4,37 +4,15 @@
|
||||||
# - Add ``needsterminal`` for commands that use the terminal
|
# - Add ``needsterminal`` for commands that use the terminal
|
||||||
# - Add ``copiousoutput`` for commands that dump text to stdout
|
# - Add ``copiousoutput`` for commands that dump text to stdout
|
||||||
|
|
||||||
image/gif; sxiv-gif -p -b -a %s; test=test -n "$DISPLAY"
|
image/gif; sxiv-gif %s; test=test -n "$DISPLAY"
|
||||||
image/*; sxiv -p -b -q %s; test=test -n "$DISPLAY"
|
image/*; sxiv-rifle %s; test=test -n "$DISPLAY"
|
||||||
video/*; setsid nohup mpv --quiet %s & disown; test=test -n "$DISPLAY"; copiousoutput
|
video/*; setsid mpv --quiet %s & disown; test=test -n "$DISPLAY"; copiousoutput
|
||||||
audio/*; setsid nohup mpv --quiet %s & disown; test=test -n "$DISPLAY"; copiousoutput
|
audio/*; setsid mpv --quiet %s & disown; test=test -n "$DISPLAY"; copiousoutput
|
||||||
application/pdf; zathura %s & disown; test=test -n "$DISPLAY"
|
application/pdf; zathura %s & disown; test=test -n "$DISPLAY"
|
||||||
|
|
||||||
# Autoview html
|
# Autoview html
|
||||||
text/html; w3m -I %{charset} -T text/html; copiousoutput
|
text/plain; $EDITOR %s ;
|
||||||
text/plain; less %s; edit=nvim; compose=nvim; needsterminal
|
text/html; openfile %s ; nametemplate=%s.html
|
||||||
text/*; less %s; edit=nvim; compose=nvim; needsterminal
|
text/html; lynx -assume_charset=%{charset} -display_charset=utf-8 dump %s; nametemplate=%s.html; copiousoutput
|
||||||
|
|
||||||
application/pgp-encrypted; gpg -d '%s'; copiousoutput;
|
application/pgp-encrypted; gpg -d '%s'; copiousoutput;
|
||||||
|
|
||||||
application/x-zip; unzip -l %s; copiousoutput
|
|
||||||
application/zip; unzip -l %s; copiousoutput
|
|
||||||
application/x-rar; unrar l %s; copiousoutput
|
|
||||||
application/x-rar-compressed; unrar l %s; copiousoutput
|
|
||||||
application/x-tar; tar -tvf %s; copiousoutput
|
|
||||||
application/x-tarz; tar -tvf %s; copiousoutput
|
|
||||||
application/x-gzip; tar -ztvf %s; copiousoutput
|
|
||||||
application/x-bzip2; tar -jtvf %s; copiousoutput
|
|
||||||
application/x-bzip; tar -jtvf %s; copiousoutput
|
|
||||||
application/x-bzip-compressed-tar; tar -jtvf %s; copiousoutput
|
|
||||||
application/x-7z-compressed; 7z l %s; copiousoutput
|
|
||||||
application/x-7z-compressed-tar; 7z l %s; copiousoutput
|
|
||||||
|
|
||||||
# 256 color images using half-width unicode characters
|
|
||||||
# Much higher quality that img2txt, but must be built from source
|
|
||||||
# https://github.com/rossy/img2xterm
|
|
||||||
image/*; %s | convert -resize 80x80 - jpg:/tmp/rtv.jpg && img2xterm /tmp/rtv.jpg; needsterminal; copiousoutput
|
|
||||||
|
|
||||||
# Full motion videos - requires a framebuffer to view
|
|
||||||
video/x-youtube; mpv -vo drm -quiet '%s'; needsterminal
|
|
||||||
video/*; mpv -vo drm -quiet '%s'; needsterminal
|
|
|
@ -1,10 +1,5 @@
|
||||||
# GLOBAL
|
# GLOBAL
|
||||||
ncmpcpp_directory = "~/.config/ncmpcpp"
|
ncmpcpp_directory = "~/.config/ncmpcpp"
|
||||||
|
|
||||||
# MPD
|
|
||||||
mpd_host = "127.0.0.1"
|
|
||||||
mpd_port = "6600"
|
|
||||||
mpd_music_dir = "~/Music/Albums"
|
|
||||||
|
|
||||||
# VISULAIZER
|
# VISULAIZER
|
||||||
visualizer_fifo_path = "/tmp/mpd.fifo"
|
visualizer_fifo_path = "/tmp/mpd.fifo"
|
||||||
|
@ -24,8 +19,8 @@ header_window_color = cyan
|
||||||
volume_color = red
|
volume_color = red
|
||||||
state_line_color = white
|
state_line_color = white
|
||||||
statusbar_color = magenta
|
statusbar_color = magenta
|
||||||
empty_tag_color = blue
|
empty_tag_color = blue
|
||||||
state_flags_color = red
|
state_flags_color = red
|
||||||
|
|
||||||
# SONG
|
# SONG
|
||||||
song_list_format = "$5%n {$8%t}|{$2►$2<untitled>}|{$5►$8 %f} $R$5{$4%a}|{$8<unknown artist>} {$7 %l}"
|
song_list_format = "$5%n {$8%t}|{$2►$2<untitled>}|{$5►$8 %f} $R$5{$4%a}|{$8<unknown artist>} {$7 %l}"
|
||||||
|
@ -38,9 +33,9 @@ now_playing_prefix = "$6>> "
|
||||||
now_playing_suffix = " $6<<"
|
now_playing_suffix = " $6<<"
|
||||||
selected_item_prefix = "$9"
|
selected_item_prefix = "$9"
|
||||||
selected_item_suffix = "$9"
|
selected_item_suffix = "$9"
|
||||||
current_item_prefix = "$(white)$r"
|
current_item_prefix = "$(white)$r"
|
||||||
current_item_suffix = "$/r$(end)"
|
current_item_suffix = "$/r$(end)"
|
||||||
browser_playlist_prefix = "$7list$9"
|
browser_playlist_prefix = "$7list$9"
|
||||||
current_item_inactive_column_prefix = "$(red)$r"
|
current_item_inactive_column_prefix = "$(red)$r"
|
||||||
current_item_inactive_column_suffix = "$/r$(end)"
|
current_item_inactive_column_suffix = "$/r$(end)"
|
||||||
|
|
||||||
|
@ -60,7 +55,7 @@ playlist_editor_display_mode = classic
|
||||||
browser_sort_mode = mtime
|
browser_sort_mode = mtime
|
||||||
|
|
||||||
# LIBRARY
|
# LIBRARY
|
||||||
media_library_sort_by_mtime = yes
|
media_library_sort_by_mtime = yes
|
||||||
|
|
||||||
# UI
|
# UI
|
||||||
titles_visibility = no
|
titles_visibility = no
|
||||||
|
@ -75,9 +70,9 @@ enable_window_title = yes
|
||||||
playlist_show_remaining_time = no
|
playlist_show_remaining_time = no
|
||||||
display_remaining_time = no
|
display_remaining_time = no
|
||||||
playlist_separate_albums = no
|
playlist_separate_albums = no
|
||||||
ask_for_locked_screen_width_part = no
|
ask_for_locked_screen_width_part = no
|
||||||
locked_screen_width_part = 50
|
locked_screen_width_part = 50
|
||||||
empty_tag_marker ="--"
|
empty_tag_marker ="--"
|
||||||
|
|
||||||
# OPTIONS
|
# OPTIONS
|
||||||
lines_scrolled = 1
|
lines_scrolled = 1
|
||||||
|
@ -87,14 +82,14 @@ cyclic_scrolling = yes
|
||||||
ignore_leading_the = no
|
ignore_leading_the = no
|
||||||
allow_for_physical_item_deletion = no
|
allow_for_physical_item_deletion = no
|
||||||
use_console_editor = yes
|
use_console_editor = yes
|
||||||
external_editor = nano
|
external_editor = nvim
|
||||||
data_fetching_delay = no
|
data_fetching_delay = no
|
||||||
ask_before_clearing_playlists = no
|
ask_before_clearing_playlists = no
|
||||||
incremental_seeking = yes
|
incremental_seeking = yes
|
||||||
|
|
||||||
# LYRICS
|
# LYRICS
|
||||||
follow_now_playing_lyrics = no
|
follow_now_playing_lyrics = no
|
||||||
store_lyrics_in_song_dir = no
|
store_lyrics_in_song_dir = no
|
||||||
lyrics_directory = ~/.local/share/lyrics
|
lyrics_directory = ~/.local/share/lyrics
|
||||||
|
|
||||||
execute_on_song_change = "/home/deadguy/bin/tapa"
|
execute_on_song_change = "/home/deadguy/bin/tapa"
|
||||||
|
|
|
@ -1,92 +0,0 @@
|
||||||
# opciones basicas
|
|
||||||
refresh-on-startup no
|
|
||||||
always-display-description yes
|
|
||||||
display-article-progress yes
|
|
||||||
reload-only-visible-feeds yes
|
|
||||||
text-width 80
|
|
||||||
auto-reload yes
|
|
||||||
show-keymap-hint no
|
|
||||||
user-agent "Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Firefox/52.0"
|
|
||||||
error-log "~/.config/newsboat/error.log"
|
|
||||||
|
|
||||||
|
|
||||||
# formatos
|
|
||||||
datetime-format "%d/%m"
|
|
||||||
feedlist-format " %n %3U %t "
|
|
||||||
feedlist-title-format " Feeds: %u/%t %?T?Tag: %T ? %> %N %V "
|
|
||||||
#articlelist-format " %f %D %t"
|
|
||||||
#articlelist-title-format " %u/%t - '%T' - %U"
|
|
||||||
itemview-title-format "Article: %T %> %N %V"
|
|
||||||
|
|
||||||
#datetime-format "%Y-%m-%d"
|
|
||||||
#feedlist-format "%S %n %11u %t %d"
|
|
||||||
#feedlist-title-format "Feeds: %u sin leer, %t total"
|
|
||||||
articlelist-format " %f %t %> %D "
|
|
||||||
articlelist-title-format "%T [%U] (%u sin leer, %t total)"
|
|
||||||
#itemview-title-format "%T"
|
|
||||||
searchresult-title-format "Resultados (%u sin leer, %t total)"
|
|
||||||
filebrowser-title-format "%f %?O?Open File&Save File?"
|
|
||||||
help-title-format "Ayuda"
|
|
||||||
selecttag-title-format "Elegir Etiqueta"
|
|
||||||
selectfilter-title-format "Elegir Filtro"
|
|
||||||
urlview-title-format "URLs"
|
|
||||||
dialogs-title-format "Dialogs"
|
|
||||||
notify-format "%d Articulos nuevos. %n Articulos no leidos"
|
|
||||||
|
|
||||||
# teclas
|
|
||||||
bind-key ; toggle-show-read-feeds
|
|
||||||
bind-key j down
|
|
||||||
bind-key k up
|
|
||||||
bind-key J next-feed articlelist
|
|
||||||
bind-key K prev-feed articlelist
|
|
||||||
bind-key G end
|
|
||||||
bind-key g home
|
|
||||||
bind-key d pagedown
|
|
||||||
bind-key u pageup
|
|
||||||
bind-key l open
|
|
||||||
bind-key h quit
|
|
||||||
bind-key a toggle-article-read
|
|
||||||
bind-key n next-unread
|
|
||||||
bind-key N prev-unread
|
|
||||||
bind-key D pb-download
|
|
||||||
bind-key U show-urls
|
|
||||||
bind-key x pb-delete
|
|
||||||
bind-key ^t next-unread
|
|
||||||
bind-key / open-search
|
|
||||||
|
|
||||||
# colores
|
|
||||||
color listnormal cyan default
|
|
||||||
color listfocus green default bold
|
|
||||||
color listnormal_unread blue default
|
|
||||||
color listfocus_unread yellow default bold
|
|
||||||
color info color232 color67 bold
|
|
||||||
color article color250 default
|
|
||||||
color background default default
|
|
||||||
highlight article "^(Feed|Title|Author|Link|Date|Links):" blue default underline
|
|
||||||
highlight article "^Podcast Download URL:.*" blue default bold
|
|
||||||
highlight article "\\[image [0-9][0-9]*\\]" cyan default
|
|
||||||
highlight article "\\[[0-9][0-9]*\\]" white default
|
|
||||||
highlight article "\\[embedded flash: [0-9][0-9]*\\]" red default
|
|
||||||
highlight article "\\(link\\)$" blue default
|
|
||||||
highlight article "\\(image\\)$" cyan default
|
|
||||||
highlight article "\\(embedded flash\\)$" red default
|
|
||||||
highlight article "Read more" white default
|
|
||||||
highlight article "https?://([.:_~!$&'=+*(),;@?a-z/0-9\\-]|%[0-9a-f]{2})+" magenta default
|
|
||||||
|
|
||||||
# programas externos
|
|
||||||
notify-program "notify-send"
|
|
||||||
browser linkhandler
|
|
||||||
player mpv
|
|
||||||
save-path ~/.config/newsboat/saved
|
|
||||||
|
|
||||||
# macros con prefijo
|
|
||||||
macro , open-in-browser
|
|
||||||
macro t set browser "transmission-remote --add %u"; open-in-browser ; set browser linkhandler
|
|
||||||
macro d set browser "tsp ytdl"; open-in-browser ; set browser linkhandler
|
|
||||||
macro a set browser "tsp bandcamp"; open-in-browser ; set browser linkhandler
|
|
||||||
macro v set browser "setsid nohup mpv"; open-in-browser ; set browser linkhandler
|
|
||||||
macro w set browser "tmux split-window -p 70 && tmux send-keys '$w3m %u && tmux kill-pane\n'"; open-in-browser ; set browser linkhandler
|
|
||||||
macro r set browser "tmux split-window -p 70 && tmux send-keys 'rtv -l %u && tmux kill-pane\n'"; open-in-browser ; set browser linkhandler
|
|
||||||
macro c set browser "xsel -b <<<" ; open-in-browser ; set browser linkandler
|
|
||||||
|
|
||||||
# vim: ft=conf cms=#%s
|
|
|
@ -1,38 +0,0 @@
|
||||||
---------MISC------------
|
|
||||||
https://www.questionablecontent.net/QCRSS.xml "~Questionable Content" comics
|
|
||||||
https://chiptuneswin.com/blog/feed/ "~Chiptunes=WIN" blogs
|
|
||||||
https://vimways.org/index.xml "~Vimways" blogs
|
|
||||||
|
|
||||||
-------YOUTUBE-----------
|
|
||||||
https://www.youtube.com/feeds/videos.xml?user=gotbletu "~Gotbletu" youtube
|
|
||||||
https://www.youtube.com/feeds/videos.xml?channel_id=UC2eYFnH61tmytImy1mTYvhA "~Luke Smith" youtube
|
|
||||||
https://www.youtube.com/feeds/videos.xml?user=moviebob "~Moviebob" youtube
|
|
||||||
https://www.youtube.com/feeds/videos.xml?playlist_id=PLXleEiD94A2d6WdmDU0h7dXJg8scAaZ9U "~Moviebob Reviews" youtube
|
|
||||||
https://www.youtube.com/feeds/videos.xml?channel_id=UCu8YylsPiu9XfaQC74Hr_Gw "~Seth's Bike Hacks" youtube
|
|
||||||
https://www.youtube.com/feeds/videos.xml?channel_id=UCXKYjkimgemQuuNP-JRTz2Q "~Mundo Ciclismo TV" youtube
|
|
||||||
https://www.youtube.com/feeds/videos.xml?user=tvmultimediacine "~Ruta Cleta" youtube
|
|
||||||
https://www.youtube.com/feeds/videos.xml?channel_id=UCeZLO2VgbZHeDcongKzzfOw "~8 bit Music Theory" youtube
|
|
||||||
https://www.youtube.com/feeds/videos.xml?channel_id=UCq297H7Ca98HlB5mVFHGSsQ "~Reaper Mania" youtube
|
|
||||||
https://www.youtube.com/feeds/videos.xml?channel_id=UCMUHt6JzCMsdtvkaJpU3KXw "~Reaper TV" youtube
|
|
||||||
https://www.youtube.com/feeds/videos.xml?user=GRGE2MB "~GRGE" youtube
|
|
||||||
https://www.youtube.com/feeds/videos.xml?channel_id=UCSBUDr3oUg9y7YS1TZL_Jeg "~Wubbix" youtube
|
|
||||||
https://www.youtube.com/feeds/videos.xml?user=olbaidoinomed "~Olbaid" youtube
|
|
||||||
|
|
||||||
-------REDDIT------------
|
|
||||||
https://www.reddit.com/r/argentina.rss "~Argentina" reddit
|
|
||||||
https://www.reddit.com/r/zsh.rss "~Zsh" reddit
|
|
||||||
https://www.reddit.com/r/bspwm.rss "~Bspwm" reddit
|
|
||||||
https://www.reddit.com/r/vim.rss "~Vim" reddit
|
|
||||||
https://www.reddit.com/r/neovim.rss "~Neovim" reddit
|
|
||||||
https://www.reddit.com/r/vimporn.rss "~Vim Porn" reddit
|
|
||||||
https://www.reddit.com/r/unixart.rss "~Unix Art" reddit
|
|
||||||
https://www.reddit.com/r/commandline.rss "~Command line" reddit
|
|
||||||
https://www.reddit.com/r/linuxaudio.rss "~Linux Audio" reddit
|
|
||||||
https://www.reddit.com/r/learnprogramming.rss "~Learn Programming" reddit
|
|
||||||
https://www.reddit.com/r/chiptunes.rss "~Chiptunes" reddit
|
|
||||||
https://www.reddit.com/r/jungle.rss "~Jungle" reddit
|
|
||||||
https://www.reddit.com/r/breakcore.rss "~Breakcore" reddit
|
|
||||||
https://www.reddit.com/r/vaporwave.rss "~Vaporwave" reddit
|
|
||||||
https://www.reddit.com/r/outrun.rss "~OutRun" reddit
|
|
||||||
https://www.reddit.com/r/algorave.rss "~Algorave" reddit
|
|
||||||
https://www.reddit.com/r/livecoding.rss "~Livecoding" reddit
|
|
|
@ -84,11 +84,11 @@ set pastetoggle=<F12>
|
||||||
set grepprg=rg\ --vimgrep\ --hidden\ --no-heading
|
set grepprg=rg\ --vimgrep\ --hidden\ --no-heading
|
||||||
set grepformat=%f:%l:%c:%m,%f:%l:%m
|
set grepformat=%f:%l:%c:%m,%f:%l:%m
|
||||||
|
|
||||||
set wildignore+=*.jpg,*.jpeg,*.bmp,*.gif,*.png " image
|
set wildignore+=*.jpg,*.jpeg,*.bmp,*.gif,*.png,*.svg " image
|
||||||
set wildignore+=*.manifest " gb
|
set wildignore+=*.manifest " gb
|
||||||
set wildignore+=*.o,*.obj,*.exe,*.dll,*.so,*.out,*.class " compiler
|
set wildignore+=*.o,*.obj,*.exe,*.dll,*.so,*.out,*.class " compiler
|
||||||
set wildignore+=*.swp,*.swo,*.swn " vim
|
set wildignore+=*.swp,*.swo,*.swn " vim
|
||||||
set wildignore+=*/.git,*/.hg,*/.svn " vcs
|
set wildignore+=*/.git,*/.hg,*/.svn,*/node_modules " vcs
|
||||||
|
|
||||||
if &diff
|
if &diff
|
||||||
set textwidth=80
|
set textwidth=80
|
||||||
|
@ -166,17 +166,6 @@ nmap <silent> <F8> <Plug>(ale_next_wrap)
|
||||||
" CoC {{{
|
" CoC {{{
|
||||||
let g:coc_global_extensions = ['coc-lists', 'coc-highlight', 'coc-explorer', 'coc-snippets', 'coc-tsserver', 'coc-emmet', 'coc-css', 'coc-html', 'coc-json']
|
let g:coc_global_extensions = ['coc-lists', 'coc-highlight', 'coc-explorer', 'coc-snippets', 'coc-tsserver', 'coc-emmet', 'coc-css', 'coc-html', 'coc-json']
|
||||||
|
|
||||||
" Remap keys for gotos
|
|
||||||
nmap <silent>gd <Plug>(coc-definition)
|
|
||||||
nmap <silent>gy <Plug>(coc-type-definition)
|
|
||||||
nmap <silent>gI <Plug>(coc-implementation)
|
|
||||||
nmap <silent>gr <Plug>(coc-references)
|
|
||||||
|
|
||||||
" Object/Symbol maps
|
|
||||||
nmap <leader>or <Plug>(coc-rename)
|
|
||||||
nnoremap <silent> <leader>ol :<C-u>CocList outline<CR>
|
|
||||||
nnoremap <silent> <leader>o/ :<C-u>CocList -I symbols<CR>
|
|
||||||
|
|
||||||
" Explorer
|
" Explorer
|
||||||
nmap <silent><F5> :CocCommand explorer<CR>
|
nmap <silent><F5> :CocCommand explorer<CR>
|
||||||
|
|
||||||
|
@ -211,7 +200,6 @@ let g:coc_snippet_prev = '<S-TAB>'
|
||||||
" Python
|
" Python
|
||||||
nnoremap <silent>gp :CocCommand python.execInTerminal<CR>
|
nnoremap <silent>gp :CocCommand python.execInTerminal<CR>
|
||||||
nnoremap <silent>gr :CocCommand python.startREPL<CR>
|
nnoremap <silent>gr :CocCommand python.startREPL<CR>
|
||||||
|
|
||||||
"}}}
|
"}}}
|
||||||
" Vista {{{
|
" Vista {{{
|
||||||
let g:vista#renderer#enable_icon = 1
|
let g:vista#renderer#enable_icon = 1
|
||||||
|
@ -263,11 +251,11 @@ hi! link CocInfoSign Type
|
||||||
" Statusline {{{
|
" Statusline {{{
|
||||||
highlight User1 ctermfg=251 ctermbg=NONE guibg=#080808 guifg=#c6c6c6
|
highlight User1 ctermfg=251 ctermbg=NONE guibg=#080808 guifg=#c6c6c6
|
||||||
highlight User2 ctermfg=234 ctermbg=NONE guibg=#f74782 guifg=#1c1c1c
|
highlight User2 ctermfg=234 ctermbg=NONE guibg=#f74782 guifg=#1c1c1c
|
||||||
highlight User3 ctermfg=234 ctermbg=4 guibg=#008bbd guifg=#1c1c1c
|
highlight User3 ctermfg=234 ctermbg=4 guibg=#008bb4 guifg=#1c1c1c
|
||||||
highlight User4 ctermfg=234 ctermbg=251 guibg=#c6c6c6 guifg=#1c1c1c
|
highlight User4 ctermfg=234 ctermbg=251 guibg=#c6c6c6 guifg=#1c1c1c
|
||||||
highlight User5 ctermfg=234 ctermbg=4 guibg=#e64eff guifg=#1c1c1c
|
highlight User5 ctermfg=234 ctermbg=4 guibg=#e64eff guifg=#1c1c1c
|
||||||
highlight User6 ctermfg=234 ctermbg=9 guibg=#fbad34 guifg=#1c1c1c
|
highlight User6 ctermfg=234 ctermbg=9 guibg=#fbad34 guifg=#1c1c1c
|
||||||
highlight User7 ctermfg=234 ctermbg=251 guibg=#407e4a guifg=#1c1c1c
|
highlight User7 ctermfg=234 ctermbg=251 guibg=#407e4a guifg=#ffffff
|
||||||
|
|
||||||
let g:modes={
|
let g:modes={
|
||||||
\ 'n' : ['%3*', 'NORMAL'],
|
\ 'n' : ['%3*', 'NORMAL'],
|
||||||
|
@ -407,14 +395,9 @@ if !exists('autocommands_loaded') && has('autocmd')
|
||||||
aug on_save
|
aug on_save
|
||||||
" Delete whitespace on :w
|
" Delete whitespace on :w
|
||||||
au BufWritePre * :%s/\s\+$//e
|
au BufWritePre * :%s/\s\+$//e
|
||||||
" If i just edited Xresources, reaload them on :w
|
au BufWritePost *xresources !xrdb %
|
||||||
au BufWritePost ~/.Xresources,~/.Xdefaults !xrdb %
|
au BufWritePost *sxhkdrc !pkill -USR1 sxhkd
|
||||||
aug END
|
au QuitPre * if empty(&buftype) | lclose | endif
|
||||||
|
|
||||||
aug on_quit
|
|
||||||
" Runs a script that cleans out tex build files whenever I close out of a .tex file.
|
|
||||||
au VimLeave *.tex !texclear %
|
|
||||||
au QuitPre * if empty(&buftype) | lclose | endif
|
|
||||||
aug END
|
aug END
|
||||||
|
|
||||||
aug term_stuff
|
aug term_stuff
|
||||||
|
|
|
@ -1,7 +1,3 @@
|
||||||
# Thank you code_nomad: http://9m.no/ꪯ鵞
|
|
||||||
# and Arch Wiki contributors: https://wiki.archlinux.org/index.php/Compton
|
|
||||||
|
|
||||||
# Backend
|
|
||||||
# Backend to use: "xrender" or "glx".
|
# Backend to use: "xrender" or "glx".
|
||||||
# GLX backend is typically much faster but depends on a sane driver.
|
# GLX backend is typically much faster but depends on a sane driver.
|
||||||
backend = "glx";
|
backend = "glx";
|
||||||
|
@ -10,13 +6,9 @@ backend = "glx";
|
||||||
glx-no-stencil = true;
|
glx-no-stencil = true;
|
||||||
|
|
||||||
# GLX backend: Copy unmodified regions from front buffer instead of redrawing them all.
|
# GLX backend: Copy unmodified regions from front buffer instead of redrawing them all.
|
||||||
# My tests with nvidia-drivers show a 10% decrease in performance when the whole screen is modified,
|
|
||||||
# but a 20% increase when only 1/4 is.
|
|
||||||
# My tests on nouveau show terrible slowdown.
|
|
||||||
glx-copy-from-front = false;
|
glx-copy-from-front = false;
|
||||||
|
|
||||||
# GLX backend: Use MESA_copy_sub_buffer to do partial screen update.
|
# GLX backend: Use MESA_copy_sub_buffer to do partial screen update.
|
||||||
# My tests on nouveau shows a 200% performance boost when only 1/4 of the screen is updated.
|
|
||||||
# May break VSync and is not available on some drivers.
|
# May break VSync and is not available on some drivers.
|
||||||
# Overrides --glx-copy-from-front.
|
# Overrides --glx-copy-from-front.
|
||||||
# glx-use-copysubbuffermesa = true;
|
# glx-use-copysubbuffermesa = true;
|
||||||
|
@ -26,10 +18,8 @@ glx-copy-from-front = false;
|
||||||
# Recommended if it works.
|
# Recommended if it works.
|
||||||
glx-no-rebind-pixmap = true;
|
glx-no-rebind-pixmap = true;
|
||||||
|
|
||||||
# Shadows
|
|
||||||
# Enabled client-side shadows on windows.
|
# Enabled client-side shadows on windows.
|
||||||
shadow = true;
|
shadow = false;
|
||||||
|
|
||||||
# The blur radius for shadows. (default 12)
|
# The blur radius for shadows. (default 12)
|
||||||
shadow-radius = 3;
|
shadow-radius = 3;
|
||||||
# The left offset for shadows. (default -15)
|
# The left offset for shadows. (default -15)
|
||||||
|
@ -39,11 +29,6 @@ shadow-offset-y = 2.5;
|
||||||
# The translucency for shadows. (default .75)
|
# The translucency for shadows. (default .75)
|
||||||
shadow-opacity = 0.65;
|
shadow-opacity = 0.65;
|
||||||
|
|
||||||
# Set if you want different colour shadows
|
|
||||||
# shadow-red = 0.0;
|
|
||||||
# shadow-green = 0.0;
|
|
||||||
# shadow-blue = 0.0;
|
|
||||||
|
|
||||||
# The shadow exclude options are helpful if you have shadows enabled. Due to the way compton draws its shadows, certain applications will have visual glitches
|
# The shadow exclude options are helpful if you have shadows enabled. Due to the way compton draws its shadows, certain applications will have visual glitches
|
||||||
# (most applications are fine, only apps that do weird things with xshapes or argb are affected).
|
# (most applications are fine, only apps that do weird things with xshapes or argb are affected).
|
||||||
# This list includes all the affected apps I found in my testing. The "! name~=''" part excludes shadows on any "Unknown" windows, this prevents a visual glitch with the XFWM alt tab switcher.
|
# This list includes all the affected apps I found in my testing. The "! name~=''" part excludes shadows on any "Unknown" windows, this prevents a visual glitch with the XFWM alt tab switcher.
|
||||||
|
@ -52,22 +37,11 @@ shadow-exclude = [
|
||||||
"!focused",
|
"!focused",
|
||||||
"fullscreen",
|
"fullscreen",
|
||||||
"name = 'Notification'",
|
"name = 'Notification'",
|
||||||
"name = 'Plank'",
|
"name *= 'picom'",
|
||||||
"name = 'Docky'",
|
|
||||||
"name = 'Kupfer'",
|
|
||||||
"name = 'xfce4-notifyd'",
|
|
||||||
"name *= 'VLC'",
|
|
||||||
"name *= 'compton'",
|
|
||||||
"name *= 'Chromium'",
|
|
||||||
"name *= 'Chrome'",
|
|
||||||
"class_g = 'Firefox' && argb",
|
"class_g = 'Firefox' && argb",
|
||||||
"class_g = 'Rofi'",
|
"class_g = 'Rofi'",
|
||||||
"class_g = 'slop'",
|
"class_g = 'slop'",
|
||||||
"class_g = 'maim'",
|
"class_g = 'maim'",
|
||||||
"class_g ?= 'Notify-osd'",
|
|
||||||
"class_g ?= 'Cairo-dock'",
|
|
||||||
"class_g ?= 'Xfce4-notifyd'",
|
|
||||||
"class_g ?= 'Xfce4-power-manager'",
|
|
||||||
"_GTK_FRAME_EXTENTS@:c",
|
"_GTK_FRAME_EXTENTS@:c",
|
||||||
"_NET_WM_STATE@:32a *= '_NET_WM_STATE_HIDDEN'"
|
"_NET_WM_STATE@:32a *= '_NET_WM_STATE_HIDDEN'"
|
||||||
];
|
];
|
||||||
|
@ -105,24 +79,22 @@ opacity-rule = [
|
||||||
]
|
]
|
||||||
|
|
||||||
opacity-exclude = [
|
opacity-exclude = [
|
||||||
"class_g = 'mpv'",
|
"class_g = 'mpv'",
|
||||||
"class_g = 'Firefox'",
|
"class_g = 'Firefox'",
|
||||||
"name *?= 'Notification'",
|
"name *?= 'Notification'",
|
||||||
"class_g ?= 'Notify-osd'",
|
|
||||||
"_GTK_FRAME_EXTENTS@:c",
|
"_GTK_FRAME_EXTENTS@:c",
|
||||||
"n:w:Firefox",
|
"n:w:Firefox",
|
||||||
"! name~=''",
|
"! name~=''",
|
||||||
"class_g ?= 'Xfce4-power-manager'",
|
"class_g ?= 'Xfce4-power-manager'",
|
||||||
"class_g = 'slop'",
|
"class_g = 'slop'",
|
||||||
"class_g = 'Rofi'",
|
"class_g = 'Rofi'",
|
||||||
"class_g = 'maim'",
|
"class_g = 'maim'",
|
||||||
];
|
];
|
||||||
|
|
||||||
# Fading
|
|
||||||
# Fade windows during opacity changes.
|
# Fade windows during opacity changes.
|
||||||
fading = true;
|
fading = true;
|
||||||
# The time between steps in a fade in milliseconds. (default 10).
|
# The time between steps in a fade in milliseconds. (default 10).
|
||||||
fade-delta = 5;
|
fade-delta = 3;
|
||||||
# Opacity change between steps while fading in. (default 0.028).
|
# Opacity change between steps while fading in. (default 0.028).
|
||||||
fade-in-step = 0.03;
|
fade-in-step = 0.03;
|
||||||
# Opacity change between steps while fading out. (default 0.03).
|
# Opacity change between steps while fading out. (default 0.03).
|
||||||
|
@ -133,7 +105,6 @@ fade-out-step = 0.03;
|
||||||
# Specify a list of conditions of windows that should not be faded.
|
# Specify a list of conditions of windows that should not be faded.
|
||||||
fade-exclude = [ ];
|
fade-exclude = [ ];
|
||||||
|
|
||||||
# Other
|
|
||||||
# Try to detect WM windows and mark them as active.
|
# Try to detect WM windows and mark them as active.
|
||||||
mark-wmwin-focused = true;
|
mark-wmwin-focused = true;
|
||||||
# Mark all non-WM but override-redirect windows active (e.g. menus).
|
# Mark all non-WM but override-redirect windows active (e.g. menus).
|
||||||
|
|
|
@ -187,14 +187,13 @@ map gE cd /etc
|
||||||
map gU cd /usr
|
map gU cd /usr
|
||||||
map gd cd ~/Downloads
|
map gd cd ~/Downloads
|
||||||
map g. cd ~/.config
|
map g. cd ~/.config
|
||||||
map gT cd ~/.local/share/Trash/files/
|
|
||||||
map gs cd ~/.local/share
|
map gs cd ~/.local/share
|
||||||
map gf cd ~/.local/lib/python3.7/site-packages/FoxDot
|
map gm cd /mnt/remote
|
||||||
map gm cd ~/Music/Albums
|
map gc cd /mnt/cel
|
||||||
map gb cd ~/bin
|
map gb cd ~/.local/bin
|
||||||
map gM cd /media
|
map gM cd /media
|
||||||
map gR cd /
|
map gR cd /
|
||||||
map gr cd ~/.config/ranger
|
map gr cd /run/media/deadguy
|
||||||
map g? cd /usr/share/doc/ranger
|
map g? cd /usr/share/doc/ranger
|
||||||
map gl cd -r .
|
map gl cd -r .
|
||||||
map gL cd -r %f
|
map gL cd -r %f
|
||||||
|
@ -203,7 +202,7 @@ map gp cd ~/Pictures
|
||||||
map gi eval fm.cd('/run/media/' + os.getenv('USER'))
|
map gi eval fm.cd('/run/media/' + os.getenv('USER'))
|
||||||
|
|
||||||
# Tabs
|
# Tabs
|
||||||
map <C-n> eval fm.tab_new('%d')
|
map <C-n> eval fm.tab_new('%d')
|
||||||
map <C-w> tab_close
|
map <C-w> tab_close
|
||||||
map <TAB> tab_move 1
|
map <TAB> tab_move 1
|
||||||
map <S-TAB> tab_move -1
|
map <S-TAB> tab_move -1
|
||||||
|
@ -213,7 +212,7 @@ map t+ tab_move 1
|
||||||
map t- tab_move -1
|
map t- tab_move -1
|
||||||
map th tab_new ~
|
map th tab_new ~
|
||||||
map tu tab_restore
|
map tu tab_restore
|
||||||
map tc tab_close
|
map tc tab_close
|
||||||
map <a-1> tab_open 1
|
map <a-1> tab_open 1
|
||||||
map <a-2> tab_open 2
|
map <a-2> tab_open 2
|
||||||
map <a-3> tab_open 3
|
map <a-3> tab_open 3
|
||||||
|
@ -479,9 +478,9 @@ map Zz shell apack %f.zip %f
|
||||||
map Zb shell apack --format=zip %f.cbz %f
|
map Zb shell apack --format=zip %f.cbz %f
|
||||||
map bg shell setbg %f
|
map bg shell setbg %f
|
||||||
map C shell convert -rotate 90 %s %s
|
map C shell convert -rotate 90 %s %s
|
||||||
map <C-f> select
|
map zf select
|
||||||
map <C-l> locate
|
map zl locate
|
||||||
map <C-b> bring
|
map zb bring
|
||||||
map zz fazdf
|
map zz fazdf
|
||||||
map zo console fasd%space
|
map zo console fasd%space
|
||||||
|
|
||||||
|
|
|
@ -1,28 +0,0 @@
|
||||||
configuration {
|
|
||||||
modi: "run,drun,window";
|
|
||||||
combi-modi: "run,drun,window";
|
|
||||||
theme: "customenu";
|
|
||||||
terminal: "termite";
|
|
||||||
run-command: "{cmd}";
|
|
||||||
run-shell-command: "termite --hold -e {cmd}";
|
|
||||||
disable-history: true;
|
|
||||||
sort: true;
|
|
||||||
sorting-method: "fzf";
|
|
||||||
case-sensitive: false;
|
|
||||||
cycle: true;
|
|
||||||
auto-select: true;
|
|
||||||
tokenize: false;
|
|
||||||
fullscreen: false;
|
|
||||||
threads: 0;
|
|
||||||
scroll-method: 1;
|
|
||||||
click-to-exit: true;
|
|
||||||
show-match: true;
|
|
||||||
drun-show-actions: true;
|
|
||||||
drun-display-format: "{name}";
|
|
||||||
drun-match-fields: "name,exec";
|
|
||||||
combi-hide-mode-prefix: true;
|
|
||||||
window-match-fields: "title,name";
|
|
||||||
window-command: "xkill -id {window}";
|
|
||||||
window-format: "{w:8}{c:16}{t}";
|
|
||||||
pid: "/run/user/1000/rofi.pid";
|
|
||||||
}
|
|
|
@ -15,7 +15,7 @@ super + alt + space
|
||||||
bspc node -p cancel
|
bspc node -p cancel
|
||||||
|
|
||||||
super + {1-9,0}
|
super + {1-9,0}
|
||||||
bspc desktop -f {1-9,10} && notifocus
|
bspc desktop -f {1-9,10} && notifocus
|
||||||
|
|
||||||
super + shift + {1-9,0}
|
super + shift + {1-9,0}
|
||||||
bspc node -d {1-9,10}
|
bspc node -d {1-9,10}
|
||||||
|
@ -41,9 +41,6 @@ super + o
|
||||||
super + y
|
super + y
|
||||||
bspc node -s biggest.local
|
bspc node -s biggest.local
|
||||||
|
|
||||||
super + {_,shift} + i
|
|
||||||
{bspc node -i,for win in `bspc query -N -d -n .leaf.!window`; do bspc node $win -k; done}
|
|
||||||
|
|
||||||
super + {_,shift,ctrl} + u
|
super + {_,shift,ctrl} + u
|
||||||
bspc node {@/ -B,@brother -B,@/ -E}
|
bspc node {@/ -B,@brother -B,@/ -E}
|
||||||
|
|
||||||
|
@ -54,20 +51,26 @@ super + {_,shift} + ntilde
|
||||||
whid {hide,dmenu}
|
whid {hide,dmenu}
|
||||||
|
|
||||||
# Run Applications
|
# Run Applications
|
||||||
super + {t,b,v,q,c}
|
super + {b,v,q,c}
|
||||||
{subl,$BROWSER,pavucontrol,powermenu,gsimplecal}
|
{$BROWSER,pavucontrol,powermenu,gsimplecal}
|
||||||
|
|
||||||
super + z
|
super + {z,x}
|
||||||
termite --name=multi -e termux
|
st {-n multi -e termux,-n flota}
|
||||||
|
|
||||||
super + x
|
|
||||||
termite --name=flota
|
|
||||||
|
|
||||||
super + {n,m}
|
super + {n,m}
|
||||||
termite --name=flota -e {nmtui,brandr}
|
st -n flota -e {nmtui,brandr}
|
||||||
|
|
||||||
super + {space,s,r}
|
super + space
|
||||||
rofi {-theme customdark -show drun,-show window,-theme dmenu2 -show run}
|
j4-dmenu-desktop --dmenu="dmenu -i -p 'Apps '" --no-generic
|
||||||
|
|
||||||
|
super + r
|
||||||
|
dmenu_run -i -p "Run "
|
||||||
|
|
||||||
|
super + s
|
||||||
|
dswitcher
|
||||||
|
|
||||||
|
super + {F1,F2,F3,F4,F5,F6,F7}
|
||||||
|
{fecha,pila,tapa,notifocus,grabar,corte,touchpad}
|
||||||
|
|
||||||
ctrl + alt + x
|
ctrl + alt + x
|
||||||
xkill
|
xkill
|
||||||
|
@ -75,15 +78,12 @@ ctrl + alt + x
|
||||||
Print
|
Print
|
||||||
pantallazo
|
pantallazo
|
||||||
|
|
||||||
super + {F1,F2,F3,F4,F5,F6,F7}
|
|
||||||
{fecha,pila,tapa,notifocus,grabar,corte,touchpad}
|
|
||||||
|
|
||||||
# Media Keys
|
# Media Keys
|
||||||
XF86Audio{Prev,Next}
|
XF86Audio{Prev,Next,Play}
|
||||||
mpc -q {prev,next}
|
mpc -q {prev,next,toggle && tapa}
|
||||||
|
|
||||||
XF86AudioPlay
|
|
||||||
mpc -q toggle && tapa
|
|
||||||
|
|
||||||
XF86MonBrightness{Down,Up}
|
XF86MonBrightness{Down,Up}
|
||||||
brillo {down,up}
|
brillo {down,up}
|
||||||
|
|
||||||
|
XF86Audio{Raise,Lower}Volume
|
||||||
|
pactl set-sink-volume @DEFAULT_SINK@ {+,-}2%
|
||||||
|
|
|
@ -33,7 +33,7 @@ background = rgba(10, 14, 20, 0.85)
|
||||||
|
|
||||||
color0 = #0a0e14
|
color0 = #0a0e14
|
||||||
color1 = #ff3333
|
color1 = #ff3333
|
||||||
color2 = #c2d94c
|
color2 = #aec82a
|
||||||
color3 = #ffb454
|
color3 = #ffb454
|
||||||
color4 = #59c2ff
|
color4 = #59c2ff
|
||||||
color5 = #f07178
|
color5 = #f07178
|
||||||
|
@ -48,40 +48,4 @@ color13 = #f28779
|
||||||
color14 = #95e6cb
|
color14 = #95e6cb
|
||||||
color15 = #ffffff
|
color15 = #ffffff
|
||||||
|
|
||||||
# special
|
|
||||||
# foreground = #d3d7cf
|
|
||||||
# foreground_bold = #d3d7cf
|
|
||||||
# background = rgba(8, 8, 8, 0.8)
|
|
||||||
|
|
||||||
# # black
|
|
||||||
# color0 = #222222
|
|
||||||
# color8 = #555555
|
|
||||||
|
|
||||||
# # red
|
|
||||||
# color1 = #ec5252
|
|
||||||
# color9 = #fb4934
|
|
||||||
|
|
||||||
# # green
|
|
||||||
# color2 = #407e4a
|
|
||||||
# color10 = #8fc13e
|
|
||||||
|
|
||||||
# # yellow
|
|
||||||
# color3 = #d79921
|
|
||||||
# color11 = #fabd2f
|
|
||||||
|
|
||||||
# # blue
|
|
||||||
# color4 = #008bbd
|
|
||||||
# color12 = #0474a7
|
|
||||||
|
|
||||||
# # magenta
|
|
||||||
# color5 = #b16286
|
|
||||||
# color13 = #d3869b
|
|
||||||
|
|
||||||
# # cyan
|
|
||||||
# color6 = #689d64
|
|
||||||
# color14 = #149b93
|
|
||||||
|
|
||||||
# # white
|
|
||||||
# color7 = #a89984
|
|
||||||
# color15 = #c9c9c9
|
|
||||||
# vim: ft=dosini cms=#%s
|
# vim: ft=dosini cms=#%s
|
|
@ -1 +1 @@
|
||||||
[[ -z $DISPLAY && $XDG_VTNR -eq 1 ]] && exec startx -- -keeptty -nolisten tcp > ~/.xorg.log 2>&1
|
[[ -z $DISPLAY && $XDG_VTNR -eq 1 ]] && exec startx -- -keeptty -nolisten tcp
|
|
@ -1,8 +1,6 @@
|
||||||
# -*- mode: shell-script -*-
|
# -*- mode: shell-script -*-
|
||||||
# vim:ft=zsh
|
# vim:ft=zsh
|
||||||
# Opciones principales {{{
|
# Opciones principales {{{
|
||||||
MODULES_DIR="$HOME/.config/zsh"
|
|
||||||
|
|
||||||
autoload -Uz compinit promptinit
|
autoload -Uz compinit promptinit
|
||||||
autoload -Uz compinit
|
autoload -Uz compinit
|
||||||
_comp_files=(${ZDOTDIR:-$HOME}/.zcompdump(Nm-20))
|
_comp_files=(${ZDOTDIR:-$HOME}/.zcompdump(Nm-20))
|
||||||
|
@ -71,7 +69,7 @@ zstyle ':completion:*:*:cd:*:directory-stack' menu yes select
|
||||||
zstyle ':completion:*:approximate:' max-errors 'reply=( $((($#PREFIX+$#SUFFIX)/3 )) numeric )'
|
zstyle ':completion:*:approximate:' max-errors 'reply=( $((($#PREFIX+$#SUFFIX)/3 )) numeric )'
|
||||||
zstyle ':completion::(^approximate*):*:functions' ignored-patterns '_*'
|
zstyle ':completion::(^approximate*):*:functions' ignored-patterns '_*'
|
||||||
zstyle ':completion::complete:*' use-cache on
|
zstyle ':completion::complete:*' use-cache on
|
||||||
zstyle ':completion::complete:*' cache-path "$MODULES_DIR/.zcompcache"
|
zstyle ':completion::complete:*' cache-path "$ZDOTDIR/.zcompcache"
|
||||||
zstyle ':completion:*:complete:-command-::commands' ignored-patterns '*\~'
|
zstyle ':completion:*:complete:-command-::commands' ignored-patterns '*\~'
|
||||||
zstyle ':completion:*:processes' command 'ps -au $USER -o pid,stat,%cpu,%mem,cputime,command'
|
zstyle ':completion:*:processes' command 'ps -au $USER -o pid,stat,%cpu,%mem,cputime,command'
|
||||||
zstyle ':completion:*:killall:*' command 'ps -u $USER -o pid,%cpu,tty,cputime,cmd'
|
zstyle ':completion:*:killall:*' command 'ps -u $USER -o pid,%cpu,tty,cputime,cmd'
|
||||||
|
@ -98,7 +96,7 @@ zmodload -i zsh/complist
|
||||||
# }}}
|
# }}}
|
||||||
# Historial {{{
|
# Historial {{{
|
||||||
export HISTIGNORE="ls:cd:cd -:pwd:exit:date:* --help:* --version:* -v:man *:up:rtv *"
|
export HISTIGNORE="ls:cd:cd -:pwd:exit:date:* --help:* --version:* -v:man *:up:rtv *"
|
||||||
HISTFILE="$MODULES_DIR/histfile"
|
HISTFILE="$ZDOTDIR/histfile"
|
||||||
HISTSIZE=1000
|
HISTSIZE=1000
|
||||||
SAVEHIST=1000
|
SAVEHIST=1000
|
||||||
setopt BANG_HIST
|
setopt BANG_HIST
|
||||||
|
@ -117,17 +115,16 @@ setopt SHARE_HISTORY
|
||||||
# Plugins y extras {{{
|
# Plugins y extras {{{
|
||||||
foreach extra (
|
foreach extra (
|
||||||
zsh-completions/zsh-completions.plugin.zsh
|
zsh-completions/zsh-completions.plugin.zsh
|
||||||
forgit/forgit.plugin.zsh
|
|
||||||
up.plugin.zsh
|
up.plugin.zsh
|
||||||
k.sh
|
k.sh
|
||||||
teclas.zsh
|
teclas.zsh
|
||||||
extras.zsh
|
extras.zsh
|
||||||
aliases.plugin.zsh
|
aliases.plugin.zsh
|
||||||
dotfiles.zsh
|
dotfiles.zsh
|
||||||
git-extras-completion.zsh
|
|
||||||
zsh-system-clipboard/zsh-system-clipboard.zsh
|
zsh-system-clipboard/zsh-system-clipboard.zsh
|
||||||
|
lf-icons.zsh
|
||||||
) {
|
) {
|
||||||
source $MODULES_DIR/$extra
|
source $ZDOTDIR/$extra
|
||||||
}
|
}
|
||||||
|
|
||||||
foreach programa (
|
foreach programa (
|
||||||
|
@ -140,6 +137,9 @@ foreach programa (
|
||||||
|
|
||||||
typeset -g ZSH_SYSTEM_CLIPBOARD_TMUX_SUPPORT='true'
|
typeset -g ZSH_SYSTEM_CLIPBOARD_TMUX_SUPPORT='true'
|
||||||
|
|
||||||
|
source $XDG_CONFIG_HOME/broot/launcher/bash/br
|
||||||
|
source /usr/share/doc/pkgfile/command-not-found.zsh
|
||||||
|
|
||||||
foreach plugin (
|
foreach plugin (
|
||||||
zsh-autopair/autopair.zsh
|
zsh-autopair/autopair.zsh
|
||||||
zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
|
zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
|
||||||
|
@ -159,7 +159,7 @@ function precmd() {
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
PS1="%(?..%F{1}(%?%)%f )%F{4}%~ %f%# "
|
PS1="%(?..%{%F{red}%}(%?%)%{%f%} )%{%F{blue}%}%~ %{%f%}%# "
|
||||||
|
|
||||||
function zle-keymap-select {
|
function zle-keymap-select {
|
||||||
if [[ ${KEYMAP} == vicmd ]] ||
|
if [[ ${KEYMAP} == vicmd ]] ||
|
|
@ -2,21 +2,18 @@
|
||||||
alias vdi='vimdiff'
|
alias vdi='vimdiff'
|
||||||
alias gdl='gallery-dl'
|
alias gdl='gallery-dl'
|
||||||
alias m='neomutt'
|
alias m='neomutt'
|
||||||
alias r='ranger'
|
alias rr='ranger'
|
||||||
alias amix='alsamixer'
|
alias amix='alsamixer'
|
||||||
alias v='$EDITOR'
|
alias v='$EDITOR'
|
||||||
alias irc='weechat'
|
alias irc='weechat -d "$XDG_CONFIG_HOME"/weechat'
|
||||||
alias play='ncmpcpp'
|
alias play='ncmpcpp'
|
||||||
alias torr='transmission-remote-cli'
|
alias torr='tremc'
|
||||||
alias cal='calcurse'
|
|
||||||
alias py='python '
|
alias py='python '
|
||||||
alias py2='python2 '
|
|
||||||
alias help='run-help'
|
alias help='run-help'
|
||||||
alias p='pacui'
|
alias p='pacui'
|
||||||
alias surfraw='surfraw -browser=$BROWSER'
|
alias surfraw='surfraw -browser=$BROWSER'
|
||||||
alias bm='bashmount'
|
alias bm='bashmount'
|
||||||
alias kat='cat'
|
alias kat='cat'
|
||||||
alias nb='newsboat --quiet'
|
|
||||||
alias yt='mpsyt'
|
alias yt='mpsyt'
|
||||||
alias pudb='python -m pudb.run'
|
alias pudb='python -m pudb.run'
|
||||||
|
|
||||||
|
@ -31,24 +28,24 @@ alias gp="git push"
|
||||||
# MAXIMUM VERBOSITY YIELDS MAXIMUM RESULTS
|
# MAXIMUM VERBOSITY YIELDS MAXIMUM RESULTS
|
||||||
alias chmod='chmod -v'
|
alias chmod='chmod -v'
|
||||||
alias chown='chown -v'
|
alias chown='chown -v'
|
||||||
alias mv='amv -giv'
|
alias mv='mv -iv'
|
||||||
alias rmdir='rmdir -v'
|
alias rmdir='rmdir -v'
|
||||||
alias mkdir='mkdir -pv'
|
alias mkdir='mkdir -pv'
|
||||||
alias cp='acp -graiv'
|
alias cp='cp -raiv'
|
||||||
alias rm='rm -Iv'
|
alias rm='rm -Iv'
|
||||||
alias ln='ln -iv'
|
alias ln='ln -iv'
|
||||||
alias rename='rename -v'
|
alias rename='rename -v'
|
||||||
alias mount='mount -v | column -t'
|
alias mount='mount -v'
|
||||||
alias umount='umount -v'
|
alias umount='umount -v'
|
||||||
|
|
||||||
# Con opciones por defecto
|
# Con opciones por defecto
|
||||||
alias cat='bat --color=always --terminal-width=-10'
|
alias cat='bat --color=always --terminal-width=-10'
|
||||||
alias buscar="rg --files --color='always' --heading --line-number --no-messages --no-ignore --hidden --follow --smart-case --glob '!.git/' --glob '!node_modules/' --regexp"
|
|
||||||
alias ncdu='ncdu --color dark -rr -x --exclude .git --exclude node_modules'
|
alias ncdu='ncdu --color dark -rr -x --exclude .git --exclude node_modules'
|
||||||
alias ls='ls -pvx --color=always --group-directories-first'
|
alias ls='ls -Ft --color=always --group-directories-first'
|
||||||
alias ll='ls -Ft --color=always --group-directories-first'
|
alias ll='ls -apvx --color=always --group-directories-first'
|
||||||
alias lt='ls -coghpFAB --group-directories-first --time-style=+"%d-%m-%Y %H:%M"'
|
alias lt='ls -coghpFAB --group-directories-first --time-style=+"%d-%m-%Y %H:%M"'
|
||||||
alias grep='grep --color=tty -d skip'
|
alias grep='grep --color=tty -d skip'
|
||||||
|
alias ccat="highlight --out-format=ansi"
|
||||||
alias sgrep='grep -R -n -H -C 5 --exclude-dir={.git,.svn,CVS} '
|
alias sgrep='grep -R -n -H -C 5 --exclude-dir={.git,.svn,CVS} '
|
||||||
alias dmesg='dmesg --color=always'
|
alias dmesg='dmesg --color=always'
|
||||||
alias tree='tree -CAFa -I "CVS|*.*.package|.svn|.git|.hg|node_modules" --dirsfirst'
|
alias tree='tree -CAFa -I "CVS|*.*.package|.svn|.git|.hg|node_modules" --dirsfirst'
|
||||||
|
@ -66,6 +63,7 @@ alias dirs='dirs -v -p'
|
||||||
alias dfc='dfc -dmT'
|
alias dfc='dfc -dmT'
|
||||||
alias diff='diff --color=auto'
|
alias diff='diff --color=auto'
|
||||||
alias dif='diff-so-fancy | less --tabs=1,5 -SRX'
|
alias dif='diff-so-fancy | less --tabs=1,5 -SRX'
|
||||||
|
alias atl='atool --each --extract'
|
||||||
|
|
||||||
# Comandos
|
# Comandos
|
||||||
alias sudo='sudo '
|
alias sudo='sudo '
|
||||||
|
@ -75,7 +73,9 @@ alias pwn='chmod +x'
|
||||||
alias ta='tmux attach -t'
|
alias ta='tmux attach -t'
|
||||||
alias tn='tmux new-session -s'
|
alias tn='tmux new-session -s'
|
||||||
alias tk='tmux kill-session -t'
|
alias tk='tmux kill-session -t'
|
||||||
alias tsq='kill -9 transmission-daemon'
|
alias tsq='pkill transmission-daemon'
|
||||||
alias tsl='transmission-remote --list'
|
alias tsl='transmission-remote --list'
|
||||||
alias tsx='transmission-remote --remove-and-delete -t'
|
alias tsx='transmission-remote --remove-and-delete -t'
|
||||||
alias tsr='transmission-remote --remove -t'
|
alias tsr='transmission-remote --remove -t'
|
||||||
|
alias jamachi='systemctl start logmein-hamachi.service'
|
||||||
|
alias jamacho='systemctl stop logmein-hamachi.service'
|
|
@ -0,0 +1,218 @@
|
||||||
|
export LF_ICONS="\
|
||||||
|
di=:\
|
||||||
|
fi=:\
|
||||||
|
ln=:\
|
||||||
|
or=:\
|
||||||
|
ex=:\
|
||||||
|
.git=:\
|
||||||
|
Desktop=:\
|
||||||
|
Documents=:\
|
||||||
|
Downloads=:\
|
||||||
|
Music=:\
|
||||||
|
Pictures=:\
|
||||||
|
Public=:\
|
||||||
|
Templates=:\
|
||||||
|
Videos=:\
|
||||||
|
mail=:\
|
||||||
|
.mail=:\
|
||||||
|
.cache=:\
|
||||||
|
.config=:\
|
||||||
|
trash=:\
|
||||||
|
Trash=:\
|
||||||
|
bin=:\
|
||||||
|
hexagons=ﯟ:\
|
||||||
|
.Xdefaults=:\
|
||||||
|
.Xresources=:\
|
||||||
|
.bashprofile=:\
|
||||||
|
.zprofile=:\
|
||||||
|
.bashrc=:\
|
||||||
|
.zshrc=:\
|
||||||
|
.zshenv=:\
|
||||||
|
.dmrc=:\
|
||||||
|
.ds_store=:\
|
||||||
|
.fasd=:\
|
||||||
|
.gitconfig=:\
|
||||||
|
.gitignore=:\
|
||||||
|
.jack-settings=:\
|
||||||
|
.mime.types=:\
|
||||||
|
.nvidia-settings-rc=:\
|
||||||
|
.pam_environment=:\
|
||||||
|
.profile=:\
|
||||||
|
.recently-used=:\
|
||||||
|
.selected_editor=:\
|
||||||
|
.vimrc=:\
|
||||||
|
.xinputrc=:\
|
||||||
|
.xserverrc=:\
|
||||||
|
config=:\
|
||||||
|
dropbox=:\
|
||||||
|
exact-match-case-sensitive-1.txt=X1:\
|
||||||
|
exact-match-case-sensitive-2=X2:\
|
||||||
|
favicon.ico=:\
|
||||||
|
gruntfile.coffee=:\
|
||||||
|
gruntfile.js=:\
|
||||||
|
gruntfile.ls=:\
|
||||||
|
gulpfile.coffee=:\
|
||||||
|
gulpfile.js=:\
|
||||||
|
gulpfile.ls=:\
|
||||||
|
ini=:\
|
||||||
|
ledger=:\
|
||||||
|
license=:\
|
||||||
|
mimeapps.list=:\
|
||||||
|
node_modules=:\
|
||||||
|
procfile=:\
|
||||||
|
react.jsx=:\
|
||||||
|
user-dirs.dirs=:\
|
||||||
|
Makefile=:\
|
||||||
|
TODO=:\
|
||||||
|
LICENSE=:\
|
||||||
|
COPYING=:\
|
||||||
|
*.7z=:\
|
||||||
|
*.ai=:\
|
||||||
|
*.apk=:\
|
||||||
|
*.avi=:\
|
||||||
|
*.bat=:\
|
||||||
|
*.bmp=:\
|
||||||
|
*.bz2=:\
|
||||||
|
*.c=ﭰ:\
|
||||||
|
*.c++=ﭱ:\
|
||||||
|
*.cab=:\
|
||||||
|
*.cbr=:\
|
||||||
|
*.cbz=:\
|
||||||
|
*.cc=ﭰ:\
|
||||||
|
*.clj=:\
|
||||||
|
*.cljc=:\
|
||||||
|
*.cljs=:\
|
||||||
|
*.coffee=:\
|
||||||
|
*.conf=:\
|
||||||
|
*.cp=ﭰ:\
|
||||||
|
*.cpio=:\
|
||||||
|
*.cpp=ﭱ:\
|
||||||
|
*.css=:\
|
||||||
|
*.cxx=ﭰ:\
|
||||||
|
*.d=:\
|
||||||
|
*.dart=:\
|
||||||
|
*.db=:\
|
||||||
|
*.deb=:\
|
||||||
|
*.diff=:\
|
||||||
|
*.dump=:\
|
||||||
|
*.edn=:\
|
||||||
|
*.ejs=:\
|
||||||
|
*.epub=:\
|
||||||
|
*.erl=:\
|
||||||
|
*.exe=:\
|
||||||
|
*.f#=:\
|
||||||
|
*.fish=:\
|
||||||
|
*.flac=:\
|
||||||
|
*.flv=:\
|
||||||
|
*.fs=:\
|
||||||
|
*.fsi=:\
|
||||||
|
*.fsscript=:\
|
||||||
|
*.fsx=:\
|
||||||
|
*.gem=:\
|
||||||
|
*.gif=:\
|
||||||
|
*.go=:\
|
||||||
|
*.gz=:\
|
||||||
|
*.gzip=:\
|
||||||
|
*.hbs=:\
|
||||||
|
*.hrl=:\
|
||||||
|
*.hs=:\
|
||||||
|
*.htm=:\
|
||||||
|
*.html=:\
|
||||||
|
*.ico=:\
|
||||||
|
*.ini=:\
|
||||||
|
*.java=:\
|
||||||
|
*.jl=:\
|
||||||
|
*.jpeg=:\
|
||||||
|
*.jpg=:\
|
||||||
|
*.js=:\
|
||||||
|
*.json=:\
|
||||||
|
*.jsx=:\
|
||||||
|
*.less=:\
|
||||||
|
*.lha=:\
|
||||||
|
*.lhs=:\
|
||||||
|
*.log=:\
|
||||||
|
*.lua=:\
|
||||||
|
*.lzh=:\
|
||||||
|
*.lzma=:\
|
||||||
|
*.m4a=:\
|
||||||
|
*.markdown=:\
|
||||||
|
*.md=:\
|
||||||
|
*.mkv=:\
|
||||||
|
*.ml=λ:\
|
||||||
|
*.mli=λ:\
|
||||||
|
*.mov=:\
|
||||||
|
*.mp3=:\
|
||||||
|
*.mp4=:\
|
||||||
|
*.mpeg=:\
|
||||||
|
*.mpg=:\
|
||||||
|
*.mustache=:\
|
||||||
|
*.ogg=:\
|
||||||
|
*.pdf=:\
|
||||||
|
*.php=:\
|
||||||
|
*.pl=:\
|
||||||
|
*.pm=:\
|
||||||
|
*.png=:\
|
||||||
|
*.psb=:\
|
||||||
|
*.psd=:\
|
||||||
|
*.py=:\
|
||||||
|
*.pyc=:\
|
||||||
|
*.pyd=:\
|
||||||
|
*.pyo=:\
|
||||||
|
*.rar=:\
|
||||||
|
*.rb=:\
|
||||||
|
*.rc=:\
|
||||||
|
*.rlib=:\
|
||||||
|
*.rpm=:\
|
||||||
|
*.rs=:\
|
||||||
|
*.rss=:\
|
||||||
|
*.scala=:\
|
||||||
|
*.scss=:\
|
||||||
|
*.sh=:\
|
||||||
|
*.slim=:\
|
||||||
|
*.sln=:\
|
||||||
|
*.sql=:\
|
||||||
|
*.styl=:\
|
||||||
|
*.suo=:\
|
||||||
|
*.t=:\
|
||||||
|
*.tar=:\
|
||||||
|
*.tgz=:\
|
||||||
|
*.ts=:\
|
||||||
|
*.twig=:\
|
||||||
|
*.vim=:\
|
||||||
|
*.vimrc=:\
|
||||||
|
*.wav=:\
|
||||||
|
*.webm=:\
|
||||||
|
*.xml=:\
|
||||||
|
*.xul=:\
|
||||||
|
*.xz=:\
|
||||||
|
*.yml=:\
|
||||||
|
*.zip=:\
|
||||||
|
*.zsh=:\
|
||||||
|
*.xcf=:\
|
||||||
|
*.tex=:\
|
||||||
|
*.txt=:\
|
||||||
|
*.lock=:\
|
||||||
|
*.h=ﭰ:\
|
||||||
|
*.o=:\
|
||||||
|
*.blend=:\
|
||||||
|
*.1=:\
|
||||||
|
*.jar=:\
|
||||||
|
*.desktop=:\
|
||||||
|
*.mk=:\
|
||||||
|
*.torrent=:\
|
||||||
|
*.added=:\
|
||||||
|
*.pem=:\
|
||||||
|
*.svg=:\
|
||||||
|
*.scd=:\
|
||||||
|
*.theme=:\
|
||||||
|
*.iso=:\
|
||||||
|
*.mid=:\
|
||||||
|
*.url=:\
|
||||||
|
*.part=:\
|
||||||
|
*.nfo=:\
|
||||||
|
*.pd=:\
|
||||||
|
*.ttf=:\
|
||||||
|
*.otf=:\
|
||||||
|
*.bdf=:\
|
||||||
|
*.pcf=:\
|
||||||
|
"
|
|
@ -1,6 +0,0 @@
|
||||||
pdflatex='pdflatex -interaction=nonstopmode';
|
|
||||||
pdf_previewer = "start zathura";
|
|
||||||
pdf_update_method=0;
|
|
||||||
pdf_mode = 1;
|
|
||||||
dvi_mode = 0;
|
|
||||||
preview_continuous_mode = 1;
|
|
|
@ -0,0 +1,4 @@
|
||||||
|
#!/usr/bin/env bash
|
||||||
|
set -euf -o pipefail
|
||||||
|
|
||||||
|
fd --type file --color=always . ~/.local/bin -d=1 | fzf -m --cycle --preview='bat --color=always {}' --height='45%' --select-1 --exit-0 | xargs -r "$EDITOR"
|
|
@ -1,7 +1,7 @@
|
||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
set -euf -o pipefail
|
set -euf -o pipefail
|
||||||
|
|
||||||
youtube-dl --add-metadata -icx --no-cache-dir --no-call-home --audio-format mp3 --audio-quality 0 --prefer-ffmpeg --no-post-overwrites --geo-bypass -o "$HOME/Music/Albums/%(artist)s/%(album)s/%(artist)s - %(album)s - %(track_number)d%(track)s.%(ext)s" "$1"
|
youtube-dl --add-metadata -icx --no-cache-dir --no-call-home --audio-format mp3 --audio-quality 0 --prefer-ffmpeg --no-post-overwrites --geo-bypass -o "/mnt/remote/%(artist)s/%(album)s/%(artist)s - %(album)s - %(track_number)d%(track)s.%(ext)s" "$1"
|
||||||
|
|
||||||
echo "Trying to get cover..."
|
echo "Trying to get cover..."
|
||||||
HTML_TEMP=$(mktemp)
|
HTML_TEMP=$(mktemp)
|
||||||
|
@ -9,4 +9,4 @@ curl -s "$1" > "$HTML_TEMP"
|
||||||
titulo=$(grep -Po "<title>.*</title>" "$HTML_TEMP" | sed 's/<[^>]*>//g')
|
titulo=$(grep -Po "<title>.*</title>" "$HTML_TEMP" | sed 's/<[^>]*>//g')
|
||||||
disco=${titulo% | *}
|
disco=${titulo% | *}
|
||||||
grupo=${titulo#* | }
|
grupo=${titulo#* | }
|
||||||
sed -n '/image_/s/.*rel="image_src"\s\+href="\([^"]\+\).*/\1/p' "$HTML_TEMP" | xargs -r curl -s --create-dirs -o "$HOME/Music/Albums/${grupo}/${disco}/cover.jpg" && echo "Got it" || echo "Failed :("
|
sed -n '/image_/s/.*rel="image_src"\s\+href="\([^"]\+\).*/\1/p' "$HTML_TEMP" | xargs -r curl -s --create-dirs -o "/mnt/remote/${grupo}/${disco}/cover.jpg" && echo "Got it" || echo "Failed :("
|
|
@ -0,0 +1,19 @@
|
||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
# xrdb
|
||||||
|
get_xrdb() {
|
||||||
|
xrdb -query | grep "$1" | awk '{print $2}' | tail -n1
|
||||||
|
}
|
||||||
|
|
||||||
|
outer="$(get_xrdb color0)" # outer
|
||||||
|
inner1="$(get_xrdb color4)" # focused
|
||||||
|
inner2="$(get_xrdb color8)" # normal
|
||||||
|
|
||||||
|
draw() { chwb2 -I "$i" -O "$o" -i "2" -o "8" $@ 2> /dev/null; }
|
||||||
|
|
||||||
|
# initial draw, and then subscribe to events
|
||||||
|
{ echo; bspc subscribe node_geometry node_focus; } |
|
||||||
|
while read -r _; do
|
||||||
|
i=$inner1 o=$outer draw "$(targets focused)"
|
||||||
|
i=$inner2 o=$outer draw "$(targets normal)"
|
||||||
|
done
|
|
@ -3,4 +3,4 @@ set -euf -o pipefail
|
||||||
|
|
||||||
notify-send -u urgent -i ~/Pictures/.icn/control.png "Tres meses han pasado..." "Es hora de limpiar el cache"
|
notify-send -u urgent -i ~/Pictures/.icn/control.png "Tres meses han pasado..." "Es hora de limpiar el cache"
|
||||||
sleep 10s
|
sleep 10s
|
||||||
termite --name=flota -e paccache -rk1 && yay -Sca
|
st --class=flota -e paccache -rk1 && yay -Sca
|
|
@ -2,7 +2,7 @@
|
||||||
set -euf -o pipefail
|
set -euf -o pipefail
|
||||||
|
|
||||||
case $1 in
|
case $1 in
|
||||||
on) simple-mtpfs --device 1 ~/cel/ ;;
|
on) simple-mtpfs --device 1 /mnt/cel/ ;;
|
||||||
off) fusermount -u ~/cel/ ;;
|
off) fusermount -u /mnt/cel/ ;;
|
||||||
*) echo "Can't help you with that" ;;
|
*) echo "Can't help you with that" ;;
|
||||||
esac
|
esac
|
|
@ -6,23 +6,19 @@ function () {
|
||||||
'nvim' '~/.config/nvim/init.vim'
|
'nvim' '~/.config/nvim/init.vim'
|
||||||
'lf' '~/.config/lf/lfrc'
|
'lf' '~/.config/lf/lfrc'
|
||||||
'mpv' '~/.config/mpv/mpv.conf'
|
'mpv' '~/.config/mpv/mpv.conf'
|
||||||
'xres' '~/.Xresources'
|
'xres' '~/.config/X11/xresources'
|
||||||
'rss' '~/.config/newsboat/config'
|
|
||||||
'wm' '~/.config/bspwm/bspwmrc'
|
'wm' '~/.config/bspwm/bspwmrc'
|
||||||
'keys' '~/.config/sxhkd/sxhkdrc'
|
'keys' '~/.config/sxhkd/sxhkdrc'
|
||||||
'correo' '~/.config/mutt/muttrc'
|
'correo' '~/.config/mutt/muttrc'
|
||||||
'shell' '~/.zshrc'
|
'shell' '~/.config/zsh/.zshrc'
|
||||||
'dunst' '~/.config/dunst/dunstrc'
|
'dunst' '~/.config/dunst/dunstrc'
|
||||||
'term' '~/.config/termite/config'
|
|
||||||
'ranger' '~/.config/ranger/rc.conf'
|
'ranger' '~/.config/ranger/rc.conf'
|
||||||
'music' '~/.config/ncmpcpp/config'
|
'music' '~/.config/ncmpcpp/config'
|
||||||
'tmux' '~/.tmux.conf'
|
'tmux' '~/.tmux.conf'
|
||||||
'xinit' '~/.xinitrc'
|
'xinit' '~/.xinitrc'
|
||||||
'urls' '~/.config/newsboat/urls'
|
|
||||||
'alias' '~/.config/zsh/aliases.plugin.zsh'
|
'alias' '~/.config/zsh/aliases.plugin.zsh'
|
||||||
'compose' '~/.config/compton.conf'
|
'compose' '~/.config/picom.conf'
|
||||||
'env' '~/.zshenv'
|
'env' '~/.zshenv'
|
||||||
'reddit' '~/.config/rtv/rtv.cfg'
|
|
||||||
)
|
)
|
||||||
|
|
||||||
local selected_bookmark
|
local selected_bookmark
|
|
@ -1,9 +1,10 @@
|
||||||
#!/usr/bin/env sh
|
#!/bin/sh
|
||||||
|
|
||||||
pgrep -u "$USER" >/dev/null || exit
|
pgrep -u "$USER" >/dev/null || { echo "$USER not logged in; sync will not run."; exit ;}
|
||||||
pgrep -x mbsync >/dev/null && exit
|
pgrep -x mbsync >/dev/null && { echo "mbsync is already running." ; exit ;}
|
||||||
ping -q -c 1 1.1.1.1 > /dev/null || exit
|
ping -q -c 1 1.1.1.1 > /dev/null || { echo "No internet connection detected."; exit ;}
|
||||||
|
|
||||||
|
DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/$(id -u)/bus
|
||||||
export DISPLAY=:0.0
|
export DISPLAY=:0.0
|
||||||
|
|
||||||
syncandnotify() {
|
syncandnotify() {
|
||||||
|
@ -16,7 +17,7 @@ syncandnotify() {
|
||||||
# Extract subject and sender from mail.
|
# Extract subject and sender from mail.
|
||||||
from=$(awk '/^From: / && ++n ==1,/^\<.*\>:/' "$file" | perl -CS -MEncode -ne 'print decode("MIME-Header", $_)' | awk '{ $1=""; if (NF>=3)$NF=""; print $0 }' | sed 's/^[[:blank:]]*[\"'\''\<]*//;s/[\"'\''\>]*[[:blank:]]*$//')
|
from=$(awk '/^From: / && ++n ==1,/^\<.*\>:/' "$file" | perl -CS -MEncode -ne 'print decode("MIME-Header", $_)' | awk '{ $1=""; if (NF>=3)$NF=""; print $0 }' | sed 's/^[[:blank:]]*[\"'\''\<]*//;s/[\"'\''\>]*[[:blank:]]*$//')
|
||||||
subject=$(awk '/^Subject: / && ++n == 1,/^\<.*\>: / && ++i == 2' "$file" | head -n-1 | perl -CS -MEncode -ne 'print decode("MIME-Header", $_)' | sed 's/^Subject: //' | sed 's/^{[[:blank:]]*[\"'\''\<]*//;s/[\"'\''\>]*[[:blank:]]*$//' | tr -d '\n')
|
subject=$(awk '/^Subject: / && ++n == 1,/^\<.*\>: / && ++i == 2' "$file" | head -n-1 | perl -CS -MEncode -ne 'print decode("MIME-Header", $_)' | sed 's/^Subject: //' | sed 's/^{[[:blank:]]*[\"'\''\<]*//;s/[\"'\''\>]*[[:blank:]]*$//' | tr -d '\n')
|
||||||
notify-send -i ~/Pictures/.icn/correo.png "New message in $acc" "$from: $subject" &
|
notify-send --app-name="mutt-wizard" -i ~/Pictures/.icn/correo.png "New message in $acc" "$from: $subject" &
|
||||||
done
|
done
|
||||||
fi
|
fi
|
||||||
}
|
}
|
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
set -euf -o pipefail
|
set -euf -o pipefail
|
||||||
|
|
||||||
FOLDER="$HOME/bin"
|
FOLDER="$HOME/.local/bin"
|
||||||
FILE="$FOLDER/$1"
|
FILE="$FOLDER/$1"
|
||||||
|
|
||||||
if [[ -f $FILE ]]; then
|
if [[ -f $FILE ]]; then
|
|
@ -0,0 +1,14 @@
|
||||||
|
#!/bin/dash
|
||||||
|
|
||||||
|
if [ "$(pgrep -cx euclid_balancer)" -gt 1 ] ; then
|
||||||
|
killall euclid_balancer && exit 0
|
||||||
|
else
|
||||||
|
|
||||||
|
bspc subscribe node_add node_remove node_state node_geometry | while read line; do
|
||||||
|
for wid in $(bspc query -N -d -n .window); do
|
||||||
|
bspc node "${wid}#@north" -B || true
|
||||||
|
bspc node "${wid}#@south" -B || true
|
||||||
|
done
|
||||||
|
done
|
||||||
|
|
||||||
|
fi
|
|
@ -35,12 +35,6 @@ c9='#12121200'
|
||||||
cA='#c4a000ff'
|
cA='#c4a000ff'
|
||||||
|
|
||||||
lock="$HOME/Pictures/lockscreen/alienlock.png"
|
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"
|
|
||||||
|
|
||||||
i3lock \
|
i3lock \
|
||||||
--image="$lock" \
|
--image="$lock" \
|
|
@ -1,11 +1,11 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
# Usage:
|
# Usage:
|
||||||
# `record`: Ask for recording type via dmenu
|
# `$0`: Ask for recording type via dmenu
|
||||||
# `record screencast`: Record both audio and screen
|
# `$0 screencast`: Record both audio and screen
|
||||||
# `record video`: Record only screen
|
# `$0 video`: Record only screen
|
||||||
# `record audio`: Record only audio
|
# `$0 audio`: Record only audio
|
||||||
# `record kill`: Kill existing recording
|
# `$0 kill`: Kill existing recording
|
||||||
#
|
#
|
||||||
# If there is already a running instance, user will be prompted to end it.
|
# If there is already a running instance, user will be prompted to end it.
|
||||||
|
|
||||||
|
@ -26,10 +26,10 @@ screencast() { \
|
||||||
-f x11grab \
|
-f x11grab \
|
||||||
-framerate 60 \
|
-framerate 60 \
|
||||||
-s "$(xdpyinfo | grep dimensions | awk '{print $2;}')" \
|
-s "$(xdpyinfo | grep dimensions | awk '{print $2;}')" \
|
||||||
-i :0.0 \
|
-i "$DISPLAY" \
|
||||||
-f alsa -ac 2 -i pulse \
|
-f alsa -ac 2 -i pulse \
|
||||||
-r 30 \
|
-r 30 \
|
||||||
-c:v libx264rgb -crf 0 -preset ultrafast -c:a aac -b:a 128k \
|
-c:v libx264rgb -crf 0 -preset ultrafast -c:a flac \
|
||||||
"$HOME/Videos/Screen/$(date '+%y%m%d-%H%M-%S').mkv" &
|
"$HOME/Videos/Screen/$(date '+%y%m%d-%H%M-%S').mkv" &
|
||||||
echo $! > /tmp/recordingpid
|
echo $! > /tmp/recordingpid
|
||||||
}
|
}
|
||||||
|
@ -50,7 +50,7 @@ jackv() {
|
||||||
-f x11grab \
|
-f x11grab \
|
||||||
-framerate 60 \
|
-framerate 60 \
|
||||||
-s "$(xdpyinfo | grep dimensions | awk '{print $2;}')" \
|
-s "$(xdpyinfo | grep dimensions | awk '{print $2;}')" \
|
||||||
-i :0.0 \
|
-i "$DISPLAY" \
|
||||||
-r 30 \
|
-r 30 \
|
||||||
-c:v libx264 -qp 0 -r 30 -c:a flac \
|
-c:v libx264 -qp 0 -r 30 -c:a flac \
|
||||||
"$HOME/Videos/Screen/$(date '+%y%m%d-%H%M-%S').mkv" &
|
"$HOME/Videos/Screen/$(date '+%y%m%d-%H%M-%S').mkv" &
|
||||||
|
@ -62,7 +62,7 @@ mute() {
|
||||||
-f x11grab \
|
-f x11grab \
|
||||||
-thread_queue_size 4096 \
|
-thread_queue_size 4096 \
|
||||||
-s "$(xdpyinfo | grep dimensions | awk '{print $2;}')" \
|
-s "$(xdpyinfo | grep dimensions | awk '{print $2;}')" \
|
||||||
-i :0.0 \
|
-i "$DISPLAY" \
|
||||||
-c:v libx264 -qp 0 -r 30 \
|
-c:v libx264 -qp 0 -r 30 \
|
||||||
"$HOME/Videos/$(date '+%y%m%d-%H%M-%S').mkv" &
|
"$HOME/Videos/$(date '+%y%m%d-%H%M-%S').mkv" &
|
||||||
echo $! > /tmp/recordingpid
|
echo $! > /tmp/recordingpid
|
||||||
|
@ -73,24 +73,24 @@ audio() { \
|
||||||
-thread_queue_size 4096 \
|
-thread_queue_size 4096 \
|
||||||
-f pulse -i default \
|
-f pulse -i default \
|
||||||
-ac 2 -channel_layout stereo -async 1 \
|
-ac 2 -channel_layout stereo -async 1 \
|
||||||
-c:a aac -b:a 128k \
|
-c:a flac \
|
||||||
"$HOME/Music/Tape/$(date '+%y%m%d-%H%M-%S').mp3" &
|
"$HOME/Music/Tape/$(date '+%y%m%d-%H%M-%S').mp3" &
|
||||||
echo $! > /tmp/recordingpid
|
echo $! > /tmp/recordingpid
|
||||||
}
|
}
|
||||||
|
|
||||||
askrecording() { \
|
askrecording() { \
|
||||||
choice=$(printf "screencast\\nvideo\\naudio\\njackv\\njacka" | dmenu -i -p "Select recording style:")
|
choice=$(printf "screencast\\nvideo\\naudio\\njack video\\njack audio" | dmenu -i -p "Select recording style ")
|
||||||
case "$choice" in
|
case "$choice" in
|
||||||
screencast) screencast;;
|
screencast) screencast;;
|
||||||
video) mute;;
|
video) mute;;
|
||||||
audio) audio;;
|
audio) audio;;
|
||||||
jackv) jackv;;
|
"jack video") jackv;;
|
||||||
jacka) jacka;;
|
"jack audio") jacka;;
|
||||||
esac
|
esac
|
||||||
}
|
}
|
||||||
|
|
||||||
asktoend() { \
|
asktoend() { \
|
||||||
response=$(printf "No\\nYes" | dmenu -i -p "Recording still active. End recording?") &&
|
response=$(printf "No\\nYes" | dmenu -i -p "Recording still active. End recording? ") &&
|
||||||
[ "$response" = "Yes" ] && killrecording
|
[ "$response" = "Yes" ] && killrecording
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -98,8 +98,8 @@ case "$1" in
|
||||||
screencast) screencast;;
|
screencast) screencast;;
|
||||||
video) mute;;
|
video) mute;;
|
||||||
audio) audio;;
|
audio) audio;;
|
||||||
jacka) jacka;;
|
"jack video") jackv;;
|
||||||
jackv) jackv;;
|
"jack audio") jacka;;
|
||||||
kill) killrecording;;
|
kill) killrecording;;
|
||||||
*) ([ -f /tmp/recordingpid ] && asktoend && exit) || askrecording;;
|
*) ([ -f /tmp/recordingpid ] && asktoend && exit) || askrecording;;
|
||||||
esac
|
esac
|
|
@ -0,0 +1,20 @@
|
||||||
|
#!/usr/bin/env bash
|
||||||
|
set -euf -o pipefail
|
||||||
|
|
||||||
|
shutdown="shutdown"
|
||||||
|
reboot="reboot"
|
||||||
|
suspend="suspend"
|
||||||
|
lock="lock"
|
||||||
|
log_out="log out"
|
||||||
|
|
||||||
|
options="$shutdown\n$reboot\n$suspend\n$lock\n$log_out"
|
||||||
|
|
||||||
|
chosen="$(echo -e "$options" | dmenu -i -p "⏻ ")"
|
||||||
|
case $chosen in
|
||||||
|
$shutdown) systemctl poweroff;;
|
||||||
|
$reboot) systemctl reboot;;
|
||||||
|
$suspend) systemctl suspend;;
|
||||||
|
$lock) exeflock4;;
|
||||||
|
$log_out) bspc quit 1;;
|
||||||
|
*) exit 0;;
|
||||||
|
esac
|
|
@ -1,10 +1,9 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
case $1 in
|
case $1 in
|
||||||
zsh) source ~/.zshrc ;;
|
zsh) source ~/.config/zsh/.zshrc ;;
|
||||||
fonts) fc-cache -v -f ;;
|
fonts) fc-cache -v -f ;;
|
||||||
keys) pkill -USR1 -x sxhkd ;;
|
keys) pkill -USR1 -x sxhkd ;;
|
||||||
xres) xrdb ~/.Xresources ;;
|
xres) xrdb ~/.config/X11/xresources ;;
|
||||||
bar) ~/.config/polybar/./launch.sh ;;
|
|
||||||
*) echo "Can't help you with that" ;;
|
*) echo "Can't help you with that" ;;
|
||||||
esac
|
esac
|
|
@ -42,7 +42,7 @@ target="$(abspath "$1")"
|
||||||
count="$(listfiles | grep -a -m 1 -ZznF "$target" | cut -d: -f1)"
|
count="$(listfiles | grep -a -m 1 -ZznF "$target" | cut -d: -f1)"
|
||||||
|
|
||||||
if [ -n "$count" ]; then
|
if [ -n "$count" ]; then
|
||||||
listfiles | xargs -0 sxiv -bpn "$count" --
|
listfiles | xargs -0 sxiv -pbn "$count" --
|
||||||
else
|
else
|
||||||
sxiv -bpq -- "$@" # fallback
|
sxiv -pbq -- "$@" # fallback
|
||||||
fi
|
fi
|
|
@ -3,7 +3,8 @@ set -euf -o pipefail
|
||||||
|
|
||||||
# CONFIG ----------------------------------------------------
|
# CONFIG ----------------------------------------------------
|
||||||
# This NEEDS to be the same as in mpd.conf
|
# This NEEDS to be the same as in mpd.conf
|
||||||
music_dir="$HOME/Music/Albums"
|
# music_dir="$HOME/Music/Albums"
|
||||||
|
music_dir="/mnt/remote"
|
||||||
|
|
||||||
# What should the covers be resized to in pixels
|
# What should the covers be resized to in pixels
|
||||||
cover_resize="100"
|
cover_resize="100"
|
|
@ -0,0 +1,8 @@
|
||||||
|
#!/bin/sh
|
||||||
|
#
|
||||||
|
# output focused / unfocused windows
|
||||||
|
|
||||||
|
case $1 in
|
||||||
|
focused) bspc query -N -n .local.focused.\!fullscreen;;
|
||||||
|
normal) bspc query -N -n .local.\!focused.\!fullscreen
|
||||||
|
esac
|
|
@ -1,5 +1,4 @@
|
||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
set -euf -o pipefail
|
|
||||||
|
|
||||||
[[ -n "$TMUX" ]] && change="switch-client" || change="attach-session"
|
[[ -n "$TMUX" ]] && change="switch-client" || change="attach-session"
|
||||||
if [ "$@" ]; then
|
if [ "$@" ]; then
|
|
@ -0,0 +1,10 @@
|
||||||
|
#!/usr/bin/env bash
|
||||||
|
set -euf -o pipefail
|
||||||
|
|
||||||
|
pgrep -x transmission-da || (transmission-daemon && notify-send "Starting transmission daemon")
|
||||||
|
|
||||||
|
sleep 8
|
||||||
|
|
||||||
|
transmission-remote -a "$@" && notify-send "🔽 Torrent added."
|
||||||
|
|
||||||
|
|
|
@ -0,0 +1,18 @@
|
||||||
|
#!/bin/zsh
|
||||||
|
|
||||||
|
icon1="/home/deadguy/Pictures/.icn/trans1.png"
|
||||||
|
icon2="/home/deadguy/Pictures/.icn/trans2.png"
|
||||||
|
|
||||||
|
killall transmission-daemon 2> /dev/null
|
||||||
|
transmission-daemon --foreground --log-info 2>&1 | while read line; do
|
||||||
|
echo $line |
|
||||||
|
grep -v "announcer.c:\|platform.c:\|announce done (tr-dht.c:" |
|
||||||
|
grep -v "Saved.*variant.c:" |
|
||||||
|
while read line; do
|
||||||
|
echo $line | grep -q "Queued for verification (verify.c:" &&
|
||||||
|
notify-send -i "$icon1" --app-name="Transmission Started" "${line#* * }"
|
||||||
|
echo $line | grep -q "changed from .Incomplete. to .Complete." &&
|
||||||
|
notify-send -i "$icon2" --app-name="Transmission Complete" "${line#* * }"
|
||||||
|
echo $line | systemd-cat --identifier="TransWrap" --priority=5
|
||||||
|
done 2>&1 > /dev/null
|
||||||
|
done&disown
|
|
@ -21,7 +21,8 @@ dmenu)
|
||||||
miniList=$(cat $file)
|
miniList=$(cat $file)
|
||||||
|
|
||||||
# Dmenu cannot draw more than 30 lines
|
# Dmenu cannot draw more than 30 lines
|
||||||
if [[ $lines -gt 30 ]]
|
lines=$(wc -l < $file)
|
||||||
|
if [[ $lines -gt 30 ]]
|
||||||
then linesDisplayed=30
|
then linesDisplayed=30
|
||||||
else linesDisplayed=$lines
|
else linesDisplayed=$lines
|
||||||
fi
|
fi
|
||||||
|
@ -33,7 +34,7 @@ dmenu)
|
||||||
linesDisplayed=1
|
linesDisplayed=1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
dmenu_cmd="rofi -lines $linesDisplayed -dmenu -p Hidden:"
|
dmenu_cmd="dmenu -b -i -l $linesDisplayed -p Hidden:"
|
||||||
|
|
||||||
# Launch dmenu
|
# Launch dmenu
|
||||||
lineNumber=$(echo "$miniList" | cut -d " " -f 3- | nl -w 3 -n rn | sed -r 's/^([ 0-9]+)[ \t]*(.*)$/\1 - \2/' | $dmenu_cmd | cut -d '-' -f -1)
|
lineNumber=$(echo "$miniList" | cut -d " " -f 3- | nl -w 3 -n rn | sed -r 's/^([ 0-9]+)[ \t]*(.*)$/\1 - \2/' | $dmenu_cmd | cut -d '-' -f -1)
|
|
@ -1,6 +1,7 @@
|
||||||
[Desktop Entry]
|
[Desktop Entry]
|
||||||
Type=Application
|
Type=Application
|
||||||
Name=Mail
|
Name=Mail
|
||||||
|
NoDisplay=true
|
||||||
Terminal=false
|
Terminal=false
|
||||||
Exec=/usr/bin/termite -e neomutt %u
|
Exec=/usr/bin/alacritty -e neomutt %u
|
||||||
MimeType=x-scheme-handler/mailto;
|
MimeType=x-scheme-handler/mailto;
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
[Desktop Entry]
|
[Desktop Entry]
|
||||||
Type=Application
|
Type=Application
|
||||||
Name=Text editor
|
Name=Text editor
|
||||||
|
NoDisplay=true
|
||||||
Exec=/usr/bin/termite --name=flota -e nvim %u
|
Exec=/usr/bin/termite --name=flota -e nvim %u
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
[Desktop Entry]
|
[Desktop Entry]
|
||||||
Type=Application
|
Type=Application
|
||||||
|
NoDisplay=true
|
||||||
Name=Torrent
|
Name=Torrent
|
||||||
Exec=tsa %U
|
Exec=tsa %U
|
||||||
|
|
|
@ -1,140 +0,0 @@
|
||||||
/**
|
|
||||||
* User: deadguy
|
|
||||||
* Copyright: deadguy
|
|
||||||
*/
|
|
||||||
|
|
||||||
configuration {
|
|
||||||
display-drun: "Activate";
|
|
||||||
display-run: "Execute";
|
|
||||||
display-window: "Switch";
|
|
||||||
sidebar-mode: true;
|
|
||||||
show-icons: true;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* global settings and color variables */
|
|
||||||
|
|
||||||
* {
|
|
||||||
background-color: #00000065;
|
|
||||||
text-color: #EFEFEF;
|
|
||||||
clearbg: #00000000;
|
|
||||||
fullbg: #080808;
|
|
||||||
selbg: #00a0e6;
|
|
||||||
actbg: #222222;
|
|
||||||
urgbg: #e53935;
|
|
||||||
winbg: #00364e;
|
|
||||||
|
|
||||||
selected-normal-foreground: @winbg;
|
|
||||||
normal-foreground: @text-color;
|
|
||||||
selected-normal-background: @actbg;
|
|
||||||
normal-background: @fullbg;
|
|
||||||
|
|
||||||
selected-urgent-foreground: @fullbg;
|
|
||||||
urgent-foreground: @text-color;
|
|
||||||
selected-urgent-background: @urgbg;
|
|
||||||
urgent-background: @urgbg;
|
|
||||||
|
|
||||||
selected-active-foreground: @fullbg;
|
|
||||||
active-foreground: @text-color;
|
|
||||||
selected-active-background: @text-color;
|
|
||||||
active-background: @winbg;
|
|
||||||
|
|
||||||
columns: 1;
|
|
||||||
line-margin: 2;
|
|
||||||
line-padding: 2;
|
|
||||||
margin: 0;
|
|
||||||
padding: 0;
|
|
||||||
separator-style: "none";
|
|
||||||
hide-scrollbar: "true";
|
|
||||||
font: "SF Pro Text 12";
|
|
||||||
}
|
|
||||||
|
|
||||||
window {
|
|
||||||
padding: 5px;
|
|
||||||
width: 30%;
|
|
||||||
height: 70%;
|
|
||||||
margin: 0 0 0 0;
|
|
||||||
children: [mainbox];
|
|
||||||
}
|
|
||||||
|
|
||||||
mainbox {
|
|
||||||
background-color: @fullbg;
|
|
||||||
children: [inputbar, listview, mode-switcher];
|
|
||||||
spacing: 10px;
|
|
||||||
padding: 30px 0 0 0;
|
|
||||||
border: 1px;
|
|
||||||
border-color: @clearbg;
|
|
||||||
}
|
|
||||||
|
|
||||||
listview {
|
|
||||||
background-color: @clearbg;
|
|
||||||
fixed-height: 0;
|
|
||||||
border: 0;
|
|
||||||
spacing: 5px;
|
|
||||||
scrollbar: false;
|
|
||||||
padding: 10px;
|
|
||||||
}
|
|
||||||
|
|
||||||
inputbar {
|
|
||||||
children: [ entry ];
|
|
||||||
background-color: @clearbg;
|
|
||||||
padding: 0 15px;
|
|
||||||
}
|
|
||||||
|
|
||||||
entry {
|
|
||||||
background-color: @clearbg;
|
|
||||||
spacing: 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
button { padding: 5px; }
|
|
||||||
|
|
||||||
button selected {
|
|
||||||
background-color: @selbg;
|
|
||||||
text-color: @fullbg;
|
|
||||||
}
|
|
||||||
|
|
||||||
element {
|
|
||||||
background-color: @clearbg;
|
|
||||||
border-radius: 15px;
|
|
||||||
border: 0;
|
|
||||||
padding: 4px;
|
|
||||||
}
|
|
||||||
|
|
||||||
element.normal.urgent {
|
|
||||||
background-color: @urgent-background;
|
|
||||||
text-color: @urgent-foreground;
|
|
||||||
}
|
|
||||||
|
|
||||||
element.normal.active {
|
|
||||||
background-color: @active-background;
|
|
||||||
text-color: @active-foreground;
|
|
||||||
}
|
|
||||||
|
|
||||||
element.selected.normal {
|
|
||||||
background-color: @selbg;
|
|
||||||
text-color: @fullbg;
|
|
||||||
}
|
|
||||||
|
|
||||||
element.selected.urgent {
|
|
||||||
background-color: @selected-urgent-background;
|
|
||||||
text-color: @selected-urgent-foreground;
|
|
||||||
}
|
|
||||||
|
|
||||||
element.selected.active {
|
|
||||||
background-color: @selected-active-background;
|
|
||||||
text-color: @selected-active-foreground;
|
|
||||||
}
|
|
||||||
|
|
||||||
element.alternate.normal {
|
|
||||||
background-color: @normal-background;
|
|
||||||
text-color: @normal-foreground;
|
|
||||||
}
|
|
||||||
|
|
||||||
element.alternate.urgent {
|
|
||||||
background-color: @urgent-background;
|
|
||||||
text-color: @urgent-foreground;
|
|
||||||
}
|
|
||||||
|
|
||||||
element.alternate.active {
|
|
||||||
background-color: @active-background;
|
|
||||||
text-color: @active-foreground;
|
|
||||||
}
|
|
|
@ -1,111 +0,0 @@
|
||||||
/**
|
|
||||||
* User: deadguy
|
|
||||||
* Copyright: deadguy
|
|
||||||
*/
|
|
||||||
|
|
||||||
* {
|
|
||||||
background-color: #121212;
|
|
||||||
foreground: #e0d0c3;
|
|
||||||
selbg: #039be5;
|
|
||||||
actbg: #505050;
|
|
||||||
urgbg: #e53935;
|
|
||||||
|
|
||||||
selected-normal-foreground: @background-color;
|
|
||||||
normal-foreground: @foreground;
|
|
||||||
selected-normal-background: @selbg;
|
|
||||||
normal-background: @background-color;
|
|
||||||
|
|
||||||
selected-urgent-foreground: @background-color;
|
|
||||||
urgent-foreground: @foreground;
|
|
||||||
selected-urgent-background: @urgbg;
|
|
||||||
urgent-background: @background-color;
|
|
||||||
|
|
||||||
selected-active-foreground: @background-color;
|
|
||||||
active-foreground: @foreground;
|
|
||||||
selected-active-background: @actbg;
|
|
||||||
active-background: @background-color;
|
|
||||||
font: "SF Pro Text 10";
|
|
||||||
}
|
|
||||||
|
|
||||||
window {
|
|
||||||
anchor: northwest;
|
|
||||||
width: 100%;
|
|
||||||
location: northwest;
|
|
||||||
margin: 0;
|
|
||||||
padding: 0;
|
|
||||||
children: [ horibox ];
|
|
||||||
}
|
|
||||||
|
|
||||||
horibox {
|
|
||||||
orientation: horizontal;
|
|
||||||
children: [ prompt,entry,listview ];
|
|
||||||
}
|
|
||||||
|
|
||||||
listview {
|
|
||||||
spacing: 5px 10px;
|
|
||||||
padding: 0px 10px;
|
|
||||||
layout: horizontal;
|
|
||||||
lines: 100;
|
|
||||||
}
|
|
||||||
|
|
||||||
entry {
|
|
||||||
expand: false;
|
|
||||||
width: 20em;
|
|
||||||
text-color: @normal-foreground;
|
|
||||||
vertical-align: 1;
|
|
||||||
padding: 5px;
|
|
||||||
}
|
|
||||||
|
|
||||||
element { padding: 5px; }
|
|
||||||
|
|
||||||
element.normal.normal {
|
|
||||||
background-color: @normal-background;
|
|
||||||
text-color: @normal-foreground;
|
|
||||||
}
|
|
||||||
|
|
||||||
element.normal.urgent {
|
|
||||||
background-color: @urgent-background;
|
|
||||||
text-color: @urgent-foreground;
|
|
||||||
}
|
|
||||||
|
|
||||||
element.normal.active {
|
|
||||||
background-color: @active-background;
|
|
||||||
text-color: @active-foreground;
|
|
||||||
}
|
|
||||||
|
|
||||||
element.selected.normal {
|
|
||||||
background-color: @selected-normal-background;
|
|
||||||
text-color: @selected-normal-foreground;
|
|
||||||
}
|
|
||||||
|
|
||||||
element.selected.urgent {
|
|
||||||
background-color: @selected-urgent-background;
|
|
||||||
text-color: @selected-urgent-foreground;
|
|
||||||
}
|
|
||||||
|
|
||||||
element.selected.active {
|
|
||||||
background-color: @selected-active-background;
|
|
||||||
text-color: @selected-active-foreground;
|
|
||||||
}
|
|
||||||
|
|
||||||
element.alternate.normal {
|
|
||||||
background-color: @anormal-background;
|
|
||||||
text-color: @normal-foreground;
|
|
||||||
}
|
|
||||||
|
|
||||||
element.alternate.urgent {
|
|
||||||
background-color: @urgent-background;
|
|
||||||
text-color: @urgent-foreground;
|
|
||||||
}
|
|
||||||
|
|
||||||
element.alternate.active {
|
|
||||||
background-color: @active-background;
|
|
||||||
text-color: @active-foreground;
|
|
||||||
}
|
|
||||||
|
|
||||||
prompt {
|
|
||||||
padding: 5px 7px;
|
|
||||||
margin: 0;
|
|
||||||
text-color: @background-color;
|
|
||||||
background-color: @selected-normal-background;
|
|
||||||
}
|
|
|
@ -1,139 +0,0 @@
|
||||||
/**
|
|
||||||
* User: deadguy
|
|
||||||
* Copyright: deadguy
|
|
||||||
*/
|
|
||||||
|
|
||||||
configuration {
|
|
||||||
display-drun: "Activate";
|
|
||||||
display-run: "Execute";
|
|
||||||
display-window: "Switch";
|
|
||||||
show-icons: false;
|
|
||||||
sidebar-mode: true;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* global settings and color variables */
|
|
||||||
|
|
||||||
* {
|
|
||||||
background-color: #080808;
|
|
||||||
text-color: #b6b6b6;
|
|
||||||
selbg: #c4a000;
|
|
||||||
actbg: #222222;
|
|
||||||
urgbg: #e53935;
|
|
||||||
winbg: #f69f3e;
|
|
||||||
|
|
||||||
selected-normal-foreground: @winbg;
|
|
||||||
normal-foreground: @text-color;
|
|
||||||
selected-normal-background: @actbg;
|
|
||||||
normal-background: @background-color;
|
|
||||||
|
|
||||||
selected-urgent-foreground: @background-color;
|
|
||||||
urgent-foreground: @text-color;
|
|
||||||
selected-urgent-background: @urgbg;
|
|
||||||
urgent-background: @background-color;
|
|
||||||
|
|
||||||
selected-active-foreground: @winbg;
|
|
||||||
active-foreground: @actbg;
|
|
||||||
selected-active-background: @actbg;
|
|
||||||
active-background: @selbg;
|
|
||||||
|
|
||||||
line-margin: 2;
|
|
||||||
line-padding: 2;
|
|
||||||
separator-style: "none";
|
|
||||||
hide-scrollbar: "true";
|
|
||||||
font: "Noto Sans 10";
|
|
||||||
margin: 0;
|
|
||||||
padding: 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
window {
|
|
||||||
location: east;
|
|
||||||
anchor: east;
|
|
||||||
height: 100%;
|
|
||||||
width: 18%;
|
|
||||||
orientation: horizontal;
|
|
||||||
children: [mainbox];
|
|
||||||
border: 0 0 0 1px solid;
|
|
||||||
border-color: @active-background;
|
|
||||||
margin: 0 0 0 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
mainbox {
|
|
||||||
spacing: 0.8em;
|
|
||||||
children: [ entry,listview,mode-switcher ];
|
|
||||||
}
|
|
||||||
|
|
||||||
button { padding: 5px 2px; }
|
|
||||||
|
|
||||||
button selected {
|
|
||||||
background-color: @active-background;
|
|
||||||
text-color: @background-color;
|
|
||||||
}
|
|
||||||
|
|
||||||
inputbar {
|
|
||||||
padding: 5px;
|
|
||||||
spacing: 5px;
|
|
||||||
}
|
|
||||||
|
|
||||||
listview {
|
|
||||||
spacing: 0.5em;
|
|
||||||
dynamic: false;
|
|
||||||
cycle: true;
|
|
||||||
}
|
|
||||||
|
|
||||||
element { padding: 10px; }
|
|
||||||
|
|
||||||
entry {
|
|
||||||
expand: false;
|
|
||||||
text-color: @normal-foreground;
|
|
||||||
vertical-align: 1;
|
|
||||||
padding: 5px;
|
|
||||||
}
|
|
||||||
|
|
||||||
element.normal.normal {
|
|
||||||
background-color: @normal-background;
|
|
||||||
text-color: @normal-foreground;
|
|
||||||
}
|
|
||||||
|
|
||||||
element.normal.urgent {
|
|
||||||
background-color: @urgent-background;
|
|
||||||
text-color: @urgent-foreground;
|
|
||||||
}
|
|
||||||
|
|
||||||
element.normal.active {
|
|
||||||
background-color: @active-background;
|
|
||||||
text-color: @active-foreground;
|
|
||||||
}
|
|
||||||
|
|
||||||
element.selected.normal {
|
|
||||||
background-color: @selected-normal-background;
|
|
||||||
text-color: @selected-normal-foreground;
|
|
||||||
border: 0 5px solid 0 0;
|
|
||||||
border-color: @winbg;
|
|
||||||
}
|
|
||||||
|
|
||||||
element.selected.urgent {
|
|
||||||
background-color: @selected-urgent-background;
|
|
||||||
text-color: @selected-urgent-foreground;
|
|
||||||
}
|
|
||||||
|
|
||||||
element.selected.active {
|
|
||||||
background-color: @selected-active-background;
|
|
||||||
text-color: @selected-active-foreground;
|
|
||||||
}
|
|
||||||
|
|
||||||
element.alternate.normal {
|
|
||||||
background-color: @normal-background;
|
|
||||||
text-color: @normal-foreground;
|
|
||||||
}
|
|
||||||
|
|
||||||
element.alternate.urgent {
|
|
||||||
background-color: @urgent-background;
|
|
||||||
text-color: @urgent-foreground;
|
|
||||||
}
|
|
||||||
|
|
||||||
element.alternate.active {
|
|
||||||
background-color: @active-background;
|
|
||||||
text-color: @active-foreground;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* vim: set ft=css : */
|
|
|
@ -1,8 +1,8 @@
|
||||||
# TERM
|
# TERM
|
||||||
set -g default-terminal tmux-256color
|
set -g default-terminal tmux-256color
|
||||||
set -ga terminal-overrides ",xterm-termite:Tc,xterm-256color:Tc"
|
# set -ga terminal-overrides ",xterm-termite:Tc,xterm-256color:Tc"
|
||||||
set -ga terminal-overrides ",*col*:Tc"
|
# set -ga terminal-overrides ",*col*:Tc"
|
||||||
set -ga terminal-overrides '*:Ss=\E[%p1%d q:Se=\E[ q'
|
# set -ga terminal-overrides '*:Ss=\E[%p1%d q:Se=\E[ q'
|
||||||
|
|
||||||
# Opciones basicas
|
# Opciones basicas
|
||||||
setw -gq utf8 on
|
setw -gq utf8 on
|
||||||
|
@ -196,6 +196,6 @@ bind-key -n M-\\ run-shell -b "$navigate_back"
|
||||||
# Mejor soporte para mouse
|
# Mejor soporte para mouse
|
||||||
set -g @prevent-scroll-for-fullscreen-alternate-buffer 'on'
|
set -g @prevent-scroll-for-fullscreen-alternate-buffer 'on'
|
||||||
set -g @scroll-speed-num-lines-per-scroll '3'
|
set -g @scroll-speed-num-lines-per-scroll '3'
|
||||||
run-shell ~/bin/tmux-better-mouse-mode/scroll_copy_mode.tmux
|
run-shell ~/.local/bin/tmux-better-mouse-mode/scroll_copy_mode.tmux
|
||||||
|
|
||||||
# vim: set ft=tmux:
|
# vim: set ft=tmux:
|
||||||
|
|
21
.xinitrc
21
.xinitrc
|
@ -1,12 +1,10 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
userresources=$HOME/.Xresources
|
userresources=$HOME/.config/X11/xresources
|
||||||
usermodmap=$HOME/.Xmodmap
|
usermodmap=$HOME/.config/X11/xmodmap
|
||||||
sysresources=/etc/X11/xinit/.Xresources
|
sysresources=/etc/X11/xinit/.Xresources
|
||||||
sysmodmap=/etc/X11/xinit/.Xmodmap
|
sysmodmap=/etc/X11/xinit/.Xmodmap
|
||||||
|
|
||||||
# merge in defaults and keymaps
|
|
||||||
|
|
||||||
if [ -f $sysresources ]; then
|
if [ -f $sysresources ]; then
|
||||||
xrdb -merge $sysresources
|
xrdb -merge $sysresources
|
||||||
fi
|
fi
|
||||||
|
@ -23,7 +21,6 @@ if [ -f "$usermodmap" ]; then
|
||||||
xmodmap "$usermodmap"
|
xmodmap "$usermodmap"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# start some nice programs
|
|
||||||
if [ -d /etc/X11/xinit/xinitrc.d ] ; then
|
if [ -d /etc/X11/xinit/xinitrc.d ] ; then
|
||||||
for f in /etc/X11/xinit/xinitrc.d/?*.sh ; do
|
for f in /etc/X11/xinit/xinitrc.d/?*.sh ; do
|
||||||
[ -x "$f" ] && . "$f"
|
[ -x "$f" ] && . "$f"
|
||||||
|
@ -32,14 +29,16 @@ if [ -d /etc/X11/xinit/xinitrc.d ] ; then
|
||||||
fi
|
fi
|
||||||
|
|
||||||
setxkbmap -option caps:escape
|
setxkbmap -option caps:escape
|
||||||
|
|
||||||
eval "$(/usr/bin/gnome-keyring-daemon --start --components=pkcs11,secrets,ssh)"
|
eval "$(/usr/bin/gnome-keyring-daemon --start --components=pkcs11,secrets,ssh)"
|
||||||
export SSH_AUTH_SOCK
|
export SSH_AUTH_SOCK
|
||||||
/usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1 &
|
/usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1 &
|
||||||
xsetroot -cursor_name left_ptr &
|
|
||||||
picom -b -d :0 &
|
|
||||||
sxhkd &
|
|
||||||
xfce4-power-manager &
|
|
||||||
dunst -conf ~/.config/dunst/dunstrc &
|
|
||||||
mpd &
|
mpd &
|
||||||
|
setbg &
|
||||||
|
picom -b -d :0 &
|
||||||
|
dunst -conf ~/.config/dunst/dunstrc &
|
||||||
|
unclutter &
|
||||||
|
sxhkd &
|
||||||
|
xset s 300 250
|
||||||
|
xss-lock -n dim-screen -l -- exeflock4 &
|
||||||
|
|
||||||
exec bspwm
|
exec bspwm
|
||||||
|
|
|
@ -1,3 +0,0 @@
|
||||||
#!/bin/sh
|
|
||||||
|
|
||||||
exec /usr/bin/Xorg -nolisten tcp -nolisten local "$@" vt"$XDG_VTNR"
|
|
80
.zshenv
80
.zshenv
|
@ -1,26 +1,48 @@
|
||||||
# Programas y Opciones del Sistema {{{
|
# Programas y Opciones del Sistema {{{
|
||||||
export TERMINAL="termite"
|
export TERMINAL="st"
|
||||||
export EDITOR="nvim"
|
export EDITOR="nvim"
|
||||||
export GIT_EDITOR=$EDITOR
|
export GIT_EDITOR=$EDITOR
|
||||||
export BROWSER="firefox"
|
export BROWSER="firefox"
|
||||||
export READER="zathura"
|
export READER="zathura"
|
||||||
|
export VIDEO="mpv"
|
||||||
|
export IMAGE="sxiv"
|
||||||
|
export COLORTERM="truecolor"
|
||||||
|
export OPENER="xdg-open"
|
||||||
|
export PAGER="less"
|
||||||
|
export WM="bspwm"
|
||||||
|
export FILE="lf"
|
||||||
|
|
||||||
export GREP_COLOR="0;32"
|
export GREP_COLOR="0;32"
|
||||||
export RANGER_LOAD_DEFAULT_RC="FALSE"
|
export RANGER_LOAD_DEFAULT_RC="FALSE"
|
||||||
export TIME_STYLE="long-iso"
|
export TIME_STYLE="long-iso"
|
||||||
export BLOCK_SIZE="'1"
|
export BLOCK_SIZE="'1"
|
||||||
export QUOTING_STYLE=literal
|
export QUOTING_STYLE=literal
|
||||||
export QT_QPA_PLATFORMTHEME=qt5ct
|
export QT_QPA_PLATFORMTHEME=qt5ct
|
||||||
export SSH_ASKPASS="/usr/lib/seahorse/ssh-askpass"
|
|
||||||
export GTK2_RC_FILES="$HOME/.config/gtk-2.0/gtkrc-2.0"
|
|
||||||
export NOTMUCH_CONFIG="$HOME/.config/notmuch-config"
|
|
||||||
export RTV_BROWSER="$BROWSER"
|
|
||||||
export RTV_URLVIEWER="urlscan"
|
|
||||||
export RTV_EDITOR="$EDITOR"
|
|
||||||
export MAILCAPS="$HOME/.config/mutt/mailcap"
|
|
||||||
export MANPAGER="nvim +'set filetype=man' -"
|
|
||||||
export HIGHLIGHT_OPTIONS='--out-format="ansi" --style="pablo"'
|
export HIGHLIGHT_OPTIONS='--out-format="ansi" --style="pablo"'
|
||||||
export BAT_STYLE="numbers,changes,header"
|
export BAT_STYLE="numbers,changes,header"
|
||||||
export BAT_THEME="TwoDark"
|
export BAT_THEME="TwoDark"
|
||||||
|
export SSH_ASKPASS="/usr/lib/seahorse/ssh-askpass"
|
||||||
|
|
||||||
|
export XAUTHORITY="$XDG_RUNTIME_DIR/Xauthority"
|
||||||
|
export XDG_DATA_HOME="$HOME/.local/share"
|
||||||
|
export XDG_CONFIG_HOME="$HOME/.config"
|
||||||
|
export XDG_CACHE_HOME="$HOME/.cache"
|
||||||
|
export ZDOTDIR="$HOME/.config/zsh"
|
||||||
|
export INPUTRC="$HOME/.config/inputrc"
|
||||||
|
export WGETRC="$HOME/.config/wget/wgetrc"
|
||||||
|
export GNUPGHOME="$XDG_DATA_HOME/gnupg"
|
||||||
|
export PASSWORD_STORE_DIR="$HOME/.local/share/password-store"
|
||||||
|
export GTK2_RC_FILES="$HOME/.config/gtk-2.0/gtkrc-2.0"
|
||||||
|
export NOTMUCH_CONFIG="$HOME/.config/notmuch-config"
|
||||||
|
export MAILCAPS="$HOME/.config/mutt/mailcap"
|
||||||
|
export IPYTHONDIR="$XDG_CONFIG_HOME/ipython"
|
||||||
|
export JUPYTER_CONFIG_DIR="$XDG_CONFIG_HOME/jupyter"
|
||||||
|
export PYLINTHOME="$XDG_CACHE_HOME/pylint"
|
||||||
|
export NPM_CONFIG_USERCONFIG="$XDG_CONFIG_HOME/npm/npmrc"
|
||||||
|
export NODE_REPL_HISTORY="$XDG_DATA_HOME/node_repl_history"
|
||||||
|
export WEECHAT_HOME="$XDG_CONFIG_HOME/weechat"
|
||||||
|
export RANDFILE="$XDG_DATA_HOME/rnd"
|
||||||
|
export _JAVA_OPTIONS=-Djava.util.prefs.userRoot="$XDG_CONFIG_HOME"/java
|
||||||
# }}}
|
# }}}
|
||||||
# FZF {{{
|
# FZF {{{
|
||||||
export FZF_DEFAULT_COLORS='--color=dark,fg:-1,fg+:254,bg:-1,bg+:235,hl:33,hl+:33,info:8,border:1,prompt:4,pointer:3,marker:3,spinner:8,header:6'
|
export FZF_DEFAULT_COLORS='--color=dark,fg:-1,fg+:254,bg:-1,bg+:235,hl:33,hl+:33,info:8,border:1,prompt:4,pointer:3,marker:3,spinner:8,header:6'
|
||||||
|
@ -44,37 +66,19 @@ export FZF_ALT_C_OPTS="--select-1 --exit-0"
|
||||||
export FZF_VIM_LOG=$(git config --get alias.l | awk '{$1=""; print $0;}' | tr -d '\r')
|
export FZF_VIM_LOG=$(git config --get alias.l | awk '{$1=""; print $0;}' | tr -d '\r')
|
||||||
# }}}
|
# }}}
|
||||||
# Less {{{
|
# Less {{{
|
||||||
export LESS=" \
|
export LESS=-R
|
||||||
--ignore-case \
|
export LESS_TERMCAP_mb="$(printf '%b' '[1;34m')"
|
||||||
--tilde \
|
export LESS_TERMCAP_md="$(printf '%b' '[1;32m')"
|
||||||
--chop-long-lines \
|
export LESS_TERMCAP_me="$(printf '%b' '[0m')"
|
||||||
--status-column \
|
export LESS_TERMCAP_so="$(printf '%b' '[1;33m')"
|
||||||
--LONG-PROMPT \
|
export LESS_TERMCAP_se="$(printf '%b' '[0m')"
|
||||||
--jump-target=10 \
|
export LESS_TERMCAP_us="$(printf '%b' '[14;32m')"
|
||||||
--RAW-CONTROL-CHARS \
|
export LESS_TERMCAP_ue="$(printf '%b' '[0m')"
|
||||||
--silent \
|
|
||||||
--tabs=4 \
|
|
||||||
--shift=5"
|
|
||||||
|
|
||||||
export LESSOPEN="| highlight $HIGHLIGHT_OPTIONS -- %s 2>/dev/null" # Use `highlight` program to try to highlight opened file according to its extension.
|
export LESSHISTFILE="-"
|
||||||
export LESSHISTFILE="-" # Command and search history file.
|
|
||||||
export LESSKEYRC="$HOME/.config/less/lesskey" # Path of the uncompiled lesskey file.
|
|
||||||
export LESSKEY="$LESSKEYRC.lwc" # Path of the compiled lesskey file.
|
|
||||||
export LESS_TERMCAP_md=$(tput bold; tput setaf 4) # Turn on bold mode.
|
|
||||||
export LESS_TERMCAP_me=$(tput sgr0) # Turn off all attributes.
|
|
||||||
export LESS_TERMCAP_so=$(tput bold; tput setaf 3) # Begin standout mode.
|
|
||||||
export LESS_TERMCAP_se=$(tput rmso; tput sgr0) # Exit standout mode.
|
|
||||||
export LESS_TERMCAP_us=$(tput smul; tput bold; tput setaf 250) # Begin underline mode.
|
|
||||||
export LESS_TERMCAP_ue=$(tput rmul; tput sgr0) # Exit underline mode.
|
|
||||||
export LESS_TERMCAP_mr=$(tput rev) # Turn on reverse video mode.
|
|
||||||
export LESS_TERMCAP_mh=$(tput dim) # Turn on half-bright mode.
|
|
||||||
export LESS_TERMCAP_ZN=$(tput ssubm) # Enter subscript mode.
|
|
||||||
export LESS_TERMCAP_ZV=$(tput rsubm) # End subscript mode.
|
|
||||||
export LESS_TERMCAP_ZO=$(tput ssupm) # Enter superscript mode.
|
|
||||||
export LESS_TERMCAP_ZW=$(tput rsupm) # End superscript mode.
|
|
||||||
# }}}
|
# }}}
|
||||||
# Path {{{
|
# Path {{{
|
||||||
# typeset -U path
|
typeset -U PATH path
|
||||||
path=(~/bin ~/.local/bin ~/.yarn/bin ~/.config/yarn/global/node_modules/.bin /usr/lib/surfraw $path[@])
|
path=(~/.local/bin ~/.config/yarn/bin ~/.config/yarn/global/node_modules/.bin /usr/lib/surfraw $path[@])
|
||||||
# }}}
|
# }}}
|
||||||
# vim:foldmethod=marker:foldlevel=0
|
# vim:foldmethod=marker:foldlevel=0
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
abook
|
acpid
|
||||||
alsa-utils
|
alsa-utils
|
||||||
android-tools
|
android-tools
|
||||||
android-udev
|
android-udev
|
||||||
|
@ -12,6 +12,7 @@ bat
|
||||||
bison
|
bison
|
||||||
blueman
|
blueman
|
||||||
brandr
|
brandr
|
||||||
|
broot
|
||||||
bspwm
|
bspwm
|
||||||
cadence
|
cadence
|
||||||
chafa
|
chafa
|
||||||
|
@ -65,6 +66,7 @@ hunspell-es_ar
|
||||||
i3lock-color
|
i3lock-color
|
||||||
iniparser
|
iniparser
|
||||||
inkscape
|
inkscape
|
||||||
|
innoextract
|
||||||
intel-ucode
|
intel-ucode
|
||||||
inxi
|
inxi
|
||||||
iputils
|
iputils
|
||||||
|
@ -74,6 +76,9 @@ jfsutils
|
||||||
jp2a
|
jp2a
|
||||||
jq
|
jq
|
||||||
jre11-openjdk
|
jre11-openjdk
|
||||||
|
lib32-alsa-oss
|
||||||
|
lib32-libpulse
|
||||||
|
lib32-openal
|
||||||
libmatroska
|
libmatroska
|
||||||
libzip
|
libzip
|
||||||
licenses
|
licenses
|
||||||
|
@ -81,6 +86,7 @@ linux-rt-manjaro
|
||||||
logrotate
|
logrotate
|
||||||
lrzip
|
lrzip
|
||||||
lxappearance-gtk3
|
lxappearance-gtk3
|
||||||
|
lynx
|
||||||
lzop
|
lzop
|
||||||
maim
|
maim
|
||||||
make
|
make
|
||||||
|
@ -103,15 +109,16 @@ ncdu
|
||||||
ncmpcpp
|
ncmpcpp
|
||||||
neomutt
|
neomutt
|
||||||
networkmanager
|
networkmanager
|
||||||
newsboat
|
|
||||||
nfs-utils
|
nfs-utils
|
||||||
nilfs-utils
|
nilfs-utils
|
||||||
|
nmap
|
||||||
notmuch
|
notmuch
|
||||||
noto-fonts-cjk
|
noto-fonts-cjk
|
||||||
noto-fonts-emoji
|
noto-fonts-emoji
|
||||||
ntfs-3g
|
ntfs-3g
|
||||||
offlineimap
|
offlineimap
|
||||||
os-prober
|
os-prober
|
||||||
|
ossp
|
||||||
p7zip
|
p7zip
|
||||||
pacgraph
|
pacgraph
|
||||||
pacui
|
pacui
|
||||||
|
@ -128,14 +135,16 @@ perl-term-readline-gnu
|
||||||
perl-text-charwidth
|
perl-text-charwidth
|
||||||
picom
|
picom
|
||||||
pkgbrowser
|
pkgbrowser
|
||||||
|
pkgfile
|
||||||
|
polkit-gnome
|
||||||
prettier
|
prettier
|
||||||
pulseaudio-bluetooth
|
pulseaudio-bluetooth
|
||||||
pulseaudio-jack
|
pulseaudio-jack
|
||||||
pygmentize
|
python-beautifulsoup4
|
||||||
python-glfw
|
python-glfw
|
||||||
python-language-server
|
python-language-server
|
||||||
python-lxml
|
python-lxml
|
||||||
python-matplotlib
|
python-numpy
|
||||||
python-opengl
|
python-opengl
|
||||||
python-pdoc
|
python-pdoc
|
||||||
python-pillow
|
python-pillow
|
||||||
|
@ -150,40 +159,37 @@ python-rope
|
||||||
python-setproctitle
|
python-setproctitle
|
||||||
python-virtualenv
|
python-virtualenv
|
||||||
python-wheel
|
python-wheel
|
||||||
|
python-xlib
|
||||||
qalculate-gtk
|
qalculate-gtk
|
||||||
qt5ct
|
qt5ct
|
||||||
ranger
|
ranger
|
||||||
realtime-privileges
|
realtime-privileges
|
||||||
reiserfsprogs
|
reiserfsprogs
|
||||||
ripgrep
|
ripgrep
|
||||||
rofi
|
|
||||||
rp-pppoe
|
rp-pppoe
|
||||||
rsync
|
rsync
|
||||||
rtirq
|
rtirq
|
||||||
rtv
|
|
||||||
s-nail
|
s-nail
|
||||||
sc3-plugins
|
sc3-plugins
|
||||||
|
sdl2_image
|
||||||
sdl2_mixer
|
sdl2_mixer
|
||||||
|
sdl2_ttf
|
||||||
seahorse
|
seahorse
|
||||||
shellcheck
|
shellcheck
|
||||||
smartmontools
|
smartmontools
|
||||||
source-highlight
|
source-highlight
|
||||||
spectre-meltdown-checker
|
spectre-meltdown-checker
|
||||||
|
sshfs
|
||||||
steam-manjaro
|
steam-manjaro
|
||||||
sublime-text
|
sublime-text
|
||||||
surfraw
|
surfraw
|
||||||
sxhkd
|
sxhkd
|
||||||
systemd-sysvcompat
|
systemd-sysvcompat
|
||||||
termite
|
|
||||||
texlive-fontsextra
|
|
||||||
texlive-formatsextra
|
|
||||||
texlive-latexextra
|
|
||||||
texlive-pictures
|
|
||||||
texlive-science
|
|
||||||
tidy
|
tidy
|
||||||
tmux
|
tmux
|
||||||
transmission-cli
|
transmission-cli
|
||||||
ttf-jetbrains-mono
|
ttf-jetbrains-mono
|
||||||
|
ttf-joypixels
|
||||||
typescript
|
typescript
|
||||||
udisks2
|
udisks2
|
||||||
unace
|
unace
|
||||||
|
@ -194,8 +200,8 @@ urlscan
|
||||||
usbutils
|
usbutils
|
||||||
vice
|
vice
|
||||||
vint
|
vint
|
||||||
w3m
|
|
||||||
weechat
|
weechat
|
||||||
|
wget
|
||||||
wireless_tools
|
wireless_tools
|
||||||
wmctrl
|
wmctrl
|
||||||
wmutils
|
wmutils
|
||||||
|
@ -207,7 +213,6 @@ xf86-input-evdev
|
||||||
xf86-input-synaptics
|
xf86-input-synaptics
|
||||||
xf86-video-fbdev
|
xf86-video-fbdev
|
||||||
xf86-video-intel
|
xf86-video-intel
|
||||||
xfce4-power-manager
|
|
||||||
xorg-server
|
xorg-server
|
||||||
xorg-xbacklight
|
xorg-xbacklight
|
||||||
xorg-xdpyinfo
|
xorg-xdpyinfo
|
||||||
|
@ -219,6 +224,8 @@ xorg-xkill
|
||||||
xorg-xsetroot
|
xorg-xsetroot
|
||||||
xorg-xwininfo
|
xorg-xwininfo
|
||||||
xsel
|
xsel
|
||||||
|
xss-lock
|
||||||
|
xterm
|
||||||
yapf
|
yapf
|
||||||
yay
|
yay
|
||||||
zathura-cb
|
zathura-cb
|
||||||
|
|
|
@ -1,8 +1,7 @@
|
||||||
advcp
|
|
||||||
bashmount
|
bashmount
|
||||||
bfs
|
bfs
|
||||||
cozette-otb
|
cozette-otb
|
||||||
create-react-app
|
cozette-ttf
|
||||||
figlet-fonts
|
figlet-fonts
|
||||||
gimp-paint-studio
|
gimp-paint-studio
|
||||||
gimp-plugin-akkana-git
|
gimp-plugin-akkana-git
|
||||||
|
@ -10,15 +9,20 @@ gimp-plugin-create-layer-mask-from
|
||||||
gimp-plugin-duplicate-to-another-image
|
gimp-plugin-duplicate-to-another-image
|
||||||
gimp-plugin-export-layers
|
gimp-plugin-export-layers
|
||||||
gimp-plugin-layer-via-copy-cut
|
gimp-plugin-layer-via-copy-cut
|
||||||
|
gimp-plugin-layerfx
|
||||||
gimp-plugin-saveforweb
|
gimp-plugin-saveforweb
|
||||||
gimp-plugin-scale-layer-to-image-size
|
gimp-plugin-scale-layer-to-image-size
|
||||||
git-extras
|
git-extras
|
||||||
godot
|
godot
|
||||||
|
gog-unreal-tournament-goty
|
||||||
|
j4-dmenu-desktop
|
||||||
lab
|
lab
|
||||||
lf
|
lf
|
||||||
|
logmein-hamachi
|
||||||
lscolors-git
|
lscolors-git
|
||||||
neovim-drop-in
|
neovim-drop-in
|
||||||
nerd-fonts-roboto-mono
|
nerd-fonts-roboto-mono
|
||||||
|
obs-ndi-bin
|
||||||
otf-san-francisco
|
otf-san-francisco
|
||||||
perl-extract-url
|
perl-extract-url
|
||||||
pmount
|
pmount
|
||||||
|
@ -31,7 +35,7 @@ stylelint
|
||||||
tcllib
|
tcllib
|
||||||
terminus-font-ll2-td1
|
terminus-font-ll2-td1
|
||||||
toilet-fonts
|
toilet-fonts
|
||||||
transmission-remote-cli-git
|
tremc
|
||||||
tweak-hexeditor
|
tweak-hexeditor
|
||||||
unclutter-xfixes-git
|
unclutter-xfixes-git
|
||||||
xcursor-alkano-default
|
xcursor-alkano-default
|
||||||
|
|
4
bin/ae
4
bin/ae
|
@ -1,4 +0,0 @@
|
||||||
#!/usr/bin/env bash
|
|
||||||
set -euf -o pipefail
|
|
||||||
|
|
||||||
fd --type file --color=always . ~/bin -d=1 | fzf -m --cycle --preview='bat --color=always {}' --height='45%' --select-1 --exit-0 | xargs -r "$EDITOR"
|
|
|
@ -1,4 +0,0 @@
|
||||||
#!/usr/bin/env bash
|
|
||||||
set -euf -o pipefail
|
|
||||||
|
|
||||||
ffmpeg -i "$1" -r 29.97 -vf scale=1280:-1 -vf format=yuv420p -vf crop=710:720:0:0 -c:v libx264 -c:a aac -b:a 128k "$1_cropped.mp4"
|
|
15
bin/deadcode
15
bin/deadcode
|
@ -1,15 +0,0 @@
|
||||||
#!/bin/bash
|
|
||||||
|
|
||||||
pidof python -m FoxDot || {
|
|
||||||
pkill -9 -f scsynth\ -u\ 57110\ -a\ 116\ -i\ 2\ -o\ 2\ -b\ 65536\ -n\ 32768\ -m\ 131072\ -S\ 44100\ -R\ 0\ -C\ 0\ -l\ 1
|
|
||||||
pkill -9 -f sclang\ -D\ /home/deadguy/Music/LiveCoding/foxy.scd
|
|
||||||
sleep 3s
|
|
||||||
tmux kill-session -t "Deadguy"
|
|
||||||
}
|
|
||||||
|
|
||||||
#pidof python -m FoxDot 2> /dev/null
|
|
||||||
|
|
||||||
#if [[ $? -eq 1 ]]; then
|
|
||||||
# pkill -9 -f scsynth\ -u\ 57110\ -a\ 144\ -i\ 16\ -o\ 16\ -b\ 65536\ -n\ 32768\ -m\ 131072\ -S\ 44100\ -R\ 0\ -C\ 0\ -l\ 1
|
|
||||||
# pkill -9 -f sclang\ -D\ /home/deadguy/Music/LiveCoding/foxy.scd
|
|
||||||
#fi
|
|
41
bin/extraer
41
bin/extraer
|
@ -1,41 +0,0 @@
|
||||||
#!/usr/bin/env sh
|
|
||||||
# A general, all-purpose extraction script.
|
|
||||||
#
|
|
||||||
# Default behavior: Extract archive into new directory
|
|
||||||
# Behavior with `-c` option: Extract contents into current directory
|
|
||||||
|
|
||||||
while getopts "hc" o; do case "${o}" in
|
|
||||||
c) extracthere="True" ;;
|
|
||||||
*) printf "Options:\\n -c: Extract archive into current directory rather than a new one.\\n" && exit ;;
|
|
||||||
esac done
|
|
||||||
|
|
||||||
if [ -z "$extracthere" ]; then
|
|
||||||
archive="$(readlink -f "$*")" &&
|
|
||||||
directory="$(echo "$archive" | sed 's/\.[^\/.]*$//')" &&
|
|
||||||
mkdir -p "$directory" &&
|
|
||||||
cd "$directory" || exit
|
|
||||||
else
|
|
||||||
archive="$(readlink -f "$(echo "$*" | cut -d' ' -f2)")"
|
|
||||||
fi
|
|
||||||
|
|
||||||
[ "$archive" = "" ] && printf "Give archive to extract as argument.\\n" && exit
|
|
||||||
|
|
||||||
if [ -f "$archive" ] ; then
|
|
||||||
case "$archive" in
|
|
||||||
*.tar.bz2|*.tar.xz|*.tbz2) tar xvjf "$archive" ;;
|
|
||||||
*.tar.gz|*.tgz) tar xvzf "$archive" ;;
|
|
||||||
*.lzma) unlzma "$archive" ;;
|
|
||||||
*.bz2) bunzip2 "$archive" ;;
|
|
||||||
*.rar) unrar x -ad "$archive" ;;
|
|
||||||
*.gz) gunzip "$archive" ;;
|
|
||||||
*.tar) tar xvf "$archive" ;;
|
|
||||||
*.zip) unzip "$archive" ;;
|
|
||||||
*.Z) uncompress "$archive" ;;
|
|
||||||
*.7z) 7z x "$archive" ;;
|
|
||||||
*.xz) unxz "$archive" ;;
|
|
||||||
*.exe) cabextract "$archive" ;;
|
|
||||||
*) printf "extract: '%s' - unknown archive method\\n" "$archive" ;;
|
|
||||||
esac
|
|
||||||
else
|
|
||||||
printf "File \"%s\" not found.\\n" "$archive"
|
|
||||||
fi
|
|
|
@ -1,57 +0,0 @@
|
||||||
#!/bin/sh
|
|
||||||
#
|
|
||||||
# This program is free software; you can redistribute it and/or modify
|
|
||||||
# it under the terms of the GNU General Public License as published by
|
|
||||||
# the Free Software Foundation; version 2 of the License.
|
|
||||||
#
|
|
||||||
# This program is distributed in the hope that it will be useful,
|
|
||||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
||||||
# GNU General Public License for more details.
|
|
||||||
|
|
||||||
|
|
||||||
case "$1" in
|
|
||||||
logout)
|
|
||||||
if [ "$DESKTOP_SESSION" = "fluxbox" ]; then
|
|
||||||
killall fluxbox
|
|
||||||
elif [ "$DESKTOP_SESSION" = "openbox" ]; then
|
|
||||||
openbox --exit
|
|
||||||
elif [ "$DESKTOP_SESSION" = "i3" ]; then
|
|
||||||
i3-msg exit
|
|
||||||
elif [ "$DESKTOP_SESSION" = "bspwm" ]; then
|
|
||||||
bspc quit 1
|
|
||||||
else
|
|
||||||
pkill -KILL -u "$USER"
|
|
||||||
fi
|
|
||||||
;;
|
|
||||||
suspend)
|
|
||||||
if [ "$(cat /proc/1/comm)" = "systemd" ]; then
|
|
||||||
systemctl suspend
|
|
||||||
else
|
|
||||||
dbus-send --system --dest=org.freedesktop.ConsoleKit --type=method_call --print-reply --reply-timeout=2000 /org/freedesktop/ConsoleKit/Manager org.freedesktop.ConsoleKit.Manager.Suspend boolean:true
|
|
||||||
fi
|
|
||||||
;;
|
|
||||||
hibernate)
|
|
||||||
if [ "$(cat /proc/1/comm)" = "systemd" ]; then
|
|
||||||
systemctl hibernate
|
|
||||||
else
|
|
||||||
dbus-send --system --dest=org.freedesktop.ConsoleKit --type=method_call --print-reply --reply-timeout=2000 /org/freedesktop/ConsoleKit/Manager org.freedesktop.ConsoleKit.Manager.Hibernate boolean:true
|
|
||||||
fi
|
|
||||||
;;
|
|
||||||
reboot)
|
|
||||||
if [ "$(cat /proc/1/comm)" = "systemd" ]; then
|
|
||||||
systemctl reboot
|
|
||||||
else
|
|
||||||
dbus-send --system --print-reply --type=method_call --reply-timeout=2000 --dest=org.freedesktop.ConsoleKit /org/freedesktop/ConsoleKit/Manager org.freedesktop.ConsoleKit.Manager.Restart
|
|
||||||
fi
|
|
||||||
;;
|
|
||||||
shutdown)
|
|
||||||
if [ "$(cat /proc/1/comm)" = "systemd" ]; then
|
|
||||||
systemctl poweroff
|
|
||||||
else
|
|
||||||
dbus-send --system --print-reply --type=method_call --reply-timeout=2000 --dest=org.freedesktop.ConsoleKit /org/freedesktop/ConsoleKit/Manager org.freedesktop.ConsoleKit.Manager.Stop
|
|
||||||
fi
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
|
|
||||||
exit 0
|
|
7
bin/gsvn
7
bin/gsvn
|
@ -1,7 +0,0 @@
|
||||||
#!/bin/bash
|
|
||||||
|
|
||||||
git-download(){
|
|
||||||
folder=${*/tree\/master/trunk}
|
|
||||||
folder=${folder/blob\/master/trunk}
|
|
||||||
svn export "$folder"
|
|
||||||
}
|
|
32
bin/livecode
32
bin/livecode
|
@ -1,32 +0,0 @@
|
||||||
#!/bin/bash
|
|
||||||
set -euf -o pipefail
|
|
||||||
|
|
||||||
session="Deadguy"
|
|
||||||
|
|
||||||
# set up tmux
|
|
||||||
tmux start-server
|
|
||||||
|
|
||||||
# create a new tmux session
|
|
||||||
tmux new-session -d -s "$session"
|
|
||||||
|
|
||||||
# Select pane 1, start scsynth
|
|
||||||
tmux selectp -t 1
|
|
||||||
tmux send-keys "scsynth -u 57110" C-m
|
|
||||||
sleep 3s
|
|
||||||
|
|
||||||
# Split pane 1 vertical by 50%, start sclang
|
|
||||||
tmux splitw -h -p 50
|
|
||||||
tmux send-keys "sclang -D ~/Music/LiveCoding/foxdot.scd" C-m
|
|
||||||
|
|
||||||
sleep 5s
|
|
||||||
|
|
||||||
# Create new window, launch foxdot
|
|
||||||
tmux new-window -t "$session":2
|
|
||||||
tmux selectp -t 1
|
|
||||||
tmux send-keys "FoxDot" C-m
|
|
||||||
|
|
||||||
# Switch back to the log window
|
|
||||||
tmux select-window -t :1
|
|
||||||
|
|
||||||
# Attach to the session
|
|
||||||
tmux attach-session -t "$session"
|
|
11
bin/mkcd
11
bin/mkcd
|
@ -1,11 +0,0 @@
|
||||||
#!/usr/bin/env bash
|
|
||||||
set -euf -o pipefail
|
|
||||||
|
|
||||||
case "$1" in
|
|
||||||
*/..|*/../) cd -- "$1";; # that doesn't make any sense unless the directory already exists
|
|
||||||
/*/../*) (cd "${1%/../*}/.." && mkdir -p "./${1##*/../}") && cd -- "$1";;
|
|
||||||
/*) mkdir -p "$1" && cd "$1";;
|
|
||||||
*/../*) (cd "./${1%/../*}/.." && mkdir -p "./${1##*/../}") && cd "./$1";;
|
|
||||||
../*) (cd .. && mkdir -p "${1#.}") && cd "$1";;
|
|
||||||
*) mkdir -p "./$1" && cd "./$1";;
|
|
||||||
esac
|
|
|
@ -1,33 +0,0 @@
|
||||||
#!/usr/bin/env bash
|
|
||||||
set -euf -o pipefail
|
|
||||||
|
|
||||||
I=1
|
|
||||||
M=$(bspc query -M | wc -l)
|
|
||||||
if [[ "$M" == 1 ]]; then
|
|
||||||
bspc monitor -d 1 2 3 4 5 6 7 8 9 10
|
|
||||||
elif [[ "$M" == 2 ]]; then
|
|
||||||
bspc monitor "$(bspc query -M | awk NR==1)" -d 1 2 3 4 5
|
|
||||||
bspc monitor "$(bspc query -M | awk NR==2)" -d 6 7 8 9 10
|
|
||||||
elif [[ "$M" == 3 ]]; then
|
|
||||||
bspc monitor "$(bspc query -M | awk NR==1)" -d 1 2 3 4
|
|
||||||
bspc monitor "$(bspc query -M | awk NR==2)" -d 5 6 7
|
|
||||||
bspc monitor "$(bspc query -M | awk NR==3)" -d 8 9 10
|
|
||||||
elif [[ "$M" == 4 ]]; then
|
|
||||||
bspc monitor "$(bspc query -M | awk NR==1)" -d 1 2 3
|
|
||||||
bspc monitor "$(bspc query -M | awk NR==2)" -d 4 5 6
|
|
||||||
bspc monitor "$(bspc query -M | awk NR==3)" -d 7 8
|
|
||||||
bspc monitor "$(bspc query -M | awk NR==4)" -d 9 10
|
|
||||||
elif [[ "$M" == 5 ]]; then
|
|
||||||
bspc monitor "$(bspc query -M | awk NR==1)" -d 1 2
|
|
||||||
bspc monitor "$(bspc query -M | awk NR==2)" -d 3 4
|
|
||||||
bspc monitor "$(bspc query -M | awk NR==3)" -d 5 6
|
|
||||||
bspc monitor "$(bspc query -M | awk NR==4)" -d 7 8
|
|
||||||
bspc monitor "$(bspc query -M | awk NR==5)" -d 9 10
|
|
||||||
else
|
|
||||||
for monitor in $(bspc query -M); do
|
|
||||||
bspc monitor "$monitor" \
|
|
||||||
-n "$I" \
|
|
||||||
-d $I/{a,b,c}
|
|
||||||
(( I++ ))
|
|
||||||
done
|
|
||||||
fi
|
|
|
@ -1,7 +0,0 @@
|
||||||
#!/usr/bin/env bash
|
|
||||||
set -euf -o pipefail
|
|
||||||
|
|
||||||
pacman -Qdt
|
|
||||||
echo "Press ENTER to remove these orphaned packages or CTRL+C to cancel."
|
|
||||||
read -r
|
|
||||||
sudo pacman -Rsn "$(pacman -Qqdt)" --noconfirm
|
|
|
@ -1,28 +0,0 @@
|
||||||
#!/usr/bin/env bash
|
|
||||||
set -euf -o pipefail
|
|
||||||
|
|
||||||
rofi_command="rofi -theme customenu"
|
|
||||||
|
|
||||||
### Options ###
|
|
||||||
shutdown="shutdown"
|
|
||||||
reboot="reboot"
|
|
||||||
lock="lock"
|
|
||||||
log_out="log out"
|
|
||||||
# Variable passed to rofi
|
|
||||||
options="$shutdown\n$reboot\n$lock\n$log_out"
|
|
||||||
|
|
||||||
chosen="$(echo -e "$options" | $rofi_command -dmenu -selected-row 2)"
|
|
||||||
case $chosen in
|
|
||||||
$shutdown)
|
|
||||||
systemctl poweroff
|
|
||||||
;;
|
|
||||||
$reboot)
|
|
||||||
systemctl reboot
|
|
||||||
;;
|
|
||||||
$lock)
|
|
||||||
exeflock4
|
|
||||||
;;
|
|
||||||
$log_out)
|
|
||||||
bspc quit 1
|
|
||||||
;;
|
|
||||||
esac
|
|
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue