From 20d3316dba099d859f481299476c43df5fbdd4fb Mon Sep 17 00:00:00 2001 From: deadguy Date: Sat, 20 Feb 2021 06:55:36 -0300 Subject: [PATCH] Descubri que me faltaban agregar un monton de archivos. Mis vecinos no me dejan dormir con su musica de mierda, y mientras editaba cosas ayer me di cuenta que hay varios archivos que no tenia agregados aca. asi que me puse a solucionarlo. --- .config/alsa/asoundrc | 13 + .config/bspwm/2bspwmrc | 58 +++ .config/elinks/elinks.conf | 532 +++++++++++++++++++++++++ .config/lf/lfrc | 2 +- .config/rofi/config.rasi | 11 + .config/rofi/dmenu.rasi | 53 +++ .config/rofi/dprompt.rasi | 56 +++ .config/rofi/dprompt2.rasi | 59 +++ .config/rofi/flat-orange.rasi | 112 ++++++ .config/straw-viewer/straw-viewer.conf | 102 +++++ .config/zsh/.zshrc | 4 +- .config/zsh/conf/11_lf-icons.zsh | 232 ----------- .local/bin/cartero | 40 ++ .local/bin/ex | 5 + .local/bin/exim | 5 + .local/bin/leer | 6 + .local/bin/linkhandler | 16 + .local/bin/monicheck | 4 + .local/bin/monis | 14 +- .local/bin/notichat | 3 + .local/bin/rview | 5 + .local/bin/rvim | 5 + .local/bin/tagger | 7 + .local/bin/view | 5 + .local/bin/vimdiff | 5 + .local/bin/xui | 94 +++++ .local/sv/2bspwm/run | 6 + .local/sv/mailsync/run | 3 + doc/xbpaketes | 1 + 29 files changed, 1215 insertions(+), 243 deletions(-) create mode 100644 .config/alsa/asoundrc create mode 100755 .config/bspwm/2bspwmrc create mode 100644 .config/elinks/elinks.conf create mode 100644 .config/rofi/config.rasi create mode 100644 .config/rofi/dmenu.rasi create mode 100644 .config/rofi/dprompt.rasi create mode 100644 .config/rofi/dprompt2.rasi create mode 100644 .config/rofi/flat-orange.rasi create mode 100644 .config/straw-viewer/straw-viewer.conf delete mode 100644 .config/zsh/conf/11_lf-icons.zsh create mode 100755 .local/bin/cartero create mode 100755 .local/bin/ex create mode 100755 .local/bin/exim create mode 100755 .local/bin/leer create mode 100755 .local/bin/linkhandler create mode 100755 .local/bin/monicheck create mode 100755 .local/bin/notichat create mode 100755 .local/bin/rview create mode 100755 .local/bin/rvim create mode 100755 .local/bin/tagger create mode 100755 .local/bin/view create mode 100755 .local/bin/vimdiff create mode 100755 .local/bin/xui create mode 100755 .local/sv/2bspwm/run create mode 100755 .local/sv/mailsync/run diff --git a/.config/alsa/asoundrc b/.config/alsa/asoundrc new file mode 100644 index 0000000..c7d512f --- /dev/null +++ b/.config/alsa/asoundrc @@ -0,0 +1,13 @@ +pcm.!default { + type plug + slave { pcm "pulse" } +} + +pcm.pulse { + type pulse +} + +ctl.mixer0 { + type hw + card 0 +} diff --git a/.config/bspwm/2bspwmrc b/.config/bspwm/2bspwmrc new file mode 100755 index 0000000..f852258 --- /dev/null +++ b/.config/bspwm/2bspwmrc @@ -0,0 +1,58 @@ +#!/bin/sh + +pri=$(bspc query -M --names | awk NR==1) +sec=$(bspc query -M --names | awk NR==2) + +bspc monitor "$pri" -d 1 2 3 4 5 +bspc monitor "$sec" -d 6 7 8 9 10 +bspc config -m "$pri" top_padding 0 +bspc config -m "$pri" bottom_padding 0 +bspc config -m "$sec" top_padding 3 +bspc config -m "$sec" bottom_padding 23 +bspc config border_width 2 +bspc config window_gap 6 +bspc config split_ratio 0.5 + +# Opciones +bspc config gapless_monocle true +bspc config ignore_ewmh_focus true +bspc config pointer_follows_focus true +bspc config removal_adjustment true +bspc config single_monocle false +bspc config borderless_monocle false +bspc config remove_unplugged_monitors false +bspc config remove_disabled_monitors false +bspc config honor_size_hints false +bspc config directional_focus_tightness low +bspc config automatic_scheme longest_side +bspc config initial_polarity second_child +bspc config click_to_focus any +bspc config pointer_modifier mod4 +bspc config pointer_action1 resize_side +bspc config pointer_action2 resize_corner +bspc config pointer_action3 move + +# xrdb +get_xrdb() { + xrdb -query | awk -v pat="$1" '$0~pat {print $2}' +} + +# Colores +bspc config normal_border_color "$(get_xrdb color0)" +bspc config focused_border_color "$(get_xrdb color3)" +bspc config active_border_color "$(get_xrdb color8)" +bspc config presel_feedback_color "$(get_xrdb color6)" + +# Flotantes +bspc rule -a QjackCtl state=floating +bspc rule -a mpv state=floating +bspc rule -a Alacritty:flota state=floating +bspc rule -a Sxiv:flota state=floating +bspc rule -a Firefox:Browser state=floating +bspc rule -a Firefox:Navigator state=tiled desktop='^6' +bspc rule -a Zathura state=tiled +bspc rule -a gzdoom state=fullscreen + +unclutter --jitter 30 --timeout 3 --ignore-scrolling & +randbg & +$TERMINAL & diff --git a/.config/elinks/elinks.conf b/.config/elinks/elinks.conf new file mode 100644 index 0000000..c5d356b --- /dev/null +++ b/.config/elinks/elinks.conf @@ -0,0 +1,532 @@ +## ELinks 0.14.0 configuration file + +## This is ELinks configuration file. You can edit it manually, +## if you wish so; this file is edited by ELinks when you save +## options through UI, however only option values will be altered +## and missing options will be added at the end of file; if option +## is not written in this file, but in some file included from it, +## it is NOT counted as missing. Note that all your formatting, +## own comments and so on will be kept as-is. +## +## Obviously, if you don't like what ELinks is going to do with +## this file, you can change it by altering the config.saving_style +## option. Come on, aren't we friendly guys after all? + + + +############################## +# Automatically saved options +# + +## config +# Configuration handling options. + + ## config.saving_style_w [0|1] + # This is internal option used when displaying a warning about obsolete + # config.saving_style. You shouldn't touch it. + set config.saving_style_w = 1 + + +## terminal +# Terminal options. + + ## terminal.tmux-256color + # Options specific to this terminal type (according to $TERM value). + + ## terminal.tmux-256color.underline [0|1] + set terminal.tmux-256color.underline = 1 + ## terminal.tmux-256color.italic [0|1] + set terminal.tmux-256color.italic = 1 + ## terminal.tmux-256color.colors + set terminal.tmux-256color.colors = 4 + ## terminal.tmux-256color.utf_8_io [0|1] + set terminal.tmux-256color.utf_8_io = 1 + ## terminal.tmux-256color.type + set terminal.tmux-256color.type = 2 + + +## ui +# User interface options. + + ## ui.language + # Language of user interface. 'System' means that the language will be + # extracted from the environment dynamically. + set ui.language = "System" + + + + + +############################## +# Automatically saved options +# + +## terminal +# Terminal options. + + ## terminal.tmux-256color + # Options specific to this terminal type (according to $TERM value). + + ## terminal.tmux-256color.transparency [0|1] + set terminal.tmux-256color.transparency = 1 + + + + + +############################## +# Automatically saved options +# + +## connection +# Connection options. + + ## connection.ssl + # SSL options. + + ## connection.ssl.https_by_default [0|1] + # Use HTTPS when a URL scheme is not provided. + set connection.ssl.https_by_default = 1 + + + +## cookies +# Cookies options. + + ## cookies.accept_policy + # Cookies accepting policy: + # 0 is accept no cookies + # 1 is ask for confirmation before accepting cookie + # 2 is accept all cookies + set cookies.accept_policy = 0 + + ## cookies.max_age + # Cookie maximum age (in days): + # -1 is use cookie's expiration date if any + # 0 is force expiration at the end of session, ignoring + # cookie's expiration date + # 1+ is use cookie's expiration date, but limit age to the + # given number of days + set cookies.max_age = 0 + + ## cookies.save [0|1] + # Whether cookies should be loaded from and saved to disk. + set cookies.save = 0 + + +## document +# Document options. + + ## document.browse + # Document browsing options (mainly interactivity). + + ## document.browse.links + # Options for handling of links to other documents. + + ## document.browse.links.active_link + # Options for the active link. + + ## document.browse.links.active_link.underline [0|1] + # Underline the active link. + set document.browse.links.active_link.underline = 1 + + + ## document.browse.links.target_blank + # Define how to handle links having target=_blank set: + # 0 means open link in current tab + # 1 means open link in new tab in foreground + # 2 means open link in new tab in background + # 3 means open link in new window + set document.browse.links.target_blank = 2 + + ## document.browse.links.wraparound [0|1] + # When pressing 'down' on the last link, jump to the first one, and vice + # versa. + set document.browse.links.wraparound = 1 + + + + +## ui +# User interface options. + + ## ui.clock + # Digital clock in the status bar. + + ## ui.clock.enable [0|1] + # Whether to display a digital clock in the status bar. + set ui.clock.enable = 0 + + + ## ui.colors + # Default user interface color settings. + + ## ui.colors.color + # Color settings for color terminal. + + ## ui.colors.color.mainmenu + # Main menu bar colors. + + ## ui.colors.color.mainmenu.normal + # Unselected main menu bar item colors. + + ## ui.colors.color.mainmenu.normal.text + # Default text color. + set ui.colors.color.mainmenu.normal.text = "gray90" + + ## ui.colors.color.mainmenu.normal.background + # Default background color. + set ui.colors.color.mainmenu.normal.background = "black" + + + + ## ui.colors.color.menu + # Menu bar colors. + + ## ui.colors.color.menu.normal + # Unselected menu item colors. + + ## ui.colors.color.menu.normal.text + # Default text color. + set ui.colors.color.menu.normal.text = "gray75" + + ## ui.colors.color.menu.normal.background + # Default background color. + set ui.colors.color.menu.normal.background = "black" + + + ## ui.colors.color.menu.frame + # Menu frame colors. + + ## ui.colors.color.menu.frame.text + # Default text color. + set ui.colors.color.menu.frame.text = "gray75" + + ## ui.colors.color.menu.frame.background + # Default background color. + set ui.colors.color.menu.frame.background = "black" + + + + + + + + + +############################## +# Automatically saved options +# + +## ui +# User interface options. + + ## ui.colors + # Default user interface color settings. + + ## ui.colors.color + # Color settings for color terminal. + + ## ui.colors.color.mainmenu + # Main menu bar colors. + + ## ui.colors.color.mainmenu.selected + # Selected main menu bar item colors. + + ## ui.colors.color.mainmenu.selected.text + # Default text color. + set ui.colors.color.mainmenu.selected.text = "green" + + + ## ui.colors.color.mainmenu.hotkey + # Main menu hotkey colors. + + ## ui.colors.color.mainmenu.hotkey.selected + # Main menu selected hotkey colors. + + ## ui.colors.color.mainmenu.hotkey.selected.background + # Default background color. + set ui.colors.color.mainmenu.hotkey.selected.background = "black" + + + + + ## ui.colors.color.menu + # Menu bar colors. + + ## ui.colors.color.menu.selected + # Selected menu item colors. + + ## ui.colors.color.menu.selected.background + # Default background color. + set ui.colors.color.menu.selected.background = "lime" + + + + ## ui.colors.color.dialog + # Dialog colors. + + ## ui.colors.color.dialog.generic + # Generic dialog colors. + + ## ui.colors.color.dialog.generic.text + # Default text color. + set ui.colors.color.dialog.generic.text = "white" + + ## ui.colors.color.dialog.generic.background + # Default background color. + set ui.colors.color.dialog.generic.background = "black" + + + ## ui.colors.color.dialog.frame + # Dialog frame colors. + + ## ui.colors.color.dialog.frame.text + # Default text color. + set ui.colors.color.dialog.frame.text = "gray50" + + ## ui.colors.color.dialog.frame.background + # Default background color. + set ui.colors.color.dialog.frame.background = "black" + + + ## ui.colors.color.dialog.title + # Dialog title colors. + + ## ui.colors.color.dialog.title.text + # Default text color. + set ui.colors.color.dialog.title.text = "orange" + + ## ui.colors.color.dialog.title.background + # Default background color. + set ui.colors.color.dialog.title.background = "black" + + + ## ui.colors.color.dialog.text + # Dialog text colors. + + ## ui.colors.color.dialog.text.text + # Default text color. + set ui.colors.color.dialog.text.text = "white" + + ## ui.colors.color.dialog.text.background + # Default background color. + set ui.colors.color.dialog.text.background = "black" + + + ## ui.colors.color.dialog.field + # Dialog text field colors. + + ## ui.colors.color.dialog.field.background + # Default background color. + set ui.colors.color.dialog.field.background = "darkblue" + + + ## ui.colors.color.dialog.field-text + # Dialog field text colors. + + ## ui.colors.color.dialog.field-text.background + # Default background color. + set ui.colors.color.dialog.field-text.background = "darkblue" + + + + ## ui.colors.color.title + # Title bar colors. + + ## ui.colors.color.title.title-bar + # Generic title bar colors. + + ## ui.colors.color.title.title-bar.text + # Default text color. + set ui.colors.color.title.title-bar.text = "gray90" + + ## ui.colors.color.title.title-bar.background + # Default background color. + set ui.colors.color.title.title-bar.background = "black" + + + ## ui.colors.color.title.title-text + # Title bar text colors. + + ## ui.colors.color.title.title-text.text + # Default text color. + set ui.colors.color.title.title-text.text = "gray90" + + ## ui.colors.color.title.title-text.background + # Default background color. + set ui.colors.color.title.title-text.background = "black" + + + + ## ui.colors.color.status + # Status bar colors. + + ## ui.colors.color.status.showip-text + # Status bar show ip text colors. + + ## ui.colors.color.status.showip-text.text + # Default text color. + set ui.colors.color.status.showip-text.text = "aqua" + + ## ui.colors.color.status.showip-text.background + # Default background color. + set ui.colors.color.status.showip-text.background = "black" + + + ## ui.colors.color.status.status-bar + # Generic status bar colors. + + ## ui.colors.color.status.status-bar.text + # Default text color. + set ui.colors.color.status.status-bar.text = "gray90" + + ## ui.colors.color.status.status-bar.background + # Default background color. + set ui.colors.color.status.status-bar.background = "black" + + + ## ui.colors.color.status.status-text + # Status bar text colors. + + ## ui.colors.color.status.status-text.text + # Default text color. + set ui.colors.color.status.status-text.text = "gray90" + + ## ui.colors.color.status.status-text.background + # Default background color. + set ui.colors.color.status.status-text.background = "black" + + + + ## ui.colors.color.tabs + # Tabs bar colors. + + ## ui.colors.color.tabs.selected + # Selected tab colors. + + ## ui.colors.color.tabs.selected.text + # Default text color. + set ui.colors.color.tabs.selected.text = "black" + + + ## ui.colors.color.tabs.separator + # Tab separator colors. + + ## ui.colors.color.tabs.separator.text + # Default text color. + set ui.colors.color.tabs.separator.text = "black" + + ## ui.colors.color.tabs.separator.background + # Default background color. + set ui.colors.color.tabs.separator.background = "black" + + + + + + ## ui.dialogs + # Dialogs-specific appearance and behaviour settings. + + ## ui.dialogs.underline_button_shortcuts [0|1] + # Whether to underline button shortcuts to make them more visible. Requires + # that underlining is enabled for the terminal. + set ui.dialogs.underline_button_shortcuts = 1 + + + ## ui.sessions + # Sessions settings. + + ## ui.sessions.auto_restore [0|1] + # Automatically restore the session at start. + # + # This feature requires bookmark support. + set ui.sessions.auto_restore = 1 + + ## ui.sessions.auto_save [0|1] + # Automatically save the session when quitting. + # + # This feature requires bookmark support. + set ui.sessions.auto_save = 1 + + + ## ui.tabs + # Window tabs settings. + + ## ui.tabs.top [0|1] + # Whether display tab bar at top like other browsers do. + set ui.tabs.top = 1 + + + ## ui.show_ip [0|1] + # Whether to display IP of the document in the status bar. + set ui.show_ip = 0 + + + + + +############################## +# Automatically saved options +# + +## ui +# User interface options. + + ## ui.colors + # Default user interface color settings. + + ## ui.colors.color + # Color settings for color terminal. + + ## ui.colors.color.mainmenu + # Main menu bar colors. + + ## ui.colors.color.mainmenu.hotkey + # Main menu hotkey colors. + + ## ui.colors.color.mainmenu.hotkey.selected + # Main menu selected hotkey colors. + + ## ui.colors.color.mainmenu.hotkey.selected.text + # Default text color. + set ui.colors.color.mainmenu.hotkey.selected.text = "white" + + + + + ## ui.colors.color.menu + # Menu bar colors. + + ## ui.colors.color.menu.hotkey + # Menu item hotkey colors. + + ## ui.colors.color.menu.hotkey.normal + # Menu item unselected hotkey colors. + + ## ui.colors.color.menu.hotkey.normal.text + # Default text color. + set ui.colors.color.menu.hotkey.normal.text = "black" + + ## ui.colors.color.menu.hotkey.normal.background + # Default background color. + set ui.colors.color.menu.hotkey.normal.background = "lightgreen" + + + ## ui.colors.color.menu.hotkey.selected + # Menu item selected hotkey colors. + + ## ui.colors.color.menu.hotkey.selected.text + # Default text color. + set ui.colors.color.menu.hotkey.selected.text = "white" + + ## ui.colors.color.menu.hotkey.selected.background + # Default background color. + set ui.colors.color.menu.hotkey.selected.background = "green" + + + + + + + diff --git a/.config/lf/lfrc b/.config/lf/lfrc index fec76e7..2d2d470 100644 --- a/.config/lf/lfrc +++ b/.config/lf/lfrc @@ -13,7 +13,7 @@ set color256 set preview set previewer lfview # All other settings need to go above this comment because reasons -set icons +# set icons %{{ w=$(tput cols) diff --git a/.config/rofi/config.rasi b/.config/rofi/config.rasi new file mode 100644 index 0000000..b09827d --- /dev/null +++ b/.config/rofi/config.rasi @@ -0,0 +1,11 @@ +configuration { + modi: "run,drun,window"; + drun-display-format: "{name}"; + drun-match-fields: "name,exec"; + theme: "dmenu"; + display-run: "%"; + display-drun: "$"; + display-window: " "; + pid: "/tmp/rofi_pid"; + icon-theme: "haiku"; + } diff --git a/.config/rofi/dmenu.rasi b/.config/rofi/dmenu.rasi new file mode 100644 index 0000000..6af0805 --- /dev/null +++ b/.config/rofi/dmenu.rasi @@ -0,0 +1,53 @@ +/** + * ROFI Color theme + * User: Qball + * Copyright: Dave Davenport + */ +* { + background-color: #080808; + border-color: #faa030; + text-color: #b3b1ad; + urgent-color: #e53714; + font: "System Charcoal 11.5"; +} + +#window { + anchor: south; + location: south; + width: 99.2%; + children: [ horibox ]; +} + +#horibox { + orientation: horizontal; + children: [ prompt, listview ]; +} + +#listview { + layout: horizontal; + spacing: 5px; + lines: 10; +} + +#prompt { + padding: 5px 10px; + background-color: @background-color; + text-color: @border-color; +} + +#element { + padding: 5px 10px; +} + +#element normal.urgent { + text-color: @urgent-color; +} + +#element selected.urgent { + background-color: @urgent-color; +} + +#element selected { + background-color: @border-color; + text-color: @background-color; +} diff --git a/.config/rofi/dprompt.rasi b/.config/rofi/dprompt.rasi new file mode 100644 index 0000000..542e3fc --- /dev/null +++ b/.config/rofi/dprompt.rasi @@ -0,0 +1,56 @@ +* { + background-color: #080808; + border-color: #faa030; + text-color: #b3b1ad; + urgent-color: #e53714; + font: "System Charcoal 11.5"; +} + +#window { + anchor: south; + location: south; + width: 99.2%; + children: [ horibox ]; +} + +#horibox { + orientation: horizontal; + children: [ prompt, entry, listview ]; +} + +#listview { + layout: horizontal; + spacing: 0px; + lines: 30; +} + +#entry { + expand: false; + width: 70em; + padding: 5px; + margin: 0px; +} + +#prompt { + padding: 5px 10px; + background-color: @background-color; + text-color: @border-color; +} + +#element { + padding: 5px 10px; + margin: 0px; +} + +#element normal.urgent { + text-color: @urgent-color; +} + +#element selected.urgent { + background-color: @urgent-color; +} + +#element selected { + background-color: @border-color; + text-color: @background-color; +} diff --git a/.config/rofi/dprompt2.rasi b/.config/rofi/dprompt2.rasi new file mode 100644 index 0000000..4b0b68a --- /dev/null +++ b/.config/rofi/dprompt2.rasi @@ -0,0 +1,59 @@ +/** + * ROFI Color theme + * User: Qball + * Copyright: Dave Davenport + */ +* { + background-color: #080808; + border-color: #faa030; + text-color: #b3b1ad; + urgent-color: #e53714; + font: "System Charcoal 11.5"; +} + +#window { + anchor: south; + location: south; + width: 99.2%; + children: [ horibox ]; +} + +#horibox { + orientation: horizontal; + children: [ prompt, entry, listview ]; +} + +#listview { + layout: horizontal; + spacing: 0px; + lines: 30; +} + +#entry { + expand: false; + width: 12em; + padding: 5px; +} + +#prompt { + padding: 5px 10px; + background-color: @background-color; + text-color: @border-color; +} + +#element { + padding: 5px 10px; +} + +#element normal.urgent { + text-color: @urgent-color; +} + +#element selected.urgent { + background-color: @urgent-color; +} + +#element selected { + background-color: @border-color; + text-color: @background-color; +} diff --git a/.config/rofi/flat-orange.rasi b/.config/rofi/flat-orange.rasi new file mode 100644 index 0000000..fb4bf32 --- /dev/null +++ b/.config/rofi/flat-orange.rasi @@ -0,0 +1,112 @@ +/* global settings and color variables */ +* { + maincolor: #fccb00; + highlight: bold #fccb00; + urgentcolor: #e53714; + + fgwhite: #d8d8d8; + blackdarkest: #380000; + font: "System Charcoal 12"; + background-color: @fgwhite; +} + +window { + background-color: @fgwhite; + anchor: northwest; + location: northwest; + width: 20%; +} + +mainbox { + background-color: @fgwhite; + spacing:0px; + children: [inputbar, message, listview]; +} + +message { + padding: 6px 10px; + background-color:@fgwhite; +} + +textbox { + text-color:@blackdarkest; + background-color:@fgwhite; +} + +listview { + fixed-height: false; + dynamic: true; + scrollbar: false; + cycle: true; + spacing: 0px; + padding: 1px 0px 0px 0px; + margin: 0px 0px 1px 0px; + background: @fgwhite; +} + +element { + padding: 2px 15px; +} + +element normal.normal { + padding: 0px 15px; + background-color: @fgwhite; + text-color: @blackdarkest; +} + +element normal.urgent { + background-color: @fgwhite; + text-color: @urgentcolor; +} + +element normal.active { + background-color: @fgwhite; + text-color: @maincolor; +} + +element selected.normal { + background-color: @blackdarkest; + text-color: @fgwhite; +} + +element selected.urgent { + background-color: @urgentcolor; + text-color: @blackdarkest; +} + +element selected.active { + background-color: @maincolor; + text-color: @blackdarkest; +} + +button { + background-color: @maincolor; + text-color: @blackdarkest; +} + +button selected { + text-color: @maincolor; +} + +inputbar { + background-color: @fgwhite; + spacing: 0px; +} + +prompt { + padding:6px 9px; + background-color: @maincolor; + text-color:@blackdarkest; +} + +entry { + padding:6px 10px; + background-color:@fgwhite; + text-color:@blackdarkest; +} + +case-indicator { + padding:6px 10px; + text-color:@maincolor; + background-color:@fgwhite; +} diff --git a/.config/straw-viewer/straw-viewer.conf b/.config/straw-viewer/straw-viewer.conf new file mode 100644 index 0000000..a76c1c8 --- /dev/null +++ b/.config/straw-viewer/straw-viewer.conf @@ -0,0 +1,102 @@ +#!/usr/bin/perl + +# CLI Straw Viewer 0.1.2 - configuration file + +our $CONFIG = { + api_host => "auto", + auto_captions => 0, + autoplay_mode => 0, + cache_dir => "/tmp/straw-viewer", + colors => 1, + comments_order => "top", + confirm => 0, + convert_cmd => "ffmpeg -i *IN* *OUT*", + convert_to => undef, + cookie_file => undef, + copy_caption => 0, + custom_layout => 1, + custom_layout_format => [ + { align => "right", color => "bold", text => "*NO*.", width => 3 }, + { align => "left", color => "bold blue", text => "*TITLE*", width => "55%" }, + { align => "left", color => "yellow", text => "*AUTHOR*", width => "15%" }, + { align => "right", color => "green", text => "*AGE_SHORT*", width => 3 }, + { align => "right", color => "blue", text => "*TIME*", width => 8 }, + ], + dash_mp4_audio => 1, + dash_segmented => 1, + dash_support => 1, + date => undef, + debug => 0, + download_and_play => 0, + download_with_wget => 1, + downloads_dir => "$ENV{HOME}/vid", + env_proxy => 1, + fat32safe => 1, + ffmpeg_cmd => "/bin/ffmpeg", + fullscreen => 0, + get_captions => 0, + get_term_width => 1, + hfr => 1, + highlight_color => "bold", + highlight_watched => 1, + history => 0, + history_file => "/tmp/straw-viewer/cli-history.txt", + history_limit => 1, + http_proxy => undef, + ignore_av1 => 0, + interactive => 1, + keep_original_video => 0, + maxResults => 30, + merge_into_mkv => 1, + merge_into_mkv_args => "-loglevel warning -c:s srt -c:v copy -c:a copy -disposition:s forced", + merge_with_captions => 1, + order => undef, + page => 1, + prefer_av1 => 0, + prefer_mp4 => 0, + region => undef, + remember_watched => 0, + remove_played_file => 0, + resolution => "best", + results_fixed_width => 0, + results_with_colors => 1, + results_with_details => 0, + show_video_info => 1, + skip_if_exists => 1, + skip_watched => 0, + srt_languages => ["en", "es"], + subscriptions_order => "relevance", + thousand_separator => ".", + timeout => undef, + user_agent => undef, + video_filename_format => "*FTITLE* - *ID*.*FORMAT*", + video_player_selected => "mpv", + video_players => { + mpv => { + arg => "--really-quiet --force-media-title=*TITLE* --no-ytdl", + audio => "--audio-file=*AUDIO*", + cmd => "/bin/mpv", + fs => "--fullscreen", + novideo => "--no-video", + srt => "--sub-file=*SUB*", + }, + vlc => { + arg => "--quiet --play-and-exit --no-video-title-show --input-title-format=*TITLE*", + audio => "--input-slave=*AUDIO*", + cmd => "vlc", + fs => "--fullscreen", + novideo => "--intf=dummy --novideo", + srt => "--sub-file=*SUB*", + }, + }, + videoCaption => undef, + videoDefinition => undef, + videoDimension => undef, + videoDuration => undef, + videoLicense => undef, + watched_file => "/tmp/straw-viewer/watched.txt", + wget_cmd => "/bin/wget", + youtube_video_url => "https://www.youtube-nocookie.com/watch?v=%s", + ytdl => 1, + ytdl_cmd => "/bin/youtube-dl", +} diff --git a/.config/zsh/.zshrc b/.config/zsh/.zshrc index a105967..a4da7fc 100644 --- a/.config/zsh/.zshrc +++ b/.config/zsh/.zshrc @@ -25,12 +25,12 @@ setopt MULTIOS # Write to multiple descriptors. setopt AUTO_PARAM_SLASH # Tab completing directory appends a slash setopt PROMPT_SUBST -# hash tmux 2>/dev/null && source "${ZDOTDIR}"/tmux.zsh + hash tmux 2>/dev/null && source "${ZDOTDIR}"/tmux.zsh foreach programa ( doc/fzf/completion.zsh doc/fzf/key-bindings.zsh - zsh/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh + zsh/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.plugin.zsh ) { source /usr/share/$programa } diff --git a/.config/zsh/conf/11_lf-icons.zsh b/.config/zsh/conf/11_lf-icons.zsh deleted file mode 100644 index 4d294b2..0000000 --- a/.config/zsh/conf/11_lf-icons.zsh +++ /dev/null @@ -1,232 +0,0 @@ -if [[ -n $DISPLAY ]]; then - 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= :\ - xresources= :\ - xinitrc= :\ - .bashprofile= :\ - .zprofile= :\ - .bashrc= :\ - .zshrc= :\ - .zshenv= :\ - .dmrc= :\ - .ds_store= :\ - .fasd= :\ - .gitconfig= :\ - .gitignore= :\ - gitignore= :\ - .jack-settings= :\ - .mime.types= :\ - .pam_environment= :\ - .profile= :\ - .recently-used= :\ - .selected_editor= :\ - .vimrc= :\ - config= :\ - 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= :\ - mimeapps.list= :\ - node_modules= :\ - procfile= :\ - react.jsx= :\ - user-dirs.dirs= :\ - Makefile= :\ - TODO= :\ - LICENSE= :\ - COPYING= :\ - *.vim= :\ - *.dmg= :\ - *.toml= :\ - *.m3u= :\ - *.pls= :\ - *.woff=𝑾:\ - *.woff2=𝑾:\ - *.eot=𝑬:\ - *.yaml= :\ - *.yml= :\ - *.wad=ﰁ :\ - *.WAD=ﰁ :\ - *.pk3= :\ - *.doc= :\ - *.docx= :\ - *.webp= :\ - *.bib=﬜ :\ - *.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= :\ - *.wav= :\ - *.webm= :\ - *.xml= :\ - *.xul= :\ - *.xz= :\ - *.zip= :\ - *.zsh= :\ - *.kra= :\ - *.xcf= :\ - *.go= :\ - *.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= :\ - " -fi diff --git a/.local/bin/cartero b/.local/bin/cartero new file mode 100755 index 0000000..343df8e --- /dev/null +++ b/.local/bin/cartero @@ -0,0 +1,40 @@ +#!/usr/bin/env sh + +pgrep -x mbsync > /dev/null && exit +ping -q -c 1 1.1.1.1 > /dev/null || exit + +ICON="$XDG_DATA_HOME/icons/Haiku/scalable/apps/claws-mail.svg" + +syncandnotify() { + acc="$(echo "$account" | sed "s/.*\///")" + mbsync -c "$XDG_CONFIG_HOME"/isync/mbsyncrc "$acc" + new=$(find "$XDG_DATA_HOME/mail/$acc/INBOX/new/" "$XDG_DATA_HOME/mail/$acc/Inbox/new/" "$XDG_DATA_HOME/mail/$acc/inbox/new/" -type f -newer "$XDG_CONFIG_HOME/neomutt/.mailsynclastrun" 2> /dev/null) + newcount=$(echo "$new" | sed '/^\s*$/d' | wc -l) + if [ "$newcount" -gt "0" ]; then + for file in $new; do + # 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:]]*$//') + 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') + + [ -n $DISPLAY ] && notify-send --app-name="neomutt" -i "$ICON" "Mensaje nuevo para $acc" "$from: $subject" & + done + fi +} + +if [ "$#" -eq "0" ]; then + accounts="$(awk '/^Channel/ {print $2}' "$XDG_CONFIG_HOME/isync/mbsyncrc")" +else + for arg in "$@"; do + [ "${arg%${arg#?}}" = '-' ] && opts="${opts:+${opts} }${arg}" && shift 1 + done + accounts=$* +fi + +for account in $accounts; do + syncandnotify & +done + +wait +notmuch new 2> /dev/null + +touch "$XDG_CONFIG_HOME/neomutt/.mailsynclastrun" diff --git a/.local/bin/ex b/.local/bin/ex new file mode 100755 index 0000000..a6d8c55 --- /dev/null +++ b/.local/bin/ex @@ -0,0 +1,5 @@ +#!/bin/sh +# +# Emulate ex +# +exec nvim -e "$@" diff --git a/.local/bin/exim b/.local/bin/exim new file mode 100755 index 0000000..2c3a9fd --- /dev/null +++ b/.local/bin/exim @@ -0,0 +1,5 @@ +#!/bin/sh +# +# Emulate exim +# +exec nvim -E "$@" diff --git a/.local/bin/leer b/.local/bin/leer new file mode 100755 index 0000000..bd11cac --- /dev/null +++ b/.local/bin/leer @@ -0,0 +1,6 @@ +#!/bin/sh + +cd "$HOME/doc/Learning" || exit +menulibro=$(fd -e pdf -e epub | sort -Mr | rofi -theme dprompt2 -dmenu -i -p " ") +[ -z "$menulibro" ] && exit 0 +zathura "$menulibro" diff --git a/.local/bin/linkhandler b/.local/bin/linkhandler new file mode 100755 index 0000000..035e8f6 --- /dev/null +++ b/.local/bin/linkhandler @@ -0,0 +1,16 @@ +#!/bin/sh + +# used for newsboat + +# If no url given. Opens browser. For using script as $BROWSER. +[ -z "$1" ] && { "$BROWSER"; exit; } + +case "$1" in + *mkv|*webm|*mp4|*youtube.com/watch*|*youtube.com/playlist*|*youtu.be*|*hooktube.com*|*bitchute.com*) + setsid -f mpv -quiet "$1" >/dev/null 2>&1 ;; + *png|*jpg|*jpe|*jpeg|*gif) + curl -sL "$1" > "/tmp/$(echo "$1" | sed "s/.*\///")" && sxiv -N "flota" -bpa "/tmp/$(echo "$1" | sed "s/.*\///")" >/dev/null 2>&1 & ;; + *) + if [ -f "$1" ]; then "$TERMINAL" -e "$EDITOR" "$1" + else setsid -f "$BROWSER" "$1" >/dev/null 2>&1; fi ;; +esac diff --git a/.local/bin/monicheck b/.local/bin/monicheck new file mode 100755 index 0000000..0fe70eb --- /dev/null +++ b/.local/bin/monicheck @@ -0,0 +1,4 @@ +#!/bin/sh + +conectados=$(xrandr | awk '( $2 == "connected" ) { count++ } END { print count }') +[ "$conectados" = 2 ] && exit 0 || exit 1 diff --git a/.local/bin/monis b/.local/bin/monis index dacb4e3..7d31881 100755 --- a/.local/bin/monis +++ b/.local/bin/monis @@ -1,13 +1,11 @@ #!/bin/sh -# conectados=$(xrandr | awk '( $2 == "connected" ) { count++ } END { print count }') +conectados=$(xrandr | awk '( $2 == "connected" ) { count++ } END { print count }') pri=$(xrandr | awk '( $2 == "connected" ) {print $1}' | sed -sn 1p) sec=$(xrandr | awk '( $2 == "connected" ) {print $1}' | sed -sn 2p) -xrandr --output "$pri" --primary --auto --scale 1.0x1.0 --output "$sec" --right-of "$pri" --auto --scale 1.0x1.0 - -# if [ "$conectados" = 1 ]; then -# xrandr --output "$pri" --primary --auto --scale 1.0x1.0 "$(xrandr | awk '( $2 "disconnected" ) {print "--output", $1, "--off"}' | paste -sd ' ')" -# elif [ "$conectados" = 2 ]; then -# xrandr --output "$pri" --primary --auto --scale 1.0x1.0 --output "$sec" --right-of "$pri" --auto --scale 1.0x1.0 -# fi +if [ "$conectados" = 1 ]; then + xrandr --output "$pri" --primary --auto --scale 1.0x1.0 "$(xrandr | awk '( $2 "disconnected" ) {print "--output", $1, "--off"}' | paste -sd ' ')" +elif [ "$conectados" = 2 ]; then + xrandr --output "$pri" --primary --auto --scale 1.0x1.0 --output "$sec" --right-of "$pri" --auto --scale 1.0x1.0 +fi diff --git a/.local/bin/notichat b/.local/bin/notichat new file mode 100755 index 0000000..e30090f --- /dev/null +++ b/.local/bin/notichat @@ -0,0 +1,3 @@ +#!/bin/sh + +notify-send -i "$HOME/img/.icn/App_Chat.svg" "$@" diff --git a/.local/bin/rview b/.local/bin/rview new file mode 100755 index 0000000..b32be2b --- /dev/null +++ b/.local/bin/rview @@ -0,0 +1,5 @@ +#!/bin/sh +# +# Emulate rview +# +exec nvim -RZ "$@" diff --git a/.local/bin/rvim b/.local/bin/rvim new file mode 100755 index 0000000..56df83d --- /dev/null +++ b/.local/bin/rvim @@ -0,0 +1,5 @@ +#!/bin/sh +# +# Emulate rvim +# +exec nvim -Z "$@" diff --git a/.local/bin/tagger b/.local/bin/tagger new file mode 100755 index 0000000..0b10411 --- /dev/null +++ b/.local/bin/tagger @@ -0,0 +1,7 @@ +#!/bin/sh + +tag="$1" +tagValue="$2" + +mkdir output +for f in *.mp3;do ffmpeg -i "$f" -c:v copy -c:a copy -metadata "$tag"="$tagValue" "output/$f.mp3";done diff --git a/.local/bin/view b/.local/bin/view new file mode 100755 index 0000000..8af8e50 --- /dev/null +++ b/.local/bin/view @@ -0,0 +1,5 @@ +#!/bin/sh +# +# Emulate view +# +exec nvim -R "$@" diff --git a/.local/bin/vimdiff b/.local/bin/vimdiff new file mode 100755 index 0000000..3be08eb --- /dev/null +++ b/.local/bin/vimdiff @@ -0,0 +1,5 @@ +#!/bin/sh +# +# Emulate vimdiff +# +exec nvim -d "$@" diff --git a/.local/bin/xui b/.local/bin/xui new file mode 100755 index 0000000..f0a8d67 --- /dev/null +++ b/.local/bin/xui @@ -0,0 +1,94 @@ +#!/bin/sh +# ignore shellcheck's warnings, the script works fine + +fzf_opts() { + local argument_input + + fzf -i -e -m +s \ + --query="$argument_input" \ + --select-1 \ + --cycle \ + --reverse \ + --info=inline \ + --header="TAB to (un)select. ENTER to run. ESC to quit." \ + --preview-window=bottom:45%:wrap \ + --preview 'xq -R {2} ' \ + --prompt="Filter > " | awk '{print $2}' +} + +install() { + local pkg + pkg="$(xrs "" | sort -u | grep -v "*" | fzf_opts)" + pkg="$(echo "$pkg" | paste -sd " ")" + + if [ -n "$pkg" ]; then + clear + doas xbps-install $pkg + fi +} + +remove() { + local pkg + pkg="$(xbps-query -l | sort -u | fzf_opts)" + pkg="$(echo "$pkg" | paste -sd " ")" + + if [ -n "$pkg" ]; then + clear + doas xbps-remove -R $pkg + fi +} + +unhold() { + local pkg + pkg="$(xbps-query -p hold -s "" | sort -u | fzf)" + pkg="$(echo "$pkg" | paste -sd " " | tr -d ":")" + + if [ -n "$pkg" ]; then + clear + doas xbps-pkgdb -m unhold $pkg + fi +} + +hold() { + local pkg + pkg="$(xbps-query -l | sort -u | fzf_opts)" + pkg="$(echo "$pkg" | paste -sd " ")" + + if [ -n "$pkg" ]; then + clear + doas xbps-pkgdb -m hold $pkg + fi +} + +cache() { + doas xbps-remove -O +} + +sync() { + upd +} + +case "$1" in + 1) install ;; + 2) remove ;; + 3) sync ;; + 4) hold ;; + 5) unhold ;; + 6) cache ;; + *) cat << EOF ;; +xui: FZF xbps ui. Run simple xbps commands to install, +remove, hold, unhold, update packages, and clear cache. + +Allowed options: + 1: Install Runs \`xbps-install\` + 2: Remove Runs \`xbps-remove -R\` + 3: Sync Runs update script + 4: Hold Runs \`xbps-pkgdb -m hold\` + 5: Unhold Runs \`xbps-pkgdb -m unhold\` + 6: Clear cache Runs \`xbps-remove -O\` + All else Print this message + +Enter the number of your choice to execute command. +EOF + +esac diff --git a/.local/sv/2bspwm/run b/.local/sv/2bspwm/run new file mode 100755 index 0000000..7630e40 --- /dev/null +++ b/.local/sv/2bspwm/run @@ -0,0 +1,6 @@ +#!/bin/sh + +exec 2>&1 +cd ~ +sxhkd & +exec bspwm -c "$XDG_CONFIG_HOME/bspwm/2bspwmrc" diff --git a/.local/sv/mailsync/run b/.local/sv/mailsync/run new file mode 100755 index 0000000..0b8898d --- /dev/null +++ b/.local/sv/mailsync/run @@ -0,0 +1,3 @@ +#!/bin/sh + +exec snooze -H'*' -M/15 -t ./timefile sh -c 'cartero ; touch ./timefile' diff --git a/doc/xbpaketes b/doc/xbpaketes index 11c5b6f..04b8034 100644 --- a/doc/xbpaketes +++ b/doc/xbpaketes @@ -114,6 +114,7 @@ qjackctl ripgrep rkhunter rofi +rsync sct setxkbmap shellcheck