Initialize branch for new dotfiles
@ -1,12 +0,0 @@
|
||||
{
|
||||
"parser": "esprima",
|
||||
"env": {
|
||||
"browser": true,
|
||||
"commonjs": true,
|
||||
"es6": true,
|
||||
"node": false
|
||||
},
|
||||
"rules": {
|
||||
"semi": "error"
|
||||
}
|
||||
}
|
@ -1,56 +0,0 @@
|
||||
#define bg #0e0f14
|
||||
#define sbg #282a38
|
||||
#define asbg #20232b /* darker sbg (rofi) */
|
||||
#define sel #363b47 /* selected (rofi) */
|
||||
#define asel #555a63 /* alt sel (rofi) */
|
||||
#define fg #dfdfdf
|
||||
#define sfg #eeeeee
|
||||
|
||||
! special
|
||||
*.foreground: fg
|
||||
*.normfgcolor: fg
|
||||
*.selfgcolor: sfg
|
||||
*.selforeground: sfg
|
||||
|
||||
*.background: bg
|
||||
*.normbgcolor: bg
|
||||
*.selbgcolor: sbg
|
||||
*.selbackground: sbg
|
||||
|
||||
*.normbordercolor: sel
|
||||
*.selbordercolor: asel
|
||||
|
||||
*.font: Monospace:pixelsize=13:antialias=true:autohint=true:hintstyle=hintmedium
|
||||
|
||||
! black
|
||||
*.color0: #000000
|
||||
|
||||
! gray
|
||||
*.color8: #343834
|
||||
|
||||
! red
|
||||
*.color1: #cf5252
|
||||
*.color9: #cf5252
|
||||
|
||||
! green
|
||||
*.color2: #92ad4a
|
||||
*.color10: #92ad4a
|
||||
|
||||
! yellow
|
||||
*.color3: #c9895b
|
||||
*.color11: #c9895b
|
||||
|
||||
! blue
|
||||
*.color4: #385872
|
||||
*.color12: #6f97b8
|
||||
|
||||
! magenta
|
||||
*.color5: #ab6ba6
|
||||
*.color13: #ab6ba6
|
||||
|
||||
! cyan
|
||||
*.color6: #6fa69f
|
||||
*.color14: #6fa69f
|
||||
|
||||
! white
|
||||
*.color7: #cccccc
|
@ -1,20 +0,0 @@
|
||||
# vim: ft=config
|
||||
|
||||
--theme="colordamci"
|
||||
--italic-text=always
|
||||
--decorations=never
|
||||
--color=always
|
||||
|
||||
# Uncomment the following line to disable automatic paging:
|
||||
#--paging=never
|
||||
|
||||
# Uncomment the following line if you are using less version >= 551 and want to
|
||||
# enable mouse scrolling support in `bat` when running inside tmux. This might
|
||||
# disable text selection, unless you press shift.
|
||||
#--pager="--RAW-CONTROL-CHARS --quit-if-one-screen --mouse"
|
||||
|
||||
# Syntax mappings: map a certain filename pattern to a language.
|
||||
# Example 1: use the C++ syntax for .ino files
|
||||
# Example 2: Use ".gitignore"-style highlighting for ".ignore" files
|
||||
#--map-syntax "*.ino:C++"
|
||||
#--map-syntax ".ignore:Git Ignore"
|
@ -1,277 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||
<plist version="1.0">
|
||||
<dict>
|
||||
<key>name</key>
|
||||
<string>colordamci</string>
|
||||
<key>settings</key>
|
||||
<array>
|
||||
<dict>
|
||||
<key>settings</key>
|
||||
<dict>
|
||||
<key>background</key>
|
||||
<string>#0E0F14</string>
|
||||
<key>caret</key>
|
||||
<string>#F8F8F0</string>
|
||||
<key>foreground</key>
|
||||
<string>#F8F8F2</string>
|
||||
<key>invisibles</key>
|
||||
<string>#3B3A32</string>
|
||||
<key>lineHighlight</key>
|
||||
<string>#3E3D32</string>
|
||||
<key>selection</key>
|
||||
<string>#49483E</string>
|
||||
</dict>
|
||||
</dict>
|
||||
<dict>
|
||||
<key>name</key>
|
||||
<string>Comment</string>
|
||||
<key>scope</key>
|
||||
<string>comment</string>
|
||||
<key>settings</key>
|
||||
<dict>
|
||||
<key>foreground</key>
|
||||
<string>#92AD4A</string>
|
||||
</dict>
|
||||
</dict>
|
||||
<dict>
|
||||
<key>name</key>
|
||||
<string>String</string>
|
||||
<key>scope</key>
|
||||
<string>string</string>
|
||||
<key>settings</key>
|
||||
<dict>
|
||||
<key>foreground</key>
|
||||
<string>#CF5252</string>
|
||||
</dict>
|
||||
</dict>
|
||||
<dict>
|
||||
<key>name</key>
|
||||
<string>Number</string>
|
||||
<key>scope</key>
|
||||
<string>constant.numeric</string>
|
||||
<key>settings</key>
|
||||
<dict>
|
||||
<key>foreground</key>
|
||||
<string>#AE81FF</string>
|
||||
</dict>
|
||||
</dict>
|
||||
<dict>
|
||||
<key>name</key>
|
||||
<string>Built-in constant</string>
|
||||
<key>scope</key>
|
||||
<string>constant.language</string>
|
||||
<key>settings</key>
|
||||
<dict>
|
||||
<key>foreground</key>
|
||||
<string>#C9895B</string>
|
||||
</dict>
|
||||
</dict>
|
||||
<dict>
|
||||
<key>name</key>
|
||||
<string>User-defined constant</string>
|
||||
<key>scope</key>
|
||||
<string>constant.character, constant.other</string>
|
||||
<key>settings</key>
|
||||
<dict>
|
||||
<key>foreground</key>
|
||||
<string>#AF5FFF</string>
|
||||
</dict>
|
||||
</dict>
|
||||
<dict>
|
||||
<key>name</key>
|
||||
<string>Variable</string>
|
||||
<key>scope</key>
|
||||
<string>variable</string>
|
||||
<key>settings</key>
|
||||
<dict>
|
||||
</dict>
|
||||
</dict>
|
||||
<dict>
|
||||
<key>name</key>
|
||||
<string>Keyword</string>
|
||||
<key>scope</key>
|
||||
<string>keyword</string>
|
||||
<key>settings</key>
|
||||
<dict>
|
||||
<key>foreground</key>
|
||||
<string>#AB6BA6</string>
|
||||
</dict>
|
||||
</dict>
|
||||
<dict>
|
||||
<key>name</key>
|
||||
<string>Storage</string>
|
||||
<key>scope</key>
|
||||
<string>storage</string>
|
||||
<key>settings</key>
|
||||
<dict>
|
||||
<key>foreground</key>
|
||||
<string>#F92672</string>
|
||||
</dict>
|
||||
</dict>
|
||||
<dict>
|
||||
<key>name</key>
|
||||
<string>Storage type</string>
|
||||
<key>scope</key>
|
||||
<string>storage.type</string>
|
||||
<key>settings</key>
|
||||
<dict>
|
||||
<key>foreground</key>
|
||||
<string>#AB6BA6</string>
|
||||
<key>fontStyle</key>
|
||||
<string> italic</string>
|
||||
</dict>
|
||||
</dict>
|
||||
<dict>
|
||||
<key>name</key>
|
||||
<string>Class name</string>
|
||||
<key>scope</key>
|
||||
<string>entity.name.class</string>
|
||||
<key>settings</key>
|
||||
<dict>
|
||||
<key>foreground</key>
|
||||
<string>#D7AF87</string>
|
||||
</dict>
|
||||
</dict>
|
||||
<dict>
|
||||
<key>name</key>
|
||||
<string>Inherited class</string>
|
||||
<key>scope</key>
|
||||
<string>entity.other.inherited-class</string>
|
||||
<key>settings</key>
|
||||
<dict>
|
||||
<key>foreground</key>
|
||||
<string>#FFFFFF</string>
|
||||
</dict>
|
||||
</dict>
|
||||
<dict>
|
||||
<key>name</key>
|
||||
<string>Function name</string>
|
||||
<key>scope</key>
|
||||
<string>entity.name.function</string>
|
||||
<key>settings</key>
|
||||
<dict>
|
||||
<key>fontStyle</key>
|
||||
<string></string>
|
||||
<key>foreground</key>
|
||||
<string>#D7AF87</string>
|
||||
</dict>
|
||||
</dict>
|
||||
<dict>
|
||||
<key>name</key>
|
||||
<string>Function argument</string>
|
||||
<key>scope</key>
|
||||
<string>variable.parameter</string>
|
||||
<key>settings</key>
|
||||
<dict>
|
||||
<key>foreground</key>
|
||||
<string>#FFFFFF</string>
|
||||
</dict>
|
||||
</dict>
|
||||
<dict>
|
||||
<key>name</key>
|
||||
<string>Tag name</string>
|
||||
<key>scope</key>
|
||||
<string>entity.name.tag</string>
|
||||
<key>settings</key>
|
||||
<dict>
|
||||
<key>fontStyle</key>
|
||||
<string></string>
|
||||
<key>foreground</key>
|
||||
<string>#F92672</string>
|
||||
</dict>
|
||||
</dict>
|
||||
<dict>
|
||||
<key>name</key>
|
||||
<string>Tag attribute</string>
|
||||
<key>scope</key>
|
||||
<string>entity.other.attribute-name</string>
|
||||
<key>settings</key>
|
||||
<dict>
|
||||
<key>fontStyle</key>
|
||||
<string></string>
|
||||
<key>foreground</key>
|
||||
<string>#A6E22E</string>
|
||||
</dict>
|
||||
</dict>
|
||||
<dict>
|
||||
<key>name</key>
|
||||
<string>Library function</string>
|
||||
<key>scope</key>
|
||||
<string>support.function</string>
|
||||
<key>settings</key>
|
||||
<dict>
|
||||
<key>foreground</key>
|
||||
<string>#D7AF87</string>
|
||||
</dict>
|
||||
</dict>
|
||||
<dict>
|
||||
<key>name</key>
|
||||
<string>Library constant</string>
|
||||
<key>scope</key>
|
||||
<string>support.constant</string>
|
||||
<key>settings</key>
|
||||
<dict>
|
||||
<key>fontStyle</key>
|
||||
<string></string>
|
||||
<key>foreground</key>
|
||||
<string>#66D9EF</string>
|
||||
</dict>
|
||||
</dict>
|
||||
<dict>
|
||||
<key>name</key>
|
||||
<string>Library class/type</string>
|
||||
<key>scope</key>
|
||||
<string>support.type, support.class</string>
|
||||
<key>settings</key>
|
||||
<dict>
|
||||
<key>foreground</key>
|
||||
<string>#6F97B8</string>
|
||||
<key>fontStyle</key>
|
||||
<string> bold</string>
|
||||
</dict>
|
||||
</dict>
|
||||
<dict>
|
||||
<key>name</key>
|
||||
<string>Library variable</string>
|
||||
<key>scope</key>
|
||||
<string>support.other.variable</string>
|
||||
<key>settings</key>
|
||||
<dict>
|
||||
</dict>
|
||||
</dict>
|
||||
<dict>
|
||||
<key>name</key>
|
||||
<string>Invalid</string>
|
||||
<key>scope</key>
|
||||
<string>invalid</string>
|
||||
<key>settings</key>
|
||||
<dict>
|
||||
<key>background</key>
|
||||
<string>#F92672</string>
|
||||
<key>foreground</key>
|
||||
<string>#F8F8F0</string>
|
||||
</dict>
|
||||
</dict>
|
||||
<dict>
|
||||
<key>name</key>
|
||||
<string>Invalid deprecated</string>
|
||||
<key>scope</key>
|
||||
<string>invalid.deprecated</string>
|
||||
<key>settings</key>
|
||||
<dict>
|
||||
<key>background</key>
|
||||
<string>#AE81FF</string>
|
||||
<key>foreground</key>
|
||||
<string>#F8F8F0</string>
|
||||
</dict>
|
||||
</dict>
|
||||
</array>
|
||||
<key>uuid</key>
|
||||
<string>D8D5E82E-3D5B-46B5-B38E-8C841C21347D</string>
|
||||
<key>colorSpaceName</key>
|
||||
<string>sRGB</string>
|
||||
<key>semanticClass</key>
|
||||
<string>theme.dark.monokai</string>
|
||||
</dict>
|
||||
</plist>
|
@ -1,159 +0,0 @@
|
||||
# _ _
|
||||
# __| |_ _ _ __ ___| |_
|
||||
# / _` | | | | '_ \/ __| __|
|
||||
# | (_| | |_| | | | \__ \ |_
|
||||
# \__,_|\__,_|_| |_|___/\__|
|
||||
|
||||
[global]
|
||||
monitor = 0
|
||||
follow = keyboard
|
||||
geometry = "300x60-20+48"
|
||||
indicate_hidden = yes
|
||||
shrink = yes
|
||||
transparency = 10
|
||||
notification_height = 0
|
||||
separator_height = 2
|
||||
padding = 15
|
||||
horizontal_padding = 30
|
||||
frame_width = 0
|
||||
frame_color = "#353131"
|
||||
#alignment = left
|
||||
#x = 15
|
||||
#y = 15
|
||||
# Define a color for the separator.
|
||||
# possible values are:
|
||||
# * auto: dunst tries to find a color fitting to the background;
|
||||
# * foreground: use the same color as the foreground;
|
||||
# * frame: use the same color as the frame;
|
||||
# * anything else will be interpreted as a X color.
|
||||
separator_color = frame
|
||||
|
||||
# Sort messages by urgency.
|
||||
sort = yes
|
||||
|
||||
idle_threshold = 120
|
||||
font = JetBrains Mono 9
|
||||
line_height = 0
|
||||
markup = full
|
||||
|
||||
# The format of the message. Possible variables are:
|
||||
# %a appname
|
||||
# %s summary
|
||||
# %b body
|
||||
# %i iconname (including its path)
|
||||
# %I iconname (without its path)
|
||||
# %p progress value if set ([ 0%] to [100%]) or nothing
|
||||
# %n progress value if set without any extra characters
|
||||
# %% Literal %
|
||||
# Markup is allowed
|
||||
format = "<b>%s</b>\n%b"
|
||||
|
||||
alignment = left
|
||||
show_age_threshold = 60
|
||||
word_wrap = yes
|
||||
ellipsize = middle
|
||||
ignore_newline = no
|
||||
stack_duplicates = true
|
||||
hide_duplicate_count = true
|
||||
show_indicators = yes
|
||||
icon_position = left
|
||||
max_icon_size = 40
|
||||
#icon_path = /usr/share/icons/gnome/16x16/status/:/usr/share/icons/gnome/16x16/devices/:/usr/share/icons/Adwaita/256x256/status/
|
||||
sticky_history = yes
|
||||
history_length = 20
|
||||
dmenu = /usr/bin/dmenu -p dunst:
|
||||
browser = /usr/bin/firefox -new-tab
|
||||
|
||||
# Always run rule-defined scripts, even if the notification is suppressed
|
||||
always_run_script = true
|
||||
|
||||
title = Dunst
|
||||
class = Dunst
|
||||
startup_notification = false
|
||||
force_xinerama = false
|
||||
[experimental]
|
||||
per_monitor_dpi = false
|
||||
|
||||
[shortcuts]
|
||||
close = ctrl+space
|
||||
close_all = ctrl+shift+space
|
||||
history = ctrl+grave
|
||||
context = ctrl+shift+period
|
||||
|
||||
[urgency_low]
|
||||
# IMPORTANT: colors have to be defined in quotation marks.
|
||||
# Otherwise the "#" and following would be interpreted as a comment.
|
||||
background = "#282a38"
|
||||
foreground = "#dfdfdf"
|
||||
timeout = 5
|
||||
# Icon for notifications with low urgency, uncomment to enable
|
||||
#icon = ~/.local/share/arch.png
|
||||
|
||||
[urgency_normal]
|
||||
background = "#282a38"
|
||||
foreground = "#dfdfdf"
|
||||
timeout = 5
|
||||
|
||||
[urgency_critical]
|
||||
background = "#9b392d"
|
||||
foreground = "#dfdfdf"
|
||||
timeout = 0
|
||||
|
||||
# Every section that isn't one of the above is interpreted as a rules to
|
||||
# override settings for certain messages.
|
||||
# Messages can be matched by "appname", "summary", "body", "icon", "category",
|
||||
# "msg_urgency" and you can override the "timeout", "urgency", "foreground",
|
||||
# "background", "new_icon" and "format".
|
||||
# Shell-like globbing will get expanded.
|
||||
#
|
||||
# SCRIPTING
|
||||
# You can specify a script that gets run when the rule matches by
|
||||
# setting the "script" option.
|
||||
# The script will be called as follows:
|
||||
# script appname summary body icon urgency
|
||||
# where urgency can be "LOW", "NORMAL" or "CRITICAL".
|
||||
#
|
||||
# NOTE: if you don't want a notification to be displayed, set the format
|
||||
# to "".
|
||||
# NOTE: It might be helpful to run dunst -print in a terminal in order
|
||||
# to find fitting options for rules.
|
||||
|
||||
#[espeak]
|
||||
# summary = "*"
|
||||
# script = ~/.config/dunst/alert.sh
|
||||
|
||||
#[script-test]
|
||||
# summary = "*script*"
|
||||
# script = dunst_test.sh
|
||||
|
||||
#[ignore]
|
||||
# # This notification will not be displayed
|
||||
# summary = "foobar"
|
||||
# format = ""
|
||||
|
||||
#[history-ignore]
|
||||
# # This notification will not be saved in history
|
||||
# summary = "foobar"
|
||||
# history_ignore = yes
|
||||
|
||||
#[signed_on]
|
||||
# appname = Pidgin
|
||||
# summary = "*signed on*"
|
||||
# urgency = low
|
||||
#
|
||||
#[signed_off]
|
||||
# appname = Pidgin
|
||||
# summary = *signed off*
|
||||
# urgency = low
|
||||
#
|
||||
#[says]
|
||||
# appname = Pidgin
|
||||
# summary = *says*
|
||||
# urgency = critical
|
||||
#
|
||||
#[twitter]
|
||||
# appname = Pidgin
|
||||
# summary = *twitter.com*
|
||||
# urgency = normal
|
||||
#
|
||||
# vim: ft=cfg
|
@ -1,818 +0,0 @@
|
||||
flf2a$ 8 8 20 -1 1
|
||||
3d font created by xero <x@xero.nu>
|
||||
$$@
|
||||
$$@
|
||||
$$@
|
||||
$$@
|
||||
$$@
|
||||
$$@
|
||||
$$@
|
||||
$$@@
|
||||
██@
|
||||
░██@
|
||||
░██@
|
||||
░██@
|
||||
░██@
|
||||
░░ @
|
||||
██@
|
||||
░░ @@
|
||||
█ █@
|
||||
░█ ░█@
|
||||
░ ░ @
|
||||
@
|
||||
@
|
||||
@
|
||||
@
|
||||
@@
|
||||
@
|
||||
██ ██ @
|
||||
████████████@
|
||||
░░░██░░░░██░ @
|
||||
░██ ░██ @
|
||||
████████████@
|
||||
░░░██░░░░██░ @
|
||||
░░ ░░ @@
|
||||
█ @
|
||||
█████@
|
||||
░█░█░ @
|
||||
░█████@
|
||||
░░░█░█@
|
||||
█████@
|
||||
░░░█░ @
|
||||
░ @@
|
||||
@
|
||||
██ ██ @
|
||||
░░ ██ @
|
||||
██ @
|
||||
██ @
|
||||
██ @
|
||||
██ ██ @
|
||||
░░ ░░ @@
|
||||
██ @
|
||||
█░ █ @
|
||||
░ ██ @
|
||||
█░ █ █@
|
||||
█ ░ █ @
|
||||
░█ ░█ @
|
||||
░ ████ █@
|
||||
░░░░ ░ @@
|
||||
██@
|
||||
░░█@
|
||||
░ @
|
||||
@
|
||||
@
|
||||
@
|
||||
@
|
||||
@@
|
||||
██@
|
||||
██ @
|
||||
██ @
|
||||
░██ @
|
||||
░██ @
|
||||
░░██ @
|
||||
░░██@
|
||||
░░ @@
|
||||
██ @
|
||||
░░██ @
|
||||
░░██@
|
||||
░██@
|
||||
░██@
|
||||
██ @
|
||||
██ @
|
||||
░░ @@
|
||||
██ @
|
||||
██ ░██ ██ @
|
||||
░░██ ░██ ██ @
|
||||
██████████████@
|
||||
░░░██░░██░░██░ @
|
||||
██ ░██ ░░██ @
|
||||
░░ ░██ ░░ @
|
||||
░░ @@
|
||||
@
|
||||
█ @
|
||||
░█ @
|
||||
█████████@
|
||||
░░░░░█░░░ @
|
||||
░█ @
|
||||
░ @
|
||||
@@
|
||||
@
|
||||
@
|
||||
@
|
||||
@
|
||||
@
|
||||
██@
|
||||
░░█@
|
||||
░ @@
|
||||
@
|
||||
@
|
||||
@
|
||||
█████@
|
||||
░░░░░ @
|
||||
@
|
||||
@
|
||||
@@
|
||||
@
|
||||
@
|
||||
@
|
||||
@
|
||||
@
|
||||
██@
|
||||
░██@
|
||||
░░ @@
|
||||
██@
|
||||
██ @
|
||||
██ @
|
||||
██ @
|
||||
██ @
|
||||
██ @
|
||||
██ @
|
||||
░░ @@
|
||||
████ @
|
||||
█░░░██@
|
||||
░█ █░█@
|
||||
░█ █ ░█@
|
||||
░██ ░█@
|
||||
░█ ░█@
|
||||
░ ████ @
|
||||
░░░░ @@
|
||||
██ @
|
||||
███ @
|
||||
░░██ @
|
||||
░██ @
|
||||
░██ @
|
||||
░██ @
|
||||
████@
|
||||
░░░░ @@
|
||||
████ @
|
||||
█░░░ █@
|
||||
░ ░█@
|
||||
███ @
|
||||
█░░ @
|
||||
█ @
|
||||
░██████@
|
||||
░░░░░░ @@
|
||||
████ @
|
||||
█░░░ █@
|
||||
░ ░█@
|
||||
███ @
|
||||
░░░ █@
|
||||
█ ░█@
|
||||
░ ████ @
|
||||
░░░░ @@
|
||||
██ @
|
||||
█░█ @
|
||||
█ ░█ @
|
||||
██████@
|
||||
░░░░░█ @
|
||||
░█ @
|
||||
░█ @
|
||||
░ @@
|
||||
██████@
|
||||
░█░░░░ @
|
||||
░█████ @
|
||||
░░░░░ █@
|
||||
░█@
|
||||
█ ░█@
|
||||
░ ████ @
|
||||
░░░░ @@
|
||||
████ @
|
||||
█░░░ █@
|
||||
░█ ░ @
|
||||
░█████ @
|
||||
░█░░░ █@
|
||||
░█ ░█@
|
||||
░ ████ @
|
||||
░░░░ @@
|
||||
██████@
|
||||
░░░░░░█@
|
||||
░█@
|
||||
█ @
|
||||
█ @
|
||||
█ @
|
||||
█ @
|
||||
░ @@
|
||||
████ @
|
||||
█░░░ █@
|
||||
░█ ░█@
|
||||
░ ████ @
|
||||
█░░░ █@
|
||||
░█ ░█@
|
||||
░ ████ @
|
||||
░░░░ @@
|
||||
████ @
|
||||
█░░░ █@
|
||||
░█ ░█@
|
||||
░ ████ @
|
||||
░░░█ @
|
||||
█ @
|
||||
█ @
|
||||
░ @@
|
||||
@
|
||||
@
|
||||
@
|
||||
@
|
||||
██@
|
||||
░░ @
|
||||
██@
|
||||
░░ @@
|
||||
@
|
||||
@
|
||||
@
|
||||
██@
|
||||
░░ @
|
||||
██@
|
||||
░░█@
|
||||
░ @@
|
||||
██@
|
||||
██░ @
|
||||
██░ @
|
||||
██░ @
|
||||
░░ ██ @
|
||||
░░ ██ @
|
||||
░░ ██@
|
||||
░░ @@
|
||||
@
|
||||
@
|
||||
██████@
|
||||
░░░░░░ @
|
||||
██████@
|
||||
░░░░░░ @
|
||||
@
|
||||
@@
|
||||
██ @
|
||||
░░ ██ @
|
||||
░░ ██ @
|
||||
░░ ██@
|
||||
██░ @
|
||||
██░ @
|
||||
██░ @
|
||||
░░ @@
|
||||
████ @
|
||||
██░░██@
|
||||
░██ ░██@
|
||||
░░ ██ @
|
||||
██ @
|
||||
░░ @
|
||||
██ @
|
||||
░░ @@
|
||||
████ @
|
||||
█░░░ █@
|
||||
░█ ██░█@
|
||||
░█░█ ░█@
|
||||
░█░ ██ @
|
||||
░█ ░░ @
|
||||
░ █████@
|
||||
░░░░░ @@
|
||||
██ @
|
||||
████ @
|
||||
██░░██ @
|
||||
██ ░░██ @
|
||||
██████████@
|
||||
░██░░░░░░██@
|
||||
░██ ░██@
|
||||
░░ ░░ @@
|
||||
██████ @
|
||||
░█░░░░██ @
|
||||
░█ ░██ @
|
||||
░██████ @
|
||||
░█░░░░ ██@
|
||||
░█ ░██@
|
||||
░███████ @
|
||||
░░░░░░░ @@
|
||||
██████ @
|
||||
██░░░░██@
|
||||
██ ░░ @
|
||||
░██ @
|
||||
░██ @
|
||||
░░██ ██@
|
||||
░░██████ @
|
||||
░░░░░░ @@
|
||||
███████ @
|
||||
░██░░░░██ @
|
||||
░██ ░██@
|
||||
░██ ░██@
|
||||
░██ ░██@
|
||||
░██ ██ @
|
||||
░███████ @
|
||||
░░░░░░░ @@
|
||||
████████@
|
||||
░██░░░░░ @
|
||||
░██ @
|
||||
░███████ @
|
||||
░██░░░░ @
|
||||
░██ @
|
||||
░████████@
|
||||
░░░░░░░░ @@
|
||||
████████@
|
||||
░██░░░░░ @
|
||||
░██ @
|
||||
░███████ @
|
||||
░██░░░░ @
|
||||
░██ @
|
||||
░██ @
|
||||
░░ @@
|
||||
████████ @
|
||||
██░░░░░░██@
|
||||
██ ░░ @
|
||||
░██ @
|
||||
░██ █████@
|
||||
░░██ ░░░░██@
|
||||
░░████████ @
|
||||
░░░░░░░░ @@
|
||||
██ ██@
|
||||
░██ ░██@
|
||||
░██ ░██@
|
||||
░██████████@
|
||||
░██░░░░░░██@
|
||||
░██ ░██@
|
||||
░██ ░██@
|
||||
░░ ░░ @@
|
||||
██@
|
||||
░██@
|
||||
░██@
|
||||
░██@
|
||||
░██@
|
||||
░██@
|
||||
░██@
|
||||
░░ @@
|
||||
██@
|
||||
░██@
|
||||
░██@
|
||||
░██@
|
||||
░██@
|
||||
██ ░██@
|
||||
░░█████ @
|
||||
░░░░░ @@
|
||||
██ ██@
|
||||
░██ ██ @
|
||||
░██ ██ @
|
||||
░████ @
|
||||
░██░██ @
|
||||
░██░░██ @
|
||||
░██ ░░██@
|
||||
░░ ░░ @@
|
||||
██ @
|
||||
░██ @
|
||||
░██ @
|
||||
░██ @
|
||||
░██ @
|
||||
░██ @
|
||||
░████████@
|
||||
░░░░░░░░ @@
|
||||
████ ████@
|
||||
░██░██ ██░██@
|
||||
░██░░██ ██ ░██@
|
||||
░██ ░░███ ░██@
|
||||
░██ ░░█ ░██@
|
||||
░██ ░ ░██@
|
||||
░██ ░██@
|
||||
░░ ░░ @@
|
||||
████ ██@
|
||||
░██░██ ░██@
|
||||
░██░░██ ░██@
|
||||
░██ ░░██ ░██@
|
||||
░██ ░░██░██@
|
||||
░██ ░░████@
|
||||
░██ ░░███@
|
||||
░░ ░░░ @@
|
||||
███████ @
|
||||
██░░░░░██ @
|
||||
██ ░░██@
|
||||
░██ ░██@
|
||||
░██ ░██@
|
||||
░░██ ██ @
|
||||
░░███████ @
|
||||
░░░░░░░ @@
|
||||
███████ @
|
||||
░██░░░░██@
|
||||
░██ ░██@
|
||||
░███████ @
|
||||
░██░░░░ @
|
||||
░██ @
|
||||
░██ @
|
||||
░░ @@
|
||||
███████ @
|
||||
██░░░░░██ @
|
||||
██ ░░██ @
|
||||
░██ ░██ @
|
||||
░██ ██░██ @
|
||||
░░██ ░░ ██ @
|
||||
░░███████ ██@
|
||||
░░░░░░░ ░░ @@
|
||||
███████ @
|
||||
░██░░░░██ @
|
||||
░██ ░██ @
|
||||
░███████ @
|
||||
░██░░░██ @
|
||||
░██ ░░██ @
|
||||
░██ ░░██@
|
||||
░░ ░░ @@
|
||||
████████@
|
||||
██░░░░░░ @
|
||||
░██ @
|
||||
░█████████@
|
||||
░░░░░░░░██@
|
||||
░██@
|
||||
████████ @
|
||||
░░░░░░░░ @@
|
||||
██████████@
|
||||
░░░░░██░░░ @
|
||||
░██ @
|
||||
░██ @
|
||||
░██ @
|
||||
░██ @
|
||||
░██ @
|
||||
░░ @@
|
||||
██ ██@
|
||||
░██ ░██@
|
||||
░██ ░██@
|
||||
░██ ░██@
|
||||
░██ ░██@
|
||||
░██ ░██@
|
||||
░░███████ @
|
||||
░░░░░░░ @@
|
||||
██ ██@
|
||||
░██ ░██@
|
||||
░██ ░██@
|
||||
░░██ ██ @
|
||||
░░██ ██ @
|
||||
░░████ @
|
||||
░░██ @
|
||||
░░ @@
|
||||
██ ██@
|
||||
░██ ░██@
|
||||
░██ █ ░██@
|
||||
░██ ███ ░██@
|
||||
░██ ██░██░██@
|
||||
░████ ░░████@
|
||||
░██░ ░░░██@
|
||||
░░ ░░ @@
|
||||
██ ██@
|
||||
░░██ ██ @
|
||||
░░██ ██ @
|
||||
░░███ @
|
||||
██░██ @
|
||||
██ ░░██ @
|
||||
██ ░░██@
|
||||
░░ ░░ @@
|
||||
██ ██@
|
||||
░░██ ██ @
|
||||
░░████ @
|
||||
░░██ @
|
||||
░██ @
|
||||
░██ @
|
||||
░██ @
|
||||
░░ @@
|
||||
████████@
|
||||
░░░░░░██ @
|
||||
██ @
|
||||
██ @
|
||||
██ @
|
||||
██ @
|
||||
████████@
|
||||
░░░░░░░░ @@
|
||||
█████@
|
||||
░██░░ @
|
||||
░██ @
|
||||
░██ @
|
||||
░██ @
|
||||
░██ @
|
||||
░█████@
|
||||
░░░░░ @@
|
||||
██ @
|
||||
░░██ @
|
||||
░░██ @
|
||||
░░██ @
|
||||
░░██ @
|
||||
░░██ @
|
||||
░░██@
|
||||
░░ @@
|
||||
█████@
|
||||
░░░░██@
|
||||
░██@
|
||||
░██@
|
||||
░██@
|
||||
░██@
|
||||
█████@
|
||||
░░░░░ @@
|
||||
██ @
|
||||
██░ ██ @
|
||||
██ ░░ ██@
|
||||
░░ ░░ @
|
||||
@
|
||||
@
|
||||
@
|
||||
@@
|
||||
@
|
||||
@
|
||||
@
|
||||
@
|
||||
@
|
||||
@
|
||||
█████@
|
||||
░░░░░ @@
|
||||
██@
|
||||
░█ @
|
||||
░ @
|
||||
@
|
||||
@
|
||||
@
|
||||
@
|
||||
@@
|
||||
@
|
||||
@
|
||||
██████ @
|
||||
░░░░░░██ @
|
||||
███████ @
|
||||
██░░░░██ @
|
||||
░░████████@
|
||||
░░░░░░░░ @@
|
||||
██ @
|
||||
░██ @
|
||||
░██ @
|
||||
░██████ @
|
||||
░██░░░██@
|
||||
░██ ░██@
|
||||
░██████ @
|
||||
░░░░░ @@
|
||||
@
|
||||
@
|
||||
█████ @
|
||||
██░░░██@
|
||||
░██ ░░ @
|
||||
░██ ██@
|
||||
░░█████ @
|
||||
░░░░░ @@
|
||||
██@
|
||||
░██@
|
||||
░██@
|
||||
██████@
|
||||
██░░░██@
|
||||
░██ ░██@
|
||||
░░██████@
|
||||
░░░░░░ @@
|
||||
@
|
||||
@
|
||||
█████ @
|
||||
██░░░██@
|
||||
░███████@
|
||||
░██░░░░ @
|
||||
░░██████@
|
||||
░░░░░░ @@
|
||||
████@
|
||||
░██░ @
|
||||
██████@
|
||||
░░░██░ @
|
||||
░██ @
|
||||
░██ @
|
||||
░██ @
|
||||
░░ @@
|
||||
@
|
||||
█████ @
|
||||
██░░░██@
|
||||
░██ ░██@
|
||||
░░██████@
|
||||
░░░░░██@
|
||||
█████ @
|
||||
░░░░░ @@
|
||||
██ @
|
||||
░██ @
|
||||
░██ @
|
||||
░██████ @
|
||||
░██░░░██@
|
||||
░██ ░██@
|
||||
░██ ░██@
|
||||
░░ ░░ @@
|
||||
██@
|
||||
░░ @
|
||||
██@
|
||||
░██@
|
||||
░██@
|
||||
░██@
|
||||
░██@
|
||||
░░ @@
|
||||
██@
|
||||
░░ @
|
||||
██@
|
||||
░██@
|
||||
░██@
|
||||
██░██@
|
||||
░░███ @
|
||||
░░░ @@
|
||||
██ @
|
||||
░██ @
|
||||
░██ ██@
|
||||
░██ ██ @
|
||||
░████ @
|
||||
░██░██ @
|
||||
░██░░██@
|
||||
░░ ░░ @@
|
||||
██@
|
||||
░██@
|
||||
░██@
|
||||
░██@
|
||||
░██@
|
||||
░██@
|
||||
███@
|
||||
░░░ @@
|
||||
@
|
||||
@
|
||||
██████████ @
|
||||
░░██░░██░░██@
|
||||
░██ ░██ ░██@
|
||||
░██ ░██ ░██@
|
||||
███ ░██ ░██@
|
||||
░░░ ░░ ░░ @@
|
||||
@
|
||||
@
|
||||
███████ @
|
||||
░░██░░░██@
|
||||
░██ ░██@
|
||||
░██ ░██@
|
||||
███ ░██@
|
||||
░░░ ░░ @@
|
||||
@
|
||||
@
|
||||
██████ @
|
||||
██░░░░██@
|
||||
░██ ░██@
|
||||
░██ ░██@
|
||||
░░██████ @
|
||||
░░░░░░ @@
|
||||
@
|
||||
██████ @
|
||||
░██░░░██@
|
||||
░██ ░██@
|
||||
░██████ @
|
||||
░██░░░ @
|
||||
░██ @
|
||||
░░ @@
|
||||
@
|
||||
████ @
|
||||
██░░██ @
|
||||
░██ ░██ @
|
||||
░░█████ @
|
||||
░░░░██ @
|
||||
░███@
|
||||
░░░ @@
|
||||
@
|
||||
@
|
||||
██████@
|
||||
░░██░░█@
|
||||
░██ ░ @
|
||||
░██ @
|
||||
░███ @
|
||||
░░░ @@
|
||||
@
|
||||
@
|
||||
██████@
|
||||
██░░░░ @
|
||||
░░█████ @
|
||||
░░░░░██@
|
||||
██████ @
|
||||
░░░░░░ @@
|
||||
██ @
|
||||
░██ @
|
||||
██████@
|
||||
░░░██░ @
|
||||
░██ @
|
||||
░██ @
|
||||
░░██ @
|
||||
░░ @@
|
||||
@
|
||||
@
|
||||
██ ██@
|
||||
░██ ░██@
|
||||
░██ ░██@
|
||||
░██ ░██@
|
||||
░░██████@
|
||||
░░░░░░ @@
|
||||
@
|
||||
@
|
||||
██ ██@
|
||||
░██ ░██@
|
||||
░░██ ░██ @
|
||||
░░████ @
|
||||
░░██ @
|
||||
░░ @@
|
||||
@
|
||||
@
|
||||
███ ██@
|
||||
░░██ █ ░██@
|
||||
░██ ███░██@
|
||||
░████░████@
|
||||
███░ ░░░██@
|
||||
░░░ ░░░ @@
|
||||
@
|
||||
@
|
||||
██ ██@
|
||||
░░██ ██ @
|
||||
░░███ @
|
||||
██░██ @
|
||||
██ ░░██@
|
||||
░░ ░░ @@
|
||||
@
|
||||
██ ██@
|
||||
░░██ ██ @
|
||||
░░███ @
|
||||
░██ @
|
||||
██ @
|
||||
██ @
|
||||
░░ @@
|
||||
@
|
||||
@
|
||||
██████@
|
||||
░░░░██ @
|
||||
██ @
|
||||
██ @
|
||||
██████@
|
||||
░░░░░░ @@
|
||||
███@
|
||||
██░ @
|
||||
░██ @
|
||||
███ @
|
||||
░░░██ @
|
||||
░██ @
|
||||
░░███@
|
||||
░░░ @@
|
||||
█@
|
||||
░█@
|
||||
░█@
|
||||
░ @
|
||||
█@
|
||||
░█@
|
||||
░█@
|
||||
░ @@
|
||||
███ @
|
||||
░░░██ @
|
||||
░██ @
|
||||
░░███@
|
||||
██░ @
|
||||
░██ @
|
||||
███ @
|
||||
░░░ @@
|
||||
██ ███ @
|
||||
░░███░░██@
|
||||
░░░ ░░ @
|
||||
@
|
||||
@
|
||||
@
|
||||
@
|
||||
@@
|
||||
@
|
||||
@
|
||||
@
|
||||
@
|
||||
@
|
||||
@
|
||||
@
|
||||
@@
|
||||
@
|
||||
@
|
||||
@
|
||||
@
|
||||
@
|
||||
@
|
||||
@
|
||||
@@
|
||||
@
|
||||
@
|
||||
@
|
||||
@
|
||||
@
|
||||
@
|
||||
@
|
||||
@@
|
||||
@
|
||||
@
|
||||
@
|
||||
@
|
||||
@
|
||||
@
|
||||
@
|
||||
@@
|
||||
@
|
||||
@
|
||||
@
|
||||
@
|
||||
@
|
||||
@
|
||||
@
|
||||
@@
|
||||
@
|
||||
@
|
||||
@
|
||||
@
|
||||
@
|
||||
@
|
||||
@
|
||||
@@
|
||||
@
|
||||
@
|
||||
@
|
||||
@
|
||||
@
|
||||
@
|
||||
@
|
||||
@@
|
@ -1,3 +0,0 @@
|
||||
[flake8]
|
||||
max-line-length = 88
|
||||
extend-ignore = E203
|
@ -1,22 +0,0 @@
|
||||
<?xml version='1.0'?>
|
||||
<!DOCTYPE fontconfig SYSTEM 'fonts.dtd'>
|
||||
<fontconfig>
|
||||
|
||||
<alias>
|
||||
<family>serif</family>
|
||||
<prefer><family>DejaVu Serif</family></prefer>
|
||||
</alias>
|
||||
<alias>
|
||||
<family>sans-serif</family>
|
||||
<prefer><family>DejaVu Sans</family></prefer>
|
||||
</alias>
|
||||
<alias>
|
||||
<family>sans</family>
|
||||
<prefer><family>DejaVu Sans</family></prefer>
|
||||
</alias>
|
||||
<alias>
|
||||
<family>monospace</family>
|
||||
<prefer><family>JetBrains Mono</family></prefer>
|
||||
</alias>
|
||||
|
||||
</fontconfig>
|
@ -1,23 +0,0 @@
|
||||
[Default Applications]
|
||||
text/x-shellscript=text.desktop;
|
||||
x-scheme-handler/magnet=torrent.desktop;
|
||||
application/x-bittorrent=torrent.desktop;
|
||||
x-scheme-handler/mailto=mail.desktop;
|
||||
text/plain=text.desktop;
|
||||
application/postscript=pdf.desktop;
|
||||
application/pdf=pdf.desktop;
|
||||
image/png=img.desktop;
|
||||
image/jpeg=img.desktop;
|
||||
image/gif=img.desktop;
|
||||
application/rss+xml=text.desktop;
|
||||
application/atom+xml=text.desktop;
|
||||
video/x-matroska=video.desktop;
|
||||
inode/directory=file.desktop;
|
||||
x-scheme-handler/http=linkhandler.desktop;
|
||||
x-scheme-handler/https=linkhandler.desktop;
|
||||
application/pgp-keys=import_gpg.desktop;
|
||||
x-scheme-handler/lbry=lbry.desktop;
|
||||
x-scheme-handler/tg=userapp-Telegram Desktop-SQE0W0.desktop
|
||||
|
||||
[Added Associations]
|
||||
x-scheme-handler/tg=userapp-Telegram Desktop-SQE0W0.desktop;
|
@ -1,39 +0,0 @@
|
||||
# Recommended location for database
|
||||
db_file "~/.config/mpd/database"
|
||||
|
||||
# Logs to systemd journal
|
||||
log_file "~/.config/mpd/mpd.log"
|
||||
|
||||
# The music directory is by default the XDG directory, uncomment to amend and choose a different directory
|
||||
music_directory "~/mus"
|
||||
|
||||
# Uncomment to refresh the database whenever files in the music_directory are changed
|
||||
auto_update "yes"
|
||||
|
||||
# Uncomment to enable the functionalities
|
||||
playlist_directory "~/.config/mpd/playlists"
|
||||
pid_file "~/.config/mpd/pid"
|
||||
state_file "~/.config/mpd/state"
|
||||
sticker_file "~/.config/mpd/sticker.sql"
|
||||
|
||||
auto_update "yes"
|
||||
restore_paused "yes"
|
||||
|
||||
audio_output {
|
||||
type "fifo"
|
||||
name "Fifo visualisation"
|
||||
path "/tmp/mpd.fifo"
|
||||
format "44100:16:2"
|
||||
}
|
||||
|
||||
audio_output {
|
||||
type "alsa"
|
||||
name "Alsa for audio sound card"
|
||||
}
|
||||
|
||||
decoder {
|
||||
plugin "faad"
|
||||
enabled "no"
|
||||
}
|
||||
|
||||
port "6600"
|
@ -1,41 +0,0 @@
|
||||
# vim ft=conf
|
||||
|
||||
l seek 5
|
||||
h seek -5
|
||||
Shift+l seek 60
|
||||
Shift+h seek -60
|
||||
|
||||
k cycle sub
|
||||
j cycle sub down
|
||||
v cycle sub-visibility
|
||||
|
||||
Shift+k add video-zoom 0.1
|
||||
Shift+j add video-zoom -0.1
|
||||
|
||||
5 ignore
|
||||
6 ignore
|
||||
|
||||
1 add contrast 1
|
||||
Ctrl+1 add contrast -1
|
||||
2 add brightness 1
|
||||
Ctrl+2 add brightness -1
|
||||
3 add gamma 1
|
||||
Ctrl+3 add gamma -1
|
||||
4 add saturation 1
|
||||
Ctrl+4 add saturation -1
|
||||
0 add volume 1
|
||||
Ctrl+0 add volume -1
|
||||
|
||||
q quit
|
||||
m cycle mute
|
||||
? show-progress
|
||||
|
||||
> playlist-next
|
||||
< playlist-prevs
|
||||
|
||||
s screenshot
|
||||
S screenshot video
|
||||
|
||||
[ multiply speed 0.9091
|
||||
] multiply speed 1.1
|
||||
n set speed 1.0
|
@ -1,11 +0,0 @@
|
||||
# vim ft=conf
|
||||
|
||||
hwdec = auto # hardware decoding
|
||||
|
||||
ytdl-format="bestvideo[height<=?1080]+bestaudio/best"
|
||||
|
||||
fs=yes # start in full screen mode
|
||||
|
||||
slang=en # display english subtitles if available
|
||||
|
||||
save-position-on-quit
|
@ -1,82 +0,0 @@
|
||||
# _ _ _ _
|
||||
# | |__ (_)_ __ __| (_)_ __ __ _ ___
|
||||
# | '_ \| | '_ \ / _` | | '_ \ / _` / __|
|
||||
# | |_) | | | | | (_| | | | | | (_| \__ \
|
||||
# |_.__/|_|_| |_|\__,_|_|_| |_|\__, |___/
|
||||
# |___/
|
||||
|
||||
# Vim like key bindings
|
||||
def_key "j"
|
||||
scroll_down
|
||||
def_key "k"
|
||||
scroll_up
|
||||
def_key "h"
|
||||
previous_column
|
||||
def_key "l"
|
||||
next_column
|
||||
def_key "l"
|
||||
enter_directory
|
||||
def_key "l"
|
||||
run_action
|
||||
def_key "l"
|
||||
play_item
|
||||
def_key "G"
|
||||
move_end
|
||||
def_key "g"
|
||||
move_home
|
||||
def_key "ctrl-u"
|
||||
page_up
|
||||
def_key "ctrl-d"
|
||||
page_down
|
||||
def_key "u"
|
||||
page_up
|
||||
def_key "d"
|
||||
page_down
|
||||
def_key "J"
|
||||
move_sort_order_down
|
||||
def_key "K"
|
||||
move_sort_order_up
|
||||
def_key "h"
|
||||
jump_to_parent_directory
|
||||
|
||||
# Library
|
||||
def_key "m"
|
||||
show_media_library
|
||||
def_key "m"
|
||||
toggle_media_library_columns_mode
|
||||
def_key "t"
|
||||
show_tag_editor
|
||||
def_key "v"
|
||||
show_visualizer
|
||||
def_key "f"
|
||||
show_browser
|
||||
def_key "f"
|
||||
change_browse_mode
|
||||
|
||||
# Search
|
||||
def_key "s"
|
||||
reset_search_engine
|
||||
def_key "s"
|
||||
show_search_engine
|
||||
def_key "n"
|
||||
next_found_item
|
||||
def_key "N"
|
||||
previous_found_item
|
||||
|
||||
# Playlist manage
|
||||
def_key "P"
|
||||
show_playlist
|
||||
def_key "x"
|
||||
delete_playlist_items
|
||||
def_key "ctrl-k"
|
||||
move_selected_items_up
|
||||
def_key "ctrl-j"
|
||||
move_selected_items_down
|
||||
|
||||
# Other
|
||||
def_key "+"
|
||||
show_clock
|
||||
def_key "U"
|
||||
update_database
|
||||
def_key "."
|
||||
show_lyrics
|
@ -1,76 +0,0 @@
|
||||
# _ __ ___ _ __ ___ _ __ ___ _ __ _ __
|
||||
# | '_ \ / __| '_ ` _ \| '_ \ / __| '_ \| '_ \
|
||||
# | | | | (__| | | | | | |_) | (__| |_) | |_) |
|
||||
# |_| |_|\___|_| |_| |_| .__/ \___| .__/| .__/
|
||||
# |_| |_| |_|
|
||||
|
||||
#~~~~~~~~~
|
||||
# GENERAL
|
||||
#~~~~~~~~~
|
||||
mpd_music_dir = "~/mus"
|
||||
lyrics_directory = "~/.config/ncmpcpp/lyrics"
|
||||
ncmpcpp_directory = "~/.config/ncmpcpp"
|
||||
|
||||
visualizer_fifo_path = "/tmp/mpd.fifo"
|
||||
visualizer_output_name = "my_fifo"
|
||||
visualizer_sync_interval = "30"
|
||||
visualizer_in_stereo = "yes"
|
||||
visualizer_type = "spectrum"
|
||||
visualizer_look = "+o"
|
||||
|
||||
song_list_format = {%t}|{$8%f$9}$R{$3(%l)$9}
|
||||
song_status_format = $b{{$5"%t"}} $3by {$4%a{ $3in $7%b{ (%y)}} $3}|{$8%f}
|
||||
song_library_format = {%t}|{%f}
|
||||
song_columns_list_format = "(25)[blue]{a} (40)[blue]{t|f:Title} (30)[blue]{b} (7f)[blue] {l}"
|
||||
progressbar_look = "->-"
|
||||
|
||||
playlist_show_remaining_time = "yes"
|
||||
playlist_separate_albums = "yes"
|
||||
|
||||
playlist_display_mode = "columns" (classic/columns)
|
||||
browser_display_mode = "columns" (classic/columns)
|
||||
search_engine_display_mode = "columns" (classic/columns)
|
||||
|
||||
default_place_to_search_in = "database"
|
||||
user_interface = "alternative"
|
||||
header_visibility = "no"
|
||||
titles_visibility = "yes"
|
||||
|
||||
clock_display_seconds = "no"
|
||||
display_volume_level = "yes"
|
||||
display_bitrate = "no"
|
||||
display_remaining_time = "no"
|
||||
regular_expressions = "extended"
|
||||
show_hidden_files_in_local_browser = "no"
|
||||
|
||||
ignore_leading_the = "yes"
|
||||
mouse_support = "no"
|
||||
|
||||
enable_window_title = "yes"
|
||||
external_editor = "nvim"
|
||||
use_console_editor = "yes"
|
||||
|
||||
#~~~~~~~~~~~~~
|
||||
# COLORSCHEME
|
||||
#~~~~~~~~~~~~~
|
||||
colors_enabled = "yes"
|
||||
header_window_color = "default"
|
||||
main_window_color = "white"
|
||||
progressbar_color = "green"
|
||||
alternative_ui_separator_color = "red"
|
||||
empty_tag_marker = ""
|
||||
current_item_prefix = $(blue)$r$b
|
||||
current_item_suffix = $/r$(end)$/b
|
||||
current_item_inactive_column_prefix = $(4)$r
|
||||
current_item_inactive_column_suffix = $/r$(end)
|
||||
now_playing_prefix = $b
|
||||
now_playing_suffix = $/b
|
||||
browser_playlist_prefix = "$2playlist$9 "
|
||||
selected_item_prefix = $6
|
||||
selected_item_suffix = $9
|
||||
modified_item_prefix = $3> $9
|
||||
|
||||
def_key "K"
|
||||
move_sort_order_up
|
||||
def_key "J"
|
||||
move_sort_order_down
|
@ -1,40 +0,0 @@
|
||||
#show-read-feeds no
|
||||
auto-reload no
|
||||
|
||||
download-path "~/pods/%n"
|
||||
|
||||
external-url-viewer "urlscan -dc -r 'linkhandler {}'"
|
||||
|
||||
bind-key j down
|
||||
bind-key k up
|
||||
bind-key j next articlelist
|
||||
bind-key k prev articlelist
|
||||
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
|
||||
|
||||
color background default default
|
||||
color listnormal color8 default
|
||||
color listnormal_unread default default
|
||||
color listfocus_unread color4 color0
|
||||
color listfocus color3 color0
|
||||
color info color4 color0
|
||||
color article white default
|
||||
|
||||
browser linkhandler
|
||||
macro , open-in-browser
|
||||
macro v set browser "mpv"; open-in-browser ; set browser linkhandler
|
||||
macro w set browser "w3m"; open-in-browser ; set browser linkhandler
|
||||
macro l set browser "linkhandler"; open-in-browser ; set browser linkhandler
|
||||
macro c set browser "xclip -sel clip <<<" ; open-in-browser ; set browser linkhandler
|
@ -1,87 +0,0 @@
|
||||
"==============
|
||||
" Key Bindings
|
||||
"==============
|
||||
" Leader key
|
||||
let mapleader = "\<Space>"
|
||||
let g:move_key_modifier = 'A'
|
||||
|
||||
" Enable/disable autopairs
|
||||
nmap <Leader>ap :CloseTagToggleBuffer<CR>:echo "Auto closing HTML tags toggled."<CR>
|
||||
|
||||
" Enable/disable deoplete
|
||||
nmap <Leader>d :call deoplete#toggle()<CR>:echo "Deoplete toggled."<CR>
|
||||
|
||||
"~~~~~~~~~~~~~~~~~
|
||||
" File Management
|
||||
"~~~~~~~~~~~~~~~~~
|
||||
" fzf
|
||||
nnoremap <silent> <Leader>f :Files<CR>
|
||||
nnoremap <silent> <Leader>F :Files ~<CR>
|
||||
|
||||
"~~~~~~~~~
|
||||
" Linters
|
||||
"~~~~~~~~~
|
||||
" Deletes all trailing whitespaces
|
||||
noremap <leader>c :%s/\s\+$//e<cr>
|
||||
|
||||
" ALE
|
||||
map fw :FixWhitespace<CR>
|
||||
map <Leader>af :ALEFix<CR>
|
||||
map <Leader>an :ALENext<CR>
|
||||
map <Leader>aN :ALEPrevious<CR>
|
||||
map <Leader>ad :ALEDetail<CR>
|
||||
map <Leader>ag :ALEGoToDefinitionInSplit<CR>
|
||||
map <Leader>aG :ALEGoToDefinition<CR>
|
||||
|
||||
" Spell-check (English US and Polish)
|
||||
map <F6> :setlocal spell! spelllang=en_us<CR>
|
||||
map <F7> :setlocal spell! spelllang=pl<CR>
|
||||
|
||||
"~~~~~~~~~~~~~~~~~~
|
||||
" Window Managment
|
||||
"~~~~~~~~~~~~~~~~~~
|
||||
" Tab Managment
|
||||
map <S-o> :tabnew<CR>
|
||||
map <S-d> :tabclose<CR>
|
||||
nnoremap <S-j> gt
|
||||
nnoremap <S-k> gT
|
||||
|
||||
" Open terminal
|
||||
noremap <C-A-t> :split term://zsh<cr>:resize 10<cr>
|
||||
|
||||
" Exit from terminal mode
|
||||
tnoremap <C-e> <C-\><C-n>
|
||||
|
||||
" Split management
|
||||
nnoremap <C-j> <C-w><C-j>
|
||||
nnoremap <C-k> <C-w><C-k>
|
||||
nnoremap <C-l> <C-w><C-l>
|
||||
nnoremap <C-h> <C-w><C-h>
|
||||
|
||||
"~~~~~~~
|
||||
" Other
|
||||
"~~~~~~~
|
||||
" Disable hlsearch
|
||||
map <silent> <C-s> :noh<CR>
|
||||
|
||||
" Go to last change
|
||||
map <Leader>l :'.<CR>
|
||||
|
||||
map j gj
|
||||
map k gk
|
||||
|
||||
" SuperTab
|
||||
let g:SuperTabMappingTabLiteral = '<a-tab>'
|
||||
let g:SuperTabDefaultCompletionType = 'context'
|
||||
let g:SuperTabContextDefaultCompletionType = '<c-n>'
|
||||
|
||||
" neosnippets
|
||||
smap <expr><TAB> neosnippet#expandable_or_jumpable() ?
|
||||
\ "\<Plug>(neosnippet_expand_or_jump)" : "\<TAB>"
|
||||
|
||||
imap <C-k> <Plug>(neosnippet_expand_or_jump)
|
||||
smap <C-k> <Plug>(neosnippet_expand_or_jump)
|
||||
xmap <C-k> <Plug>(neosnippet_expand_target)
|
||||
|
||||
" substitute
|
||||
nnoremap S :%s//g<LEFT><LEFT>
|
@ -1,110 +0,0 @@
|
||||
"
|
||||
" ██
|
||||
" ░██
|
||||
" █████ ██████ ░██ ██████ ██████ ██████
|
||||
" ██░░░██ ██░░░░██ ░██ ██░░░░██░░██░░█ ██░░░░
|
||||
" ░██ ░░ ░██ ░██ ░██░██ ░██ ░██ ░ ░░█████
|
||||
" ░██ ██░██ ░██ ░██░██ ░██ ░██ ░░░░░██
|
||||
" ░░█████ ░░██████ ███░░██████ ░███ ██████
|
||||
" ░░░░░ ░░░░░░ ░░░ ░░░░░░ ░░░ ░░░░░░
|
||||
|
||||
if exists('syntax_on')
|
||||
syntax reset
|
||||
endif
|
||||
|
||||
hi clear
|
||||
|
||||
hi TabLine ctermfg=NONE ctermbg=NONE cterm=NONE
|
||||
hi TabLineSel ctermfg=4 ctermbg=NONE cterm=bold
|
||||
hi TabLineFill ctermfg=NONE ctermbg=NONE cterm=NONE
|
||||
hi Title ctermfg=15 ctermbg=NONE cterm=NONE
|
||||
|
||||
hi LineNr ctermfg=238 cterm=none
|
||||
hi CursorLineNr ctermfg=220 ctermbg=8 cterm=bold
|
||||
hi ColorColumn ctermfg=1 ctermbg=0 cterm=undercurl
|
||||
hi SignColumn ctermfg=7 ctermbg=none
|
||||
hi VertSplit ctermfg=0 ctermbg=8
|
||||
|
||||
hi Comment ctermfg=4
|
||||
hi String ctermfg=1
|
||||
|
||||
hi Visual ctermbg=8
|
||||
hi Search ctermbg=8 cterm=bold,reverse
|
||||
hi MatchParen ctermfg=3 ctermbg=0 cterm=bold
|
||||
hi Statement ctermfg=3
|
||||
|
||||
hi ErrorMsg ctermfg=1 ctermbg=none
|
||||
hi Error ctermfg=0 ctermbg=1 cterm=undercurl
|
||||
|
||||
hi SpellBad ctermfg=0 ctermbg=1 cterm=undercurl
|
||||
hi SpellCap ctermfg=0 ctermbg=2 cterm=undercurl
|
||||
hi SpellRare ctermfg=0 ctermbg=none cterm=undercurl
|
||||
hi SpellLocal ctermfg=0 ctermbg=5 cterm=undercurl
|
||||
|
||||
hi DiffAdd ctermfg=0 ctermbg=2
|
||||
hi DiffChange ctermfg=0 ctermbg=4
|
||||
hi DiffDelete ctermfg=0 ctermbg=1
|
||||
hi DiffText ctermfg=0 ctermbg=4
|
||||
|
||||
hi Folded ctermbg=8
|
||||
hi FoldColumn ctermbg=8
|
||||
|
||||
hi Pmenu ctermfg=12 ctermbg=234
|
||||
hi PmenuSel ctermfg=12 ctermbg=8
|
||||
hi PmenuThumb ctermfg=8 ctermbg=8
|
||||
hi PmenuSbar ctermfg=0 ctermbg=0
|
||||
hi StatusLineNC ctermfg=8 ctermbg=NONE cterm=bold
|
||||
hi StatusLine ctermfg=14 ctermbg=NONE cterm=NONE
|
||||
hi MyStatuslineFilename ctermfg=12 ctermbg=NONE
|
||||
hi MyStatuslineFiletype ctermfg=9 ctermbg=none cterm=italic
|
||||
|
||||
hi MyStatuslineLineCol ctermfg=1 ctermbg=none cterm=none
|
||||
hi MyStatuslineLinePerc ctermfg=2 ctermbg=none cterm=none
|
||||
" hi CursorLine ctermfg=none ctermbg=none cterm=none
|
||||
" hi CursorColumn ctermbg=8 cterm=NONE
|
||||
|
||||
" ALE
|
||||
hi ALEWarning cterm=undercurl
|
||||
hi ALEError cterm=undercurl
|
||||
hi ALEWarningSign ctermbg=none ctermfg=3 cterm=bold
|
||||
hi ALEErrorSign ctermbg=none ctermfg=1 cterm=bold
|
||||
|
||||
" LSP
|
||||
hi LspWarningText ctermfg=3 ctermbg=none cterm=bold
|
||||
hi LspHintText ctermfg=3 ctermbg=none cterm=none
|
||||
hi LspErrorLine ctermfg=red cterm=undercurl
|
||||
hi LspErrorText ctermfg=red ctermbg=none
|
||||
|
||||
" " Cursorline highlight
|
||||
" augroup CursorLine
|
||||
" au!
|
||||
" au VimEnter,WinEnter,BufWinEnter * setlocal cursorline
|
||||
" au WinLeave * setlocal nocursorline
|
||||
" augroup END
|
||||
|
||||
" Files
|
||||
hi Win ctermfg=white ctermbg=none cterm=none
|
||||
hi Directory ctermfg=blue ctermbg=none cterm=bold
|
||||
hi Link ctermfg=cyan ctermbg=none cterm=none
|
||||
hi BrokenLink ctermfg=red ctermbg=none cterm=bold
|
||||
hi Socket ctermfg=magenta ctermbg=none cterm=bold
|
||||
hi Device ctermfg=red ctermbg=none cterm=bold
|
||||
hi Fifo ctermfg=red ctermbg=none cterm=bold
|
||||
" hi Executable ctermfg=0 ctermbg=1 cterm=bold
|
||||
|
||||
" Syntax
|
||||
|
||||
hi Comment ctermfg=10
|
||||
hi Constant ctermfg=3 cterm=none
|
||||
hi Identifier ctermfg=180
|
||||
hi Statement ctermfg=13 cterm=italic
|
||||
hi PreProc ctermfg=13
|
||||
hi Type ctermfg=12 cterm=bold
|
||||
hi Special ctermfg=135
|
||||
" hi Error ctermfg=0
|
||||
|
||||
" githutter
|
||||
hi GitGutterChange ctermbg=none ctermfg=3 cterm=bold
|
||||
hi GitGutterAdd ctermbg=none ctermfg=2 cterm=bold
|
||||
hi GitGutterDelete ctermbg=none ctermfg=1 cterm=bold
|
||||
hi GitGutterChangeDelete ctermbg=none ctermfg=5 cterm=bold
|
@ -1,84 +0,0 @@
|
||||
" load other modules
|
||||
source $HOME/.config/nvim/statusline.vim
|
||||
source $HOME/.config/nvim/plugins.vim
|
||||
source $HOME/.config/nvim/bindings.vim
|
||||
|
||||
" basic stuff
|
||||
syntax on
|
||||
filetype plugin indent on
|
||||
set scrolloff=5
|
||||
set pumheight=10
|
||||
set autoindent
|
||||
set smarttab
|
||||
set number relativenumber
|
||||
set clipboard=unnamedplus
|
||||
set inccommand=nosplit
|
||||
set tabstop=2
|
||||
set shiftwidth=2
|
||||
set ignorecase
|
||||
set smartcase
|
||||
set undofile
|
||||
set background=light
|
||||
set mouse=a
|
||||
set splitright
|
||||
set splitbelow
|
||||
set noshowmode
|
||||
set shortmess+=I
|
||||
set autochdir
|
||||
scriptencoding utf-8
|
||||
color biual
|
||||
|
||||
" ignore files which vim doesn't use
|
||||
set wildignore+=.git,.hg,.svn
|
||||
set wildignore+=*.aux,*.out,*.toc
|
||||
set wildignore+=*.o,*.obj,*.exe,*.dll,*.manifest,*.rbc,*.class
|
||||
set wildignore+=*.ai,*.bmp,*.gif,*.ico,*.jpg,*.jpeg,*.png,*.psd,*.webp
|
||||
set wildignore+=*.avi,*.divx,*.mp4,*.webm,*.mov,*.m2ts,*.mkv,*.vob,*.mpg,*.mpeg
|
||||
set wildignore+=*.mp3,*.oga,*.ogg,*.wav,*.flac,*.opus
|
||||
set wildignore+=*.eot,*.otf,*.ttf,*.woff
|
||||
set wildignore+=*.doc,*.pdf,*.cbr,*.cbz
|
||||
set wildignore+=*.zip,*.tar.gz,*.tar.bz2,*.rar,*.tar.xz,*.kgb
|
||||
set wildignore+=*.swp,.lock,.DS_Store,._*
|
||||
|
||||
" restore cursor position
|
||||
function! ResCur()
|
||||
if line("'\"") <= line("$")
|
||||
normal! g`"
|
||||
return 1
|
||||
endif
|
||||
endfunction
|
||||
augroup resCur
|
||||
autocmd!
|
||||
autocmd BufWinEnter * call ResCur()
|
||||
augroup END
|
||||
|
||||
" python paths, needed for virtualenvs
|
||||
let g:python3_host_prog = '/usr/bin/python3'
|
||||
let g:python_host_prog = '/usr/bin/python2'
|
||||
|
||||
" language-specific
|
||||
augroup langindentation
|
||||
autocmd Filetype c setlocal expandtab tabstop=2 shiftwidth=2 softtabstop=2
|
||||
autocmd Filetype python setlocal expandtab tabstop=4 shiftwidth=4 softtabstop=4
|
||||
autocmd Filetype cpp setlocal expandtab tabstop=2 shiftwidth=2 softtabstop=2
|
||||
autocmd Filetype css setlocal expandtab tabstop=2 shiftwidth=2 softtabstop=2
|
||||
autocmd Filetype javascript setlocal expandtab tabstop=2 shiftwidth=2 softtabstop=2
|
||||
autocmd Filetype html setlocal expandtab tabstop=2 shiftwidth=2 softtabstop=2
|
||||
autocmd Filetype json setlocal expandtab tabstop=2 shiftwidth=2 softtabstop=2
|
||||
autocmd Filetype scss setlocal expandtab tabstop=2 shiftwidth=2 softtabstop=2
|
||||
autocmd Filetype php setlocal expandtab tabstop=2 shiftwidth=2 softtabstop=2
|
||||
autocmd Filetype yaml setlocal expandtab tabstop=2 shiftwidth=2 softtabstop=2
|
||||
autocmd Filetype sh setlocal expandtab tabstop=2 shiftwidth=2 softtabstop=2
|
||||
augroup END
|
||||
|
||||
" automatically reload configs on save
|
||||
autocmd BufWritePost *Xresources,*Xdefaults !xrdb %
|
||||
autocmd BufWritePost *sxhkdrc !pkill -USR1 sxhkd
|
||||
autocmd BufWritePost *picom.conf !pkill -USR1 picom; picom -b
|
||||
|
||||
" automatically deletes all trailing whitespace and newlines at end of file on save
|
||||
autocmd BufWritePre * %s/\s\+$//e
|
||||
autocmd BufWritepre * %s/\n\+\%$//e
|
||||
|
||||
" chuj
|
||||
autocmd FileType * setlocal formatoptions-=c formatoptions-=r formatoptions-=o
|
@ -1,126 +0,0 @@
|
||||
" Install vim-plug if is not installed yet.
|
||||
if ! filereadable(expand('~/.config/nvim/autoload/plug.vim'))
|
||||
echo "Downloading junegunn/vim-plug to manage plugins..."
|
||||
silent !mkdir -p ~/.config/nvim/autoload/
|
||||
silent !curl "https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim" > ~/.config/nvim/autoload/plug.vim
|
||||
autocmd VimEnter * PlugInstall
|
||||
endif
|
||||
|
||||
" Initialize plugins
|
||||
call plug#begin('~/.config/nvim/bundle')
|
||||
Plug '~/.fzf'
|
||||
Plug 'junegunn/fzf.vim'
|
||||
|
||||
Plug 'dense-analysis/ale'
|
||||
|
||||
Plug 'Shougo/deoplete.nvim', { 'do': ':UpdateRemotePlugins' }
|
||||
Plug 'Shougo/deoplete-clangx'
|
||||
Plug 'deoplete-plugins/deoplete-jedi'
|
||||
Plug 'deoplete-plugins/deoplete-zsh'
|
||||
|
||||
Plug 'ervandew/supertab'
|
||||
|
||||
" Snippets
|
||||
Plug 'Shougo/neosnippet.vim'
|
||||
Plug 'samedamci/snippets'
|
||||
|
||||
Plug 'tpope/vim-surround'
|
||||
Plug 'tpope/vim-commentary'
|
||||
Plug 'alvan/vim-closetag'
|
||||
|
||||
Plug 'sheerun/vim-polyglot'
|
||||
Plug 'luochen1990/rainbow'
|
||||
|
||||
Plug 'reedes/vim-pencil'
|
||||
Plug 'chaoren/vim-wordmotion'
|
||||
Plug 'matze/vim-move'
|
||||
|
||||
Plug 'airblade/vim-gitgutter'
|
||||
|
||||
" syntax
|
||||
Plug 'bfrg/vim-cpp-modern'
|
||||
Plug 'vim-python/python-syntax'
|
||||
Plug 'jelera/vim-javascript-syntax'
|
||||
call plug#end()
|
||||
|
||||
"========
|
||||
" Config
|
||||
"========
|
||||
" ALE
|
||||
let g:ale_sign_error = ''
|
||||
let g:ale_sign_warning = ''
|
||||
|
||||
let g:ale_linters = {
|
||||
\ 'c': ['ccls'],
|
||||
\ 'cpp': ['ccls'],
|
||||
\ 'javascript': ['eslint'],
|
||||
\ 'php': ['php'],
|
||||
\ 'python': ['flake8'],
|
||||
\ 'sh': ['language_server', 'shellcheck', 'shell'],
|
||||
\ 'zsh': ['language_server', 'shellcheck', 'shell'],
|
||||
\ 'go': ['gofmt'],
|
||||
\}
|
||||
let g:ale_fixers = {
|
||||
\ '*': ['trim_whitespace', 'remove_trailing_lines'],
|
||||
\ 'c': ['clang-format'],
|
||||
\ 'cpp': ['clang-format'],
|
||||
\ 'css': ['prettier'],
|
||||
\ 'go': ['gofmt'],
|
||||
\ 'html': ['prettier'],
|
||||
\ 'javascript': ['prettier'],
|
||||
\ 'json': ['prettier'],
|
||||
\ 'php': ['prettier'],
|
||||
\ 'python': ['black'],
|
||||
\ 'scss': ['prettier'],
|
||||
\ 'yaml': ['prettier'],
|
||||
\}
|
||||
|
||||
let g:ale_python_autopep8_use_global = 1
|
||||
let g:ale_python_black_use_global = 1
|
||||
|
||||
" fzf
|
||||
let g:fzf_layout = {
|
||||
\ 'up':'~90%',
|
||||
\ 'window':
|
||||
\ {
|
||||
\ 'width': 0.7,
|
||||
\ 'height': 0.7,
|
||||
\ 'yoffset':0.5,
|
||||
\ 'xoffset': 0.5,
|
||||
\ 'border': 'sharp'
|
||||
\ }
|
||||
\}
|
||||
let g:fzf_preview_window = 'right:55%'
|
||||
|
||||
" gitgutter
|
||||
set updatetime=1000
|
||||
|
||||
" deoplete
|
||||
let g:deoplete#enable_at_startup = 1
|
||||
let g:deoplete#enable_ignore_case = 1
|
||||
|
||||
call deoplete#custom#source('ultisnips', 'rank', 1000)
|
||||
call deoplete#custom#source('zsh', 'filetypes', ['sh', 'zsh'])
|
||||
call deoplete#custom#option('smart_case', v:false)
|
||||
set completeopt-=preview
|
||||
|
||||
" vim-closetag
|
||||
let g:closetag_filenames = '*.html,*.xhtml,*.phtml'
|
||||
let g:closetag_xhtml_filenames = '*.xhtml,*.jsx'
|
||||
let g:closetag_filetypes = 'html,xhtml,phtml'
|
||||
let g:closetag_xhtml_filetypes = 'xhtml,jsx'
|
||||
let g:closetag_emptyTags_caseSensitive = 1
|
||||
let g:closetag_shortcut = '>'
|
||||
|
||||
" Enable "Rainbow Parentheses Improved"
|
||||
let g:rainbow_active = 1
|
||||
|
||||
" pencil
|
||||
augroup pencil
|
||||
autocmd!
|
||||
autocmd FileType markdown call pencil#init({'wrap': 'soft', 'autoformat': 1})
|
||||
autocmd FileType tex call pencil#init({'wrap': 'soft', 'autoformat': 1})
|
||||
augroup END
|
||||
|
||||
" python syntax
|
||||
let g:python_highlight_all = 1
|
@ -1,57 +0,0 @@
|
||||
" Mode icon
|
||||
function! Mode(mode)
|
||||
if a:mode == 'n' " Normal
|
||||
return ' '
|
||||
elseif a:mode == 'i' " Insert
|
||||
return ' '
|
||||
elseif a:mode == 'R' " Replace
|
||||
return ' '
|
||||
elseif a:mode == 'v' " Visual
|
||||
return ' '
|
||||
elseif a:mode == '' " Visual Block
|
||||
return ' '
|
||||
elseif a:mode == 'c' " Command
|
||||
return ' '
|
||||
elseif a:mode == 't' " Terminal
|
||||
return ' '
|
||||
endif
|
||||
|
||||
return ' '
|
||||
endfunction
|
||||
|
||||
|
||||
" Modification mark
|
||||
function! SetModifiedSymbol(modified)
|
||||
if a:modified == 1
|
||||
hi MyStatuslineModifiedBody ctermbg=NONE cterm=NONE ctermfg=3
|
||||
else
|
||||
hi MyStatuslineModifiedBody ctermbg=NONE cterm=bold ctermfg=8
|
||||
endif
|
||||
return ' '
|
||||
endfunction
|
||||
|
||||
|
||||
" Filetype
|
||||
function! SetFiletype(filetype)
|
||||
if a:filetype == ''
|
||||
return 'unknown'
|
||||
else
|
||||
return a:filetype
|
||||
endif
|
||||
endfunction
|
||||
|
||||
|
||||
" Set elements and decorators
|
||||
set statusline=%#MyStatuslineSeparator#\ "
|
||||
set statusline+=%{Mode(mode())}
|
||||
|
||||
set statusline+=%#MyStatuslineSeparator#\ "
|
||||
set statusline+=%#MyStatuslineLineCol#
|
||||
set statusline+=%l,%c
|
||||
|
||||
set statusline+=%=
|
||||
set statusline+=\%#MyStatuslineFiletype#%{SetFiletype(&filetype)}
|
||||
set statusline+=%#MyStatuslineSeparator#\ \ "
|
||||
set statusline+=%#MyStatuslineFilename#%t
|
||||
set statusline+=%#MyStatuslineSeparator#\ \ "
|
||||
set statusline+=%#MyStatuslineModifiedBody#%{SetModifiedSymbol(&modified)}%#Reset#
|
@ -1,47 +0,0 @@
|
||||
backend = "glx";
|
||||
vsync = true;
|
||||
unredir-if-possible = false;
|
||||
glx-no-stencil = true;
|
||||
detect-rounded-corners = true;
|
||||
glx-no-rebind-pixmap = true;
|
||||
use-damage = false;
|
||||
|
||||
blur-background = true;
|
||||
blur-kern = "7x7box"
|
||||
|
||||
shadow = true;
|
||||
opacity = true;
|
||||
shadow-radius = 10;
|
||||
shadow-offset-x = -10;
|
||||
shadow-offset-y = -10;
|
||||
shadow-opacity = 0.9;
|
||||
|
||||
mark-wmwin-focused = false;
|
||||
mark-ovredir-focused = false;
|
||||
|
||||
inactive-dim = 0.2;
|
||||
inactive-dim-exclude = [
|
||||
"class_g = 'slop'",
|
||||
"class_g = 'maim'",
|
||||
]
|
||||
focus-exclude = [
|
||||
"class_g *?= 'dmenu'",
|
||||
"class_g *?= 'Rofi'",
|
||||
]
|
||||
|
||||
detect-client-opacity = true;
|
||||
opacity-rule = [
|
||||
"93:class_g *?= 'Rofi'",
|
||||
"90:class_g *?= 'st'",
|
||||
"85:class_g *?= 'dwm'",
|
||||
];
|
||||
|
||||
blur-background-exclude = [
|
||||
"class_g = 'slop'",
|
||||
]
|
||||
|
||||
shadow-exclude = [
|
||||
"class_g *?= 'polybar'",
|
||||
"class_g *?= 'dmenu'",
|
||||
"class_g = 'Bspwm' && class_i = 'presel_feedback'",
|
||||
]
|
Before Width: | Height: | Size: 6.1 KiB |
@ -1,181 +0,0 @@
|
||||
{
|
||||
"Top 20 Pop": "96",
|
||||
"Top 20 PL": "97",
|
||||
"Top 20 Impreza": "95",
|
||||
"Top 20 Disco Polo": "53",
|
||||
"Top 20 Hip-Hop": "98",
|
||||
"Top 20 Rock": "99",
|
||||
"Top 20 Alt": "83",
|
||||
"Top 2020 Hits": "131",
|
||||
"Radio 357": "357",
|
||||
"Radio Nowy Świat": "368",
|
||||
"WP Radio: muzyka i informacje": "367",
|
||||
"Radiospacja": "375",
|
||||
"Radio TOK FM": "200",
|
||||
"Radio Złote Przeboje": "201",
|
||||
"Rock Radio": "202",
|
||||
"Radio Pogoda": "203",
|
||||
"Radio Kolor": "331",
|
||||
"newonce.radio": "374",
|
||||
"Halo.Radio": "372",
|
||||
"Radio Kampus": "337",
|
||||
"Radio Rockserwis FM": "379",
|
||||
"Polish Radio London": "373",
|
||||
"Radio Akadera": "332",
|
||||
"Akademickie Radio LUZ": "334",
|
||||
"Radio Fest": "335",
|
||||
"Radio CCM": "336",
|
||||
"Radio Centrum (Lublin)": "339",
|
||||
"100% Hits": "64",
|
||||
"4FUN Radio": "173",
|
||||
"Freszzz: Zima 2021": "39",
|
||||
"Hot Lista Open FM": "327",
|
||||
"#popularne": "10",
|
||||
"Po Polsku": "1",
|
||||
"1001 Hits": "11",
|
||||
"Największe Przeboje XX w.": "163",
|
||||
"Ballady Wszech Czasów": "20",
|
||||
"10s Hits": "352",
|
||||
"00s Hits": "72",
|
||||
"90s Hits": "14",
|
||||
"80s Hits": "3",
|
||||
"Classic Hits": "46",
|
||||
"Top Wszech Czasów - Świat": "151",
|
||||
"Top Wszech Czasów - Polska": "152",
|
||||
"Tylko Polskie Przeboje": "111",
|
||||
"Po Polsku 90": "369",
|
||||
"Po Polsku 80": "79",
|
||||
"Po Polsku 60/70": "17",
|
||||
"Polskie Ballady": "165",
|
||||
"Girl Power!": "364",
|
||||
"K-pop": "147",
|
||||
"Gwiazdy": "58",
|
||||
"Latino Hits": "19",
|
||||
"100% Ed Sheeran": "134",
|
||||
"100% One Direction": "80",
|
||||
"Dzień Dobry!": "69",
|
||||
"Praca": "109",
|
||||
"W Domu": "365",
|
||||
"Szkoła": "347",
|
||||
"Dobry Wieczór": "137",
|
||||
"Dobranoc": "74",
|
||||
"Muzyka do snu": "70",
|
||||
"Weekend Hits": "127",
|
||||
"Weekend Chill": "126",
|
||||
"We Dwoje": "4",
|
||||
"Happy": "120",
|
||||
"Sad": "103",
|
||||
"Relaks": "112",
|
||||
"Joga": "362",
|
||||
"Crema Café": "76",
|
||||
"Nauka": "117",
|
||||
"Koncentracja": "161",
|
||||
"Chillout": "33",
|
||||
"Ladies Café": "48",
|
||||
"Love": "121",
|
||||
"Sexy: Soul & R'n'B": "18",
|
||||
"Spacer": "144",
|
||||
"Hygge": "138",
|
||||
"Retro Café": "25",
|
||||
"Impreza": "2",
|
||||
"500 Party Hits": "81",
|
||||
"Dance": "31",
|
||||
"House": "5",
|
||||
"Trance": "7",
|
||||
"Ladies Party": "102",
|
||||
"Wesele": "110",
|
||||
"Classic Party": "50",
|
||||
"Klub 90": "8",
|
||||
"Italo Disco": "27",
|
||||
"Do Auta Club": "114",
|
||||
"Disco Polo": "21",
|
||||
"Impreza PL": "12",
|
||||
"Disco Polo Freszzz": "57",
|
||||
"Disco Polo Classic": "49",
|
||||
"Polo & Dance": "128",
|
||||
"SBM Radio": "384",
|
||||
"Hip-Hop PL": "24",
|
||||
"Hip-Hop Freszzz": "93",
|
||||
"Miejska Stacja": "366",
|
||||
"Top Wszech Czasów - Hip-Hop PL": "176",
|
||||
"500 Hip-Hop Hits": "84",
|
||||
"Trap USA": "354",
|
||||
"Trap PL": "355",
|
||||
"500 R'n'b Hits": "26",
|
||||
"Hip-Hop USA": "23",
|
||||
"Hip-Hop Klasyk": "107",
|
||||
"Hip-Hop Ulica": "92",
|
||||
"Taco i Quebo": "199",
|
||||
"100% Chada": "198",
|
||||
"100% O.S.T.R.": "47",
|
||||
"500 Rock Hits": "82",
|
||||
"Praca Rock": "104",
|
||||
"Top Wszech Czasów - Rock": "153",
|
||||
"Top Wszech Czasów - Rock PL": "186",
|
||||
"Polska Rocks!": "177",
|
||||
"Polski Rock": "29",
|
||||
"Polski Rock Classic": "45",
|
||||
"Radio Rak'n'Roll": "168",
|
||||
"Rocks": "77",
|
||||
"Giganci Rocka": "118",
|
||||
"American Rock": "40",
|
||||
"Grunge": "157",
|
||||
"Rock Ballady": "61",
|
||||
"Classic Rock": "32",
|
||||
"500 Heavy Hits": "54",
|
||||
"Classic Metal": "108",
|
||||
"Ciężkie Brzmienia": "13",
|
||||
"Do Auta Rock": "113",
|
||||
"Punk Rock": "78",
|
||||
"The Best of Happysad": "136",
|
||||
"100% Dżem": "15",
|
||||
"100% Kazik": "35",
|
||||
"100% Grabaż": "73",
|
||||
"100% Kora & Maanam": "158",
|
||||
"100% Queen": "185",
|
||||
"100% Guns N' Roses": "181",
|
||||
"100% Metallica": "62",
|
||||
"100% Iron Maiden": "182",
|
||||
"100% Linkin Park": "42",
|
||||
"500 Alternative Hits": "55",
|
||||
"Alt PL": "36",
|
||||
"Alt Freszzz": "6",
|
||||
"Alt Café": "34",
|
||||
"Alt Classic": "43",
|
||||
"Alt Club": "9",
|
||||
"The Best of Britpop": "159",
|
||||
"100% Depeche Mode": "135",
|
||||
"The Best of Coldplay": "145",
|
||||
"500 Electronic Hits": "94",
|
||||
"EDM Anthems": "361",
|
||||
"Beats & Bass": "106",
|
||||
"Dubstep": "68",
|
||||
"Drum'n'Bass": "41",
|
||||
"Trening": "101",
|
||||
"Fitness": "65",
|
||||
"Bieganie": "116",
|
||||
"Cardio": "141",
|
||||
"Muzyka Motywacyjna": "143",
|
||||
"Kids - Muzyka & Ciekawostki": "16",
|
||||
"Piosenki Dla Dzieci": "160",
|
||||
"Piosenki Po Angielsku": "353",
|
||||
"Kołysanki": "142",
|
||||
"Pozytywki": "194",
|
||||
"Szum": "193",
|
||||
"500 Reggae Hits": "30",
|
||||
"Polskie Reggae": "22",
|
||||
"Jazz": "166",
|
||||
"Smooth Jazz": "60",
|
||||
"Muzyka Klasyczna": "67",
|
||||
"Muzyka Filmowa": "38",
|
||||
"Kraina Łagodności": "37",
|
||||
"Szanty": "28",
|
||||
"Biesiada": "59",
|
||||
"Biesiada Śląska": "66",
|
||||
"Odgłosy Natury": "52",
|
||||
"100% Ukraina": "167",
|
||||
"Ukraina Top 20": "191",
|
||||
"Rock UA": "172",
|
||||
"Dance UA": "187",
|
||||
"Shanson": "169"
|
||||
}
|
Before Width: | Height: | Size: 25 KiB |
Before Width: | Height: | Size: 48 KiB |
Before Width: | Height: | Size: 10 KiB |
Before Width: | Height: | Size: 19 KiB |
@ -1,148 +0,0 @@
|
||||
configuration {
|
||||
modi: "drun,run";
|
||||
width: 450;
|
||||
font: "JetBrains Mono 9";
|
||||
location: 2;
|
||||
yoffset: 60;
|
||||
xoffset: 0;
|
||||
show-icons: false;
|
||||
}
|
||||
|
||||
* {
|
||||
maincolor: ${SBG};
|
||||
urgentcolor: ${FG};
|
||||
prompt-background: ${ASBG};
|
||||
scrollbar-handle: ${ASEL};
|
||||
foreground: ${FG};
|
||||
highlight: bold ${C12};
|
||||
background: @maincolor;
|
||||
background-color: @maincolor;
|
||||
blackselect: ${SEL};
|
||||
}
|
||||
|
||||
window {
|
||||
background-color: @background;
|
||||
border: 0;
|
||||
border-color: @maincolor;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
mainbox {
|
||||
background-color: @background;
|
||||
spacing: 0px;
|
||||
children: [inputbar, message, listview];
|
||||
}
|
||||
|
||||
message {
|
||||
padding: 6px 10px;
|
||||
background-color: @background;
|
||||
}
|
||||
|
||||
textbox {
|
||||
text-color: @urgentcolor;
|
||||
padding: 10px 10px;
|
||||
background-color: @background;
|
||||
}
|
||||
|
||||
listview {
|
||||
columns: 1;
|
||||
fixed-height: false;
|
||||
scrollbar: true;
|
||||
spacing: 0px;
|
||||
padding: 1px 0px 0px 0px;
|
||||
margin: 0px 0px 1px 0px;
|
||||
background: @background;
|
||||
}
|
||||
|
||||
element {
|
||||
padding: 4px 15px;
|
||||
}
|
||||
|
||||
element normal.normal {
|
||||
padding: 0px 15px;
|
||||
background-color: @background;
|
||||
text-color: @urgentcolor;
|
||||
}
|
||||
|
||||
element normal.urgent {
|
||||
background-color: @background;
|
||||
text-color: @urgentcolor;
|
||||
}
|
||||
|
||||
element normal.active {
|
||||
background-color: @background;
|
||||
text-color: @maincolor;
|
||||
}
|
||||
|
||||
element selected.normal {
|
||||
background-color: @blackselect;
|
||||
text-color: @foreground;
|
||||
}
|
||||
|
||||
element selected.urgent {
|
||||
background-color: @urgentcolor;
|
||||
text-color: @background;
|
||||
}
|
||||
|
||||
element selected.active {
|
||||
background-color: @maincolor;
|
||||
text-color: @background;
|
||||
}
|
||||
|
||||
element alternate.normal {
|
||||
background-color: @background;
|
||||
text-color: @foreground;
|
||||
}
|
||||
|
||||
element alternate.urgent {
|
||||
background-color: @background;
|
||||
text-color: @urgentcolor;
|
||||
}
|
||||
|
||||
element alternate.active {
|
||||
background-color: @background;
|
||||
text-color: @maincolor;
|
||||
}
|
||||
|
||||
scrollbar {
|
||||
background-color: @prompt-background;
|
||||
handle-color: @scrollbar-handle;
|
||||
handle-width: 7px;
|
||||
}
|
||||
|
||||
mode-switcher {
|
||||
background-color: @background;
|
||||
}
|
||||
|
||||
button {
|
||||
background-color: @background;
|
||||
text-color: @foreground;
|
||||
}
|
||||
|
||||
button selected {
|
||||
text-color: @maincolor;
|
||||
}
|
||||
|
||||
inputbar {
|
||||
background-color: @background;
|
||||
spacing: 0px;
|
||||
}
|
||||
|
||||
prompt {
|
||||
padding: 8px 11px;
|
||||
background-color: @prompt-background;
|
||||
text-color: @foreground;
|
||||
}
|
||||
|
||||
entry {
|
||||
padding: 8px 10px;
|
||||
background-color: @background;
|
||||
text-color: @urgentcolor;
|
||||
}
|
||||
|
||||
case-indicator {
|
||||
padding: 6px 10px;
|
||||
text-color: @maincolor;
|
||||
background-color: @background;
|
||||
}
|
||||
/* vim:ft=css
|
@ -1,97 +0,0 @@
|
||||
#!/bin/zsh
|
||||
|
||||
source "$HOME/.profile"
|
||||
|
||||
# Aliases
|
||||
alias \
|
||||
v='nvim' \
|
||||
vi='nvim' \
|
||||
vim='nvim' \
|
||||
suvi='sudo -E nvim' \
|
||||
vifm='vifmrun'
|
||||
|
||||
alias \
|
||||
l='ls' \
|
||||
ll='ls -l' \
|
||||
la='ls -a' \
|
||||
lal='ls -al'
|
||||
|
||||
alias \
|
||||
owo='pacman' \
|
||||
sowo='sudo pacman' \
|
||||
yay='yay --editmenu --nodiffmenu --save'
|
||||
|
||||
alias \
|
||||
g='git' \
|
||||
ga='git add' \
|
||||
gc='git commit -S' \
|
||||
gp='git push' \
|
||||
gpom='git push origin master --tags' \
|
||||
gch='git checkout' \
|
||||
gl='git log' \
|
||||
gpu='git pull' \
|
||||
gs='git status' \
|
||||
grm='git rm -f' \
|
||||
gi='git init' \
|
||||
gd='git diff' \
|
||||
btw='git --git-dir=$HOME/dev/botfiles/ --work-tree=$HOME' \
|
||||
b='btw' \
|
||||
ba='btw add' \
|
||||
bc='btw commit -S' \
|
||||
bp='btw push' \
|
||||
bpom='btw push origin master' \
|
||||
bch='btw checkout' \
|
||||
bl='btw log' \
|
||||
bpu='btw pull' \
|
||||
bs='btw status' \
|
||||
brm='btw rm -f' \
|
||||
bi='btw init' \
|
||||
bd='btw diff'
|
||||
|
||||
alias lisc='policense -l ISC -s -e git'
|
||||
|
||||
alias \
|
||||
s='sudo ' \
|
||||
sudo='sudo '
|
||||
|
||||
fdir() { cd "$(find "$HOME" -type d | fzf --layout reverse --height 25)"; }
|
||||
alias \
|
||||
scr='cd ~/.local/bin/scripts' \
|
||||
cfg='cd ~/.config/' \
|
||||
crn='cd ~/.local/bin/cron' \
|
||||
cd..='cd ..' \
|
||||
,='cd ~'
|
||||
|
||||
alias \
|
||||
copy='xclip -sel clip' \
|
||||
rssu='vi ~/.config/newsboat/urls' \
|
||||
df='df -x tmpfs -x devtmpfs'
|
||||
copy='xclip -sel clip' \
|
||||
rssu='vi ~/.config/newsboat/urls'
|
||||
|
||||
# Commands Colors
|
||||
alias ls='ls --color=auto' \
|
||||
ip='grc ip' \
|
||||
ping='grc ping' \
|
||||
ps='grc ps'
|
||||
export SUDO_PROMPT="$(printf "\033[0;31m")[ sudo ]$(printf "\033[0m"): "
|
||||
|
||||
man() {
|
||||
LESS_TERMCAP_md=$'\e[01;31m' \
|
||||
LESS_TERMCAP_me=$'\e[0m' \
|
||||
LESS_TERMCAP_se=$'\e[0m' \
|
||||
# LESS_TERMCAP_so=$'\e[01;44;33m' \
|
||||
LESS_TERMCAP_ue=$'\e[0m' \
|
||||
LESS_TERMCAP_us=$'\e[01;32m' \
|
||||
command man "$@"
|
||||
}
|
||||
|
||||
export LESS=-R
|
||||
export LESS_TERMCAP_mb=$'\E[1;31m' # begin blink
|
||||
export LESS_TERMCAP_md=$'\E[1;36m' # begin bold
|
||||
export LESS_TERMCAP_me=$'\E[0m' # reset bold/blink
|
||||
export LESS_TERMCAP_se=$'\E[0m' # reset reverse video
|
||||
export LESS_TERMCAP_us=$'\E[1;32m' # begin underline
|
||||
export LESS_TERMCAP_ue=$'\E[0m' # reset underline
|
||||
|
||||
# vim: ft=sh
|
@ -1,2 +0,0 @@
|
||||
# Host that runs Transmission daemon
|
||||
set connect.host 192.168.1.200
|
@ -1,67 +0,0 @@
|
||||
super + Return
|
||||
$($TERMINAL)
|
||||
super + {_,ctrl,alt +} b
|
||||
{search,chromium,tor-browser}
|
||||
super + {_,shift +} d
|
||||
rofi -show {run,drun}
|
||||
super + shift + s
|
||||
tgscreenkey
|
||||
super + c
|
||||
compos
|
||||
|
||||
super + s; {t,m,n,v,c,p,w,b}
|
||||
{tuirent,mails,rss,fm,ncmp,pods,weather-storm,bitcoin-charts}
|
||||
super + a; {g,k,l,i,m}
|
||||
{gimp,keepassxc,libreoffice,inkscape,minecraft-launcher}
|
||||
|
||||
{Prior,super + x}
|
||||
slock
|
||||
super + z
|
||||
powermenu
|
||||
super + u
|
||||
update
|
||||
super + n
|
||||
rofi-todo -f $HOME/doc/notes/notes.json
|
||||
super + {_,shift +} e
|
||||
{unicode,fawesome}
|
||||
super + w
|
||||
choosewall
|
||||
|
||||
{_,shift,ctrl +} Print
|
||||
screenshot {_,--force,--force_area}
|
||||
{_,ctrl +} button10
|
||||
screenshot {--force_area,--force}
|
||||
{_,shift +} F11
|
||||
blaze {_,-s}
|
||||
End
|
||||
sh -c "slock & systemctl suspend"
|
||||
Pause
|
||||
syncnow
|
||||
|
||||
# mute
|
||||
XF86AudioMute
|
||||
pamixer -t && pkill -RTMIN+1 dwmblocks
|
||||
# select radio
|
||||
XF86Tools
|
||||
play-radio
|
||||
# volume control
|
||||
XF86Audio{Raise,Lower}Volume
|
||||
pamixer -{i,d}3 && pkill -RTMIN+1 dwmblocks
|
||||
# songs control
|
||||
XF86Audio{Next,Prev}
|
||||
playerctl {next,previous} && pkill -RTMIN+2 dwmblocks
|
||||
# pause/play
|
||||
{XF86AudioPlay,super + slash}
|
||||
mpc status | grep -q "playing\|paused" && mpc toggle || playerctl play-pause && pkill -RTMIN+2 dwmblocks
|
||||
# stop
|
||||
XF86AudioStop
|
||||
mpc stop && playerctl stop && pkill -RTMIN+2 dwmblocks
|
||||
|
||||
ctrl + alt + {Left,Up,Down,period}
|
||||
rotscreen {left,normal,inverted,right}
|
||||
|
||||
button6
|
||||
if [ `xdotool getmouselocation | awk '\{print $2\}' | sed 's/y://g'` -lt 18 ]; then xte "keydown Super_L" "keydown comma" "keyup Super_L" "keyup comma"; elif [ `ps x | grep $(xdotool getactivewindow getwindowpid) | awk 'NR==1 \{print $5\}'` = "/usr/lib/chromium/chromium" ]; then xte "keydown Control_L" "keydown Shift_L" "keydown Tab" "keyup Control_L" "keyup Shift_L" "keyup Tab"; fi
|
||||
|
||||
button7
|
||||
if [ `xdotool getmouselocation | awk '\{print $2\}' | sed 's/y://g'` -lt 18 ]; then xte "keydown Super_L" "keydown period" "keyup Super_L" "keyup period"; elif [ `ps x | grep $(xdotool getactivewindow getwindowpid) | awk 'NR==1 \{print $5\}'` = "/usr/lib/chromium/chromium" ]; then xte "keydown Control_L" "keydown Tab" "keyup Control_L" "keyup Tab"; fi
|
@ -1,21 +0,0 @@
|
||||
#!/usr/bin/env sh
|
||||
|
||||
while read -r file
|
||||
do
|
||||
case "$1" in
|
||||
"w")
|
||||
setwall "$file" & ;;
|
||||
"y")
|
||||
readlink -f "$file" | xclip -selection clipboard &&
|
||||
notify-send "\"$file\" copied to clipboard" & ;;
|
||||
"Y")
|
||||
xclip -selection clipboard -t image/png < $(readlink -f "$file") &&
|
||||
notify-send -i "$(readlink -f "$file")" "copied to clipboard" & ;;
|
||||
"d")
|
||||
[ "$(printf "No\\nYes" | \
|
||||
rofi -dmenu -i -l 2 -p "Really delete $file?")" = "Yes" ] &&
|
||||
rm "$file" && notify-send "\"$file\" deleted." ;;
|
||||
"g")
|
||||
isinstalled gimp && pkill sxiv && gimp "$file" & ;;
|
||||
esac
|
||||
done
|
@ -1,15 +0,0 @@
|
||||
# This file is written by xdg-user-dirs-update
|
||||
# If you want to change or add directories, just edit the line you're
|
||||
# interested in. All local changes will be retained on the next run.
|
||||
# Format is XDG_xxx_DIR="$HOME/yyy", where yyy is a shell-escaped
|
||||
# homedir-relative path, or XDG_xxx_DIR="/yyy", where /yyy is an
|
||||
# absolute path. No other format is supported.
|
||||
#
|
||||
XDG_DESKTOP_DIR="$HOME/"
|
||||
XDG_DOCUMENTS_DIR="$HOME/doc"
|
||||
XDG_DOWNLOAD_DIR="$HOME/dl"
|
||||
XDG_MUSIC_DIR="$HOME/"
|
||||
XDG_PICTURES_DIR="$HOME/pix"
|
||||
XDG_PUBLICSHARE_DIR="$HOME/"
|
||||
XDG_TEMPLATES_DIR="$HOME/"
|
||||
XDG_VIDEOS_DIR="$HOME/vid"
|
@ -1,44 +0,0 @@
|
||||
"
|
||||
" ██
|
||||
" ░██
|
||||
" █████ ██████ ░██ ██████ ██████ ██████
|
||||
" ██░░░██ ██░░░░██ ░██ ██░░░░██░░██░░█ ██░░░░
|
||||
" ░██ ░░ ░██ ░██ ░██░██ ░██ ░██ ░ ░░█████
|
||||
" ░██ ██░██ ░██ ░██░██ ░██ ░██ ░░░░░██
|
||||
" ░░█████ ░░██████ ███░░██████ ░███ ██████
|
||||
" ░░░░░ ░░░░░░ ░░░ ░░░░░░ ░░░ ░░░░░░
|
||||
|
||||
|
||||
hi clear
|
||||
|
||||
hi Win ctermfg=white ctermbg=none cterm=none
|
||||
hi Directory ctermfg=blue ctermbg=default cterm=bold
|
||||
hi Link ctermfg=cyan ctermbg=default
|
||||
hi BrokenLink ctermfg=red ctermbg=default cterm=bold
|
||||
hi Socket ctermfg=magenta ctermbg=default cterm=bold
|
||||
hi Device ctermfg=red ctermbg=default cterm=bold
|
||||
hi Fifo ctermfg=red ctermbg=default cterm=bold
|
||||
hi Executable ctermfg=green ctermbg=default cterm=bold
|
||||
hi Selected ctermfg=192 ctermbg=234 cterm=italic
|
||||
hi CurrLine ctermfg=8 ctermbg=191 cterm=bold,reverse
|
||||
hi OtherLine ctermfg=191 ctermbg=none
|
||||
hi TopLine ctermfg=none ctermbg=none cterm=none
|
||||
hi TopLineSel ctermfg=white ctermbg=none cterm=bold
|
||||
hi StatusLine ctermfg=4 ctermbg=none cterm=none
|
||||
hi WildMenu ctermfg=4 ctermbg=black cterm=reverse
|
||||
hi CmdLine ctermfg=7 ctermbg=none cterm=none
|
||||
hi ErrorMsg ctermfg=red ctermbg=233 cterm=none
|
||||
hi Border ctermfg=black ctermbg=none cterm=none
|
||||
hi JobLine ctermfg=black ctermbg=white cterm=none,reverse
|
||||
hi SuggestBox ctermfg=8 ctermbg=233 cterm=none
|
||||
hi CmpMismatch ctermfg=white ctermbg=red cterm=bold
|
||||
hi AuxWin ctermfg=default ctermbg=default cterm=none,underline,reverse,standout,italic
|
||||
hi TabLine ctermfg=9 ctermbg=0 cterm=none
|
||||
hi TabLineSel ctermfg=default ctermbg=default cterm=none,reverse
|
||||
|
||||
hi /^.*\.(mp3|ogg|oga|flac|m4a)$/ ctermfg=13
|
||||
hi /^.*\.(flv|mp4|webm|mkv)$/ ctermfg=13
|
||||
hi /^.*\.(jpg|jpeg|png|gif|tiff|webp|bmp|svg|svgz)$/ ctermfg=11
|
||||
hi /^.*\.(zip|gz|bz2|lz4|xz|tar|tgz|tbz2|7z|rar|iso|rpm|deb)$/ ctermfg=167 cterm=bold
|
||||
hi /^.*\.(docx|odt|pptx|odp)$/ ctermfg=60
|
||||
hi /^.*\.(pdf)$/ ctermfg=61
|
@ -1,335 +0,0 @@
|
||||
"
|
||||
" ██ ████
|
||||
" ░░ ░██░
|
||||
" ██ ██ ██ ██████ ██████████
|
||||
" ░██ ░██░██░░░██░ ░░██░░██░░██
|
||||
" ░░██ ░██ ░██ ░██ ░██ ░██ ░██
|
||||
" ░░████ ░██ ░██ ░██ ░██ ░██
|
||||
" ░░██ ░██ ░██ ███ ░██ ░██
|
||||
" ░░ ░░ ░░ ░░░ ░░ ░░
|
||||
|
||||
colorscheme biual
|
||||
|
||||
set vicmd=nvim
|
||||
set syscalls
|
||||
set trash
|
||||
set history=100
|
||||
set nofollowlinks
|
||||
set sortnumbers
|
||||
set undolevels=100
|
||||
set norunexec
|
||||
set timefmt=%m/%d/%Y\ %H:%M
|
||||
set wildmenu
|
||||
set wildstyle=popup
|
||||
set suggestoptions=normal,visual,view,otherpane,keys,marks,registers
|
||||
set ignorecase
|
||||
set smartcase
|
||||
set nohlsearch
|
||||
set incsearch
|
||||
set scrolloff=4
|
||||
|
||||
if !has('win')
|
||||
set slowfs=curlftpfs
|
||||
endif
|
||||
|
||||
set statusline="%A %10u:%-7g %=%15s %20d "
|
||||
|
||||
mark b ~/bin/
|
||||
mark h ~/
|
||||
|
||||
" Sample mappings
|
||||
unmap u
|
||||
nnoremap ` :cd ~<cr>
|
||||
nnoremap ~ :cd ~<cr>
|
||||
nnoremap S :source ~/.config/vifm/vifmrc; source ~/.config/vifm/colors/biual.vifm<cr>
|
||||
nnoremap q :q<cr>
|
||||
nnoremap s :select<cr>
|
||||
nnoremap u :unselect<cr>
|
||||
nnoremap w :view<cr>
|
||||
vnoremap w :view<cr>gv
|
||||
nnoremap cc cw<c-u>
|
||||
nnoremap I za<c-u>
|
||||
nnoremap x :!sxiv -btf * -q<Cr>
|
||||
unmap Y
|
||||
nnoremap Y :!xclip -selection clipboard -t image/png < %c<cr>:echo expand('%"c:p') "is copied to clipboard"<cr>
|
||||
|
||||
" ------------------------------------------------------------------------------
|
||||
|
||||
" :com[mand][!] command_name action
|
||||
" The following macros can be used in a command
|
||||
" %a is replaced with the user arguments.
|
||||
" %c the current file under the cursor.
|
||||
" %C the current file under the cursor in the other directory.
|
||||
" %f the current selected file, or files.
|
||||
" %F the current selected file, or files in the other directory.
|
||||
" %b same as %f %F.
|
||||
" %d the current directory name.
|
||||
" %D the other window directory name.
|
||||
" %m run the command in a menu window
|
||||
|
||||
command! df df -h %m 2> /dev/null
|
||||
command! diff vim -d %f %F
|
||||
command! zip zip -r %f.zip %f
|
||||
command! run !! ./%f
|
||||
command! make !!make %a
|
||||
command! mkcd :mkdir %a | cd %a
|
||||
command! vgrep vim "+grep %a"
|
||||
command! reload :write | restart
|
||||
|
||||
" ------------------------------------------------------------------------------
|
||||
|
||||
" The file type is for the default programs to be used with
|
||||
" a file extension.
|
||||
" :filetype pattern1,pattern2 defaultprogram,program2
|
||||
" :fileviewer pattern1,pattern2 consoleviewer
|
||||
" The other programs for the file type can be accessed with the :file command
|
||||
" The command macros %f, %F, %d, %F may be used in the commands.
|
||||
" The %a macro is ignored. To use a % you must put %%.
|
||||
|
||||
" For automated FUSE mounts, you must register an extension with :file[x]type
|
||||
" in one of following formats:
|
||||
"
|
||||
" :filetype extensions FUSE_MOUNT|some_mount_command using %SOURCE_FILE and %DESTINATION_DIR variables
|
||||
" %SOURCE_FILE and %DESTINATION_DIR are filled in by vifm at runtime.
|
||||
" A sample line might look like this:
|
||||
" :filetype *.zip,*.jar,*.war,*.ear FUSE_MOUNT|fuse-zip %SOURCE_FILE %DESTINATION_DIR
|
||||
"
|
||||
" :filetype extensions FUSE_MOUNT2|some_mount_command using %PARAM and %DESTINATION_DIR variables
|
||||
" %PARAM and %DESTINATION_DIR are filled in by vifm at runtime.
|
||||
" A sample line might look like this:
|
||||
" :filetype *.ssh FUSE_MOUNT2|sshfs %PARAM %DESTINATION_DIR
|
||||
" %PARAM value is filled from the first line of file (whole line).
|
||||
" Example first line for SshMount filetype: root@127.0.0.1:/
|
||||
"
|
||||
" You can also add %CLEAR if you want to clear screen before running FUSE
|
||||
" program.
|
||||
|
||||
" FtpMount
|
||||
filetype *.ftp
|
||||
\ {Mount with CurlFtpFS}
|
||||
\ FUSE_MOUNT2|curlftpfs -o ftp_port=-,,disable_eprt %PARAM %DESTINATION_DIR %CLEAR,
|
||||
|
||||
" Pdf
|
||||
filextype *.pdf zathura %c %i &, apvlv %c, xpdf %c
|
||||
fileviewer *.pdf pdftotext -nopgbrk %c -
|
||||
|
||||
" PostScript
|
||||
filextype *.ps,*.eps,*.ps.gz
|
||||
\ {View in zathura}
|
||||
\ zathura %f,
|
||||
\ {View in gv}
|
||||
\ gv %c %i &,
|
||||
|
||||
" Djvu
|
||||
filextype *.djvu
|
||||
\ {View in zathura}
|
||||
\ zathura %f,
|
||||
\ {View in apvlv}
|
||||
\ apvlv %f,
|
||||
|
||||
" Audio
|
||||
filetype *.wav,*.mp3,*.flac,*.m4a,*.wma,*.ape,*.ac3,*.og[agx],*.spx,*.opus
|
||||
\ {Play using mpd}
|
||||
\ mpc clear && mpc add %c && mpc play,
|
||||
\ {Play using MPlayer}
|
||||
\ mplayer %f,
|
||||
fileviewer *.mp3 mp3info
|
||||
fileviewer *.flac soxi
|
||||
|
||||
" Video
|
||||
filextype *.avi,*.mp4,*.wmv,*.dat,*.3gp,*.ogv,*.mkv,*.mpg,*.mpeg,*.vob,
|
||||
\*.fl[icv],*.m2v,*.mov,*.webm,*.ts,*.mts,*.m4v,*.r[am],*.qt,*.divx,
|
||||
\*.as[fx]
|
||||
\ {View using ffplay}
|
||||
\ ffplay -fs -autoexit %f,
|
||||
\ {View using Dragon}
|
||||
\ dragon %f:p,
|
||||
\ {View using mplayer}
|
||||
\ mplayer %f,
|
||||
fileviewer *.avi,*.mp4,*.wmv,*.dat,*.3gp,*.ogv,*.mkv,*.mpg,*.mpeg,*.vob,
|
||||
\*.fl[icv],*.m2v,*.mov,*.webm,*.ts,*.mts,*.m4v,*.r[am],*.qt,*.divx,
|
||||
\*.as[fx]
|
||||
\ ffprobe -pretty %c 2>&1
|
||||
|
||||
" Web
|
||||
filextype *.html,*.htm
|
||||
\ {Open with dwb}
|
||||
\ qutebrowser %f %i &,
|
||||
\ {Open with firefox}
|
||||
\ firefox %f &,
|
||||
\ {Open with uzbl}
|
||||
\ uzbl-browser %f %i &,
|
||||
filetype *.html,*.htm links, lynx
|
||||
|
||||
" Object
|
||||
filetype *.o nm %f | less
|
||||
|
||||
" Man page
|
||||
filetype *.[1-8] man ./%c
|
||||
fileviewer *.[1-8] man ./%c | col -b
|
||||
|
||||
" Images
|
||||
fileviewer *.bmp,*.jpg,*.jpeg,*.png,*.ico,*.gif,*.xpm vifmimg draw %px %py %pw %ph %c %pc vifmimg clear
|
||||
filextype *.bmp,*.jpg,*.jpeg,*.png,*.ico,*.gif,*.xpm sxiv -fb 2>/dev/null &
|
||||
|
||||
" Mindmap
|
||||
filextype *.vym
|
||||
\ {Open with VYM}
|
||||
\ vym %f &,
|
||||
|
||||
" MD5
|
||||
filetype *.md5
|
||||
\ {Check MD5 hash sum}
|
||||
\ md5sum -c %f %S,
|
||||
|
||||
" SHA1
|
||||
filetype *.sha1
|
||||
\ {Check SHA1 hash sum}
|
||||
\ sha1sum -c %f %S,
|
||||
|
||||
" SHA256
|
||||
filetype *.sha256
|
||||
\ {Check SHA256 hash sum}
|
||||
\ sha256sum -c %f %S,
|
||||
|
||||
" SHA512
|
||||
filetype *.sha512
|
||||
\ {Check SHA512 hash sum}
|
||||
\ sha512sum -c %f %S,
|
||||
|
||||
" GPG signature
|
||||
" filetype *.asc
|
||||
" \ {Check signature}
|
||||
" \ !!gpg --verify %c,
|
||||
|
||||
" Torrent
|
||||
filetype *.torrent torradd %f &
|
||||
|
||||
" FuseZipMount
|
||||
filetype *.zip,*.jar,*.war,*.ear,*.oxt,*.apkg
|
||||
\ {Mount with fuse-zip}
|
||||
\ FUSE_MOUNT|fuse-zip %SOURCE_FILE %DESTINATION_DIR,
|
||||
\ {View contents}
|
||||
\ zip -sf %c | less,
|
||||
\ {Extract here}
|
||||
\ tar -xf %c,
|
||||
fileviewer *.zip,*.jar,*.war,*.ear,*.oxt zip -sf %c
|
||||
|
||||
" ArchiveMount
|
||||
filetype *.tar,*.tar.bz2,*.tbz2,*.tgz,*.tar.gz,*.tar.xz,*.txz
|
||||
\ {Mount with archivemount}
|
||||
\ FUSE_MOUNT|archivemount %SOURCE_FILE %DESTINATION_DIR,
|
||||
fileviewer *.tgz,*.tar.gz tar -tzf %c
|
||||
fileviewer *.tar.bz2,*.tbz2 tar -tjf %c
|
||||
fileviewer *.tar.txz,*.txz xz --list %c
|
||||
fileviewer *.tar tar -tf %c
|
||||
|
||||
" Rar2FsMount and rar archives
|
||||
filetype *.rar
|
||||
\ {Mount with rar2fs}
|
||||
\ FUSE_MOUNT|rar2fs %SOURCE_FILE %DESTINATION_DIR,
|
||||
fileviewer *.rar unrar v %c
|
||||
|
||||
" IsoMount
|
||||
filetype *.iso
|
||||
\ {Mount with fuseiso}
|
||||
\ FUSE_MOUNT|fuseiso %SOURCE_FILE %DESTINATION_DIR,
|
||||
|
||||
" SshMount
|
||||
filetype *.ssh
|
||||
\ {Mount with sshfs}
|
||||
\ FUSE_MOUNT2|sshfs %PARAM %DESTINATION_DIR %FOREGROUND,
|
||||
|
||||
" FtpMount
|
||||
filetype *.ftp
|
||||
\ {Mount with curlftpfs}
|
||||
\ FUSE_MOUNT2|curlftpfs -o ftp_port=-,,disable_eprt %PARAM %DESTINATION_DIR %FOREGROUND,
|
||||
|
||||
" Fuse7z and 7z archives
|
||||
filetype *.7z
|
||||
\ {Mount with fuse-7z}
|
||||
\ FUSE_MOUNT|fuse-7z %SOURCE_FILE %DESTINATION_DIR,
|
||||
fileviewer *.7z 7z l %c
|
||||
|
||||
" Office files
|
||||
filextype *.odt,*.doc,*.docx,*.xls,*.xlsx,*.odp,*.pptx, *.ppt libreoffice %f &
|
||||
fileviewer *.doc catdoc %c
|
||||
fileviewer *.docx docx2txt.pl %f -
|
||||
|
||||
" TuDu files
|
||||
filetype *.tudu tudu -f %c
|
||||
|
||||
filetype *.wav,*.mp3,*.flac,*.m4a,*.wma,*.ape,*.ac3,*.og[agx],*.spx,*.opus mpv --no-audio-display --input-ipc-server=/tmp/mpvsoc$(date +%%s) %c
|
||||
|
||||
" Syntax highlighting in preview
|
||||
fileviewer * highlight -O ansi -s dante %c
|
||||
"
|
||||
" Explicitly set highlight type for some extensions
|
||||
"
|
||||
" 256-color terminal
|
||||
" fileviewer *.[ch],*.[ch]pp highlight -O xterm256 -s dante --syntax c %c
|
||||
" fileviewer Makefile,Makefile.* highlight -O xterm256 -s dante --syntax make %c
|
||||
"
|
||||
" 16-color terminal
|
||||
"
|
||||
" Or leave it for automatic detection
|
||||
"
|
||||
" fileviewer *[^/] pygmentize -O style=monokai -f console256 -g
|
||||
|
||||
" Displaying pictures in terminal
|
||||
"
|
||||
" fileviewer *.jpg,*.png shellpic %c
|
||||
|
||||
" Open all other files with default system programs (you can also remove all
|
||||
" :file[x]type commands above to ensure they don't interfere with system-wide
|
||||
" settings). By default all unknown files are opened with 'vi[x]cmd'
|
||||
" uncommenting one of lines below will result in ignoring 'vi[x]cmd' option
|
||||
" for unknown file types.
|
||||
" For *nix:
|
||||
filetype * xdg-open
|
||||
" For OS X:
|
||||
" filetype * open
|
||||
" For Windows:
|
||||
" filetype * start, explorer
|
||||
|
||||
" ------------------------------------------------------------------------------
|
||||
|
||||
" What should be saved automatically between vifm sessions. Drop "savedirs"
|
||||
" value if you don't want vifm to remember last visited directories for you.
|
||||
|
||||
" ------------------------------------------------------------------------------
|
||||
|
||||
" Examples of configuring both panels
|
||||
|
||||
" Customize view columns a bit (enable ellipsis for truncated file names)
|
||||
"
|
||||
" set viewcolumns=-{name}..,6{}.
|
||||
|
||||
" Filter-out build and temporary files
|
||||
"
|
||||
" filter! /^.*\.(lo|o|d|class|py[co])$|.*~$/
|
||||
|
||||
" ------------------------------------------------------------------------------
|
||||
|
||||
|
||||
" Interaction with system clipboard
|
||||
if has('win')
|
||||
" Yank current directory path to Windows clipboard with forward slashes
|
||||
nnoremap yp :!echo %"d:gs!\!/! %i | clip<cr>
|
||||
" Yank path to current file to Windows clipboard with forward slashes
|
||||
nnoremap yf :!echo %"c:gs!\!/! %i | clip<cr>
|
||||
elseif executable('xclip')
|
||||
" Yank current directory path into the clipboard
|
||||
nnoremap yd :!echo %d | xclip %i<cr>
|
||||
" Yank current file path into the clipboard
|
||||
nnoremap yf :!echo %c:p | xclip %i<cr>
|
||||
elseif executable('xsel')
|
||||
" Yank current directory path into primary and selection clipboards
|
||||
nnoremap yd :!echo -n %d | xsel --input --primary %i &&
|
||||
\ echo -n %d | xsel --clipboard --input %i<cr>
|
||||
" Yank current file path into into primary and selection clipboards
|
||||
nnoremap yf :!echo -n %c:p | xsel --input --primary %i &&
|
||||
\ echo -n %c:p | xsel --clipboard --input %i<cr>
|
||||
endif
|
||||
|
||||
" vim: filetype=vifm
|
@ -1,7 +0,0 @@
|
||||
#cf5252
|
||||
#92ad4a
|
||||
#c9895b
|
||||
#6f97b8
|
||||
#ab6ba6
|
||||
#6fa69f
|
||||
|
@ -1,17 +0,0 @@
|
||||
audio.sources=mpd
|
||||
mpd.fifo.path=/tmp/mpd.fifo
|
||||
visualizer.fps=30
|
||||
audio.stereo.enabled=false
|
||||
|
||||
colors.override.terminal=false
|
||||
colors.scheme=biual
|
||||
|
||||
visualizer.spectrum.character=
|
||||
visualizer.spectrum.bar.width=1
|
||||
visualizer.spectrum.bar.spacing=0
|
||||
visualizer.spectrum.falloff.weight=0.93
|
||||
visualizer.spectrum.top.margin=0.0
|
||||
visualizer.spectrum.bottom.margin=0.0
|
||||
visualizer.spectrum.right.margin=0.0
|
||||
visualizer.spectrum.left.margin=0.0
|
||||
visualizer.spectrum.falloff.mode=fill
|
Before Width: | Height: | Size: 2.3 MiB |
Before Width: | Height: | Size: 1.2 MiB |
Before Width: | Height: | Size: 925 KiB |
Before Width: | Height: | Size: 859 KiB |
Before Width: | Height: | Size: 2.6 MiB |
Before Width: | Height: | Size: 190 KiB |
Before Width: | Height: | Size: 14 MiB |
Before Width: | Height: | Size: 2.5 MiB |
Before Width: | Height: | Size: 1.6 MiB |
Before Width: | Height: | Size: 7.9 MiB |
Before Width: | Height: | Size: 2.9 MiB |
Before Width: | Height: | Size: 140 KiB |
Before Width: | Height: | Size: 9.2 MiB |
Before Width: | Height: | Size: 9.0 KiB |
Before Width: | Height: | Size: 1.4 MiB |
Before Width: | Height: | Size: 2.6 MiB |
Before Width: | Height: | Size: 935 KiB |
Before Width: | Height: | Size: 813 KiB |
Before Width: | Height: | Size: 8.1 MiB |
Before Width: | Height: | Size: 81 KiB |
Before Width: | Height: | Size: 137 KiB |
Before Width: | Height: | Size: 1.2 MiB |
Before Width: | Height: | Size: 38 KiB |
Before Width: | Height: | Size: 153 KiB |
Before Width: | Height: | Size: 3.8 MiB |
Before Width: | Height: | Size: 11 KiB |
Before Width: | Height: | Size: 291 KiB |
Before Width: | Height: | Size: 39 KiB |
Before Width: | Height: | Size: 1.7 MiB |
Before Width: | Height: | Size: 87 KiB |
Before Width: | Height: | Size: 88 KiB |
Before Width: | Height: | Size: 145 KiB |
Before Width: | Height: | Size: 548 KiB |
Before Width: | Height: | Size: 784 KiB |
Before Width: | Height: | Size: 3.0 MiB |
Before Width: | Height: | Size: 2.7 MiB |
Before Width: | Height: | Size: 754 KiB |
Before Width: | Height: | Size: 3.9 MiB |
Before Width: | Height: | Size: 2.4 MiB |
@ -1,6 +0,0 @@
|
||||
map r reload
|
||||
map R rotate
|
||||
map K zoom in
|
||||
map J zoom out
|
||||
map c recolor
|
||||
map b toggle_statusbar
|
@ -1,107 +0,0 @@
|
||||
#!/bin/zsh
|
||||
# zsh directory
|
||||
ZDIR="${HOME}/.config/zsh"
|
||||
|
||||
SAVEHIST=9999999
|
||||
HISTFILE="${ZDIR}/history"
|
||||
|
||||
source $HOME/.profile
|
||||
source $HOME/.config/shellrc
|
||||
source $ZDIR/bindings
|
||||
|
||||
# error message
|
||||
command_not_found_handler() {
|
||||
printf "\nahh shit, command not found\n\033[0;31m(╯°□°)╯︵ ┻━┻\n\n"
|
||||
exit 127
|
||||
}
|
||||
|
||||
# prompt
|
||||
PROMPT='%F{green}%m%f in %B%F{#299b9b}%~%f%b $(git_status)
|
||||
%f%F{#777ca5}(%B%F{red}%?%f%b%F{#777ca5})>%b%f '
|
||||
setopt prompt_subst # allow commands to run after prompt
|
||||
setopt autocd
|
||||
|
||||
git_status() {
|
||||
ref=$(git symbolic-ref --quiet --short HEAD 2> /dev/null || git rev-parse --short HEAD 2> /dev/null)
|
||||
if [ $? -eq 0 ]; then
|
||||
echo -n "on %B%F{magenta}$ref"
|
||||
[[ $(git status --short | wc -l) -ne 0 ]] && echo -n "%F{yellow}*"
|
||||
fi
|
||||
}
|
||||
|
||||
# completetion
|
||||
autoload -U compinit
|
||||
zstyle ':completion:*' menu select
|
||||
setopt complete_aliases
|
||||
|
||||
zstyle ':completion:*' completer _expand _complete _ignored
|
||||
zstyle ':completion:*' matcher-list 'm:{a-z}={A-Z}'
|
||||
|
||||
setopt correct
|
||||
zmodload zsh/complist
|
||||
compinit
|
||||
_comp_options+=(globdots)
|
||||
|
||||
# vi mode
|
||||
bindkey -v
|
||||
export KEYTIMEOUT=1
|
||||
|
||||
# cursor change
|
||||
function zle-keymap-select {
|
||||
if [[ ${KEYMAP} == vicmd ]] ||
|
||||
[[ $1 = 'block' ]]; then
|
||||
echo -ne '\e[2 q'
|
||||
elif [[ ${KEYMAP} == main ]] ||
|
||||
[[ ${KEYMAP} == viins ]] ||
|
||||
[[ ${KEYMAP} = '' ]] ||
|
||||
[[ $1 = 'beam' ]]; then
|
||||
echo -ne '\e[6 q'
|
||||
fi
|
||||
}
|
||||
|
||||
zle -N zle-keymap-select
|
||||
|
||||
zle-line-init() {
|
||||
echo -ne "\e[6 q"
|
||||
}
|
||||
|
||||
echo -ne '\e[6 q'
|
||||
preexec() { echo -ne '\e[6 q' ;}
|
||||
|
||||
# Plugins
|
||||
PDIR="${ZDIR}/plugins"
|
||||
|
||||
# zsh-autosuggestions
|
||||
source "${PDIR}/zsh-autosuggestions/zsh-autosuggestions.zsh"
|
||||
|
||||
# zsh-syntax-highlighting
|
||||
source "${PDIR}/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh"
|
||||
|
||||
ZSH_HIGHLIGHT_STYLES[default]='none'
|
||||
ZSH_HIGHLIGHT_STYLES[unknown-token]='bg=red'
|
||||
ZSH_HIGHLIGHT_STYLES[reserved-word]='fg=yellow'
|
||||
ZSH_HIGHLIGHT_STYLES[alias]='fg=cyan'
|
||||
ZSH_HIGHLIGHT_STYLES[builtin]='fg=cyan'
|
||||
ZSH_HIGHLIGHT_STYLES[function]='fg=cyan'
|
||||
ZSH_HIGHLIGHT_STYLES[command]='fg=cyan'
|
||||
ZSH_HIGHLIGHT_STYLES[precommand]='none'
|
||||
ZSH_HIGHLIGHT_STYLES[commandseparator]='none'
|
||||
ZSH_HIGHLIGHT_STYLES[hashed-command]='fg=blue'
|
||||
ZSH_HIGHLIGHT_STYLES[path]='none'
|
||||
ZSH_HIGHLIGHT_STYLES[path_prefix]='none'
|
||||
ZSH_HIGHLIGHT_STYLES[path_approx]='fg=yellow'
|
||||
ZSH_HIGHLIGHT_STYLES[globbing]='fg=green'
|
||||
ZSH_HIGHLIGHT_STYLES[history-expansion]='fg=green'
|
||||
ZSH_HIGHLIGHT_STYLES[single-hyphen-option]='fg=magenta'
|
||||
ZSH_HIGHLIGHT_STYLES[double-hyphen-option]='fg=red'
|
||||
ZSH_HIGHLIGHT_STYLES[back-quoted-argument]='none'
|
||||
ZSH_HIGHLIGHT_STYLES[single-quoted-argument]='fg=red'
|
||||
ZSH_HIGHLIGHT_STYLES[double-quoted-argument]='fg=red'
|
||||
ZSH_HIGHLIGHT_STYLES[dollar-double-quoted-argument]='fg=cyan'
|
||||
ZSH_HIGHLIGHT_STYLES[back-double-quoted-argument]='fg=cyan'
|
||||
ZSH_HIGHLIGHT_STYLES[assign]='none'
|
||||
ZSH_AUTOSUGGEST_HIGHLIGHT_STYLE='fg=8'
|
||||
|
||||
# tetris easter-egg
|
||||
autoload -Uz tetriscurses
|
||||
alias tetris='tetriscurses'
|
@ -1,60 +0,0 @@
|
||||
#!/bin/zsh
|
||||
# edit line in vim
|
||||
autoload edit-command-line; zle -N edit-command-line
|
||||
bindkey -M vicmd '^e' edit-command-line
|
||||
bindkey -M viins '^e' edit-command-line
|
||||
|
||||
# scr
|
||||
fscr_run() { fscr; zle redisplay; }
|
||||
zle -N fscr_run
|
||||
bindkey -M vicmd "^n" fscr_run
|
||||
bindkey -M viins "^n" fscr_run
|
||||
|
||||
# cfg
|
||||
fcfg_run() { fcfg; zle redisplay; }
|
||||
zle -N fcfg_run
|
||||
bindkey -M vicmd "^b" fcfg_run
|
||||
bindkey -M viins "^b" fcfg_run
|
||||
|
||||
# clear
|
||||
bindkey -M viins "^x" clear-screen
|
||||
bindkey -M vicmd "^x" clear-screen
|
||||
|
||||
# fgh
|
||||
fgh_run() { fgh; zle redisplay; }
|
||||
zle -N fgh_run
|
||||
bindkey -M vicmd "^g" fgh_run
|
||||
bindkey -M viins "^g" fgh_run
|
||||
|
||||
# f
|
||||
f_run() { f; zle redisplay; }
|
||||
zle -N f_run
|
||||
bindkey -M vicmd "^f" f_run
|
||||
bindkey -M viins "^f" f_run
|
||||
|
||||
# pac
|
||||
pac_run() {
|
||||
pac
|
||||
zle redisplay
|
||||
}
|
||||
zle -N pac_run
|
||||
bindkey -M vicmd "^p" pac_run
|
||||
bindkey -M viins "^p" pac_run
|
||||
|
||||
# aur
|
||||
aur_run() {
|
||||
aur
|
||||
zle redisplay
|
||||
}
|
||||
zle -N aur_run
|
||||
bindkey -M vicmd "^a" aur_run
|
||||
bindkey -M viins "^a" aur_run
|
||||
|
||||
# read config
|
||||
read_config() {
|
||||
source ~/.config/zsh/{.zshrc,bindings} ~/.profile ~/.config/shellrc
|
||||
zle redisplay
|
||||
}
|
||||
zle -N read_config
|
||||
bindkey -M vicmd "^r" read_config
|
||||
bindkey -M viins "^r" read_config
|
@ -1,34 +0,0 @@
|
||||
#!/bin/sh
|
||||
|
||||
# Daily backup.
|
||||
|
||||
DATE="$(date +"%Y-%m-%d")"
|
||||
|
||||
minecraft() {
|
||||
cd /home/samedamci/.minecraft/saves/ || exit 1
|
||||
checksum="$(find Survival -type f -exec sha1sum {} + | LC_ALL=C sort | sha1sum | cut -d " " -f1)"
|
||||
if [ "$checksum" != "$(cat ./.Survival.sha1)" ]; then
|
||||
echo "$checksum" > ./.Survival.sha1
|
||||
name="Survival_$DATE.tar.zst"
|
||||
tar c --zstd -f "$name" Survival
|
||||
rclone copy "$name" onedrive:/backup/Minecraft/
|
||||
rm "$name"
|
||||
fi
|
||||
}
|
||||
|
||||
passwords() {
|
||||
cd /home/samedamci/.local/pass/ || exit 1
|
||||
name="keepass_$DATE.kdbx"
|
||||
cp "keepass.kdbx" "$name"
|
||||
rclone copy "$name" onedrive:/backup/Passwords/
|
||||
rm "$name"
|
||||
}
|
||||
|
||||
screenshots() {
|
||||
path="/home/samedamci/pix/Screenshots/"
|
||||
rclone copy "$path" onedrive:/pix/Screenshots/
|
||||
}
|
||||
|
||||
minecraft
|
||||
passwords
|
||||
screenshots
|
@ -1,9 +0,0 @@
|
||||
#!/bin/sh
|
||||
|
||||
ping -q -c 1 1.1.1.1 > /dev/null || exit 1
|
||||
|
||||
echo " " > /tmp/packagesupdate
|
||||
refbar &
|
||||
pacman -Syyuw --noconfirm
|
||||
rm -f /tmp/packagesupdate
|
||||
refbar &
|
@ -1,69 +0,0 @@
|
||||
#!/bin/sh -l
|
||||
|
||||
# Sync mail and give notification if there is new mail.
|
||||
# script generated by mutt-wizard with small personal changes (emojis etc.)
|
||||
|
||||
# Run only if user logged in (prevent cron errors)
|
||||
pgrep -u "${USER:=$LOGNAME}" >/dev/null || { echo "$USER not logged in; sync will not run."; exit ;}
|
||||
# Run only if not already running in other instance
|
||||
pgrep -x mbsync >/dev/null && { echo "mbsync is already running." ; exit ;}
|
||||
|
||||
# Checks for internet connection and set notification script.
|
||||
ping -q -c 1 1.1.1.1 > /dev/null || { echo "No internet connection detected."; exit ;}
|
||||
# command -v notify-send >/dev/null || echo "Note that \`libnotify\` or \`libnotify-send\` should be installed for pop-up mail notifications with this script."
|
||||
|
||||
# Required to display notifications if run as a cronjob:
|
||||
export DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/$(id -u)/bus
|
||||
export DISPLAY=:0.0
|
||||
|
||||
# For individual configurations:
|
||||
[ -d "$HOME/.local/share/password-store" ] && export PASSWORD_STORE_DIR="$HOME/.local/share/password-store"
|
||||
|
||||
notify() { notify-send --app-name="NeoMutt" "NeoMutt" " $2 new mail(s) in \`$1\` account." ;}
|
||||
messageinfo() { notify-send --app-name="NeoMutt" " $from:" "$subject" ;}
|
||||
|
||||
# Check account for new mail. Notify if there is new content.
|
||||
syncandnotify() {
|
||||
acc="$(echo "$account" | sed "s/.*\///")"
|
||||
mbsync $opts "$acc"
|
||||
new=$(find $(ls $HOME/.local/share/mail/$acc/* | grep -i inbox | sed 's/\://')/new -type f -newer "$HOME/.config/mutt/.mailsynclastrun" 2> /dev/null)
|
||||
newcount=$(echo "$new" | sed '/^\s*$/d' | wc -l)
|
||||
if [ "$newcount" -gt "0" ]; then
|
||||
notify "$acc" "$newcount" &
|
||||
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')
|
||||
messageinfo &
|
||||
done
|
||||
sleep 2; refbar &
|
||||
fi
|
||||
}
|
||||
|
||||
# Sync accounts passed as argument or all.
|
||||
if [ "$#" -eq "0" ]; then
|
||||
accounts="$(awk '/^Channel/ {print $2}' "$HOME/.mbsyncrc")"
|
||||
else
|
||||
for arg in "$@"; do
|
||||
[ "${arg%${arg#?}}" = '-' ] && opts="${opts:+${opts} }${arg}" && shift 1
|
||||
done
|
||||
accounts=$*
|
||||
fi
|
||||
|
||||
echo "" > /tmp/imapsyncicon_"$USER"
|
||||
refbar &
|
||||
|
||||
# Parallelize multiple accounts
|
||||
for account in $accounts
|
||||
do
|
||||
syncandnotify &
|
||||
done
|
||||
|
||||
wait
|
||||
rm -f /tmp/imapsyncicon_"$USER"
|
||||
refbar &
|
||||
|
||||
notmuch new 2>/dev/null
|
||||
|
||||
#Create a touch file that indicates the time of the last run of mailsync
|
||||
touch "$HOME/.config/mutt/.mailsynclastrun"
|
@ -1,4 +0,0 @@
|
||||
#!/bin/sh
|
||||
|
||||
reflector --latest 200 --protocol http --protocol https --sort \
|
||||
rate --save /etc/pacman.d/mirrorlist
|
@ -1,14 +0,0 @@
|
||||
#!/bin/sh
|
||||
|
||||
ping -q -c 1 1.1.1.1 > /dev/null || exit 1
|
||||
|
||||
ps ax | grep -q newsboat$ && \
|
||||
/usr/bin/xdotool key --window \
|
||||
"$(/usr/bin/xdotool search --name newsboat)" R && exit
|
||||
|
||||
echo " " > /tmp/newsupdate
|
||||
refbar &
|
||||
/usr/bin/newsboat -x reload && rm -f /tmp/newsupdate
|
||||
refbar &
|
||||
|
||||
newsboat -x print-unread | awk '{ print $1 }' > "$HOME/.cache/news_unread"
|
@ -1,17 +0,0 @@
|
||||
#!/usr/bin/python3
|
||||
|
||||
import requests
|
||||
import json
|
||||
|
||||
response = json.loads(
|
||||
requests.get("https://open.fm/radio/api/v2/ofm/stations_slug.json").text
|
||||
)
|
||||
|
||||
dict_ = {}
|
||||
for channel in response["channels"]:
|
||||
id_ = channel["instance_id"]
|
||||
name = channel["name"]
|
||||
dict_[name] = id_
|
||||
|
||||
with open("/home/samedamci/.config/radio/openfm_channels.json", "w") as f:
|
||||
f.write(json.dumps(dict_, indent=2, ensure_ascii=False))
|
@ -1,5 +0,0 @@
|
||||
#!/bin/sh
|
||||
|
||||
# Menu with AUR packages.
|
||||
|
||||
yay -Slq | fzf -m --preview 'yay -Si {1}' --height 45% | yay -S -
|
@ -1,27 +0,0 @@
|
||||
#!/bin/sh
|
||||
|
||||
# Get Bitcoin price charts and display as image in sxiv.
|
||||
|
||||
DAYS="$(printf "last year\ntwo months\nlast month\nlast week\ntoday" | rofi -dmenu -p " Bitcoin Charts" -width 250)"
|
||||
[ ! "$DAYS" ] && exit 1
|
||||
|
||||
case "$DAYS" in
|
||||
"last year") DAYS="365" ;;
|
||||
"two months") DAYS="60" ;;
|
||||
"last month") DAYS="30" ;;
|
||||
"last week") DAYS="7" ;;
|
||||
"today") DAYS="1" ;;
|
||||
esac
|
||||
|
||||
width="940"
|
||||
height="700"
|
||||
source_="bitstampUSD"
|
||||
URL="https://bitcoincharts.com/charts/chart.png?width=${width}&height=${height}&m=${source_}&r=${DAYS}&t=S&m1=10&m2=25"
|
||||
|
||||
CURRENT_PRICE="$(curl -s rate.sx/1btc | sed 's/\(.*\).\{5\}$/\1/')"
|
||||
|
||||
curl -k -s "$URL" -o /tmp/bitcoinchart
|
||||
convert -pointsize 14 -font helvetica-bold -fill black -gravity North -draw "text 0,12 \"\$${CURRENT_PRICE}\"" \
|
||||
-fill white -draw "rectangle 900,0 702,30" /tmp/bitcoinchart /tmp/bitcoinchart
|
||||
sxiv -b /tmp/bitcoinchart
|
||||
rm /tmp/bitcoinchart
|
@ -1,271 +0,0 @@
|
||||
#!/usr/bin/env sh
|
||||
|
||||
# Script to record screen and audio.
|
||||
# Author - Cherrry9
|
||||
|
||||
deps() {
|
||||
[ "$1" ] && {
|
||||
md="$(for i in $deps; do printf " - \033[31m%s\033[0m\n" "$i"; done)"
|
||||
printf "\033[31mYou are missing dependencies\033[0m\n"
|
||||
printf "%b\n" "$md"
|
||||
printf "\n"
|
||||
}
|
||||
printf "\033[34mRequired dependencies\033[0m\n"
|
||||
printf " - \033[34mffmpeg\033[0m Actually recording\n"
|
||||
printf " - \033[34mdmenu\033[0m Selecting the options\n"
|
||||
printf "\n"
|
||||
printf "\033[35mAt least one of these is required\033[0m\n"
|
||||
printf " - \033[35mxorg-xrandr\033[0m Selecting a display to record\n"
|
||||
printf " - \033[35mslop\033[0m Selecting an area to record\n"
|
||||
printf "\n"
|
||||
printf "\033[32mOptional dependencies\033[0m\n"
|
||||
printf " - \033[32mnotify-send\033[0m Letting the user know when the recording starts/ends\n"
|
||||
printf " - \033[32mxdg-desktop-dir\033[0m Use directory from xdg instead \$HOME/Videos\n"
|
||||
exit
|
||||
}
|
||||
|
||||
# check all necessary dependencies
|
||||
_() { command -v "$1" >/dev/null 2>&1; }
|
||||
|
||||
_ dmenu || deps="$deps dmenu"
|
||||
_ ffmpeg || deps="$deps ffmpeg"
|
||||
_ xrandr || _ slop || deps="$deps xorg-xrandr/slop"
|
||||
|
||||
[ "$deps" ] && deps "$deps"
|
||||
|
||||
# output file, use $BLAZE_DIR and $BLAZE_FILE if they are set
|
||||
if [ ! "$BLAZE_DIR" ]; then
|
||||
_ xdg-user-dir &&
|
||||
BLAZE_DIR="$(xdg-user-dir VIDEOS 2>/dev/null)/rec"
|
||||
fi
|
||||
|
||||
[ ! -d "$BLAZE_DIR" ] && mkdir -p "$BLAZE_DIR" >/dev/null 2>&1
|
||||
|
||||
output="$BLAZE_DIR/${BLAZE_FILE:-blaze-$(date '+%Y-%m-%d_%H-%M-%S').mp4}"
|
||||
|
||||
# menu to use
|
||||
m() { ${DMENU:-dmenu} "$@"; }
|
||||
|
||||
# exit if X isn't running
|
||||
[ ! "$DISPLAY" ] && { echo "Can't open display; exiting"; exit; }
|
||||
|
||||
# find default audio device
|
||||
audio() {
|
||||
pacmd="$(pacmd list-sources | grep -i -B 1 output)"
|
||||
dev="$(echo "$pacmd" | grep -i '\* index' ||
|
||||
echo "$pacmd" | grep -i 'index' | head -n 1)"
|
||||
audio="-f pulse -i $(echo "$dev" | grep -o '[0-9]')"
|
||||
}
|
||||
|
||||
save() {
|
||||
if [ -f "/tmp/blaze-pid" ]; then
|
||||
recpid="$(cat /tmp/blaze-pid)"
|
||||
# kill with SIGTERM, allowing finishing touches.
|
||||
kill -15 "$recpid"
|
||||
rm -f /tmp/blaze-pid
|
||||
# even after SIGTERM, ffmpeg may still run, so SIGKILL it.
|
||||
( sleep 3; kill -9 "$recpid" ) >/dev/null 2>&1 &
|
||||
echo "Recording Stopped"
|
||||
notify-send -t 2000 "Recording Stopped"
|
||||
exit
|
||||
else
|
||||
echo "Recording isn't active"
|
||||
notify-send -t 2000 "Recording isn't active"
|
||||
exit 1
|
||||
fi
|
||||
}
|
||||
|
||||
help() {
|
||||
printf "\033[34mOptions\033[0m\n"
|
||||
printf " \033[34m-o\033[0m \033[35m[]\033[0m Specify the output file\n"
|
||||
printf " \033[34m-s\033[0m End the recording\n"
|
||||
printf " \033[34m-h\033[0m Display what you're reading right now\n"
|
||||
printf " \033[34m-d\033[0m printf dependencies\n"
|
||||
printf " \033[34m-c\033[0m Don't ask if the user is ready to record\n"
|
||||
printf " \033[34m-p\033[0m \033[35m[]\033[0m Save to and load from preset <x>\n"
|
||||
printf " \033[34m-r\033[0m \033[35m[]\033[0m Force framerate\n"
|
||||
printf " \033[34m-b\033[0m \033[35m[]\033[0m Force bitrate (in MB)\n"
|
||||
printf " \033[34m-m\033[0m \033[35m[]\033[0m Force method (slop, display)\n"
|
||||
printf " \033[34m-d\033[0m \033[35m[]\033[0m Force display (Doesn't require -m)\n"
|
||||
printf " \033[34m-n\033[0m Force disable NVENC\n"
|
||||
printf " \033[34m-S\033[0m Options to use for slop (Needs to be quoted)\n"
|
||||
printf " \033[34m-a\033[0m Record desktop audio\n"
|
||||
printf "\n"
|
||||
printf "To select an area, install 'slop',\n"
|
||||
printf "to select a display, install 'xorg-xrandr'\n"
|
||||
printf "\n"
|
||||
printf "\033[35m[]\033[0m = Option requires an argument\n"
|
||||
printf "\n"
|
||||
printf "\033[34mVariables\033[0m\n"
|
||||
printf " \033[34mBLAZE_DIR\033[0m Location to save the video\n"
|
||||
printf " \033[37mDefault: xdg-user-dir VIDEOS or \$HOME/Videos\033[0m\n"
|
||||
printf "\n"
|
||||
printf " \033[34mBLAZE_FILE\033[0m Name of the saved video\n"
|
||||
printf " \033[37mDefault: blaze-%s.mp4\033[0m\n" "\$(date +%Y-%m-%d_%H-%M-%S)"
|
||||
printf "\n"
|
||||
printf " \033[34mBLAZE_SLOP\033[0m Options to use for slop\n"
|
||||
printf " \033[37mDefault: None\033[0m\n"
|
||||
exit
|
||||
}
|
||||
|
||||
while getopts ':hdscb:m:r:nD:S:p:ao:' opt; do
|
||||
case "$opt" in
|
||||
h)
|
||||
help;;
|
||||
d)
|
||||
deps;;
|
||||
s)
|
||||
save;;
|
||||
c)
|
||||
ready='yes';;
|
||||
b)
|
||||
bitrate="-b:v ${OPTARG}M";;
|
||||
m)
|
||||
method="$OPTARG";;
|
||||
r)
|
||||
rate="$OPTARG";;
|
||||
n)
|
||||
nvenc=' ';;
|
||||
D)
|
||||
display="$OPTARG"
|
||||
method='display';;
|
||||
S)
|
||||
sloptions="$OPTARG"
|
||||
method='selection';;
|
||||
p)
|
||||
preset="$OPTARG";;
|
||||
a)
|
||||
audio;;
|
||||
o)
|
||||
output="$OPTARG";;
|
||||
\?)
|
||||
echo "Invalid Option: -$OPTARG" 1>&2
|
||||
exit 1;;
|
||||
:)
|
||||
echo "Invalid Option: -$OPTARG requires an argument" 1>&2
|
||||
exit 1;;
|
||||
esac
|
||||
done
|
||||
shift $((OPTIND -1))
|
||||
|
||||
# exit if blaze is running
|
||||
[ -f /tmp/blaze-pid ] && {
|
||||
echo "Blaze is already running, exiting."
|
||||
notify-send "Blaze is already running, exiting."
|
||||
exit
|
||||
}
|
||||
|
||||
[ "$preset" ] && {
|
||||
# create preset location
|
||||
mkdir -p "${XDG_CONFIG_HOME:-$HOME/.config}"
|
||||
|
||||
# load preset
|
||||
preset_location="${XDG_CONFIG_HOME:-$HOME/.config}"/blaze/"$preset"
|
||||
[ -f "$preset_location" ] &&
|
||||
. "$preset_location"
|
||||
}
|
||||
|
||||
# ask the user what method they want to use
|
||||
[ ! "$method" ] && {
|
||||
# Check if the user has slop and disputils
|
||||
_ slop && s=s
|
||||
_ xrandr && d=d
|
||||
|
||||
# if the user only has slop or disputils (But not both) use that
|
||||
[ "$s" ] && method=selection
|
||||
[ "$d" ] && method=display
|
||||
|
||||
# if the user has both slop and disputils ask the user which one to use
|
||||
[ "$s" ] && [ "$d" ] &&
|
||||
method="$(printf "display\nselection" | m -p "Method of recording")"
|
||||
}
|
||||
|
||||
if [ "$method" = display ]; then
|
||||
|
||||
# get information about the display
|
||||
monitors="$(xrandr --listmonitors | awk 'NR>1 { printf $NF"\n" }')"
|
||||
|
||||
# if there's only one display, use that and skip asking
|
||||
if [ "$(printf "%b\n" "$monitors" | wc -l)" = 1 ]; then
|
||||
display="$monitors"
|
||||
else # if there are other displays ask the user which one to use
|
||||
[ ! "$display" ] && display="$(printf "%b" "$monitors" | m -p "Display to record")"
|
||||
fi
|
||||
|
||||
set -- $(xrandr -q | grep "$display" | grep -oP '\d*x\d*\+\d*\+\d*' | tr '+x' ' ')
|
||||
|
||||
width="$1"
|
||||
height="$2"
|
||||
offX="$3"
|
||||
offY="$4"
|
||||
|
||||
elif [ "$method" = selection ] || [ "$method" = slop ]; then
|
||||
|
||||
# select an area and make each number a separate word
|
||||
set -- $(slop $sloptions -f '%w %h %x %y')
|
||||
|
||||
# get information about the display
|
||||
width="$1"
|
||||
height="$2"
|
||||
offX="$3"
|
||||
offY="$4"
|
||||
|
||||
[ "$(( width % 2 ))" = 1 ] && width="$(( width + 1 ))"
|
||||
[ "$(( height % 2 ))" = 1 ] && height="$(( height + 1 ))"
|
||||
|
||||
else
|
||||
|
||||
printf "Invalid method; exiting\n"
|
||||
exit 1
|
||||
|
||||
fi
|
||||
|
||||
# detect if the user has a nvidia card and use nvenc
|
||||
[ ! "$nvenc" ] && lspci | grep -qi nvidia && nvenc="-vcodec h264_nvenc"
|
||||
|
||||
# ask the user what they want the framerate of the video to be
|
||||
[ ! "$rate" ] && rate="$(printf "30\n60" | m -p "Framerate")"
|
||||
[ ! "$rate" ] && exit
|
||||
|
||||
# ask the user if they want to start the recording
|
||||
[ ! "$ready" ] && ready="$(printf "yes\nno" | m -p "Start the recording")"
|
||||
|
||||
# save preset
|
||||
[ "$preset_location" ] && {
|
||||
cat >"$preset_location"<<EOF
|
||||
[ ! "\$rate" ] && rate="$rate"
|
||||
[ ! "\$bitrate" ] && bitrate="$bitrate"
|
||||
[ ! "\$method" ] && method="$method"
|
||||
EOF
|
||||
}
|
||||
|
||||
[ "$ready" = yes ] && {
|
||||
notify-send -t 1500 "Recording Started"
|
||||
|
||||
# -loglevel error | makes ffmpeg only printf errors to the terminal
|
||||
# -y | don't ask to start
|
||||
# -draw_mouse 1 | show the mouse in the video
|
||||
# -s | specifies the size of the recording
|
||||
# -r "$rate" | specifies the framerate of the video
|
||||
# -i | the input X display (not physical monitor) and offset
|
||||
# -pix_fmt yuv420p | allows the video to be played on browsers like firefox
|
||||
# -q:v | changes the quality of the video, lower is better.
|
||||
# "$output" | file to save the recording to
|
||||
|
||||
ffmpeg \
|
||||
-loglevel error \
|
||||
-y \
|
||||
$audio \
|
||||
-f x11grab \
|
||||
-draw_mouse 1 \
|
||||
-s "${width}x$height" \
|
||||
-r "$rate" \
|
||||
-i "$DISPLAY.0+$offX,$offY" \
|
||||
$bitrate \
|
||||
-pix_fmt yuv420p \
|
||||
$nvenc \
|
||||
-q:v 0 \
|
||||
"$output" &
|
||||
|
||||
echo $! > /tmp/blaze-pid
|
||||
}
|
@ -1,11 +0,0 @@
|
||||
#!/bin/sh
|
||||
|
||||
# Menu with wallpapers to set.
|
||||
|
||||
if [ "$(cat /etc/hostname)" = "pc" ]; then
|
||||
res="1920x1080"
|
||||
elif [ "$(cat /etc/hostname)" = "laptop" ]; then
|
||||
res="1366x768"
|
||||
fi
|
||||
|
||||
find ~/.config/wallpapers/"$res"/* | sxiv - -tb
|
@ -1,11 +0,0 @@
|
||||
#!/bin/bash
|
||||
|
||||
# From Arch Wiki (formated)
|
||||
|
||||
x="$(tput op)"
|
||||
y=$(printf %76s)
|
||||
for i in {0..256}; do
|
||||
o=00$i
|
||||
echo -e ${o:${#o}-3:3} "$(tput setaf "$i";tput setab "$i")" "${y// /=}$x"
|
||||
done
|
||||
|
@ -1,5 +0,0 @@
|
||||
#!/bin/sh
|
||||
|
||||
# Toggle compositor.
|
||||
|
||||
[ "$(pgrep picom)" ] && pkill picom || picom -b
|
@ -1,33 +0,0 @@
|
||||
#!/bin/sh
|
||||
|
||||
# Run dwm bar with modules.
|
||||
|
||||
sym="|"
|
||||
echo "$$" > "$HOME/.cache/dbar.pid"
|
||||
|
||||
cd "$HOME/.local/bin/scripts/dwmbar/" || exit 1
|
||||
|
||||
status() {
|
||||
cat << EOF
|
||||
$(./minexmr) $sym
|
||||
$(./crypto) $sym
|
||||
$(./torrent) $sym
|
||||
$(./disk) $sym
|
||||
$(./internet) $sym
|
||||
$(./music) $sym
|
||||
$(./alsa) $sym
|
||||
$(./mails) $sym
|
||||
$(./packages) $sym
|
||||
$(./date) $sym
|
||||
$(./clock)
|
||||
EOF
|
||||
}
|
||||
|
||||
while :; do
|
||||
[ "$(transmission-remote -l 2>/dev/null | grep %)" ] &&
|
||||
delay="10s" || delay="1m"
|
||||
|
||||
xsetroot -name " $(status | tr '\n' ' ')"
|
||||
|
||||
sleep "$delay"
|
||||
done
|
@ -1,5 +0,0 @@
|
||||
#!/bin/sh
|
||||
|
||||
# Local IP.
|
||||
|
||||
ip a show enp4s0 | grep -Eo '(inet)?*([0-9]*\.){3}[0-9]*' | grep -v '**\.255'
|
@ -1,45 +0,0 @@
|
||||
#!/bin/sh
|
||||
|
||||
# A general, all-purpose extraction script. #
|
||||
|
||||
# Author: Luke Smith
|
||||
|
||||
# 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|*.tbz2) tar xvjf "$archive" ;;
|
||||
*.tar.xz) tar -xf "$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,6 +0,0 @@
|
||||
#!/bin/sh
|
||||
|
||||
# Search for files in local directory and edit selected in default editor.
|
||||
|
||||
find . -type f | fzf --preview 'bat {}' --height 25 --layout reverse | \
|
||||
xargs -r "$EDITOR"
|
@ -1,5 +0,0 @@
|
||||
#!/bin/sh
|
||||
|
||||
# Menu with config files to edit in text editor.
|
||||
|
||||
find "$HOME"/.config/ -maxdepth 3 -type f | fzf --preview "cat {}" --height 25 --layout reverse | xargs -r "$EDITOR"
|
@ -1,6 +0,0 @@
|
||||
#!/bin/sh
|
||||
|
||||
# Fuzzy Git uncommited files changes browser.
|
||||
|
||||
git status | awk '/modified/ { print $2 }' | fzf --preview \
|
||||
'git diff --color=always {}'
|
@ -1,36 +0,0 @@
|
||||
#!/bin/sh
|
||||
|
||||
# Fuzzy cloner of GitHub repos.
|
||||
|
||||
# Usage: fgh <user>
|
||||
# When you don't specify user then user=$USER.
|
||||
|
||||
# Bindings:
|
||||
# enter - clone via ssh
|
||||
# ctrl+h - clone via https
|
||||
# ctrl+b - open in browser
|
||||
|
||||
[ "$1" ] && user="$1" || user="$USER"
|
||||
|
||||
data() {
|
||||
curl -s -n "https://api.github.com/users/$user/repos?per_page=100&page=1"
|
||||
}
|
||||
|
||||
if data | grep -q "Not Found"; then
|
||||
echo "[E] Incorrect user."
|
||||
exit 1
|
||||
fi
|
||||
|
||||
repos() {
|
||||
data | jq --stream -r 'select(.[0][1] == "full_name") | .[1]'
|
||||
}
|
||||
|
||||
[ ! "$(repos)" ] && {
|
||||
echo "This user don't have any public repo!"
|
||||
exit 1
|
||||
}
|
||||
|
||||
repos | fzf --reverse --height=40% \
|
||||
--bind "enter:execute(git clone git@github.com:{})" \
|
||||
--bind "ctrl-h:execute(git clone https://github.com/{})" \
|
||||
--bind "ctrl-b:execute($BROWSER https://github.com/{})"
|
@ -1,9 +0,0 @@
|
||||
#!/bin/sh
|
||||
|
||||
# Fuzzy Git commit browser.
|
||||
|
||||
show_diff="git log --color=always -n 1 {1}; seq -s_ 150|tr -d '[:digit:]' && \
|
||||
git diff --color=always {1}~ {1}"
|
||||
|
||||
git log --color=always --format="%C(auto)%h %s" | fzf --ansi \
|
||||
--preview="$show_diff" --preview-window=right:55%
|