HENLO GILTAB. NEW RICE
This commit is contained in:
parent
851b412452
commit
ecbbf61bbb
|
@ -1,7 +1,7 @@
|
|||
hsetroot -fill /home/deadguy/Pictures/wallpaper/totoro.png &
|
||||
hsetroot -fill /home/deadguy/Pictures/wallpaper/wallhaven-607694.png &
|
||||
xsetroot -cursor_name left_ptr &
|
||||
~/.config/polybar/launch.sh &
|
||||
#compton -b &
|
||||
compton -b &
|
||||
sleep 2s
|
||||
nm-applet &
|
||||
redshift -c ~/.config/redshift/redshift.conf &
|
||||
|
|
|
@ -12,11 +12,11 @@ export pad
|
|||
export panel
|
||||
|
||||
# Setting -$gap on *_padding creates negative padding equal to window gap so that gaps are shown only between windows and not on desktop edges.
|
||||
bspc config window_gap $gap
|
||||
bspc config top_padding $(($panel-$gap))
|
||||
#bspc config left_padding -$gap
|
||||
#bspc config right_padding -$gap
|
||||
#bspc config bottom_padding -$gap
|
||||
bspc config window_gap 8
|
||||
bspc config top_padding 22
|
||||
bspc config left_padding 0
|
||||
bspc config right_padding 0
|
||||
bspc config bottom_padding 0
|
||||
|
||||
# Settings
|
||||
bspc config paddingless_monocle false
|
||||
|
|
|
@ -1,14 +1,14 @@
|
|||
backend = "xrender";
|
||||
paint-on-overlay = true;
|
||||
vsync = "none";
|
||||
vsync = "opengl";
|
||||
refresh-rate = 0;
|
||||
glx-copy-from-front = false;
|
||||
glx-swap-method = "undefined";
|
||||
|
||||
shadow = true;
|
||||
shadow-radius = 0;
|
||||
shadow-offset-x = -0.3;
|
||||
shadow-offset-y = -0.3;
|
||||
shadow-offset-x = 2;
|
||||
shadow-offset-y = 2;
|
||||
shadow-opacity = 1;
|
||||
no-dock-shadow = true;
|
||||
no-dnd-shadow = true;
|
||||
|
@ -26,14 +26,16 @@ detect-client-opacity = true;
|
|||
inactive-opacity-override = false;
|
||||
mark-wmwin-focused = true;
|
||||
mark-ovredir-focused = true;
|
||||
use-ewmh-active-win = true;
|
||||
detect-transient = true;
|
||||
detect-client-leader = true;
|
||||
dbe = false;
|
||||
shadow-ignore-shaped = false;
|
||||
|
||||
fading = true;
|
||||
fade-delta = 15;
|
||||
fade-in-step = 0.03;
|
||||
fade-out-step = 0.03;
|
||||
fade-in-step = 0.3;
|
||||
fade-out-step = 0.3;
|
||||
|
||||
blur-background = true;
|
||||
blur-background-frame = false;
|
||||
|
@ -41,7 +43,7 @@ blur-background-fixed = false;
|
|||
blur-kern = "3x3box";
|
||||
|
||||
opacity-rule = [
|
||||
"40:class_g = 'Bspwm' && class_i = 'presel_feedback'",
|
||||
"20:class_g = 'Bspwm' && class_i = 'presel_feedback'",
|
||||
"0:_NET_WM_STATE@:32a *= '_NET_WM_STATE_HIDDEN'"
|
||||
];
|
||||
|
||||
|
@ -55,7 +57,6 @@ shadow-exclude = [
|
|||
"class_g = 'VirtualBox' && name = 'VirtualBox' && bounding_shaped && (_NET_WM_STATE@[0]:a = '_NET_WM_STATE_MAXIMIZED_VERT' && _NET_WM_STATE@[1]:a = '_NET_WM_STATE_MAXIMIZED_HORZ' || _NET_WM_STATE@[0]:a = '_NET_WM_STATE_MAXIMIZED_HORZ' && _NET_WM_STATE@[1]:a = '_NET_WM_STATE_MAXIMIZED_VERT') && _NET_WM_WINDOW_TYPE@[0]:a = '_KDE_NET_WM_WINDOW_TYPE_OVERRIDE'",
|
||||
"class_g = 'bounding_shaped && !rounded_corners'",
|
||||
"_GTK_FRAME_EXTENTS@:c",
|
||||
#"n:e:Notification",
|
||||
"n:w:Firefox",
|
||||
"! name~=''",
|
||||
"class_g ?= 'Xfce4-power-manager'",
|
||||
|
@ -69,7 +70,6 @@ opacity-exclude = [
|
|||
"name *?= 'Notification'",
|
||||
"class_g ?= 'Notify-osd'",
|
||||
"_GTK_FRAME_EXTENTS@:c",
|
||||
#"n:e:Notification",
|
||||
"n:w:Firefox",
|
||||
"! name~=''",
|
||||
"class_g ?= 'Xfce4-power-manager'",
|
||||
|
@ -93,7 +93,8 @@ focus-exclude = [
|
|||
"_NET_WM_NAME@:s = 'rofi'",
|
||||
"class_g = 'Rofi'",
|
||||
"class_g = 'mpv'",
|
||||
"name *? = 'i3lock'"
|
||||
"name *? = 'i3lock'",
|
||||
"_NET_WM_STATE@:32a *= '_NET_WM_STATE_HIDDEN'"
|
||||
];
|
||||
|
||||
#Window type settings
|
||||
|
|
|
@ -1,311 +0,0 @@
|
|||
#
|
||||
# weechat -- irc.conf
|
||||
#
|
||||
# WARNING: It is NOT recommended to edit this file by hand,
|
||||
# especially if WeeChat is running.
|
||||
#
|
||||
# Use /set or similar command to change settings in WeeChat.
|
||||
#
|
||||
# For more info, see: https://weechat.org/doc/quickstart
|
||||
#
|
||||
|
||||
[look]
|
||||
buffer_open_before_autojoin = off
|
||||
buffer_open_before_join = off
|
||||
buffer_switch_autojoin = on
|
||||
buffer_switch_join = on
|
||||
color_nicks_in_names = on
|
||||
color_nicks_in_nicklist = on
|
||||
color_nicks_in_server_messages = on
|
||||
color_pv_nick_like_channel = on
|
||||
ctcp_time_format = "%a, %d %b %Y %T %z"
|
||||
display_away = local
|
||||
display_ctcp_blocked = on
|
||||
display_ctcp_reply = on
|
||||
display_ctcp_unknown = on
|
||||
display_host_join = on
|
||||
display_host_join_local = on
|
||||
display_host_quit = on
|
||||
display_join_message = "332,333,366"
|
||||
display_old_topic = on
|
||||
display_pv_away_once = on
|
||||
display_pv_back = on
|
||||
highlight_channel = "$nick"
|
||||
highlight_pv = "$nick"
|
||||
highlight_server = "$nick"
|
||||
highlight_tags_restrict = "irc_privmsg,irc_notice"
|
||||
item_channel_modes_hide_args = "k"
|
||||
item_display_server = buffer_plugin
|
||||
item_nick_modes = on
|
||||
item_nick_prefix = on
|
||||
join_auto_add_chantype = on
|
||||
msgbuffer_fallback = current
|
||||
new_channel_position = none
|
||||
new_pv_position = none
|
||||
nick_completion_smart = speakers
|
||||
nick_mode = both
|
||||
nick_mode_empty = off
|
||||
nicks_hide_password = "nickserv"
|
||||
notice_as_pv = auto
|
||||
notice_welcome_redirect = on
|
||||
notice_welcome_tags = ""
|
||||
notify_tags_ison = "notify_message"
|
||||
notify_tags_whois = "notify_message"
|
||||
part_closes_buffer = on
|
||||
pv_buffer = independent
|
||||
pv_tags = "notify_private"
|
||||
raw_messages = 256
|
||||
server_buffer = independent
|
||||
smart_filter = on
|
||||
smart_filter_delay = 5
|
||||
smart_filter_join = on
|
||||
smart_filter_join_unmask = 30
|
||||
smart_filter_mode = "+"
|
||||
smart_filter_nick = on
|
||||
smart_filter_quit = on
|
||||
temporary_servers = on
|
||||
topic_strip_colors = on
|
||||
|
||||
[color]
|
||||
input_nick = white
|
||||
item_channel_modes = green
|
||||
item_lag_counting = default
|
||||
item_lag_finished = yellow
|
||||
item_nick_modes = blue
|
||||
message_join = green
|
||||
message_quit = red
|
||||
mirc_remap = "1,-1:darkgray"
|
||||
nick_prefixes = "y:lightred;q:lightred;a:lightcyan;o:lightgreen;h:lightmagenta;v:yellow;*:lightblue"
|
||||
notice = green
|
||||
reason_quit = default
|
||||
topic_current = brown
|
||||
topic_new = brown
|
||||
topic_old = darkgray
|
||||
|
||||
[network]
|
||||
autoreconnect_delay_growing = 2
|
||||
autoreconnect_delay_max = 1800
|
||||
ban_mask_default = "*!$ident@$host"
|
||||
channel_encode = off
|
||||
colors_receive = on
|
||||
colors_send = on
|
||||
lag_check = 60
|
||||
lag_max = 1800
|
||||
lag_min_show = 500
|
||||
lag_reconnect = 0
|
||||
lag_refresh_interval = 1
|
||||
notify_check_ison = 1
|
||||
notify_check_whois = 5
|
||||
sasl_fail_unavailable = on
|
||||
send_unknown_commands = off
|
||||
whois_double_nick = off
|
||||
|
||||
[msgbuffer]
|
||||
|
||||
[ctcp]
|
||||
|
||||
[ignore]
|
||||
|
||||
[server_default]
|
||||
addresses = ""
|
||||
anti_flood_prio_high = 2
|
||||
anti_flood_prio_low = 2
|
||||
autoconnect = off
|
||||
autojoin = ""
|
||||
autoreconnect = on
|
||||
autoreconnect_delay = 10
|
||||
autorejoin = off
|
||||
autorejoin_delay = 30
|
||||
away_check = 0
|
||||
away_check_max_nicks = 25
|
||||
capabilities = ""
|
||||
command = ""
|
||||
command_delay = 0
|
||||
connection_timeout = 60
|
||||
ipv6 = on
|
||||
local_hostname = ""
|
||||
msg_kick = ""
|
||||
msg_part = "0009"
|
||||
msg_quit = "Wee!"
|
||||
nicks = "nick1,nick2,nick3"
|
||||
nicks_alternate = on
|
||||
notify = ""
|
||||
password = ""
|
||||
proxy = ""
|
||||
realname = "MyName"
|
||||
sasl_fail = continue
|
||||
sasl_key = ""
|
||||
sasl_mechanism = plain
|
||||
sasl_password = ""
|
||||
sasl_timeout = 15
|
||||
sasl_username = ""
|
||||
ssl = off
|
||||
ssl_cert = ""
|
||||
ssl_dhkey_size = 2048
|
||||
ssl_fingerprint = ""
|
||||
ssl_priorities = "NORMAL:-VERS-SSL3.0"
|
||||
ssl_verify = on
|
||||
usermode = ""
|
||||
username = "alex"
|
||||
|
||||
[server]
|
||||
freenode.addresses = "chat.freenode.net/6667"
|
||||
freenode.proxy
|
||||
freenode.ipv6 = on
|
||||
freenode.ssl
|
||||
freenode.ssl_cert
|
||||
freenode.ssl_priorities
|
||||
freenode.ssl_dhkey_size
|
||||
freenode.ssl_fingerprint
|
||||
freenode.ssl_verify
|
||||
freenode.password
|
||||
freenode.capabilities
|
||||
freenode.sasl_mechanism
|
||||
freenode.sasl_username
|
||||
freenode.sasl_password
|
||||
freenode.sasl_key
|
||||
freenode.sasl_timeout
|
||||
freenode.sasl_fail
|
||||
freenode.autoconnect
|
||||
freenode.autoreconnect = on
|
||||
freenode.autoreconnect_delay
|
||||
freenode.nicks = "nick1, nick2, nick3"
|
||||
freenode.nicks_alternate
|
||||
freenode.username
|
||||
freenode.realname
|
||||
freenode.local_hostname
|
||||
freenode.usermode
|
||||
freenode.command = "/msg nickserv identify password"
|
||||
freenode.command_delay = 30
|
||||
freenode.autojoin = "#channel1,#channel2"
|
||||
freenode.autorejoin = on
|
||||
freenode.autorejoin_delay
|
||||
freenode.connection_timeout
|
||||
freenode.anti_flood_prio_high = 0
|
||||
freenode.anti_flood_prio_low
|
||||
freenode.away_check
|
||||
freenode.away_check_max_nicks
|
||||
freenode.msg_kick
|
||||
freenode.msg_part
|
||||
freenode.msg_quit
|
||||
freenode.notify
|
||||
rizon.addresses = "irc.rizon.net"
|
||||
rizon.proxy
|
||||
rizon.ipv6
|
||||
rizon.ssl
|
||||
rizon.ssl_cert
|
||||
rizon.ssl_priorities
|
||||
rizon.ssl_dhkey_size
|
||||
rizon.ssl_fingerprint
|
||||
rizon.ssl_verify
|
||||
rizon.password
|
||||
rizon.capabilities
|
||||
rizon.sasl_mechanism
|
||||
rizon.sasl_username
|
||||
rizon.sasl_password
|
||||
rizon.sasl_key
|
||||
rizon.sasl_timeout
|
||||
rizon.sasl_fail
|
||||
rizon.autoconnect
|
||||
rizon.autoreconnect
|
||||
rizon.autoreconnect_delay
|
||||
rizon.nicks = "nick1"
|
||||
rizon.nicks_alternate
|
||||
rizon.username
|
||||
rizon.realname
|
||||
rizon.local_hostname
|
||||
rizon.usermode
|
||||
rizon.command = "/msg nickserv identify password"
|
||||
rizon.command_delay = 10
|
||||
rizon.autojoin = "#channel1,#channel2"
|
||||
rizon.autorejoin
|
||||
rizon.autorejoin_delay
|
||||
rizon.connection_timeout
|
||||
rizon.anti_flood_prio_high
|
||||
rizon.anti_flood_prio_low
|
||||
rizon.away_check
|
||||
rizon.away_check_max_nicks
|
||||
rizon.msg_kick
|
||||
rizon.msg_part
|
||||
rizon.msg_quit
|
||||
rizon.notify
|
||||
slack.addresses = "room.irc.slack.com/6667"
|
||||
slack.proxy
|
||||
slack.ipv6
|
||||
slack.ssl = on
|
||||
slack.ssl_cert
|
||||
slack.ssl_priorities
|
||||
slack.ssl_dhkey_size
|
||||
slack.ssl_fingerprint
|
||||
slack.ssl_verify
|
||||
slack.password = "password"
|
||||
slack.capabilities
|
||||
slack.sasl_mechanism
|
||||
slack.sasl_username
|
||||
slack.sasl_password
|
||||
slack.sasl_key
|
||||
slack.sasl_timeout
|
||||
slack.sasl_fail
|
||||
slack.autoconnect
|
||||
slack.autoreconnect
|
||||
slack.autoreconnect_delay
|
||||
slack.nicks = "nick1"
|
||||
slack.nicks_alternate
|
||||
slack.username
|
||||
slack.realname
|
||||
slack.local_hostname
|
||||
slack.usermode
|
||||
slack.command
|
||||
slack.command_delay
|
||||
slack.autojoin = "#channel"
|
||||
slack.autorejoin
|
||||
slack.autorejoin_delay
|
||||
slack.connection_timeout
|
||||
slack.anti_flood_prio_high
|
||||
slack.anti_flood_prio_low
|
||||
slack.away_check
|
||||
slack.away_check_max_nicks
|
||||
slack.msg_kick
|
||||
slack.msg_part
|
||||
slack.msg_quit
|
||||
slack.notify
|
||||
nixers.addresses = "unix.chat/6697"
|
||||
nixers.proxy
|
||||
nixers.ipv6
|
||||
nixers.ssl = on
|
||||
nixers.ssl_cert
|
||||
nixers.ssl_priorities
|
||||
nixers.ssl_dhkey_size
|
||||
nixers.ssl_fingerprint
|
||||
nixers.ssl_verify = off
|
||||
nixers.password
|
||||
nixers.capabilities
|
||||
nixers.sasl_mechanism
|
||||
nixers.sasl_username
|
||||
nixers.sasl_password
|
||||
nixers.sasl_key
|
||||
nixers.sasl_timeout
|
||||
nixers.sasl_fail
|
||||
nixers.autoconnect = off
|
||||
nixers.autoreconnect
|
||||
nixers.autoreconnect_delay
|
||||
nixers.nicks
|
||||
nixers.nicks_alternate
|
||||
nixers.username
|
||||
nixers.realname
|
||||
nixers.local_hostname
|
||||
nixers.usermode
|
||||
nixers.command
|
||||
nixers.command_delay
|
||||
nixers.autojoin = "#channel"
|
||||
nixers.autorejoin = on
|
||||
nixers.autorejoin_delay
|
||||
nixers.connection_timeout
|
||||
nixers.anti_flood_prio_high
|
||||
nixers.anti_flood_prio_low
|
||||
nixers.away_check
|
||||
nixers.away_check_max_nicks
|
||||
nixers.msg_kick
|
||||
nixers.msg_part
|
||||
nixers.msg_quit
|
||||
nixers.notify
|
|
@ -1,131 +0,0 @@
|
|||
#
|
||||
# weechat -- trigger.conf
|
||||
#
|
||||
# WARNING: It is NOT recommended to edit this file by hand,
|
||||
# especially if WeeChat is running.
|
||||
#
|
||||
# Use /set or similar command to change settings in WeeChat.
|
||||
#
|
||||
# For more info, see: https://weechat.org/doc/quickstart
|
||||
#
|
||||
|
||||
[look]
|
||||
enabled = on
|
||||
monitor_strip_colors = off
|
||||
|
||||
[color]
|
||||
flag_command = lightgreen
|
||||
flag_conditions = yellow
|
||||
flag_post_action = lightblue
|
||||
flag_regex = lightcyan
|
||||
flag_return_code = lightmagenta
|
||||
regex = white
|
||||
replace = cyan
|
||||
trigger = green
|
||||
trigger_disabled = red
|
||||
|
||||
[trigger]
|
||||
beep.arguments = ""
|
||||
beep.command = "/print -beep"
|
||||
beep.conditions = "${tg_displayed} && (${tg_highlight} || ${tg_msg_pv})"
|
||||
beep.enabled = on
|
||||
beep.hook = print
|
||||
beep.post_action = none
|
||||
beep.regex = ""
|
||||
beep.return_code = ok
|
||||
bufferswitch.arguments = "buffer_switch"
|
||||
bufferswitch.command = "/perlexec weechat::buffer_set(weechat::hdata_get_list(weechat::hdata_get('buffer'),'gui_buffer_last_displayed'), 'unread', 0)\;"
|
||||
bufferswitch.conditions = ""
|
||||
bufferswitch.enabled = on
|
||||
bufferswitch.hook = signal
|
||||
bufferswitch.post_action = none
|
||||
bufferswitch.regex = ""
|
||||
bufferswitch.return_code = ok
|
||||
cmd_pass.arguments = "5000|input_text_display;5000|history_add;5000|irc_command_auth"
|
||||
cmd_pass.command = ""
|
||||
cmd_pass.conditions = ""
|
||||
cmd_pass.enabled = on
|
||||
cmd_pass.hook = modifier
|
||||
cmd_pass.post_action = none
|
||||
cmd_pass.regex = "==^((/(msg|m|quote) +nickserv +(id|identify|register|ghost +[^ ]+|release +[^ ]+|regain +[^ ]+|recover +[^ ]+) +)|/oper +[^ ]+ +|/quote +pass +|/set +[^ ]*password[^ ]* +|/secure +(passphrase|decrypt|set +[^ ]+) +)(.*)==${re:1}${hide:*,${re:+}}"
|
||||
cmd_pass.return_code = ok
|
||||
detach.arguments = "10000;0;0"
|
||||
detach.command = "/allchan /eval /perlexec weechat::command('', '/command -buffer irc.\${server}.\${channel} core /buffer hide') if ((${date:%s} - \${buffer[\${info:irc_buffer,\${server},\${channel}}].lines.last_line.data.date}) > 100 && '\${window.buffer.full_name}' !~ 'irc.\${server}.\${channel}' && '\${buffer[\${info:irc_buffer,\${server},\${channel}}].hotlist}' eq '0x0')"
|
||||
detach.conditions = ""
|
||||
detach.enabled = on
|
||||
detach.hook = timer
|
||||
detach.post_action = none
|
||||
detach.regex = ""
|
||||
detach.return_code = ok
|
||||
force_redraw.arguments = "window_switch;buffer_switch"
|
||||
force_redraw.command = "/wait 1ms /redraw"
|
||||
force_redraw.conditions = ""
|
||||
force_redraw.enabled = on
|
||||
force_redraw.hook = signal
|
||||
force_redraw.post_action = none
|
||||
force_redraw.regex = ""
|
||||
force_redraw.return_code = ok
|
||||
idlebot.arguments = "irc_channel_opened"
|
||||
idlebot.command = "/msg -server freenode IdleBot LOGIN nick password"
|
||||
idlebot.conditions = "${buffer[${tg_signal_data}].full_name} =~ #idleRPG"
|
||||
idlebot.enabled = on
|
||||
idlebot.hook = signal
|
||||
idlebot.post_action = none
|
||||
idlebot.regex = ""
|
||||
idlebot.return_code = ok
|
||||
msg_auth.arguments = "5000|irc_message_auth"
|
||||
msg_auth.command = ""
|
||||
msg_auth.conditions = ""
|
||||
msg_auth.enabled = on
|
||||
msg_auth.hook = modifier
|
||||
msg_auth.post_action = none
|
||||
msg_auth.regex = "==^(.*(id|identify|register|ghost +[^ ]+|release +[^ ]+|regain +[^ ]+|recover +[^ ]+) +)(.*)==${re:1}${hide:*,${re:+}}"
|
||||
msg_auth.return_code = ok
|
||||
pong.arguments = ""
|
||||
pong.command = "pong"
|
||||
pong.conditions = "${type} == private && ${tg_message} == ping"
|
||||
pong.enabled = on
|
||||
pong.hook = print
|
||||
pong.post_action = none
|
||||
pong.regex = ""
|
||||
pong.return_code = ok
|
||||
reattach.arguments = ""
|
||||
reattach.command = "/command -buffer irc.$server.$channel core /buffer unhide"
|
||||
reattach.conditions = "${buffer.hidden} == 1 && ${tg_tag_notify} == message"
|
||||
reattach.enabled = on
|
||||
reattach.hook = print
|
||||
reattach.post_action = none
|
||||
reattach.regex = ""
|
||||
reattach.return_code = ok
|
||||
reattach_on_switch.arguments = "buffer_switch"
|
||||
reattach_on_switch.command = "/command -buffer ${buffer[${tg_signal_data}].full_name} core /buffer unhide"
|
||||
reattach_on_switch.conditions = "${buffer[${tg_signal_data}].hidden} == 1"
|
||||
reattach_on_switch.enabled = on
|
||||
reattach_on_switch.hook = signal
|
||||
reattach_on_switch.post_action = none
|
||||
reattach_on_switch.regex = ""
|
||||
reattach_on_switch.return_code = ok
|
||||
rizonirpg.arguments = "irc_channel_opened"
|
||||
rizonirpg.command = "/msg -server rizon RizonIRPG LOGIN nick password"
|
||||
rizonirpg.conditions = "${buffer[${tg_signal_data}].full_name} =~ #RizonIRPG"
|
||||
rizonirpg.enabled = on
|
||||
rizonirpg.hook = signal
|
||||
rizonirpg.post_action = none
|
||||
rizonirpg.regex = ""
|
||||
rizonirpg.return_code = ok
|
||||
server_pass.arguments = "5000|input_text_display;5000|history_add"
|
||||
server_pass.command = ""
|
||||
server_pass.conditions = ""
|
||||
server_pass.enabled = on
|
||||
server_pass.hook = modifier
|
||||
server_pass.post_action = none
|
||||
server_pass.regex = "==^(/(server|connect) .*-(sasl_)?password=)([^ ]+)(.*)==${re:1}${hide:*,${re:4}}${re:5}"
|
||||
server_pass.return_code = ok
|
||||
windowswitch.arguments = "window_switch"
|
||||
windowswitch.command = "/perlexec weechat::buffer_set(weechat::window_get_pointer('${tg_signal_data}','buffer'), 'hotlist', -1);"
|
||||
windowswitch.conditions = ""
|
||||
windowswitch.enabled = on
|
||||
windowswitch.hook = signal
|
||||
windowswitch.post_action = none
|
||||
windowswitch.regex = ""
|
||||
windowswitch.return_code = ok
|
|
@ -58,13 +58,13 @@
|
|||
separator_color = frame
|
||||
|
||||
startup_notification = false
|
||||
dmenu = /usr/bin/dmenu -p dunst:
|
||||
dmenu = /usr/bin/rofi -dmenu -p dunst:
|
||||
browser = /usr/bin/firefox -new-tab
|
||||
icon_position = right # Align icons left/right/off
|
||||
max_icon_size = 64
|
||||
|
||||
# Paths to default icons.
|
||||
icon_path = /usr/share/icons/Papirus-Dark/16x16@2x/apps/:/usr/share/icons/Papirus-Dark/16x16@2x/categories/:/usr/share/icons/Papirus-Dark/16x16@2x/devices/:/usr/share/icons/Papirus-Dark/16x16@2x/emblems/:/usr/share/icons/Papirus-Dark/16x16@2x/mimetypes/:/usr/share/icons/Papirus-Dark/16x16@2x/places/:/usr/share/icons/Papirus-Dark/16x16@2x/status/
|
||||
icon_path = /usr/share/icons/Papirus-Dark/16x16@2x/apps/:/usr/share/icons/Papirus-Dark/16x16@2x/devices/:/usr/share/icons/Papirus-Dark/16x16@2x/status/
|
||||
|
||||
# Always run rule-defined scripts, even if the notification is suppressed
|
||||
always_run_script = true
|
||||
|
@ -72,10 +72,10 @@
|
|||
per_monitor_dpi = false
|
||||
|
||||
[shortcuts]
|
||||
#close = mod1+space
|
||||
#close_all = mod1+shift+space
|
||||
#history = ctrl+h
|
||||
#context = mod1+shift+period
|
||||
close = mod4+apostrophe
|
||||
close_all = mod4+mod1+apostrophe
|
||||
history = mod4+ctrl+apostrophe
|
||||
context = mod4+ctrl+semicolon
|
||||
|
||||
[urgency_low]
|
||||
background = "#212121"
|
||||
|
@ -95,4 +95,8 @@
|
|||
frame_color = "#e53935"
|
||||
timeout = 60
|
||||
|
||||
[mail]
|
||||
appname = neomutt
|
||||
new_icon = "/usr/share/icons/Papirus-Dark/16x16@2x/apps/gmail.svg"
|
||||
|
||||
# vim: ft=cfg
|
||||
|
|
|
@ -21,6 +21,20 @@ VteTerminal, vte-terminal {
|
|||
padding: 0 8px;
|
||||
}
|
||||
|
||||
.window-frame.csd.popup {
|
||||
box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2), 0 0 0 1px rgba(0, 0, 0, 0.13);
|
||||
}
|
||||
|
||||
.header-bar {
|
||||
background-image: none;
|
||||
background-color: #ededed;
|
||||
box-shadow: none;
|
||||
}
|
||||
/* You may want to use this if you don't like the double title.
|
||||
GtkLabel.title {
|
||||
opacity: 0;
|
||||
}*/
|
||||
|
||||
headerbar.default-decoration {
|
||||
padding-top: 0;
|
||||
padding-bottom: 0;
|
||||
|
@ -31,4 +45,7 @@ headerbar.default-decoration {
|
|||
headerbar.default-decoration button.titlebutton {
|
||||
padding: 0;
|
||||
min-height: 0;
|
||||
}
|
||||
}
|
||||
|
||||
/* Remove dotted lines from GTK+ 3 applications */
|
||||
undershoot.top, undershoot.right, undershoot.bottom, undershoot.left { background-image: none; }
|
|
@ -1,7 +1,7 @@
|
|||
# Beware! This file is rewritten by htop when settings are changed in the interface.
|
||||
# The parser is also very primitive, and not human-friendly.
|
||||
fields=0 48 17 18 38 39 40 2 46 47 49 1
|
||||
sort_key=46
|
||||
fields=0 48 17 18 38 39 40 2 46 47 49 1
|
||||
sort_key=38
|
||||
sort_direction=1
|
||||
hide_threads=1
|
||||
hide_kernel_threads=0
|
||||
|
@ -20,7 +20,7 @@ update_process_names=0
|
|||
account_guest_in_cpu_meter=0
|
||||
color_scheme=0
|
||||
delay=15
|
||||
left_meters=AllCPUs
|
||||
left_meter_modes=1
|
||||
right_meters=Tasks Memory LoadAverage Battery Uptime
|
||||
right_meter_modes=2 2 2 2 2
|
||||
left_meters=AllCPUs
|
||||
left_meter_modes=1
|
||||
right_meters=Tasks Memory LoadAverage Battery Uptime
|
||||
right_meter_modes=2 2 2 2 2
|
||||
|
|
|
@ -1,39 +0,0 @@
|
|||
# Mailcap 101
|
||||
# - The first entry with a matching MIME type will be executed, * is a wildcard
|
||||
# - %s will be replaced with the image or video url
|
||||
# - Add ``test=test -n "$DISPLAY"`` if your command opens a new window
|
||||
# - Add ``needsterminal`` for commands that use the terminal
|
||||
# - Add ``copiousoutput`` for commands that dump text to stdout
|
||||
|
||||
image/gif; sxiv-gif %s; test=test -n "$DISPLAY"
|
||||
image/*; sxiv %s; test=test -n "$DISPLAY"
|
||||
video/*; mpv %s; test=test -n "$DISPLAY"
|
||||
application/pdf; zathura %s; test=test -n "$DISPLAY"
|
||||
application/msword; abiword %s; test=test -n "$DISPLAY"
|
||||
|
||||
# Autoview html
|
||||
text/html; "$BROWSER" %s; test=test -n "$DISPLAY"; needsterminal;
|
||||
text/html; w3m -I %{charset} -T text/html; copiousoutput;
|
||||
#text/html; lynx -assume_charset=%{charset} -display_charset=utf-8 -dump %s; nametemplate=%s.html; copiousoutput
|
||||
text/plain; cat %s; copiousoutput
|
||||
|
||||
###############################################################################
|
||||
# Commands below this point will attempt to display media directly in the
|
||||
# terminal when X is not available.
|
||||
###############################################################################
|
||||
|
||||
# 256 color images using half-width unicode characters
|
||||
# Much higher quality that img2txt, but must be built from source
|
||||
# https://github.com/rossy/img2xterm
|
||||
image/*; %s | convert -resize 80x80 - jpg:/tmp/rtv.jpg && img2xterm /tmp/rtv.jpg; needsterminal; copiousoutput
|
||||
|
||||
# Display images in classic ascii using img2txt and lib-caca
|
||||
image/*; %s | convert - jpg:/tmp/rtv.jpg && img2txt -f utf8 /tmp/rtv.jpg; needsterminal; copiousoutput
|
||||
|
||||
# Full motion videos - requires a framebuffer to view
|
||||
video/x-youtube; mpv -vo drm -quiet '%s'; needsterminal
|
||||
video/*; mpv -vo drm -quiet '%s'; needsterminal
|
||||
|
||||
# Ascii videos
|
||||
# video/x-youtube; youtube-dl -q -o - '%s' | mplayer -cache 8192 -vo caca -quiet -; needsterminal
|
||||
# video/*; wget '%s' -O - | mplayer -cache 8192 -vo caca -quiet -; needsterminal
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
# Default index colors:
|
||||
color index yellow default '.*'
|
||||
color index_author brightgreen default '.*'
|
||||
color index_author red default '.*'
|
||||
color index_number blue default
|
||||
color index_subject cyan default '.*'
|
||||
|
||||
|
@ -13,7 +13,7 @@ color index_subject brightcyan black "~N"
|
|||
|
||||
# Header colors:
|
||||
color header blue default ".*"
|
||||
color header brightyellow default "^(From)"
|
||||
color header brightmagenta default "^(From)"
|
||||
color header brightcyan default "^(Subject)"
|
||||
color header brightwhite default "^(CC|BCC)"
|
||||
|
||||
|
@ -24,7 +24,7 @@ mono error bold
|
|||
color normal default default
|
||||
color indicator brightblack white
|
||||
color sidebar_highlight red default
|
||||
color sidebar_divider color8 black
|
||||
color sidebar_divider brightblack black
|
||||
color sidebar_flagged red black
|
||||
color sidebar_new green black
|
||||
color normal brightyellow default
|
||||
|
|
|
@ -0,0 +1,24 @@
|
|||
# - The first entry with a matching MIME type will be executed, * is a wildcard
|
||||
# - %s will be replaced with the image or video url
|
||||
# - Add ``test=test -n "$DISPLAY"`` if your command opens a new window
|
||||
# - Add ``needsterminal`` for commands that use the terminal
|
||||
# - Add ``copiousoutput`` for commands that dump text to stdout
|
||||
|
||||
image/gif; sxiv-gif %s; test=test -n "$DISPLAY"
|
||||
image/*; sxiv %s; test=test -n "$DISPLAY"
|
||||
video/*; mpv %s; test=test -n "$DISPLAY"
|
||||
application/pdf; zathura %s; test=test -n "$DISPLAY"
|
||||
|
||||
# Autoview html
|
||||
text/html; "$BROWSER" %s 2>/dev/null & disown; test=test -n "$DISPLAY"; needsterminal;
|
||||
text/html; w3m -I %{charset} -T text/html; copiousoutput;
|
||||
text/plain; nvim %s; copiousoutput
|
||||
|
||||
# 256 color images using half-width unicode characters
|
||||
# Much higher quality that img2txt, but must be built from source
|
||||
# https://github.com/rossy/img2xterm
|
||||
image/*; %s | convert -resize 80x80 - jpg:/tmp/rtv.jpg && img2xterm /tmp/rtv.jpg; needsterminal; copiousoutput
|
||||
|
||||
# Full motion videos - requires a framebuffer to view
|
||||
video/x-youtube; mpv -vo drm -quiet '%s'; needsterminal
|
||||
video/*; mpv -vo drm -quiet '%s'; needsterminal
|
|
@ -40,6 +40,7 @@ bind index F search
|
|||
bind index,pager R group-reply
|
||||
macro index,pager S '<sync-mailbox><shell-escape>pkill -RTMIN+12 i3blocks<enter>'
|
||||
macro index,pager \Cu |urlview\n
|
||||
macro index,pager ,, |urlview\n
|
||||
|
||||
# View attachments properly.
|
||||
bind attach <return> view-mailcap
|
||||
|
|
|
@ -1,19 +1,12 @@
|
|||
# vim: filetype=neomuttrc
|
||||
|
||||
# External -------------------------------------
|
||||
source ~/.config/mutt/gpg.rc
|
||||
source etc/muttcol
|
||||
source etc/aliases
|
||||
source /home/deadguy/.config/mutt/accounts/vidaar.muttrc
|
||||
|
||||
set date_format ="%a %d %b %R"
|
||||
set index_format ="%2C %Z %?X?A& ? %D %-45.45F %s (%-4.4c)"
|
||||
set alias_format = " %4n %t %-20a %r "
|
||||
|
||||
set pipe_decode
|
||||
set thorough_search
|
||||
set send_charset="utf-8"
|
||||
set check_new = yes
|
||||
set smart_wrap = yes
|
||||
set allow_ansi = yes
|
||||
set quote_regexp = "^( {0,4}[>|:#%]| {0,4}[a-z0-9]+[>|]+)+"
|
||||
|
||||
# Hacks -----------------------------------------
|
||||
# "from" field gets 30% of remaining space, "subject" gets 70%. Remaining space is the total width minus the other fields
|
||||
set my_index_format_pre='set my_col_from = `echo $((30 * ($(tput cols)-50) / 100))`; set my_col_subject = `echo $((70 * ($(tput cols)-50) / 100))`; set index_format="%2C %Z %D %-$my_col_from.${my_col_from}'
|
||||
set my_index_format_post=' %-4.4c %?M?<%M ?%-$my_col_subject.${my_col_subject}s"'
|
||||
|
@ -21,54 +14,113 @@ set my_index_format_post=' %-4.4c %?M?<%M ?%-$my_col_subject.${my_col_subject}
|
|||
folder-hook .*[sS]ent.* "$my_index_format_pre"t"$my_index_format_post"
|
||||
folder-hook ! .*[sS]ent.* "$my_index_format_pre"F"$my_index_format_post"
|
||||
|
||||
# General Options -----------------------------------------
|
||||
set mailcap_path = ~/.config/mutt/mailcap
|
||||
set imap_keepalive = 900
|
||||
set sleep_time = 0
|
||||
set pipe_decode
|
||||
set thorough_search
|
||||
set send_charset="utf-8"
|
||||
set check_new = yes
|
||||
set smart_wrap = yes
|
||||
set allow_ansi = yes
|
||||
set markers = no
|
||||
set smtp_authenticators = 'gssapi:login'
|
||||
set wait_key = no
|
||||
|
||||
# Index Options -----------------------------------------
|
||||
set sort = threads # like gmail
|
||||
set sort_aux = reverse-last-date-received # like gmail
|
||||
set uncollapse_jump # don't collapse on an unread message
|
||||
set sort_re # thread based on regex
|
||||
set sort = threads # like gmail
|
||||
set sort_aux = reverse-last-date-received # like gmail
|
||||
set uncollapse_jump # no collapse on unread message
|
||||
set sort_re # thread based on regex
|
||||
set reply_regexp = "^(([Rr][Ee]?(\[[0-9]+\])?: *)?(\[[^]]+\] *)?)*"
|
||||
set quote_regexp = "^( {0,4}[>|:#%]| {0,4}[a-z0-9]+[>|]+)+"
|
||||
set new_mail_command="notify-send -a neomutt -u normal 'New Email' '%n new messages, %u unread.' &"
|
||||
set date_format ="%a %d %b %R"
|
||||
#set index_format ="%2C %Z %?X?A& ? %D %-45.45F %s (%-4.4c)"
|
||||
set index_format="%4C %Z %{%b %d %R} %-15.15L (%?l?%4l&%4c?) %s"
|
||||
set alias_format = " %4n %t %-20a %r "
|
||||
|
||||
# Header Options -------------------------------------
|
||||
set hdrs
|
||||
ignore "Authentication-Results:"
|
||||
ignore "DomainKey-Signature:"
|
||||
ignore "DKIM-Signature:"
|
||||
unignore from: to: cc: date: subject: # show only these
|
||||
unhdr_order * # some distros order things by default
|
||||
hdr_order date: from: to: date: subject: cc: # and in this order
|
||||
unignore from: to: cc: date: subject:
|
||||
unhdr_order *
|
||||
hdr_order date: from: to: subject: cc:
|
||||
unignore x-mailing-list: posted-to:
|
||||
unignore x-mailer:
|
||||
|
||||
# Mail Options -------------------------------------
|
||||
set use_from = yes
|
||||
set envelope_from # which from?
|
||||
set fast_reply # skip to compose when replying
|
||||
set sendmail_wait = 1 # wait for sending to complete
|
||||
set attribution = "%d %n:" # set the attribution
|
||||
set reply_to # reply to Reply to: field
|
||||
set skip_quoted_offset = 3
|
||||
set sig_dashes # dashes before sig
|
||||
set edit_headers # show headers when composing
|
||||
set fcc_attach # save attachments with the body
|
||||
unset mime_forward # forward attachments as part of body
|
||||
set forward_format = "Fwd: %s" # format of subject when forwarding
|
||||
set forward_decode # decode when forwarding
|
||||
set reverse_name # reply as whomever it was to
|
||||
set include # include message in replies
|
||||
set forward_quote # include message in forwards
|
||||
auto_view text/html
|
||||
auto_view application/pdf
|
||||
alternative_order text/plain text/enriched text/html
|
||||
set rfc2047_parameters = yes
|
||||
|
||||
# Status Bar -----------------------------------------
|
||||
set status_chars = " *%A"
|
||||
set status_format = "──┄┄╼ %f: %m Messages ╾┄┄──────────┈%?n? %n New?%?d?, %d to Delete?%?t?, %t Tagged?%?p?, %p Postponed?%?l? %l Total ?┈───%>─┤ %P ├───"
|
||||
color status magenta default
|
||||
|
||||
# Composing Mail -------------------------------------
|
||||
set envelope_from # which from?
|
||||
set fast_reply # skip to compose when replying
|
||||
set sendmail_wait = 1 # wait for sending... to complete
|
||||
#set askcc # ask for CC:
|
||||
set attribution = "El %d, %n escribio:" # set the attribution
|
||||
set reply_to # reply to Reply to: field
|
||||
set skip_quoted_offset = 3
|
||||
# Editor -------------------------------------
|
||||
set editor='nvim + -c "set nocp" -c "set textwidth=72" -c "set wrap" -c "silent /^$" -c "noh" -c "vmap <leader>s c[... snip ...]<ESC>"'
|
||||
|
||||
bind pager <up> previous-line
|
||||
bind pager <down> next-line
|
||||
bind pager <left> previous-undeleted
|
||||
bind pager <right> next-undeleted
|
||||
# Sidebar -------------------------------------
|
||||
set sidebar_visible = yes
|
||||
set sidebar_width = 20
|
||||
set sidebar_short_path = yes
|
||||
set sidebar_next_new_wrap = yes
|
||||
set sidebar_folder_indent = yes
|
||||
set sidebar_new_mail_only = no
|
||||
set sidebar_sort_method = path
|
||||
set mail_check_stats
|
||||
set imap_check_subscribed = yes
|
||||
set sidebar_format = '%B%?F? [%F]?%* %?N?%N/? %?S?%S?'
|
||||
|
||||
# Bindings -------------------------------------
|
||||
bind index,pager i noop
|
||||
bind index,pager g noop
|
||||
bind index \Cf noop
|
||||
bind editor <space> noop
|
||||
bind index G last-entry
|
||||
bind index gg first-entry
|
||||
bind index F search
|
||||
bind pager <up> previous-line
|
||||
bind pager <down> next-line
|
||||
bind pager <left> previous-undeleted
|
||||
bind pager <right> next-undeleted
|
||||
bind index D half-down
|
||||
bind index U half-up
|
||||
bind index d delete-message
|
||||
bind index u undelete-message
|
||||
bind index <left> previous-unread
|
||||
bind index <right> next-unread
|
||||
bind index,pager R group-reply
|
||||
bind index <left> previous-unread
|
||||
bind index <right> next-unread
|
||||
bind index,pager R group-reply
|
||||
macro index,pager S '<sync-mailbox>
|
||||
bind index,pager k sidebar-prev
|
||||
bind index,pager j sidebar-next
|
||||
bind index,pager l sidebar-open
|
||||
bind index,pager B sidebar-toggle-visible
|
||||
bind attach <return> view-mailcap
|
||||
|
||||
# Macros -------------------------------------
|
||||
macro index,pager \CL "<enter-command>$my_index_format_pre"F"$my_index_format_post<enter><redraw-screen>"
|
||||
|
||||
macro attach 'V' "<pipe-entry>cat >~/.cache/mutt/mail.html && $BROWSER ~/.cache/mutt/mail.html && rm ~/.cache/mutt/mail.html<enter>"
|
||||
|
@ -81,5 +133,20 @@ macro index,pager \cb "<enter-command> set my_pdsave=\$pipe_decode<enter>\
|
|||
<enter-command> set pipe_decode=\$my_pdsave<enter>" "get URLs"
|
||||
|
||||
macro index,pager <F1> '<sync-mailbox><enter-command>source /home/deadguy/.config/mutt/accounts/vidaar.muttrc<enter><change-folder>!<enter>'
|
||||
source /home/deadguy/.config/mutt/accounts/vidaar.muttrc
|
||||
|
||||
macro index,pager <F2> '<sync-mailbox><enter-command>source /home/deadguy/.config/mutt/accounts/alex.muttrc<enter><change-folder>!<enter>'
|
||||
|
||||
#Ctrl-R to mark all as read
|
||||
macro index \Cr "T~U<enter><tag-prefix><clear-flag>N<untag-pattern>.<enter>" "mark all messages as read"
|
||||
|
||||
#sync email
|
||||
macro index O "<shell-escape>$HOME/.config/mutt/etc/mailsync.sh<enter>" "run offlineimap to sync all mail"
|
||||
macro index o "<shell-escape>$HOME/.config/mutt/etc/mailsync.sh -qf INBOX<enter>" "run offlineimap to sync inbox"
|
||||
|
||||
#copy/move dialogs
|
||||
macro index C "<copy-message>?<toggle-mailboxes>" "copy a message to a mailbox"
|
||||
macro index M "<save-message>?<toggle-mailboxes>" "move a message to a mailbox"
|
||||
|
||||
# Notmuch searching
|
||||
macro index \Cf "<enter-command>unset wait_key<enter><shell-escape>read -p 'notmuch query: ' x; echo \$x >~/.cache/mutt_terms<enter><limit>~i \"\`notmuch search --output=messages \$(cat ~/.cache/mutt_terms) | head -n 600 | perl -le '@a=<>;chomp@a;s/\^id:// for@a;$,=\"|\";print@a'\`\"<enter>" "show only messages matching a notmuch pattern"
|
||||
macro index A "<limit>all\n" "show all messages (undo limit)"
|
|
@ -23,11 +23,11 @@ Plug 'w0rp/ale'
|
|||
Plug 'sbdchd/neoformat'
|
||||
Plug 'scrooloose/nerdtree', { 'on': ['NERDTreeFind', 'NERDTreeToggle'] }
|
||||
Plug 'christoomey/vim-tmux-navigator'
|
||||
Plug 'zefei/vim-wintabs'
|
||||
Plug 'lervag/vimtex', { 'for': 'tex' }
|
||||
"Plug 'xuhdev/vim-latex-live-preview', { 'for': 'tex' }
|
||||
"Plug 'supercollider/scvim', { 'for': 'scd' }
|
||||
Plug '/usr/bin/fzf'
|
||||
Plug 'junegunn/fzf.vim'
|
||||
Plug 'zefei/vim-wintabs'
|
||||
|
||||
call plug#end()
|
||||
let g:plug_window = 'rightbelow topleft new'
|
||||
|
@ -43,6 +43,7 @@ let $NVIM_TUI_ENABLE_CURSOR_SHAPE=1
|
|||
"let $NVIM_TUI_ENABLE_TRUE_COLOR=1
|
||||
|
||||
set binary
|
||||
set clipboard^=unnamedplus " system clipboard (requires +clipboard)
|
||||
set encoding=utf-8 " The encoding displayed.
|
||||
set fileencoding=utf-8 " The encoding written to file.
|
||||
scriptencoding utf-8 " Set utf-8 as default script encoding
|
||||
|
@ -97,13 +98,13 @@ set nosmarttab
|
|||
set modeline
|
||||
set modelines=2
|
||||
set scrolloff=7 " Keep this many lines padding when scrolling
|
||||
set title
|
||||
set undofile
|
||||
set undolevels=1000
|
||||
set undoreload=10000
|
||||
set undodir=$HOME/.config/nvim/undo
|
||||
set termguicolors
|
||||
set fillchars="fold: " " Characters to fill the statuslines and vertical separators
|
||||
set fillchars+=vert:\│
|
||||
set fillchars="vert:"
|
||||
set nrformats-=octal
|
||||
set pastetoggle=<F12>
|
||||
set shortmess=aoOtIWcFs " Shorten messages and don't show intro
|
||||
|
@ -177,20 +178,18 @@ function! LinterStatus() abort
|
|||
endfunction
|
||||
|
||||
set statusline=
|
||||
set statusline+=%#Keyword#
|
||||
set statusline+=%{winnr()}
|
||||
set statusline+=%#SpecialKey#
|
||||
set statusline+=\ %{StatuslineGit()}
|
||||
set statusline+=%#CursorLineNr#
|
||||
set statusline+=\ %F
|
||||
set statusline+=\ %y
|
||||
set statusline+=\ %h%m%r%w%q
|
||||
set statusline+=\ %{LinterStatus()}
|
||||
set statusline+=\ %{PasteForStatusline()}
|
||||
set statusline+=\ %h%r%w%q
|
||||
set statusline+=%=
|
||||
set statusline+=%{LinterStatus()}
|
||||
set statusline+=%{PasteForStatusline()}
|
||||
set statusline+=\ %{&fileencoding?&fileencoding:&encoding}
|
||||
set statusline+=\ [%{&fileformat}\]
|
||||
set statusline+=\ %l:%c\ (%p%%)
|
||||
set statusline+=%#Keyword#
|
||||
set statusline+=\ %{winnr()}
|
||||
set statusline+=
|
||||
" }}}
|
||||
|
||||
|
@ -238,6 +237,11 @@ let g:netrw_winsize=25
|
|||
" }}}
|
||||
|
||||
" {{{ Ale
|
||||
let g:ale_set_highlights = 1
|
||||
let g:ale_fixers = { 'python': 'autopep8' }
|
||||
let g:ale_python_mypy_options = "--ignore-missing-imports"
|
||||
let g:ale_python_pylint_options = "--disable=C"
|
||||
let g:ale_python_flake8_options = "--ignore=E221"
|
||||
let g:ale_echo_msg_error_str = 'E'
|
||||
let g:ale_echo_msg_warning_str = 'W'
|
||||
let g:ale_echo_msg_format = '[%linter%] %s [%severity%]'
|
||||
|
@ -247,6 +251,13 @@ hi ALEWarningSign ctermfg=yellow ctermbg=none
|
|||
|
||||
" Deoplete {{{
|
||||
let g:deoplete#enable_at_startup = 1
|
||||
|
||||
call deoplete#custom#option('max_list', 100000)
|
||||
call deoplete#custom#option('min_pattern_length', 2)
|
||||
if !exists('g:deoplete#omni#input_patterns')
|
||||
let g:deoplete#omni#input_patterns = {}
|
||||
endif
|
||||
let g:deoplete#sources#jedi#server_timeout = 120
|
||||
let g:deoplete#sources#jedi#show_docstring = 1
|
||||
let g:deoplete#enable_ignore_case = 1
|
||||
let g:deoplete#enable_smart_case = 1
|
||||
|
@ -268,10 +279,8 @@ let g:fzf_action = {
|
|||
\ 'ctrl-x': 'split',
|
||||
\ 'ctrl-v': 'vsplit' }
|
||||
|
||||
"let $FZF_DEFAULT_OPTS .= ' --no-height'
|
||||
|
||||
" Default fzf layout: - down / up / left / right
|
||||
let g:fzf_layout = { 'down': '~40%' }
|
||||
let g:fzf_layout = { 'down': '~50%' }
|
||||
|
||||
" You can set up fzf window using a Vim command
|
||||
let g:fzf_layout = { 'window': 'enew' }
|
||||
|
@ -335,21 +344,19 @@ command! -bang -nargs=? -complete=dir Files
|
|||
" Wintabs {{{
|
||||
let g:wintabs_ui_active_higroup = 'TabLineSel'
|
||||
let g:wintabs_switchbuf='useopen,usetab'
|
||||
let intertabSpace= ' '
|
||||
let activeWinTabChar = '|'
|
||||
let activeVimTabChar = '|'
|
||||
let activeWinTabChar = '▎'
|
||||
let activeVimTabChar = '▍'
|
||||
let g:wintabs_ui_sep_leftmost=intertabSpace
|
||||
let g:wintabs_display='statusline'
|
||||
|
||||
let intertabSpace= ''
|
||||
let activeVimTabChar = '▋'
|
||||
let g:wintabs_ui_sep_leftmost=activeVimTabChar
|
||||
let g:wintabs_ui_sep_inbetween=intertabSpace
|
||||
let g:wintabs_ui_active_right=intertabSpace
|
||||
let g:wintabs_ui_active_left=activeVimTabChar
|
||||
let g:wintabs_ui_sep_rightmost=intertabSpace
|
||||
let g:wintabs_ui_modified=' +'
|
||||
let g:wintabs_ignored_filetypes=[]
|
||||
let g:wintabs_ui_active_vimtab_left=activeVimTabChar
|
||||
let g:wintabs_ui_active_vimtab_right=intertabSpace
|
||||
|
||||
let g:wintabs_ui_active_left=activeVimTabChar
|
||||
let g:wintabs_ui_active_right=intertabSpace
|
||||
let g:wintabs_ui_buffer_name_format='%t'
|
||||
let g:wintabs_ui_vimtab_name_format='%n'
|
||||
let g:wintabs_ui_arrow_left='«'
|
||||
let g:wintabs_ui_arrow_right='»'
|
||||
" }}}
|
||||
|
@ -371,6 +378,33 @@ let NERDTreeHijackNetrw = 0
|
|||
let NERDTreeAutoCenter = 1
|
||||
" }}}
|
||||
|
||||
" Ranger {{{
|
||||
function! <SID>ranger()
|
||||
let l:temp = tempname()
|
||||
|
||||
execute 'silent !st -e ranger --choosefiles='.shellescape(l:temp).' $PWD'
|
||||
|
||||
if !filereadable(temp)
|
||||
redraw!
|
||||
return
|
||||
endif
|
||||
|
||||
let l:names = readfile(l:temp)
|
||||
if empty(l:names)
|
||||
redraw!
|
||||
return
|
||||
endif
|
||||
|
||||
execute 'edit '.fnameescape(l:names[0])
|
||||
|
||||
for l:name in l:names[1:]
|
||||
execute 'argadd '.fnameescape(l:name)
|
||||
endfor
|
||||
|
||||
redraw!
|
||||
endfunction
|
||||
" }}}
|
||||
|
||||
" Tmux navigator {{{
|
||||
let g:tmux_navigator_no_mappings = 1
|
||||
let g:tmux_navigator_save_on_switch = 1
|
||||
|
@ -382,7 +416,11 @@ nnoremap <silent> M-Tab :TmuxNavigatePrevious<cr>
|
|||
" }}}
|
||||
|
||||
" Mappings {{{
|
||||
map <F9> :!w<Enter>:!pdflatex <C-r>%<Enter>
|
||||
" Open ranger as a file chooser
|
||||
nnoremap <leader>R :call <SID>ranger()<CR>
|
||||
|
||||
" Latex
|
||||
map <F8> :!w<Enter>:!pdflatex <C-r>%<Enter>
|
||||
map <F6> :setlocal spell! spelllang=es<CR>
|
||||
map <F7> :setlocal spell! spelllang=en<CR>
|
||||
|
||||
|
@ -427,10 +465,13 @@ nnoremap <Space>¿ :%s/\<<C-r>=expand("<cword>")<CR>\>/
|
|||
" Learn vim keys the hard way
|
||||
nnoremap <silent> <Left> :vertical resize -2<CR>
|
||||
nnoremap <silent> <Right> :vertical resize +2<CR>
|
||||
nnoremap <silent> <Up> :resize -2<CR>
|
||||
nnoremap <silent> <Down> :resize +2<CR>
|
||||
nnoremap <silent> <Up> :resize -1<CR>
|
||||
nnoremap <silent> <Down> :resize +1<CR>
|
||||
inoremap jk <esc>
|
||||
|
||||
nnoremap <silent> <leader>ev :vsplit $MYVIMRC<CR>
|
||||
nnoremap <silent> <leader>sv :source $MYVIMRC<CR>
|
||||
|
||||
nnoremap <silent> <F5> :so ~/.config/nvim/init.vim<CR>
|
||||
nnoremap <leader>T :terminal<CR>
|
||||
nnoremap <leader>s :split<CR>
|
||||
nnoremap <leader>v :vsplit<CR>
|
||||
|
@ -448,6 +489,18 @@ nnoremap <silent> <CR> i<CR><ESC>
|
|||
" Fix indentation
|
||||
nnoremap <leader>i mzgg=G`z<CR>
|
||||
|
||||
" deedee
|
||||
nnoremap - dd<CR>p
|
||||
nnoremap _ ddkp
|
||||
inoremap <c-d> <esc>ddi
|
||||
|
||||
" LOUD
|
||||
inoremap <m-u> <esc>viwUi
|
||||
nnoremap <m-u> viwU
|
||||
|
||||
" Quotes
|
||||
nnoremap <leader>" viw<esc>a"<esc>bi"<esc>lel
|
||||
|
||||
" Unhighlight search terms
|
||||
nnoremap <silent> <leader><space> :noh<C-R>=has('diff')?'<Bar>diffupdate':''<CR><CR><C-L>
|
||||
|
||||
|
@ -456,10 +509,16 @@ nnoremap Q <nop>
|
|||
map q <nop>
|
||||
|
||||
" Move vertically by visual line
|
||||
nnoremap j gj
|
||||
nnoremap k gk
|
||||
vnoremap j gj
|
||||
vnoremap k gk
|
||||
"nnoremap j gj
|
||||
"nnoremap k gk
|
||||
"vnoremap j gj
|
||||
"vnoremap k gk
|
||||
|
||||
" j = gj :: k = gk while preserving numbered jumps ie. 12j or 30k
|
||||
nnoremap <buffer><silent><expr>j v:count ? 'j' : 'gj'
|
||||
nnoremap <buffer><silent><expr>k v:count ? 'k' : 'gk'
|
||||
vnoremap <buffer><silent><expr>j v:count ? 'j' : 'gj'
|
||||
vnoremap <buffer><silent><expr>k v:count ? 'k' : 'gk'
|
||||
|
||||
" Use tab for indenting in visual mode
|
||||
vnoremap <Tab> >gv|
|
||||
|
@ -469,7 +528,9 @@ noremap <silent> <Home> g<Home>
|
|||
noremap <silent> <End> g<End>
|
||||
inoremap <silent> <Home> <C-o>g<Home>
|
||||
inoremap <silent> <End> <C-o>g<End>
|
||||
noremap Y y$
|
||||
nnoremap H 0
|
||||
nnoremap L $
|
||||
noremap Y 0y$
|
||||
|
||||
" Center screen when jumping and moving
|
||||
nnoremap <silent> n :norm! nzz<CR>
|
||||
|
@ -516,4 +577,56 @@ tnoremap <M-l> <C-\><C-n><C-w>l
|
|||
:command! QA qa
|
||||
" }}}
|
||||
|
||||
" Stuff i'll probably use if i remember to {{{
|
||||
" global replace
|
||||
vnoremap <Leader>sw "hy
|
||||
\ :let b:sub = input('global replacement: ') <Bar>
|
||||
\ if b:sub !=? '' <Bar>
|
||||
\ let b:rep = substitute(getreg('h'), '/', '\\/', 'g') <Bar>
|
||||
\ execute '%s/'.b:rep."/".b:sub.'/g' <Bar>
|
||||
\ unlet b:sub b:rep <Bar>
|
||||
\ endif <CR>
|
||||
nnoremap <Leader>sw
|
||||
\ :let b:sub = input('global replacement: ') <Bar>
|
||||
\ if b:sub !=? '' <Bar>
|
||||
\ execute "%s/<C-r><C-w>/".b:sub.'/g' <Bar>
|
||||
\ unlet b:sub <Bar>
|
||||
\ endif <CR>
|
||||
|
||||
" prompt before each replace
|
||||
vnoremap <Leader>cw "hy
|
||||
\ :let b:sub = input('interactive replacement: ') <Bar>
|
||||
\ if b:sub !=? '' <Bar>
|
||||
\ let b:rep = substitute(getreg('h'), '/', '\\/', 'g') <Bar>
|
||||
\ execute '%s/'.b:rep.'/'.b:sub.'/gc' <Bar>
|
||||
\ unlet b:sub b:rep <Bar>
|
||||
\ endif <CR>
|
||||
nnoremap <Leader>cw
|
||||
\ :let b:sub = input('interactive replacement: ') <Bar>
|
||||
\ if b:sub !=? '' <Bar>
|
||||
\ execute "%s/<C-r><C-w>/".b:sub.'/gc' <Bar>
|
||||
\ unlet b:sub <Bar>
|
||||
\ endif <CR>
|
||||
|
||||
" highlight long lines
|
||||
let w:longlines = matchadd('ColorColumn', '\%'.&tw.'v', &tw)
|
||||
nnoremap <silent> <Leader>ll
|
||||
\ :if exists('w:longlines') <Bar>
|
||||
\ silent! call matchdelete(w:longlines) <Bar>
|
||||
\ unlet w:longlines <Bar>
|
||||
\ elseif &textwidth > 0 <Bar>
|
||||
\ let w:longlines = matchadd('ColorColumn', '\%'.&textwidth.'v', &textwidth) <Bar>
|
||||
\ else <Bar>
|
||||
\ let w:longlines = matchadd('ColorColumn', '\%80v', 80) <Bar>
|
||||
\ endif <CR>
|
||||
|
||||
" local keyword jump
|
||||
nnoremap <Leader>fw
|
||||
\ [I:let b:jump = input('Go To: ') <Bar>
|
||||
\ if b:jump !=? '' <Bar>
|
||||
\ execute "normal! ".b:jump."[\t" <Bar>
|
||||
\ unlet b:jump <Bar>
|
||||
\ endif <CR><Paste>
|
||||
" }}}
|
||||
|
||||
" vim:foldmethod=marker:foldlevel=0
|
|
@ -2,22 +2,17 @@
|
|||
; syntax:ssSemi
|
||||
|
||||
[colors]
|
||||
;background = ${xrdb:background:#080808}
|
||||
background = #393939
|
||||
background-alt = ${xrdb:color8:#181818}
|
||||
foreground = ${xrdb:foreground:#d3d7cf}
|
||||
foreground-alt = ${xrdb:color7:#bdbdbd}
|
||||
primary = ${xrdb:color11:#fce94f}
|
||||
secondary = ${xrdb:color10:#7cb342}
|
||||
alert = ${xrdb:color1:#ef5350}
|
||||
border = ${xrdb:color12:#729fcf}
|
||||
background = ${xrdb:background}
|
||||
foreground = ${xrdb:foreground}
|
||||
primary = ${xrdb:color11}
|
||||
secondary= ${xrdb:color12}
|
||||
|
||||
[global/wm]
|
||||
margin-top = 0
|
||||
margin-bottom = 0
|
||||
|
||||
[settings]
|
||||
screenchange-reload = true
|
||||
screenchange-reload = false
|
||||
throttle-output = 5
|
||||
throttle-output-for = 10
|
||||
throttle-input-for = 30
|
||||
|
@ -26,8 +21,6 @@ throttle-input-for = 30
|
|||
width = 100%
|
||||
height = 22
|
||||
radius = 0
|
||||
offset-x = 0
|
||||
offset-y = 0
|
||||
border-size = 0
|
||||
padding = 0
|
||||
module-margin = 2
|
||||
|
@ -37,23 +30,24 @@ fixed-center = true
|
|||
enable-ipc = true
|
||||
background = ${colors.background}
|
||||
foreground = ${colors.foreground}
|
||||
border-color = ${colors.border}
|
||||
|
||||
font-0 = IBMPlexSans:size=9:weight=bold;2
|
||||
font-0 = InterUIMedium:size=10;2
|
||||
font-1 = SourceHanSansJPMedium:size=10;2
|
||||
|
||||
modules-left = title
|
||||
modules-center =
|
||||
modules-right = updates bspwm date
|
||||
|
||||
tray-position = right
|
||||
tray-position = left
|
||||
tray-detached = false
|
||||
tray-transparent = false
|
||||
tray-padding = 2
|
||||
tray-maxsize = 18
|
||||
tray-background = ${root.background}
|
||||
tray-background = ${colors.background}
|
||||
|
||||
wm-restack = bspwm
|
||||
;override-redirect = true
|
||||
override-redirect = true
|
||||
|
||||
cursor-click = pointer
|
||||
|
||||
[module/title]
|
||||
type = internal/xwindow
|
||||
|
@ -73,15 +67,15 @@ interval = 1
|
|||
type = internal/bspwm
|
||||
enable-click = false
|
||||
enable-scroll = false
|
||||
|
||||
label-focused = %index%
|
||||
label-focused-foreground = ${colors.primary}
|
||||
label-focused-padding = 0
|
||||
|
||||
label-occupied =
|
||||
label-empty =
|
||||
label-urgent =
|
||||
label-occupied-padding = 0
|
||||
label-empty-padding = 0
|
||||
label-urgent-padding = 0
|
||||
|
||||
[module/updates]
|
||||
type = custom/script
|
||||
|
@ -90,60 +84,4 @@ exec-if = ping -q -w 1 -c 1 "$(ip r | grep default | cut -d ' ' -f 3)" >/dev/nul
|
|||
interval = 7200
|
||||
format = <label>
|
||||
label = %output%
|
||||
format-foreground = ${colors.border}
|
||||
|
||||
[module/usb]
|
||||
type = custom/script
|
||||
exec = ~/bin/system-usb-udev.sh
|
||||
tail = true
|
||||
click-left = ~/bin/system-usb-udev.sh --mount
|
||||
click-right = ~/bin/system-usb-udev.sh --unmount
|
||||
format = <label>
|
||||
label = %output%
|
||||
format-foreground = ${colors.secondary}
|
||||
|
||||
[module/network]
|
||||
type = internal/network
|
||||
interface = wlo1
|
||||
interval = 3.0
|
||||
format-connected = <ramp-signal>
|
||||
format-disconnected = <label-disconnected>
|
||||
label-disconnected =
|
||||
label-disconnected-font = 2
|
||||
|
||||
ramp-signal-0 = %{T2}
|
||||
ramp-signal-1 = %{T2}
|
||||
ramp-signal-2 = %{T2}
|
||||
ramp-signal-3 = %{T2}
|
||||
ramp-signal-4 = %{T2}
|
||||
|
||||
[module/battery]
|
||||
type = internal/battery
|
||||
battery = BAT0
|
||||
adapter = AC
|
||||
full-at = 100
|
||||
|
||||
label-charging = %percentage%%
|
||||
format-charging = <animation-charging><label-charging>
|
||||
|
||||
label-discharging = %percentage%%
|
||||
format-discharging = <ramp-capacity><label-discharging>
|
||||
|
||||
label-full = %percentage%%
|
||||
format-full-prefix = ""
|
||||
|
||||
ramp-capacity-0 =
|
||||
ramp-capacity-1 =
|
||||
ramp-capacity-2 =
|
||||
ramp-capacity-3 =
|
||||
ramp-capacity-4 =
|
||||
ramp-capacity-5 =
|
||||
|
||||
animation-charging-0 =
|
||||
animation-charging-1 =
|
||||
animation-charging-2 =
|
||||
animation-charging-3 =
|
||||
animation-charging-4 =
|
||||
animation-charging-5 =
|
||||
animation-charging-6 =
|
||||
animation-charging-framerate = 500
|
||||
format-foreground = ${colors.secondary}
|
|
@ -44,6 +44,7 @@ set vcs_aware true
|
|||
set vcs_backend_git enabled
|
||||
set vcs_backend_hg disabled
|
||||
set vcs_backend_bzr disabled
|
||||
set vcs_backend_svn disabled
|
||||
|
||||
# Use one of the supported image preview protocols
|
||||
set preview_images false
|
||||
|
@ -94,14 +95,14 @@ set display_size_in_status_bar true
|
|||
set display_tags_in_all_columns true
|
||||
|
||||
# Set a title for the window?
|
||||
set update_title false
|
||||
set update_title true
|
||||
|
||||
# Set the title to "ranger" in the tmux program?
|
||||
set update_tmux_title false
|
||||
set update_tmux_title true
|
||||
|
||||
# Shorten the title if it gets long? The number defines how many
|
||||
# directories are displayed at once, 0 turns off this feature.
|
||||
set shorten_title 3
|
||||
set shorten_title 4
|
||||
|
||||
# Show hostname in titlebar?
|
||||
set hostname_in_titlebar false
|
||||
|
@ -156,7 +157,7 @@ set sort_unicode false
|
|||
set xterm_alt_key false
|
||||
|
||||
# Whether to include bookmarks in cd command
|
||||
set cd_bookmarks false
|
||||
set cd_bookmarks true
|
||||
|
||||
# Changes case sensitivity for the cd command tab completion
|
||||
set cd_tab_case sensitive
|
||||
|
@ -179,7 +180,7 @@ set idle_delay 2000
|
|||
set metadata_deep_search false
|
||||
|
||||
# Clear all existing filters when leaving a directory
|
||||
set clear_filters_on_dir_change false
|
||||
set clear_filters_on_dir_change true
|
||||
|
||||
# Disable displaying line numbers in main column
|
||||
set line_numbers false
|
||||
|
@ -293,7 +294,6 @@ copymap <HOME> gg
|
|||
copymap <END> G
|
||||
copymap <PAGEDOWN> <C-F>
|
||||
copymap <PAGEUP> <C-B>
|
||||
|
||||
map J move down=0.5 pages=True
|
||||
map K move up=0.5 pages=True
|
||||
copymap J <C-D>
|
||||
|
@ -333,9 +333,14 @@ map yn shell -f echo -n %%f | xsel -i; xsel -o | xsel -i -b
|
|||
map ff fzf_select
|
||||
map fl fzf_locate
|
||||
map cg chain shell nvim -p ~/.config/ranger/rc.conf; source ~/.config/ranger/rc.conf
|
||||
|
||||
# Open file in a new tmux pane
|
||||
map ef eval import shlex; fm.run("tmux splitw -h rifle " + shlex.quote(fm.thisfile.basename))
|
||||
map ev eval import shlex; fm.run("tmux splitw -v rifle " + shlex.quote(fm.thisfile.basename))
|
||||
map ew eval import shlex; fm.run("tmux new-window rifle " + shlex.quote(fm.thisfile.basename))
|
||||
|
||||
# Better file renaming
|
||||
map w eval fm.execute_console("bulkrename") if fm.thisdir.marked_items else fm.open_console("rename ")
|
||||
map a rename_append
|
||||
map A eval fm.open_console('rename ' + fm.thisfile.relative_path.replace("%", "%%"))
|
||||
map I eval fm.open_console('rename ' + fm.thisfile.relative_path.replace("%", "%%"), position=7)
|
||||
|
@ -347,7 +352,6 @@ map I eval fm.open_console('rename ' + fm.thisfile.relative_path.replace("%", "
|
|||
|
||||
# Filesystem Operations
|
||||
map = chmod
|
||||
map w eval fm.execute_console("bulkrename") if fm.thisdir.marked_items else fm.open_console("rename ")
|
||||
map pp paste
|
||||
map po paste overwrite=True
|
||||
map pP paste append=True
|
||||
|
@ -371,16 +375,12 @@ map uy uncut
|
|||
map ya copy mode=add
|
||||
map yr copy mode=remove
|
||||
map yt copy mode=toggle
|
||||
|
||||
# Temporary workarounds
|
||||
map dgg eval fm.cut(dirarg=dict(to=0), narg=quantifier)
|
||||
map dG eval fm.cut(dirarg=dict(to=-1), narg=quantifier)
|
||||
map dj eval fm.cut(dirarg=dict(down=1), narg=quantifier)
|
||||
map dk eval fm.cut(dirarg=dict(up=1), narg=quantifier)
|
||||
map ygg eval fm.copy(dirarg=dict(to=0), narg=quantifier)
|
||||
map yG eval fm.copy(dirarg=dict(to=-1), narg=quantifier)
|
||||
map yj eval fm.copy(dirarg=dict(down=1), narg=quantifier)
|
||||
map yk eval fm.copy(dirarg=dict(up=1), narg=quantifier)
|
||||
map yd shell -f echo -n %d | xsel -i; xsel -o | xsel -i -b
|
||||
map yn shell -f echo -n %f | xsel -i; xsel -o | xsel -i -b
|
||||
map yp shell -f echo -n %d/%f | xsel -i; xsel -o | xsel -i -b
|
||||
map yp yank path
|
||||
map yd yank dir
|
||||
map yn yank name
|
||||
|
||||
# Searching
|
||||
map f console scout -ftsea%space
|
||||
|
@ -588,8 +588,8 @@ copytmap <ESC> q Q w <C-c>
|
|||
|
||||
# Assorted stuff
|
||||
map xc shell chmod -x %s
|
||||
map cf console touch%space
|
||||
map cd console mkdir%space
|
||||
map Nf console touch%space
|
||||
map Nd console mkdir%space
|
||||
map cc console compress%space
|
||||
map sl console shell ln -sT%space
|
||||
map bg shell hsetroot -fill %f
|
||||
|
@ -598,3 +598,23 @@ map Ms shell mpc play
|
|||
map Mp shell mpc toggle
|
||||
map Mn shell mpc next
|
||||
map Mb shell mpc prev
|
||||
|
||||
## Move
|
||||
map mD shell mv %s ~/Documents/
|
||||
map md shell mv %s ~/Downloads/
|
||||
map mp shell mv %s ~/Pictures/
|
||||
map m. shell mv %s ~/.config/
|
||||
map mv shell mv %s ~/Videos/
|
||||
map mm shell mv %s ~/Music/
|
||||
map mb shell mv %s ~/bin/
|
||||
map mh shell mv %s ~/
|
||||
|
||||
## Copy
|
||||
map YD shell cp -r %s ~/Documents/
|
||||
map Yd shell cp -r %s ~/Downloads/
|
||||
map Yp shell cp -r %s ~/Pictures/
|
||||
map Y. shell cp -r %s ~/.config/
|
||||
map Yv shell cp -r %s ~/Videos/
|
||||
map Ym shell cp -r %s ~/Music/
|
||||
map Yb shell cp -r %s ~/bin/
|
||||
map Yh shell cp -r %s ~/
|
||||
|
|
|
@ -54,27 +54,7 @@
|
|||
# Rarely installed browsers get higher priority; It is assumed that if you
|
||||
# install a rare browser, you probably use it. Firefox/konqueror/w3m on the
|
||||
# other hand are often only installed as fallback browsers.
|
||||
ext x?html?, has surf, X, flag f = surf -- file://"$1"
|
||||
ext x?html?, has vimprobable, X, flag f = vimprobable -- "$@"
|
||||
ext x?html?, has vimprobable2, X, flag f = vimprobable2 -- "$@"
|
||||
ext x?html?, has qutebrowser, X, flag f = qutebrowser -- "$@"
|
||||
ext x?html?, has dwb, X, flag f = dwb -- "$@"
|
||||
ext x?html?, has jumanji, X, flag f = jumanji -- "$@"
|
||||
ext x?html?, has luakit, X, flag f = luakit -- "$@"
|
||||
ext x?html?, has uzbl, X, flag f = uzbl -- "$@"
|
||||
ext x?html?, has uzbl-tabbed, X, flag f = uzbl-tabbed -- "$@"
|
||||
ext x?html?, has uzbl-browser, X, flag f = uzbl-browser -- "$@"
|
||||
ext x?html?, has uzbl-core, X, flag f = uzbl-core -- "$@"
|
||||
ext x?html?, has midori, X, flag f = midori -- "$@"
|
||||
ext x?html?, has chromium, X, flag f = chromium -- "$@"
|
||||
ext x?html?, has opera, X, flag f = opera -- "$@"
|
||||
ext x?html?, has firefox, X, flag f = firefox -- "$@"
|
||||
ext x?html?, has seamonkey, X, flag f = seamonkey -- "$@"
|
||||
ext x?html?, has iceweasel, X, flag f = iceweasel -- "$@"
|
||||
ext x?html?, has epiphany, X, flag f = epiphany -- "$@"
|
||||
ext x?html?, has konqueror, X, flag f = konqueror -- "$@"
|
||||
ext x?html?, has elinks, terminal = elinks "$@"
|
||||
ext x?html?, has links2, terminal = links2 "$@"
|
||||
ext x?html?, has links, terminal = links "$@"
|
||||
ext x?html?, has lynx, terminal = lynx -- "$@"
|
||||
ext x?html?, has w3m, terminal = w3m "$@"
|
||||
|
@ -88,7 +68,7 @@ mime ^text, label pager = "$PAGER" -- "$@"
|
|||
!mime ^text, label editor, ext xml|json|csv|tex|py|pl|rb|js|sh|php = $EDITOR -- "$@"
|
||||
!mime ^text, label pager, ext xml|json|csv|tex|py|pl|rb|js|sh|php = "$PAGER" -- "$@"
|
||||
|
||||
ext 1 = man "$1"
|
||||
ext 1|5 = man "$1"
|
||||
ext s[wmf]c, has zsnes, X = zsnes "$1"
|
||||
ext s[wmf]c, has snes9x-gtk,X = snes9x-gtk "$1"
|
||||
ext nes, has fceux, X = fceux "$1"
|
||||
|
@ -104,6 +84,8 @@ ext rb = ruby -- "$1"
|
|||
ext js = node -- "$1"
|
||||
ext sh = sh -- "$1"
|
||||
ext php = php -- "$1"
|
||||
name ^[mM]akefile$ = make
|
||||
name ^PKGBUILD$ = makepkg --printsrcinfo >.SRCINFO && makepkg -f
|
||||
|
||||
#--------------------------------------------
|
||||
# Audio without X
|
||||
|
@ -116,7 +98,6 @@ ext midi?, terminal, has wildmidi = wildmidi -- "$@"
|
|||
#--------------------------------------------
|
||||
# Video/Audio with a GUI
|
||||
#-------------------------------------------
|
||||
mime ^video|audio, has gmplayer, X, flag f = gmplayer -- "$@"
|
||||
mime ^video|audio, has smplayer, X, flag f = smplayer "$@"
|
||||
mime ^video, has mpv, X, flag f = mpv -- "$@"
|
||||
mime ^video, has mpv, X, flag f = mpv --fs -- "$@"
|
||||
|
@ -125,8 +106,6 @@ mime ^video, has mplayer2, X, flag f = mplayer2 -fs -- "$@"
|
|||
mime ^video, has mplayer, X, flag f = mplayer -- "$@"
|
||||
mime ^video, has mplayer, X, flag f = mplayer -fs -- "$@"
|
||||
mime ^video|audio, has vlc, X, flag f = vlc -- "$@"
|
||||
mime ^video|audio, has totem, X, flag f = totem -- "$@"
|
||||
mime ^video|audio, has totem, X, flag f = totem --fullscreen -- "$@"
|
||||
mime ^text, ext aup, has audacity, X, flag f = audacity -- "$@"
|
||||
|
||||
#--------------------------------------------
|
||||
|
@ -139,20 +118,11 @@ mime ^video, terminal, !X, has mplayer = mplayer -- "$@"
|
|||
#-------------------------------------------
|
||||
# Documents
|
||||
#-------------------------------------------
|
||||
ext pdf, has llpp, X, flag f = llpp "$@"
|
||||
ext pdf, has zathura, X, flag f = zathura -- "$@"
|
||||
ext pdf, has mupdf, X, flag f = mupdf "$@"
|
||||
ext pdf, has mupdf-x11,X, flag f = mupdf-x11 "$@"
|
||||
ext pdf, has apvlv, X, flag f = apvlv -- "$@"
|
||||
ext pdf, has xpdf, X, flag f = xpdf -- "$@"
|
||||
ext pdf, has evince, X, flag f = evince -- "$@"
|
||||
ext pdf, has atril, X, flag f = atril -- "$@"
|
||||
ext pdf, has okular, X, flag f = okular -- "$@"
|
||||
ext pdf, has epdfview, X, flag f = epdfview -- "$@"
|
||||
ext pdf, has qpdfview, X, flag f = qpdfview "$@"
|
||||
ext pdf, has open, X, flat f = open "$@"
|
||||
ext epub, has zathura, X, flag f = zathura "$@"
|
||||
ext docx, has abiword, X, flag f = abiword "$@"
|
||||
|
||||
ext docx?, has catdoc, terminal = catdoc -- "$@" | "$PAGER"
|
||||
|
||||
|
@ -175,14 +145,8 @@ ext mobi, has ebook-viewer, X, flag f = ebook-viewer -- "$@"
|
|||
mime ^image/svg, has inkscape, X, flag f = inkscape -- "$@"
|
||||
mime ^image/svg, has display, X, flag f = display -- "$@"
|
||||
|
||||
mime ^image, has pqiv, X, flag f = pqiv -- "$@"
|
||||
mime ^image, has sxiv, X, flag f = sxiv-rifle -- "$@"
|
||||
mime ^image, has feh, X, flag f = feh -- "$@"
|
||||
mime ^image, has mirage, X, flag f = mirage -- "$@"
|
||||
mime ^image, has ristretto, X, flag f = ristretto "$@"
|
||||
mime ^image, has eog, X, flag f = eog -- "$@"
|
||||
mime ^image, has eom, X, flag f = eom -- "$@"
|
||||
mime ^image, has nomacs, X, flag f = nomacs -- "$@"
|
||||
mime ^image, has gimp, X, flag f = gimp -- "$@"
|
||||
ext xcf, X, flag f = gimp -- "$@"
|
||||
ext gif, has sxiv, X, flag f = sxiv-gif -- "$@"
|
||||
|
@ -193,6 +157,8 @@ ext blend, has blender, X, flag f = blender -- "$@"
|
|||
# Archives
|
||||
#-------------------------------------------
|
||||
|
||||
ext to|torrent, flag f, has transmission = transmission "$1"
|
||||
|
||||
# avoid password prompt by providing empty password
|
||||
ext 7z, has 7z = 7z -p l "$@" | "$PAGER"
|
||||
# This requires atool
|
||||
|
|
|
@ -60,7 +60,8 @@ handle_extension() {
|
|||
# PDF
|
||||
pdf)
|
||||
# Preview as text conversion
|
||||
pdftotext -l 10 -nopgbrk -q -- "${FILE_PATH}" - && exit 5
|
||||
pdftoppm -jpeg -singlefile "${FILE_PATH}" "${IMAGE_CACHE_PATH}" && exit 6
|
||||
pdftotext -l 10 -nopgbrk -q -- "${FILE_PATH}" - && exit 5
|
||||
exiftool "${FILE_PATH}" && exit 5
|
||||
exit 1;;
|
||||
|
||||
|
@ -89,9 +90,10 @@ handle_image() {
|
|||
local mimetype="${1}"
|
||||
case "${mimetype}" in
|
||||
# SVG
|
||||
# image/svg+xml)
|
||||
# convert "${FILE_PATH}" "${IMAGE_CACHE_PATH}" && exit 6
|
||||
# exit 1;;
|
||||
image/svg+xml)
|
||||
convert "${FILE_PATH}" "${IMAGE_CACHE_PATH}" && exit 6
|
||||
exit 1
|
||||
;;
|
||||
|
||||
# Image
|
||||
image/*)
|
||||
|
@ -148,16 +150,26 @@ handle_mime() {
|
|||
|
||||
# Image
|
||||
image/*)
|
||||
# Preview as text conversion
|
||||
# img2txt --gamma=0.6 --width="${PV_WIDTH}" -- "${FILE_PATH}" && exit 4
|
||||
local orientation
|
||||
orientation="$(identify -format '%[EXIF:Orientation]\n' -- "${FILE_PATH}")"
|
||||
if [[ -n "$orientation" && "$orientation" != 1 ]]; then
|
||||
convert -- "${FILE_PATH}" -auto-orient "${IMAGE_CACHE_PATH}" && exit 6
|
||||
fi
|
||||
exiftool "${FILE_PATH}" && exit 5
|
||||
exit 1;;
|
||||
exit 1
|
||||
;;
|
||||
|
||||
# Video and audio
|
||||
video/* | audio/*)
|
||||
video/*)
|
||||
ffmpegthumbnailer -i "${FILE_PATH}" -o "${IMAGE_CACHE_PATH}" -s 0 && exit 6
|
||||
mediainfo "${FILE_PATH}" && exit 5
|
||||
exiftool "${FILE_PATH}" && exit 5
|
||||
exit 1;;
|
||||
exit 1
|
||||
;;
|
||||
audio/*)
|
||||
mediainfo "${FILE_PATH}" && exit 5
|
||||
exiftool "${FILE_PATH}" && exit 5
|
||||
exit 1
|
||||
esac
|
||||
}
|
||||
|
||||
|
|
|
@ -20,16 +20,11 @@ super + {braceleft,braceright}
|
|||
alt + {_,shift} + Tab
|
||||
bspc node -f {next,prev}.local.normal
|
||||
|
||||
#super + {comma,period}
|
||||
#bspc node $(bspc query -N -n -n .!leaf || echo @/) -R {90,-B}
|
||||
#bspc node @/ -F {horizontal,vertical}
|
||||
|
||||
super + {comma,period}
|
||||
bspc node @/ -R {90,270}
|
||||
|
||||
super + {_,shift} + ntilde
|
||||
bspc node $(bspc query -N -n .hidden | tail -n1) {-g hidden,-g hidden=off -f}
|
||||
#whid {hide,dmenu}
|
||||
|
||||
super + {Up,Down,Left,Right}
|
||||
bspc node -f @{parent,brother,first,second}
|
||||
|
|
|
@ -33,7 +33,6 @@ filter_unmatched_urls = true
|
|||
#modify_other_keys = false
|
||||
|
||||
[colors]
|
||||
|
||||
# special
|
||||
foreground = #d3d7cf
|
||||
foreground_bold = #d3d7cf
|
||||
|
@ -42,34 +41,34 @@ background = #080808
|
|||
|
||||
# black
|
||||
color0 = #181818
|
||||
color8 = #4d4d4d
|
||||
color8 = #333333
|
||||
|
||||
# red
|
||||
color1 = #ff5555
|
||||
color1 = #cc4444
|
||||
color9 = #ff6e67
|
||||
|
||||
# green
|
||||
color2 = #50fa7b
|
||||
color10 = #5af78e
|
||||
color2 = #7b8748
|
||||
color10 = #30e378
|
||||
|
||||
# yellow
|
||||
color3 = #f1fa8c
|
||||
color11 = #f4f99d
|
||||
color3 = #f69f3e
|
||||
color11 = #f1fa8c
|
||||
|
||||
# blue
|
||||
color4 = #bd93f9
|
||||
color4 = #945dff
|
||||
color12 = #caa9fa
|
||||
|
||||
# magenta
|
||||
color5 = #ff79c6
|
||||
color13 = #ff92d0
|
||||
color5 = #cb5a80
|
||||
color13 = #ff79c6
|
||||
|
||||
# cyan
|
||||
color6 = #8be9fd
|
||||
color14 = #9aedfe
|
||||
color6 = #4fd4e6
|
||||
color14 = #8be9fd
|
||||
|
||||
# white
|
||||
color7 = #bfbfbf
|
||||
color7 = #9a9a9a
|
||||
color15 = #e6e6e6
|
||||
|
||||
[hints]
|
||||
|
|
|
@ -1,12 +0,0 @@
|
|||
WindowClass1 = #e53935
|
||||
WindowClass9 = #e57373
|
||||
WindowClass2 = #7cb342
|
||||
WindowClass10 = #aed581
|
||||
WindowClass3 = #ffb300
|
||||
WindowClass11 = #ffe082
|
||||
WindowClass4 = #039be5
|
||||
WindowClass12 = #29b6f6
|
||||
WindowClass5 = #f06292
|
||||
WindowClass13 = #f8bbd0
|
||||
WindowClass6 = #26c6da
|
||||
WindowClass14 = #80deea
|
|
@ -1,16 +0,0 @@
|
|||
[default]
|
||||
vim_mode = false
|
||||
box_width = 200
|
||||
box_height = 40
|
||||
colorize = true
|
||||
color_offset = 0
|
||||
show_icons = false
|
||||
show_desktop = true
|
||||
show_titles = true
|
||||
icon_size = 16
|
||||
font = Archivo Narrow 10
|
||||
screenshot = false
|
||||
screenshot_offset_x = 0
|
||||
screenshot_offset_y = 0
|
||||
at_pointer = false
|
||||
color_file = ~/.config/xwinmosaic/colors
|
|
@ -1,708 +0,0 @@
|
|||
# LS_COLORS
|
||||
# Maintainers: Magnus Woldrich <m@japh.se>,
|
||||
# Ryan Delaney <ryan.delaney@gmail.com> OpenGPG: 0D98863B4E1D07B6
|
||||
# URL: https://github.com/trapd00r/LS_COLORS
|
||||
# Version: 0.254
|
||||
# Updated: Tue Mar 29 21:25:30 AEST 2016
|
||||
#
|
||||
# This is a collection of extension:color mappings, suitable to use as your
|
||||
# LS_COLORS environment variable. Most of them use the extended color map,
|
||||
# described in the ECMA-48 document; in other words, you'll need a terminal
|
||||
# with capabilities of displaying 256 colors.
|
||||
#
|
||||
# As of this writing, around 300 different filetypes/extensions is supported.
|
||||
# That's indeed a lot of extensions, but there's a lot more! Therefore I need
|
||||
# your help.
|
||||
#
|
||||
# Fork this project on github, add the extensions you are missing, and send me
|
||||
# a pull request.
|
||||
#
|
||||
# For files that usually ends up next to each other, like html, css and js,
|
||||
# try to pick colors that fit nicely together. Filetypes with multiple
|
||||
# possible extensions, like htm and html, should have the same color.
|
||||
|
||||
# This program is distributed in the hope that it will be useful, but WITHOUT ANY
|
||||
# WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
|
||||
# PARTICULAR PURPOSE. See the Perl Artistic License for more details.
|
||||
#
|
||||
# This program is free software: you can redistribute it and/or modify it under
|
||||
# the terms of the Perl Artistic License as published by the Perl Foundation,
|
||||
# either version 1.0 of the License, or (at your option) any later version.
|
||||
#
|
||||
# You should have received a copy of the Perl Artistic License along
|
||||
# with this program. If not, see <http://www.perlfoundation.org/artistic_license_1_0>.
|
||||
|
||||
# core {{{1
|
||||
BLK 38;5;68
|
||||
CAPABILITY 38;5;17
|
||||
CHR 38;5;113;1
|
||||
DIR 38;5;26;1
|
||||
DOOR 38;5;127
|
||||
EXEC 38;5;148;1
|
||||
FIFO 38;5;126
|
||||
FILE 38;5;253
|
||||
LINK target
|
||||
MULTIHARDLINK 38;5;222;1
|
||||
# "NORMAL don't reset the bold attribute -
|
||||
# https://github.com/trapd00r/LS_COLORS/issues/11
|
||||
#NORMAL 38;5;254
|
||||
NORMAL 0
|
||||
ORPHAN 48;5;196;38;5;232;1
|
||||
OTHER_WRITABLE 38;5;220;1
|
||||
SETGID 48;5;3;38;5;0
|
||||
SETUID 38;5;220;1;3;100;1
|
||||
SOCK 38;5;197
|
||||
STICKY 38;5;86;48;5;234
|
||||
STICKY_OTHER_WRITABLE 48;5;235;38;5;139;3
|
||||
|
||||
*LS_COLORS 48;5;89;38;5;197;1;3;4;7 # :-)
|
||||
# }}}
|
||||
# documents {{{1
|
||||
*README 38;5;220;1
|
||||
*README.rst 38;5;220;1
|
||||
*LICENSE 38;5;220;1
|
||||
*COPYING 38;5;220;1
|
||||
*INSTALL 38;5;220;1
|
||||
*COPYRIGHT 38;5;220;1
|
||||
*AUTHORS 38;5;220;1
|
||||
*HISTORY 38;5;220;1
|
||||
*CONTRIBUTORS 38;5;220;1
|
||||
*PATENTS 38;5;220;1
|
||||
*VERSION 38;5;220;1
|
||||
*NOTICE 38;5;220;1
|
||||
*CHANGES 38;5;220;1
|
||||
.log 38;5;190
|
||||
# plain-text {{{2
|
||||
.txt 38;5;253
|
||||
# markup {{{2
|
||||
.etx 38;5;184
|
||||
.info 38;5;184
|
||||
.markdown 38;5;184
|
||||
.md 38;5;184
|
||||
.mkd 38;5;184
|
||||
.nfo 38;5;184
|
||||
.pod 38;5;184
|
||||
.tex 38;5;184
|
||||
.textile 38;5;184
|
||||
# key-value, non-relational data {{{2
|
||||
.json 38;5;178
|
||||
.msg 38;5;178
|
||||
.pgn 38;5;178
|
||||
.rss 38;5;178
|
||||
.yaml 38;5;178
|
||||
.xml 38;5;178
|
||||
.yml 38;5;178
|
||||
.RData 38;5;178
|
||||
.rdata 38;5;178
|
||||
# }}}
|
||||
# binary {{{2
|
||||
.cbr 38;5;141
|
||||
.cbz 38;5;141
|
||||
.chm 38;5;141
|
||||
.djvu 38;5;141
|
||||
.pdf 38;5;141
|
||||
.PDF 38;5;141
|
||||
# words {{{3
|
||||
.docm 38;5;111;4
|
||||
.doc 38;5;111
|
||||
.docx 38;5;111
|
||||
.eps 38;5;111
|
||||
.ps 38;5;111
|
||||
.odb 38;5;111
|
||||
.odt 38;5;111
|
||||
.rtf 38;5;111
|
||||
# presentation {{{3
|
||||
.odp 38;5;166
|
||||
.pps 38;5;166
|
||||
.ppt 38;5;166
|
||||
.pptx 38;5;166
|
||||
# Powerpoint show
|
||||
.ppts 38;5;166
|
||||
# Powerpoint with enabled macros
|
||||
.pptxm 38;5;166;4
|
||||
# Powerpoint show with enabled macros
|
||||
.pptsm 38;5;166;4
|
||||
# spreadsheet {{{3
|
||||
.csv 38;5;78
|
||||
# Open document spreadsheet
|
||||
.ods 38;5;112
|
||||
.xla 38;5;76
|
||||
# Excel spreadsheet
|
||||
.xls 38;5;112
|
||||
.xlsx 38;5;112
|
||||
# Excel spreadsheet with macros
|
||||
.xlsxm 38;5;112;4
|
||||
# Excel module
|
||||
.xltm 38;5;73;4
|
||||
.xltx 38;5;73
|
||||
# }}}
|
||||
# }}}
|
||||
# configs {{{2
|
||||
*cfg 1
|
||||
*conf 1
|
||||
*rc 1
|
||||
.ini 1
|
||||
.plist 1
|
||||
# vim
|
||||
.viminfo 1
|
||||
# cisco VPN client configuration
|
||||
.pcf 1
|
||||
# adobe photoshop proof settings file
|
||||
.psf 1
|
||||
# }}}
|
||||
# }}}
|
||||
# code {{{1
|
||||
# version control {{{2
|
||||
.git 38;5;197
|
||||
.gitignore 38;5;240
|
||||
.gitattributes 38;5;240
|
||||
.gitmodules 38;5;240
|
||||
|
||||
# shell {{{2
|
||||
.awk 38;5;172
|
||||
.bash 38;5;172
|
||||
.bat 38;5;172
|
||||
.BAT 38;5;172
|
||||
.sed 38;5;172
|
||||
.sh 38;5;172
|
||||
.zsh 38;5;172
|
||||
.vim 38;5;172
|
||||
|
||||
# interpreted {{{2
|
||||
.ahk 38;5;41
|
||||
# python
|
||||
.py 38;5;41
|
||||
# perl
|
||||
.pl 38;5;208
|
||||
.PL 38;5;160
|
||||
.t 38;5;114
|
||||
# sql
|
||||
.msql 38;5;222
|
||||
.mysql 38;5;222
|
||||
.pgsql 38;5;222
|
||||
.sql 38;5;222
|
||||
# Tool Command Language
|
||||
.tcl 38;5;64;1
|
||||
# R language
|
||||
.r 38;5;49
|
||||
.R 38;5;49
|
||||
# GrADS script
|
||||
.gs 38;5;81
|
||||
|
||||
# compiled {{{2
|
||||
#
|
||||
# assembly language
|
||||
.asm 38;5;81
|
||||
# LISP
|
||||
.cl 38;5;81
|
||||
.lisp 38;5;81
|
||||
# lua
|
||||
.lua 38;5;81
|
||||
# Moonscript
|
||||
.moon 38;5;81
|
||||
# C
|
||||
.c 38;5;81
|
||||
.C 38;5;81
|
||||
.h 38;5;110
|
||||
.H 38;5;110
|
||||
.tcc 38;5;110
|
||||
# C++
|
||||
.c++ 38;5;81
|
||||
.h++ 38;5;110
|
||||
.hpp 38;5;110
|
||||
.hxx 38;5;110
|
||||
.ii 38;5;110
|
||||
# method file for Objective C
|
||||
.M 38;5;110
|
||||
.m 38;5;110
|
||||
# Csharp
|
||||
.cc 38;5;81
|
||||
.cs 38;5;81
|
||||
.cp 38;5;81
|
||||
.cpp 38;5;81
|
||||
.cxx 38;5;81
|
||||
# Crystal
|
||||
.cr 38;5;81
|
||||
# Google golang
|
||||
.go 38;5;81
|
||||
# fortran
|
||||
.f 38;5;81
|
||||
.for 38;5;81
|
||||
.ftn 38;5;81
|
||||
# pascal
|
||||
.s 38;5;110
|
||||
.S 38;5;110
|
||||
# Rust
|
||||
.rs 38;5;81
|
||||
# Swift
|
||||
.swift 38;5;219
|
||||
# ?
|
||||
.sx 38;5;81
|
||||
# interface file in GHC - https://github.com/trapd00r/LS_COLORS/pull/9
|
||||
.hi 38;5;110
|
||||
# haskell
|
||||
.hs 38;5;81
|
||||
.lhs 38;5;81
|
||||
|
||||
# binaries {{{2
|
||||
# compiled apps for interpreted languages
|
||||
.pyc 38;5;240
|
||||
# }}}
|
||||
# html {{{2
|
||||
.css 38;5;125;1
|
||||
.less 38;5;125;1
|
||||
.sass 38;5;125;1
|
||||
.scss 38;5;125;1
|
||||
.htm 38;5;125;1
|
||||
.html 38;5;125;1
|
||||
.jhtm 38;5;125;1
|
||||
.mht 38;5;125;1
|
||||
.eml 38;5;125;1
|
||||
.mustache 38;5;125;1
|
||||
# }}}
|
||||
# java {{{2
|
||||
.coffee 38;5;074;1
|
||||
.java 38;5;074;1
|
||||
.js 38;5;074;1
|
||||
.jsm 38;5;074;1
|
||||
.jsm 38;5;074;1
|
||||
.jsp 38;5;074;1
|
||||
# }}}
|
||||
# php {{{2
|
||||
.php 38;5;81
|
||||
# CakePHP view scripts and helpers
|
||||
.ctp 38;5;81
|
||||
# Twig template engine
|
||||
.twig 38;5;81
|
||||
# }}}
|
||||
# vb/a {{{2
|
||||
.vb 38;5;81
|
||||
.vba 38;5;81
|
||||
.vbs 38;5;81
|
||||
# 2}}}
|
||||
# Build stuff {{{2
|
||||
*Dockerfile 38;5;155
|
||||
.dockerignore 38;5;240
|
||||
*Makefile 38;5;155
|
||||
*MANIFEST 38;5;243
|
||||
*pm_to_blib 38;5;240
|
||||
# automake
|
||||
.am 38;5;242
|
||||
.in 38;5;242
|
||||
.hin 38;5;242
|
||||
.scan 38;5;242
|
||||
.m4 38;5;242
|
||||
.old 38;5;242
|
||||
.out 38;5;242
|
||||
.SKIP 38;5;244
|
||||
# }}}
|
||||
# patch files {{{2
|
||||
.diff 48;5;197;38;5;232
|
||||
.patch 48;5;197;38;5;232;1
|
||||
#}}}
|
||||
# graphics {{{1
|
||||
.bmp 38;5;97
|
||||
.tiff 38;5;97
|
||||
.tif 38;5;97
|
||||
.TIFF 38;5;97
|
||||
.cdr 38;5;97
|
||||
.gif 38;5;97
|
||||
.ico 38;5;97
|
||||
.jpeg 38;5;97
|
||||
.JPG 38;5;97
|
||||
.jpg 38;5;97
|
||||
.nth 38;5;97
|
||||
.png 38;5;97
|
||||
.psd 38;5;97
|
||||
.xpm 38;5;97
|
||||
# }}}
|
||||
# vector {{{1
|
||||
.ai 38;5;99
|
||||
.eps 38;5;99
|
||||
.epsf 38;5;99
|
||||
.drw 38;5;99
|
||||
.ps 38;5;99
|
||||
.svg 38;5;99
|
||||
# }}}
|
||||
# video {{{1
|
||||
.avi 38;5;114
|
||||
.divx 38;5;114
|
||||
.IFO 38;5;114
|
||||
.m2v 38;5;114
|
||||
.m4v 38;5;114
|
||||
.mkv 38;5;114
|
||||
.MOV 38;5;114
|
||||
.mov 38;5;114
|
||||
.mp4 38;5;114
|
||||
.mpeg 38;5;114
|
||||
.mpg 38;5;114
|
||||
.ogm 38;5;114
|
||||
.rmvb 38;5;114
|
||||
.sample 38;5;114
|
||||
.wmv 38;5;114
|
||||
# mobile/streaming {{{2
|
||||
.3g2 38;5;115
|
||||
.3gp 38;5;115
|
||||
.gp3 38;5;115
|
||||
.webm 38;5;115
|
||||
.gp4 38;5;115
|
||||
.asf 38;5;115
|
||||
.flv 38;5;115
|
||||
.ts 38;5;115
|
||||
.ogv 38;5;115
|
||||
.f4v 38;5;115
|
||||
# }}}
|
||||
# lossless {{{2
|
||||
.VOB 38;5;115;1
|
||||
.vob 38;5;115;1
|
||||
# }}}
|
||||
# audio {{{1
|
||||
.3ga 38;5;137;1
|
||||
.S3M 38;5;137;1
|
||||
.aac 38;5;137;1
|
||||
.au 38;5;137;1
|
||||
.dat 38;5;137;1
|
||||
.dts 38;5;137;1
|
||||
.fcm 38;5;137;1
|
||||
.m4a 38;5;137;1
|
||||
.mid 38;5;137;1
|
||||
.midi 38;5;137;1
|
||||
.mod 38;5;137;1
|
||||
.mp3 38;5;137;1
|
||||
.mp4a 38;5;137;1
|
||||
.oga 38;5;137;1
|
||||
.ogg 38;5;137;1
|
||||
.opus 38;5;137;1
|
||||
.s3m 38;5;137;1
|
||||
.sid 38;5;137;1
|
||||
.wma 38;5;137;1
|
||||
# lossless
|
||||
.ape 38;5;136;1
|
||||
.aiff 38;5;136;1
|
||||
.cda 38;5;136;1
|
||||
.flac 38;5;136;1
|
||||
.alac 38;5;136;1
|
||||
.midi 38;5;136;1
|
||||
.pcm 38;5;136;1
|
||||
.wav 38;5;136;1
|
||||
.wv 38;5;136;1
|
||||
.wvc 38;5;136;1
|
||||
|
||||
# }}}
|
||||
# fonts {{{1
|
||||
.afm 38;5;66
|
||||
.fon 38;5;66
|
||||
.fnt 38;5;66
|
||||
.pfb 38;5;66
|
||||
.pfm 38;5;66
|
||||
.ttf 38;5;66
|
||||
.otf 38;5;66
|
||||
# postscript fonts
|
||||
.PFA 38;5;66
|
||||
.pfa 38;5;66
|
||||
# }}}
|
||||
# archives {{{1
|
||||
.7z 38;5;40
|
||||
.a 38;5;40
|
||||
.arj 38;5;40
|
||||
.bz2 38;5;40
|
||||
.cpio 38;5;40
|
||||
.gz 38;5;40
|
||||
.lrz 38;5;40
|
||||
.lz 38;5;40
|
||||
.lzma 38;5;40
|
||||
.lzo 38;5;40
|
||||
.rar 38;5;40
|
||||
.s7z 38;5;40
|
||||
.sz 38;5;40
|
||||
.tar 38;5;40
|
||||
.tgz 38;5;40
|
||||
.xz 38;5;40
|
||||
.z 38;5;40
|
||||
.Z 38;5;40
|
||||
.zip 38;5;40
|
||||
.zipx 38;5;40
|
||||
.zoo 38;5;40
|
||||
.lrz 38;5;40
|
||||
.zpaq 38;5;40
|
||||
.zz 38;5;40
|
||||
# packaged apps {{{2
|
||||
.apk 38;5;215
|
||||
.deb 38;5;215
|
||||
.rpm 38;5;215
|
||||
.jad 38;5;215
|
||||
.jar 38;5;215
|
||||
.cab 38;5;215
|
||||
.pak 38;5;215
|
||||
.pk3 38;5;215
|
||||
.vdf 38;5;215
|
||||
.vpk 38;5;215
|
||||
.bsp 38;5;215
|
||||
.dmg 38;5;215
|
||||
# }}}
|
||||
# segments from 0 to three digits after first extension letter {{{2
|
||||
.r[0-9]{0,2} 38;5;239
|
||||
.zx[0-9]{0,2} 38;5;239
|
||||
.z[0-9]{0,2} 38;5;239
|
||||
# partial files
|
||||
.part 38;5;239
|
||||
# }}}
|
||||
# partition images {{{2
|
||||
.dmg 38;5;124
|
||||
.iso 38;5;124
|
||||
.bin 38;5;124
|
||||
.nrg 38;5;124
|
||||
.qcow 38;5;124
|
||||
.sparseimage 38;5;124
|
||||
.toast 38;5;124
|
||||
.vcd 38;5;124
|
||||
.vmdk 38;5;124
|
||||
# }}}
|
||||
# databases {{{2
|
||||
.accdb 38;5;60
|
||||
.accde 38;5;60
|
||||
.accdr 38;5;60
|
||||
.accdt 38;5;60
|
||||
.db 38;5;60
|
||||
.fmp12 38;5;60
|
||||
.fp7 38;5;60
|
||||
.localstorage 38;5;60
|
||||
.mdb 38;5;60
|
||||
.mde 38;5;60
|
||||
.sqlite 38;5;60
|
||||
.typelib 38;5;60
|
||||
# NetCDF database
|
||||
.nc 38;5;60
|
||||
# }}}
|
||||
# tempfiles {{{1
|
||||
# undo files
|
||||
.pacnew 38;5;33
|
||||
.un~ 38;5;241
|
||||
.orig 38;5;241
|
||||
# backups
|
||||
.BUP 38;5;241
|
||||
.bak 38;5;241
|
||||
.o 38;5;241 # *nix Object file (shared libraries, core dumps etc)
|
||||
.rlib 38;5;241 # Static rust library
|
||||
# temporary files
|
||||
.swp 38;5;244
|
||||
.swo 38;5;244
|
||||
.tmp 38;5;244
|
||||
.sassc 38;5;244
|
||||
# state files
|
||||
.pid 38;5;248
|
||||
.state 38;5;248
|
||||
*lockfile 38;5;248
|
||||
# error logs
|
||||
.err 38;5;160;1
|
||||
.error 38;5;160;1
|
||||
.stderr 38;5;160;1
|
||||
# state dumps
|
||||
.dump 38;5;241
|
||||
.stackdump 38;5;241
|
||||
.zcompdump 38;5;241
|
||||
.zwc 38;5;241
|
||||
# tcpdump, network traffic capture
|
||||
.pcap 38;5;29
|
||||
.cap 38;5;29
|
||||
.dmp 38;5;29
|
||||
# macOS
|
||||
.DS_Store 38;5;239
|
||||
.localized 38;5;239
|
||||
.CFUserTextEncoding 38;5;239
|
||||
# }}}
|
||||
# hosts {{{1
|
||||
# /etc/hosts.{deny,allow}
|
||||
.allow 38;5;112
|
||||
.deny 38;5;196
|
||||
# }}}
|
||||
# systemd {{{1
|
||||
# http://www.freedesktop.org/software/systemd/man/systemd.unit.html
|
||||
.service 38;5;45
|
||||
*@.service 38;5;45
|
||||
.socket 38;5;45
|
||||
.swap 38;5;45
|
||||
.device 38;5;45
|
||||
.mount 38;5;45
|
||||
.automount 38;5;45
|
||||
.target 38;5;45
|
||||
.path 38;5;45
|
||||
.timer 38;5;45
|
||||
.snapshot 38;5;45
|
||||
# }}}
|
||||
# metadata {{{1
|
||||
.application 38;5;116
|
||||
.cue 38;5;116
|
||||
.description 38;5;116
|
||||
.directory 38;5;116
|
||||
.m3u 38;5;116
|
||||
.m3u8 38;5;116
|
||||
.md5 38;5;116
|
||||
.properties 38;5;116
|
||||
.sfv 38;5;116
|
||||
.srt 38;5;116
|
||||
.theme 38;5;116
|
||||
.torrent 38;5;116
|
||||
.urlview 38;5;116
|
||||
# }}}
|
||||
# encrypted data {{{1
|
||||
.asc 38;5;192;3
|
||||
.bfe 38;5;192;3
|
||||
.enc 38;5;192;3
|
||||
.gpg 38;5;192;3
|
||||
.signature 38;5;192;3
|
||||
.sig 38;5;192;3
|
||||
.p12 38;5;192;3
|
||||
.pem 38;5;192;3
|
||||
.pgp 38;5;192;3
|
||||
.asc 38;5;192;3
|
||||
.enc 38;5;192;3
|
||||
.sig 38;5;192;3
|
||||
# 1}}}
|
||||
# emulators {{{1
|
||||
.32x 38;5;213
|
||||
.cdi 38;5;213
|
||||
.fm2 38;5;213
|
||||
.rom 38;5;213
|
||||
.sav 38;5;213
|
||||
.st 38;5;213
|
||||
# atari
|
||||
.a00 38;5;213
|
||||
.a52 38;5;213
|
||||
.A64 38;5;213
|
||||
.a64 38;5;213
|
||||
.a78 38;5;213
|
||||
.adf 38;5;213
|
||||
.atr 38;5;213
|
||||
# nintendo
|
||||
.gb 38;5;213
|
||||
.gba 38;5;213
|
||||
.gbc 38;5;213
|
||||
.gel 38;5;213
|
||||
.gg 38;5;213
|
||||
.ggl 38;5;213
|
||||
.ipk 38;5;213 # Nintendo (DS Packed Images)
|
||||
.j64 38;5;213
|
||||
.nds 38;5;213
|
||||
.nes 38;5;213
|
||||
# Sega
|
||||
.sms 38;5;213
|
||||
# }}}
|
||||
# unsorted {{{1
|
||||
#
|
||||
# Portable Object Translation for GNU Gettext
|
||||
.pot 38;5;7
|
||||
# CAD files for printed circuit boards
|
||||
.pcb 38;5;7
|
||||
# groff (rendering app for texinfo)
|
||||
.mm 38;5;7
|
||||
# perldoc
|
||||
.pod 38;5;7
|
||||
# GIMP brush
|
||||
.gbr 38;5;7
|
||||
# printer spool file
|
||||
.spl 38;5;7
|
||||
# GIMP project file
|
||||
.scm 38;5;7
|
||||
# RStudio project file
|
||||
.Rproj 38;5;11
|
||||
# Nokia Symbian OS files
|
||||
.sis 38;5;7
|
||||
|
||||
.1p 38;5;7
|
||||
.3p 38;5;7
|
||||
.cnc 38;5;7
|
||||
.def 38;5;7
|
||||
.ex 38;5;7
|
||||
.example 38;5;7
|
||||
.feature 38;5;7
|
||||
.ger 38;5;7
|
||||
.map 38;5;7
|
||||
.mf 38;5;7
|
||||
.mfasl 38;5;7
|
||||
.mi 38;5;7
|
||||
.mtx 38;5;7
|
||||
.pc 38;5;7
|
||||
.pi 38;5;7
|
||||
.plt 38;5;7
|
||||
.pm 38;5;7
|
||||
.rb 38;5;7
|
||||
.rdf 38;5;7
|
||||
.rst 38;5;7
|
||||
.ru 38;5;7
|
||||
.sch 38;5;7
|
||||
.sty 38;5;7
|
||||
.sug 38;5;7
|
||||
.t 38;5;7
|
||||
.tdy 38;5;7
|
||||
.tfm 38;5;7
|
||||
.tfnt 38;5;7
|
||||
.tg 38;5;7
|
||||
.vcard 38;5;7
|
||||
.vcf 38;5;7
|
||||
.xln 38;5;7
|
||||
# AppCode files
|
||||
.iml 38;5;166
|
||||
# Xcode files
|
||||
.xcconfig 1
|
||||
.entitlements 1
|
||||
.strings 1
|
||||
.storyboard 38;5;196
|
||||
.xcsettings 1
|
||||
.xib 38;5;208
|
||||
# }}}
|
||||
# termcap {{{1
|
||||
TERM ansi
|
||||
TERM color-xterm
|
||||
TERM con132x25
|
||||
TERM con132x30
|
||||
TERM con132x43
|
||||
TERM con132x60
|
||||
TERM con80x25
|
||||
TERM con80x28
|
||||
TERM con80x30
|
||||
TERM con80x43
|
||||
TERM con80x50
|
||||
TERM con80x60
|
||||
TERM cons25
|
||||
TERM console
|
||||
TERM cygwin
|
||||
TERM dtterm
|
||||
TERM Eterm
|
||||
TERM eterm-color
|
||||
TERM gnome
|
||||
TERM gnome-256color
|
||||
TERM jfbterm
|
||||
TERM konsole
|
||||
TERM kterm
|
||||
TERM linux
|
||||
TERM linux-c
|
||||
TERM mach-color
|
||||
TERM mlterm
|
||||
TERM putty
|
||||
TERM rxvt
|
||||
TERM rxvt-256color
|
||||
TERM rxvt-cygwin
|
||||
TERM rxvt-cygwin-native
|
||||
TERM rxvt-unicode
|
||||
TERM rxvt-unicode-256color
|
||||
TERM rxvt-unicode256
|
||||
TERM screen
|
||||
TERM screen-256color
|
||||
TERM screen-256color-bce
|
||||
TERM screen-bce
|
||||
TERM screen-w
|
||||
TERM screen.linux
|
||||
TERM screen.rxvt
|
||||
TERM terminator
|
||||
TERM vt100
|
||||
TERM xterm
|
||||
TERM xterm-16color
|
||||
TERM xterm-256color
|
||||
TERM xterm-88color
|
||||
TERM xterm-color
|
||||
TERM xterm-debian
|
||||
# }}}
|
||||
|
||||
|
||||
# vim: ft=dircolors:fdm=marker:et:sw=2:
|
|
@ -0,0 +1,78 @@
|
|||
# Programs
|
||||
alias vdi='vimdiff'
|
||||
alias gdl='gallery-dl'
|
||||
alias mutt='neomutt'
|
||||
alias rg='ranger'
|
||||
alias pmix='ncpamixer'
|
||||
alias amix='alsamixer'
|
||||
alias vi='nvim'
|
||||
alias vim='nvim'
|
||||
alias chat='irssi'
|
||||
alias play='ncmpcpp'
|
||||
alias tsrc='transmission-remote-cli'
|
||||
alias cal='calcurse'
|
||||
alias py='python '
|
||||
alias py2='python2 '
|
||||
alias ytv='youtube-viewer'
|
||||
alias git='lab'
|
||||
alias help='run-help'
|
||||
alias p='pacui'
|
||||
alias sr='sr -browser=$CLIBROWSER' # open in cli browser
|
||||
alias surfraw='surfraw -browser=$BROWSER' # open in gui browser
|
||||
alias foxy='FoxDot & disown'
|
||||
|
||||
# MAXIMUM VERBOSITY YIELDS MAXIMUM RESULTS
|
||||
alias chmod='chmod -v'
|
||||
alias chown='chown -v'
|
||||
alias mv='mv -iv'
|
||||
alias rmdir='rmdir -v' # rm empty directory only
|
||||
alias rm='rm -iv' # Always confirm before deleting things
|
||||
alias mkdir='mkdir -pv' # Make parent directories that don't exist
|
||||
alias cp="cp -aiv" # Confirm before overwriting something
|
||||
alias ln='ln -iv'
|
||||
alias rename='rename -v'
|
||||
alias mount='mount -v | column -t'
|
||||
alias umount='umount -v'
|
||||
|
||||
# Opinionated
|
||||
alias tx='tmux -2'
|
||||
alias ydl='youtube-dl -ic'
|
||||
alias ls='ls -F --color=always --group-directories-first'
|
||||
alias grep='grep --color=tty -d skip'
|
||||
alias sgrep='grep -R -n -H -C 5 --exclude-dir={.git,.svn,CVS} '
|
||||
alias dmesg='dmesg --color=always'
|
||||
alias ag="ag --one-device --color --color-line-number '0;35' --color-match '46;30' --color-path '4;36'"
|
||||
alias tree='tree -CAFa -I "CVS|*.*.package|.svn|.git|.hg|node_modules|bower_components" --dirsfirst'
|
||||
alias lsblk='lsblk -o "KNAME,HOTPLUG,SIZE,FSTYPE,TYPE,LABEL,MOUNTPOINT,UUID,MODEL,SERIAL"'
|
||||
alias dir='dir --color=always'
|
||||
alias type='type -a' # See what the command you want to run points to
|
||||
alias df='df -hT --total' # Human readable, print filetype, and total
|
||||
alias free='free -ht' # Human readable and total
|
||||
alias du='du -d1 -h | sort -rh' # Human readable, max depth
|
||||
alias info='info --vi-keys' # GNU info act like man command
|
||||
alias inxi='inxi -Fz'
|
||||
alias slop='slop --highlight --tolerance=0 --color=0.3,0.4,0.6,0.4 -f '%wx%h+%x+%y''
|
||||
alias ping='ping -c 5 '
|
||||
alias dd="dd status=progress"
|
||||
|
||||
# Commands
|
||||
alias svi="sudo nvim"
|
||||
alias pacmir='sudo pacman-mirrors -f5'
|
||||
alias tis='tig status'
|
||||
alias til='tig log'
|
||||
alias tib='tig blame -C'
|
||||
alias fuck='sudo pacman -Rns'
|
||||
alias upd='trizen -Syu'
|
||||
alias ytw='youtube-viewer -C -D -W -f -7 --results=10'
|
||||
alias hoy='calcurse -a --format-apt=" - %m (%S a %E)\n" --format-recur-apt=" - %m (%S a %E)\n"'
|
||||
alias week='calcurse -r7 --format-apt=" - %m (%S a %E)\n" --format-recur-apt=" - %m (%S a %E)\n"'
|
||||
alias todo='calcurse -t --format-todo "(%p) %m\n"'
|
||||
alias winclass='xprop | grep WM_CLASS' # for bspwm rules
|
||||
alias path='echo -e ${PATH//:/\\n}' # Pretty-print of some PATH variables
|
||||
alias compare='grep -nFxvf' # Usage: compare <file1> <file2>
|
||||
alias pwn='chmod +x'
|
||||
alias ta='tmux attach -t'
|
||||
alias tnw='tmux new -s'
|
||||
alias tls='tmux ls'
|
||||
alias tk='tmux kill-session -t'
|
||||
alias lst='ls -FAghoBtH --group-directories-first --dereference-command-line-symlink-to-dir --time-style=+"%d-%m-%Y %H:%M"'
|
|
@ -2,17 +2,12 @@
|
|||
# Instructions here https://news.ycombinator.com/item?id=11070797
|
||||
# https://developer.atlassian.com/blog/2016/02/best-way-to-store-dotfiles-git-bare-repo/
|
||||
|
||||
alias tis='tig status'
|
||||
alias til='tig log'
|
||||
alias tib='tig blame -C'
|
||||
alias git='hub'
|
||||
|
||||
alias hexa='/usr/bin/git --git-dir=$HOME/hexagons/ --work-tree=$HOME'
|
||||
hx-add() { hexa add -v "$@" ;}
|
||||
hx-rm() { hexa rm "$@" ;}
|
||||
hx-commit() { hexa commit -m "$@" ;}
|
||||
alias hx-add='hexa add -v'
|
||||
alias hx-up='hexa add -vu'
|
||||
alias hx-ls='hexa ls-files -m'
|
||||
alias hx-diff='hexa diff'
|
||||
alias hx-push='hexa push'
|
||||
alias hx-stat='hexa status'
|
||||
alias hx-rm='hexa rm --cached'
|
||||
alias hx-cmsg='hexa commit -m'
|
|
@ -0,0 +1,35 @@
|
|||
autoload -Uz zcalc
|
||||
autoload -Uz run-help
|
||||
autoload -Uz run-help-git
|
||||
|
||||
autoload -Uz surround
|
||||
zle -N delete-surround surround
|
||||
zle -N add-surround surround
|
||||
zle -N change-surround surround
|
||||
bindkey -a cs change-surround
|
||||
bindkey -a ds delete-surround
|
||||
bindkey -a ys add-surround
|
||||
bindkey -M visual S add-surround
|
||||
|
||||
autoload -U select-bracketed
|
||||
autoload -U select-quoted
|
||||
zle -N select-quoted
|
||||
zle -N select-bracketed
|
||||
for km in visual viopp; do
|
||||
bindkey -M $km -- '-' vi-up-line-or-history
|
||||
for c in {a,i}${(s..)^:-\'\"\`\|,./:;-=+@}; do
|
||||
bindkey -M $km $c select-quoted
|
||||
done
|
||||
for c in {a,i}${(s..)^:-'()[]{}<>bB'}; do
|
||||
bindkey -M $km $c select-bracketed
|
||||
done
|
||||
done
|
||||
|
||||
# Zcalc stuff
|
||||
function __calc_plugin {
|
||||
zcalc -e "$*"
|
||||
}
|
||||
aliases[calc]='noglob __calc_plugin'
|
||||
aliases[=]='noglob __calc_plugin'
|
||||
|
||||
unalias run-help
|
|
@ -0,0 +1,150 @@
|
|||
# -*- mode: shell-script -*-
|
||||
# vim:ft=zsh
|
||||
|
||||
# Completion Dots {{{
|
||||
# if you want red dots to be displayed while waiting for completion
|
||||
COMPLETION_WAITING_DOTS="true"
|
||||
|
||||
if [[ $COMPLETION_WAITING_DOTS = true ]]; then
|
||||
expand-or-complete-with-dots() {
|
||||
# toggle line-wrapping off and back on again
|
||||
[[ -n "$terminfo[rmam]" && -n "$terminfo[smam]" ]] && echoti rmam
|
||||
print -Pn "%{%F{red}......%f%}"
|
||||
[[ -n "$terminfo[rmam]" && -n "$terminfo[smam]" ]] && echoti smam
|
||||
|
||||
zle expand-or-complete
|
||||
zle redisplay
|
||||
}
|
||||
zle -N expand-or-complete-with-dots
|
||||
bindkey "^I" expand-or-complete-with-dots
|
||||
fi
|
||||
# }}}
|
||||
|
||||
# Disks {{{
|
||||
disks() {
|
||||
echo "╓───── m o u n t . p o i n t s"; echo "╙────────────────────────────────────── ─ ─ "; lsblk -a; echo ""; echo "╓───── d i s k . u s a g e"; echo "╙────────────────────────────────────── ─ ─ "; df -h;
|
||||
}
|
||||
# }}}
|
||||
|
||||
# Video {{{
|
||||
ytl() { youtube-viewer -n $@ ;}
|
||||
mp3() { youtube-dl -icw --no-cache-dir --no-call-home --restrict-filenames --extract-audio --audio-format mp3 --audio-quality 0 --prefer-ffmpeg -o "%(title)s.%(ext)s" $@ ;}
|
||||
2mp3() { youtube-dl -icw --no-cache-dir --no-call-home --restrict-filenames -x --audio-format mp3 --audio-quality 0 --prefer-ffmpeg -o "%(title)s.%(ext)s" -f 171 "$@" ;}
|
||||
# }}}
|
||||
|
||||
# Pacman {{{
|
||||
what() { trizen -Ss "$1" ;} # package info
|
||||
show() { trizen -Si "$1" ;} # package details
|
||||
files() { pacman -Ql "$1" ;} # list files owned by package
|
||||
explicit() { sudo pacman -D --asexplicit "$@" ;} # mark package as explicitly installed
|
||||
|
||||
orphans() {
|
||||
pacman -Qdt
|
||||
echo "Press ENTER to remove these orphaned packages or CTRL+C to cancel."
|
||||
read
|
||||
sudo pacman -Rsn $(pacman -Qqdt) --noconfirm
|
||||
}
|
||||
|
||||
paclist() {
|
||||
pacman -Qqettn > ~/paketes.txt
|
||||
pacman -Qqettm > ~/paurketos.txt
|
||||
}
|
||||
|
||||
pacfix() {
|
||||
sudo rm -f /var/lib/pacman/db.lck
|
||||
sudo pacman-mirrors -f5
|
||||
sudo pacman -Syyuu
|
||||
sudo pacman -Suu
|
||||
}
|
||||
# }}}
|
||||
|
||||
# Make and enter directory {{{
|
||||
mkcd () {
|
||||
case "$1" in
|
||||
*/..|*/../) cd -- "$1";; # that doesn't make any sense unless the directory already exists
|
||||
/*/../*) (cd "${1%/../*}/.." && mkdir -p "./${1##*/../}") && cd -- "$1";;
|
||||
/*) mkdir -p "$1" && cd "$1";;
|
||||
*/../*) (cd "./${1%/../*}/.." && mkdir -p "./${1##*/../}") && cd "./$1";;
|
||||
../*) (cd .. && mkdir -p "${1#.}") && cd "$1";;
|
||||
*) mkdir -p "./$1" && cd "./$1";;
|
||||
esac
|
||||
}
|
||||
# }}}
|
||||
|
||||
# Handle trash {{{
|
||||
trash-empty() { gio trash --empty }
|
||||
trash() { gio trash -f $@ }
|
||||
trash-ls() { gio list -h trash:// }
|
||||
# }}}
|
||||
|
||||
# Prevent ranger nesting {{{
|
||||
ranger() {
|
||||
if [ -z "$RANGER_LEVEL" ]; then
|
||||
/usr/bin/ranger "$@"
|
||||
else
|
||||
exit
|
||||
fi
|
||||
}
|
||||
# }}}
|
||||
|
||||
# Colored man pages using less as pager {{{
|
||||
man() {
|
||||
env \
|
||||
LESS_TERMCAP_mb=$(printf "\e[1;36m") \
|
||||
LESS_TERMCAP_md=$(printf "\e[1;34m") \
|
||||
LESS_TERMCAP_me=$(printf "\e[0m") \
|
||||
LESS_TERMCAP_se=$(printf "\e[0m") \
|
||||
LESS_TERMCAP_so=$(printf "\e[1;33m") \
|
||||
LESS_TERMCAP_ue=$(printf "\e[0m") \
|
||||
LESS_TERMCAP_us=$(printf "\e[1;32m") \
|
||||
man "$@"
|
||||
}
|
||||
# }}}
|
||||
|
||||
# This is a workaround for tmux {{{
|
||||
# When you clear the terminal with ctrl-l anything on-screen is not saved (this is compatible with xterm behavior).
|
||||
# In contrast, GNU screen will first push anything on-screen into the scrollback buffer before clearing the screen.
|
||||
function tmux-clear-screen() {
|
||||
for line in {1..$(( $LINES ))} ; do echo; done
|
||||
zle clear-screen
|
||||
}
|
||||
zle -N tmux-clear-screen
|
||||
bindkey "^L" tmux-clear-screen
|
||||
# }}}
|
||||
|
||||
# fkill - kill process using fzf {{{
|
||||
function fkill {
|
||||
local pid
|
||||
pid=$( pstree -T -p -a | fzf -e -m -i +s --reverse --margin=4%,1%,1%,2% --inline-info --header="TAB to (un)select. ENTER to kill selected process(es). ESC or CTRL+C to quit." --prompt='Enter string to filter list of processes > ' | awk -F ',' '{print $NF}' | awk '{print $1}' )
|
||||
|
||||
if [ "x$pid" != "x" ]
|
||||
then
|
||||
echo "$pid" | xargs kill -${1:-9}
|
||||
fi
|
||||
}
|
||||
# }}}
|
||||
|
||||
# Bunch of one liners {{{
|
||||
|
||||
# colorized cat
|
||||
function cot() {
|
||||
for file in "$@"
|
||||
do
|
||||
pygmentize -O style=monokai -f console256 -g "$file"
|
||||
done
|
||||
}
|
||||
|
||||
# colorized less
|
||||
function lass() {
|
||||
pygmentize -O style=monokai -f console256 -g $1 | less -r
|
||||
}
|
||||
|
||||
# Take a screenshot
|
||||
shot() { maim -d 5 -q -u ~/Pictures/scrot/$(date +%s).png && notify-send 'Screen captured' ;}
|
||||
|
||||
# Set wallpaper
|
||||
wpp() { hsetroot -fill ~/Pictures/wallpaper/$1 ;}
|
||||
|
||||
# }}}
|
||||
|
||||
# vim:foldmethod=marker:foldlevel=0
|
|
@ -0,0 +1 @@
|
|||
/usr/share/fzf/completion.zsh
|
|
@ -0,0 +1 @@
|
|||
/usr/share/fzf/key-bindings.zsh
|
|
@ -0,0 +1,26 @@
|
|||
export FZF_DEFAULT_OPTS='
|
||||
--extended
|
||||
--height 50%
|
||||
--reverse
|
||||
--ansi
|
||||
--color fg:-1,bg:-1,hl:33,fg+:254,bg+:235,hl+:33
|
||||
--color info:136,prompt:136,pointer:230,marker:230,spinner:166
|
||||
'
|
||||
|
||||
export FZF_COMPLETION_OPTS='+c -x'
|
||||
export FZF_DEFAULT_COMMAND='ag -l -g ""'
|
||||
|
||||
_fzf_compgen_path() {
|
||||
fd --hidden --follow --exclude ".git" . "$1"
|
||||
}
|
||||
|
||||
_fzf_compgen_dir() {
|
||||
fd --type d --hidden --follow --exclude ".git" . "$1"
|
||||
}
|
||||
|
||||
export FZF_CTRL_T_COMMAND="$FZF_DEFAULT_COMMAND"
|
||||
export FZF_CTRL_T_OPTS="--select-1 --exit-0 --preview '(highlight -O ansi -l {} 2> /dev/null || cat {} || tree -C {}) 2> /dev/null | head -200'"
|
||||
export FZF_CTRL_R_OPTS="--preview 'echo {}' --preview-window down:3:hidden:wrap --bind '?:toggle-preview'"
|
||||
export FZF_ALT_C_OPTS="--select-1 --exit-0 --preview 'tree -C {} | head -200'"
|
||||
|
||||
command -v tree > /dev/null && export FZF_ALT_C_OPTS="--preview 'tree -C {} | head -$LINES'"
|
|
@ -0,0 +1 @@
|
|||
/home/deadguy/.zplugin/plugins/tj---git-extras/etc/git-extras-completion.zsh
|
|
@ -0,0 +1,238 @@
|
|||
: 1531748215:0;rld bar
|
||||
: 1531748234:0;zpl times
|
||||
: 1531748278:0;zpl
|
||||
: 1531748283:0;ls
|
||||
: 1531748428:0;zplay cdlist
|
||||
: 1531748449:0;zpl cdlist
|
||||
: 1531748476:0;ls
|
||||
: 1531748486:0;zpl
|
||||
: 1531748495:0;zpl cdreplay
|
||||
: 1531748534:0;zpl ls
|
||||
: 1531756053:0;upd
|
||||
: 1531760078:0;vi .gtkrc-2.0
|
||||
: 1531760128:0;vi .config/gtk-3.0/settings.ini
|
||||
: 1531760166:0;hx-stat
|
||||
: 1531760256:0;hx-add .config/zsh
|
||||
: 1531760266:0;hx-stat
|
||||
: 1531760287:0;cfg .config/zsh/alias.zsh
|
||||
: 1531760301:0;vi .config/zsh/dotfiles.zsh
|
||||
: 1531760403:0;hx-add .config/zsh
|
||||
: 1531760418:0;hx-stat
|
||||
: 1531760453:0;git reset HEAD .config/zsh/histfile
|
||||
: 1531760466:0;git reset HEAD ~/.config/zsh/histfile
|
||||
: 1531760476:0;.config/zsh
|
||||
: 1531760486:0;git reset HEAD histfile
|
||||
: 1531785577:0;vi bin/screenit
|
||||
: 1531785602:0;screenit j
|
||||
: 1531785613:0;vi bin/screenit
|
||||
: 1531785644:0;screenit p
|
||||
: 1531785701:0;screenit j
|
||||
: 1531785791:0;vi bin/screenit
|
||||
: 1531785847:0;screenit p
|
||||
: 1531785972:0;vi bin/screenit
|
||||
: 1531786005:0;ffmpeg -f jack -i ffmpeg -y out.wav
|
||||
: 1531786014:0;p i
|
||||
: 1531786132:0;screenit j
|
||||
: 1531786511:0;play
|
||||
: 1531789443:0;polybye
|
||||
: 1531791865:0;rld bar
|
||||
: 1531791892:0;htop
|
||||
: 1531792704:0;p i
|
||||
: 1531797099:0;cfg zsh
|
||||
: 1531797440:0;vi .config/zsh/options.zsh
|
||||
: 1531798122:0;cfg zsh
|
||||
: 1531798755:0;Videos/Learning/fox
|
||||
: 1531798756:0;ls
|
||||
: 1531798772:0;ytl https://www.youtube.com/watch?v=bE_7weF3WCo&feature=youtu.be
|
||||
: 1531798807:0;Videos/Learning/fox
|
||||
: 1531798837:0;vi ~/.config/zsh/fun.zsh
|
||||
: 1531798859:0;vi ~/.config/zsh/alias.zsh
|
||||
: 1531798875:0;ydl https://www.youtube.com/watch?v=bE_7weF3WCo&feature=youtu.be
|
||||
: 1531801591:0;~
|
||||
: 1531801597:0;vi bin/livecode
|
||||
: 1531801611:0;vi bin/deadcode
|
||||
: 1531801633:0;vi Music/LiveCoding/foxy.scd
|
||||
: 1531801645:0;livecode
|
||||
: 1531801646:0;scsynth -u 57110
|
||||
: 1531801649:0;sclang -D ~/Music/LiveCoding/foxy.scd
|
||||
: 1531801654:0;foxy
|
||||
: 1531805295:0;deadcode
|
||||
: 1531805312:0;htop
|
||||
: 1531805330:0;vi bin/deadcode
|
||||
: 1531805341:0;deadcode
|
||||
: 1531805497:0;zpl times
|
||||
: 1531805628:0;cfg zsh
|
||||
: 1531806623:0;zpl times
|
||||
: 1531841539:0;zpl
|
||||
: 1531841602:0;zpl clist
|
||||
: 1531841659:0;zpl update --all
|
||||
: 1531841912:0;reboot
|
||||
: 1531842081:0;zpl times
|
||||
: 1531842150:0;livecode
|
||||
: 1531842151:0;scsynth -u 57110
|
||||
: 1531842154:0;sclang -D ~/Music/LiveCoding/foxy.scd
|
||||
: 1531842159:0;foxy
|
||||
: 1531842251:0;deadcode
|
||||
: 1531842272:0;cfg zsh
|
||||
: 1531842370:0;cfg tx
|
||||
: 1531842501:0;livecode
|
||||
: 1531842501:0;scsynth -u 57110
|
||||
: 1531842505:0;sclang -D ~/Music/LiveCoding/foxy.scd
|
||||
: 1531842510:0;foxy
|
||||
: 1531846201:0;deadcode
|
||||
: 1531846215:0;htop
|
||||
: 1531846224:0;vi bin/deadcode
|
||||
: 1531846245:0;htop
|
||||
: 1531846299:0;deadcode
|
||||
: 1531846330:0;tx
|
||||
: 1531846342:0;tk 0
|
||||
: 1531846345:0;rld bar
|
||||
: 1531860291:0;play
|
||||
: 1531860542:0;amix
|
||||
: 1531860562:0;play
|
||||
: 1531860591:0;amix
|
||||
: 1531860684:0;pmix
|
||||
: 1531861405:0;play
|
||||
: 1531864447:0;livecode
|
||||
: 1531864448:0;scsynth -u 57110
|
||||
: 1531864451:0;sclang -D ~/Music/LiveCoding/foxy.scd
|
||||
: 1531864456:0;foxy
|
||||
: 1531864712:0;bmenu
|
||||
: 1531866500:0;deadcode
|
||||
: 1531866541:0;htop
|
||||
: 1531866556:0;deadcode
|
||||
: 1531866592:0;htop
|
||||
: 1531866615:0;deadcode
|
||||
: 1531866629:0;tk "Livecode ~Ar"
|
||||
: 1531936530:0;zpl times
|
||||
: 1531937351:0;cfg vi
|
||||
: 1531942798:0;python -m FoxDot --pipe
|
||||
: 1531942919:0;upd
|
||||
: 1531943338:0;cfg zsh
|
||||
: 1531943352:0;cfg vi
|
||||
: 1531943370:0;tx
|
||||
: 1531943379:0;cfg zsh
|
||||
: 1531943388:0;tk 0
|
||||
: 1531952646:0;zpl times
|
||||
: 1531952657:0;bmenu
|
||||
: 1531964644:0;zpl times
|
||||
: 1531964676:0;cfg zsh
|
||||
: 1531966143:0;false
|
||||
: 1531966153:0;cfg zsh
|
||||
: 1531966183:0;false
|
||||
: 1531970644:0;htop
|
||||
: 1531971229:0;rld bar
|
||||
: 1531975092:0;zpl times
|
||||
: 1531975135:0;rld bar
|
||||
: 1531976032:0;zpl times
|
||||
: 1531976042:0;Documents/Pd/mi_pc-extended
|
||||
: 1531976052:0;gstat
|
||||
: 1531976056:0;g status
|
||||
: 1531976068:0;ga -vu
|
||||
: 1531976093:0;gcmsg "El patch de la muerte esta arreglado :)"
|
||||
: 1531976107:0;gp
|
||||
: 1531976230:0;~
|
||||
: 1531976248:0;.zplugin/plugins/eendroroy---alien-minimal
|
||||
: 1531976250:0;ls
|
||||
: 1531976265:0;cot README.md
|
||||
: 1531976802:0;ls
|
||||
: 1531976812:0;vi alien-minimal.zsh
|
||||
: 1531976877:0;modules
|
||||
: 1531976878:0;ls
|
||||
: 1531976890:0;vi git.zsh
|
||||
: 1531977044:0;vi init.zsh
|
||||
: 1531977067:0;vi prompt.zsh
|
||||
: 1531977093:0;up
|
||||
: 1531977098:0;libs
|
||||
: 1531977100:0;ls
|
||||
: 1531977109:0;promptlib
|
||||
: 1531977111:0;ls
|
||||
: 1531977121:0;vi activate
|
||||
: 1531977130:0;modules
|
||||
: 1531977132:0;ls
|
||||
: 1531977153:0;vi git.zsh
|
||||
: 1532009627:0;zpl times
|
||||
: 1532009638:0;Documents/
|
||||
: 1532009641:0;ls
|
||||
: 1532009653:0;Algorave\ Resources
|
||||
: 1532009654:0;ls
|
||||
: 1532009673:0;g clone jositux/livecodear
|
||||
: 1532013019:0;~/bin
|
||||
: 1532013032:0;g clone munshkr/vim-tidal
|
||||
: 1532013057:0;vim-tidal
|
||||
: 1532013059:0;ls
|
||||
: 1532013290:0;cfg bar
|
||||
: 1532013409:0;zpl times
|
||||
: 1532013415:0;rld bar
|
||||
: 1532013473:0;cfg bar
|
||||
: 1532013488:0;rld bar
|
||||
: 1532014073:0;udiskie
|
||||
: 1532014571:0;ls
|
||||
: 1532014578:0;cot README.md
|
||||
: 1532014587:0;lass README.md
|
||||
: 1532014675:0;up
|
||||
: 1532014689:0;g clone jpalardy/vim-slime
|
||||
: 1532014909:0;cfg vi
|
||||
: 1532016022:0;~/.co
|
||||
: 1532016029:0;~/.config/nvim/colors
|
||||
: 1532016033:0;vi turtles.vim
|
||||
: 1532020841:0;cfg vi
|
||||
: 1532022740:0;~/bin
|
||||
: 1532022804:0;play
|
||||
: 1532022841:0;cfg bar
|
||||
: 1532023697:0;rld bar
|
||||
: 1532023706:0;play
|
||||
: 1532023740:0;cfg bar
|
||||
: 1532023827:0;p i
|
||||
: 1532024218:0;cfg bar
|
||||
: 1532024247:0;rld bar
|
||||
: 1532024254:0;cfg bar
|
||||
: 1532024275:0;rld bar
|
||||
: 1532024281:0;play
|
||||
: 1532024395:0;cfg bar
|
||||
: 1532024435:0;rld bar
|
||||
: 1532024492:0;cfg vi
|
||||
: 1532024804:0;play
|
||||
: 1532025219:0;cfg bar
|
||||
: 1532025233:0;rld bar
|
||||
: 1532025242:0;cfg bar
|
||||
: 1532025251:0;rld bar
|
||||
: 1532025268:0;cfg bar
|
||||
: 1532025390:0;rld bar
|
||||
: 1532025414:0;play
|
||||
: 1532025690:0;rld bar
|
||||
: 1532025701:0;play
|
||||
: 1532025789:0;rld bar
|
||||
: 1532025859:0;upd
|
||||
: 1532026371:0;~/.config/nvim/colors
|
||||
: 1532026374:0;vi turtles.vim
|
||||
: 1532026529:0;tx
|
||||
: 1532026532:0;play
|
||||
: 1532026693:0;vi
|
||||
: 1532026993:0;cfg vi
|
||||
: 1532028669:0;vi cosito
|
||||
: 1532028728:0;cfg vi
|
||||
: 1532029804:0;vi cosito
|
||||
: 1532029854:0;cfg vi
|
||||
: 1532031123:0;vi foo
|
||||
: 1532044757:0;.config/mutt
|
||||
: 1532044762:0;g pull
|
||||
: 1532044777:0;g stash
|
||||
: 1532044801:0;vi etc/muttcol
|
||||
: 1532044840:0;gl
|
||||
: 1532045233:0;lass README.md
|
||||
: 1532045371:0;vi personal.muttrc
|
||||
: 1532046270:0;hx-stat
|
||||
: 1532046322:0;hx-rm etc/mailcap
|
||||
: 1532046324:0;hx-stat
|
||||
: 1532046335:0;hx-add mailcap
|
||||
: 1532108643:0;upd
|
||||
: 1532117326:0;cfg bar
|
||||
: 1532142918:0;livecode
|
||||
: 1532142920:0;scsynth -u 57110
|
||||
: 1532142923:0;sclang -D ~/Music/LiveCoding/foxy.scd
|
||||
: 1532142928:0;foxy
|
||||
: 1532147689:0;locate worksheet.py
|
||||
: 1532147902:0;deadcode
|
||||
: 1532148337:0;hx-stat
|
||||
: 1532148357:0;hx-up
|
|
@ -0,0 +1,60 @@
|
|||
bindkey -v
|
||||
|
||||
# Fix backspace not working after returning from cmd mode
|
||||
bindkey '^?' backward-delete-char
|
||||
bindkey '^h' backward-delete-char
|
||||
bindkey '^w' backward-kill-word
|
||||
|
||||
# Even more ways to search
|
||||
autoload -U up-line-or-beginning-search
|
||||
autoload -U down-line-or-beginning-search
|
||||
zle -N up-line-or-beginning-search
|
||||
zle -N down-line-or-beginning-search
|
||||
bindkey '^P' up-line-or-beginning-search
|
||||
bindkey '^N' down-line-or-beginning-search
|
||||
bindkey '^U' history-incremental-pattern-search-backward
|
||||
|
||||
# Ctrl+Y is a standard in some places, and since Ctrl+R is taken...
|
||||
bindkey -a u undo
|
||||
bindkey -a '^y' redo
|
||||
|
||||
# Beginning search with arrow keys
|
||||
if [[ "${terminfo[kcuu1]}" != "" ]]; then
|
||||
autoload -U history-substring-search-up
|
||||
zle -N history-substring-search-up
|
||||
bindkey "${terminfo[kcuu1]}" history-substring-search-up
|
||||
fi
|
||||
# start typing + [Down-Arrow] - fuzzy find history backward
|
||||
if [[ "${terminfo[kcud1]}" != "" ]]; then
|
||||
autoload -U history-substring-search-down
|
||||
zle -N history-substring-search-down
|
||||
bindkey "${terminfo[kcud1]}" history-substring-search-down
|
||||
fi
|
||||
bindkey '^[[A' history-substring-search-up
|
||||
bindkey '^[[B' history-substring-search-down
|
||||
|
||||
# file rename magick
|
||||
bindkey "^[m" copy-prev-shell-word
|
||||
|
||||
# Better searching in command mode
|
||||
bindkey -M vicmd '?' history-incremental-search-backward
|
||||
bindkey -M vicmd '/' history-incremental-search-forward
|
||||
bindkey -M vicmd 'k' history-substring-search-up
|
||||
bindkey -M vicmd 'j' history-substring-search-down
|
||||
|
||||
bindkey '^[[7~' beginning-of-line # Home key
|
||||
bindkey '^[[H' beginning-of-line # Home key
|
||||
if [[ "${terminfo[khome]}" != "" ]]; then
|
||||
bindkey "${terminfo[khome]}" beginning-of-line # [Home] - Go to beginning of line
|
||||
fi
|
||||
bindkey '^[[8~' end-of-line # End key
|
||||
bindkey '^[[F' end-of-line # End key
|
||||
if [[ "${terminfo[kend]}" != "" ]]; then
|
||||
bindkey "${terminfo[kend]}" end-of-line # [End] - Go to end of line
|
||||
fi
|
||||
bindkey '^[[2~' overwrite-mode # Insert key
|
||||
bindkey '^[[3~' delete-char # Delete key
|
||||
bindkey '^[[C' forward-char # Right key
|
||||
bindkey '^[[D' backward-char # Left key
|
||||
bindkey '^[[5~' history-beginning-search-backward # Page up key
|
||||
bindkey '^[[6~' history-beginning-search-forward # Page down key
|
|
@ -0,0 +1,121 @@
|
|||
alias g='git'
|
||||
alias ga='git add'
|
||||
alias gaa='git add --all'
|
||||
alias gapa='git add --patch'
|
||||
alias gau='git add --update'
|
||||
alias gap='git apply'
|
||||
alias gb='git branch'
|
||||
alias gba='git branch -a'
|
||||
alias gbd='git branch -d'
|
||||
alias gbda='git branch --no-color --merged | command grep -vE "^(\*|\s*(master|develop|dev)\s*$)" | command xargs -n 1 git branch -d'
|
||||
alias gbl='git blame -b -w'
|
||||
alias gbnm='git branch --no-merged'
|
||||
alias gbr='git branch --remote'
|
||||
alias gbs='git bisect'
|
||||
alias gbsb='git bisect bad'
|
||||
alias gbsg='git bisect good'
|
||||
alias gbsr='git bisect reset'
|
||||
alias gbss='git bisect start'
|
||||
alias gc='git commit -v'
|
||||
alias gc!='git commit -v --amend'
|
||||
alias gcn!='git commit -v --no-edit --amend'
|
||||
alias gca='git commit -v -a'
|
||||
alias gca!='git commit -v -a --amend'
|
||||
alias gcan!='git commit -v -a --no-edit --amend'
|
||||
alias gcans!='git commit -v -a -s --no-edit --amend'
|
||||
alias gcam='git commit -a -m'
|
||||
alias gcsm='git commit -s -m'
|
||||
alias gcb='git checkout -b'
|
||||
alias gcf='git config --list'
|
||||
alias gcl='git clone --recursive'
|
||||
alias gclean='git clean -fd'
|
||||
alias gpristine='git reset --hard && git clean -dfx'
|
||||
alias gcm='git checkout master'
|
||||
alias gcd='git checkout develop'
|
||||
alias gcmsg='git commit -m'
|
||||
alias gco='git checkout'
|
||||
alias gcp='git cherry-pick'
|
||||
alias gcpa='git cherry-pick --abort'
|
||||
alias gcpc='git cherry-pick --continue'
|
||||
alias gcs='git commit -S'
|
||||
alias gd='git diff'
|
||||
alias gdca='git diff --cached'
|
||||
alias gdcw='git diff --cached --word-diff'
|
||||
alias gdct='git describe --tags `git rev-list --tags --max-count=1`'
|
||||
alias gdt='git diff-tree --no-commit-id --name-only -r'
|
||||
alias gdw='git diff --word-diff'
|
||||
alias gf='git fetch'
|
||||
alias gfa='git fetch --all --prune'
|
||||
alias gfo='git fetch origin'
|
||||
alias gg='git gui citool'
|
||||
alias gga='git gui citool --amend'
|
||||
alias ggsup='git branch --set-upstream-to=origin/$(git_current_branch)'
|
||||
alias gpsup='git push --set-upstream origin $(git_current_branch)'
|
||||
alias ghh='git help'
|
||||
alias gignore='git update-index --assume-unchanged'
|
||||
alias gignored='git ls-files -v | grep "^[[:lower:]]"'
|
||||
alias gl='git pull'
|
||||
alias glg='git log --stat'
|
||||
alias glgp='git log --stat -p'
|
||||
alias glgg='git log --graph'
|
||||
alias glgga='git log --graph --decorate --all'
|
||||
alias glgm='git log --graph --max-count=10'
|
||||
alias glo='git log --oneline --decorate'
|
||||
alias glol="git log --graph --pretty='%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset'"
|
||||
alias glod="git log --graph --pretty='%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%ad) %C(bold blue)<%an>%Creset'"
|
||||
alias glods="git log --graph --pretty='%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%ad) %C(bold blue)<%an>%Creset' --date=short"
|
||||
alias glola="git log --graph --pretty='%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --all"
|
||||
alias glog='git log --oneline --decorate --graph'
|
||||
alias gloga='git log --oneline --decorate --graph --all'
|
||||
alias gm='git merge'
|
||||
alias gmom='git merge origin/master'
|
||||
alias gmt='git mergetool --no-prompt'
|
||||
alias gmtvim='git mergetool --no-prompt --tool=vimdiff'
|
||||
alias gmum='git merge upstream/master'
|
||||
alias gma='git merge --abort'
|
||||
alias gp='git push'
|
||||
alias gpd='git push --dry-run'
|
||||
alias gpu='git push upstream'
|
||||
alias gpv='git push -v'
|
||||
alias gr='git remote'
|
||||
alias gra='git remote add'
|
||||
alias grb='git rebase'
|
||||
alias grba='git rebase --abort'
|
||||
alias grbc='git rebase --continue'
|
||||
alias grbd='git rebase develop'
|
||||
alias grbi='git rebase -i'
|
||||
alias grbm='git rebase master'
|
||||
alias grbs='git rebase --skip'
|
||||
alias grh='git reset'
|
||||
alias grhh='git reset --hard'
|
||||
alias grmv='git remote rename'
|
||||
alias grrm='git remote remove'
|
||||
alias grset='git remote set-url'
|
||||
alias grt='cd $(git rev-parse --show-toplevel || echo ".")'
|
||||
alias gru='git reset --'
|
||||
alias grup='git remote update'
|
||||
alias grv='git remote -v'
|
||||
alias gsb='git status -sb'
|
||||
alias gsd='git svn dcommit'
|
||||
alias gsi='git submodule init'
|
||||
alias gsps='git show --pretty=short --show-signature'
|
||||
alias gsr='git svn rebase'
|
||||
alias gss='git status -s'
|
||||
alias gst='git status'
|
||||
alias gsta='git stash save'
|
||||
alias gstaa='git stash apply'
|
||||
alias gstc='git stash clear'
|
||||
alias gstd='git stash drop'
|
||||
alias gstl='git stash list'
|
||||
alias gstp='git stash pop'
|
||||
alias gsts='git stash show --text'
|
||||
alias gsu='git submodule update'
|
||||
alias gts='git tag -s'
|
||||
alias gtv='git tag | sort -V'
|
||||
alias gunignore='git update-index --no-assume-unchanged'
|
||||
alias gunwip='git log -n 1 | grep -q -c "\-\-wip\-\-" && git reset HEAD~1'
|
||||
alias gup='git pull --rebase'
|
||||
alias gupv='git pull --rebase -v'
|
||||
alias glum='git pull upstream master'
|
||||
alias gwch='git whatchanged -p --abbrev-commit --pretty=medium'
|
||||
alias gwip='git add -A; git rm $(git ls-files --deleted) 2> /dev/null; git commit --no-verify -m "--wip-- [skip ci]"'
|
|
@ -0,0 +1,46 @@
|
|||
export HISTIGNORE="ls:cd:cd -:pwd:exit:date:* --help"
|
||||
HISTFILE="$HOME/.config/zsh/histfile"
|
||||
HISTSIZE=10000
|
||||
SAVEHIST=50000
|
||||
|
||||
unsetopt beep
|
||||
unsetopt nomatch
|
||||
unsetopt menucomplete
|
||||
unsetopt flowcontrol
|
||||
unsetopt correctall
|
||||
setopt completealiases
|
||||
setopt autocd
|
||||
setopt autoresume
|
||||
setopt equals
|
||||
setopt magic_equal_subst
|
||||
setopt brace_ccl
|
||||
setopt extended_history
|
||||
setopt appendhistory
|
||||
setopt hist_expire_dups_first
|
||||
setopt hist_ignore_all_dups
|
||||
setopt hist_ignore_space
|
||||
setopt hist_reduce_blanks
|
||||
setopt hist_verify
|
||||
setopt hist_expand
|
||||
setopt inc_append_history
|
||||
setopt share_history
|
||||
setopt mark_dirs
|
||||
setopt RM_STAR_WAIT
|
||||
setopt interactivecomments
|
||||
setopt rcexpandparam
|
||||
setopt correct
|
||||
setopt glob_complete
|
||||
setopt extendedglob
|
||||
setopt nocaseglob
|
||||
setopt nocheckjobs
|
||||
setopt numericglobsort
|
||||
setopt printeightbit
|
||||
setopt auto_list
|
||||
setopt auto_param_slash
|
||||
setopt auto_param_keys
|
||||
setopt auto_name_dirs
|
||||
setopt always_to_end
|
||||
setopt complete_in_word
|
||||
setopt list_types
|
||||
|
||||
HELPDIR=/usr/share/zsh/$ZSH_VERSION/help
|
|
@ -1,141 +0,0 @@
|
|||
# Programs
|
||||
alias gdl='gallery-dl'
|
||||
alias mutt='neomutt'
|
||||
alias rg='ranger'
|
||||
#alias pmix='pulsemixer'
|
||||
alias pmix='ncpamixer'
|
||||
alias amix='alsamixer'
|
||||
alias vi='nvim'
|
||||
alias vim='nvim'
|
||||
alias chat='weechat'
|
||||
alias play='ncmpcpp'
|
||||
alias rtv='rtv --config ~/.config/rtv/rtv.cfg'
|
||||
alias imv='imv -sd -e kakwafont:10 -r'
|
||||
alias ts='transmission-remote-cli'
|
||||
alias tmux='tmux -2'
|
||||
|
||||
# Commands
|
||||
alias gal='ls | imv &!'
|
||||
alias ping='ping -c 5'
|
||||
alias chmod='chmod -v'
|
||||
alias chown='chown -v'
|
||||
alias ls='ls -F --color=always'
|
||||
alias vimdiff='nvim -d'
|
||||
alias pwn='chmod +x'
|
||||
alias wpp='hsetroot -fill'
|
||||
alias winclass='xprop | grep WM_CLASS' # for bspwm rules
|
||||
alias path='echo -e ${PATH//:/\\n}' # Pretty-print of some PATH variables
|
||||
alias libpath='echo -e ${LD_LIBRARY_PATH//:/\\n}' # And another one
|
||||
alias grep='grep --color=tty -d skip'
|
||||
alias sgrep='grep -R -n -H -C 5 --exclude-dir={.git,.svn,CVS} '
|
||||
alias dmesg='dmesg --color=always'
|
||||
alias _='sudo '
|
||||
alias compare='grep -nFxvf' # Usage: compare <file1> <file2>
|
||||
alias ag="ag --color --color-line-number '0;35' --color-match '46;30' --color-path '4;36'"
|
||||
alias tree='tree -CAFa -I "CVS|*.*.package|.svn|.git|.hg|node_modules|bower_components" --dirsfirst'
|
||||
alias lst='ls -FAghoBtH --group-directories-first --dereference-command-line-symlink-to-dir --time-style=+"%d-%m-%Y %H:%M"'
|
||||
alias rm='rm -iv' # Always confirm before deleting things
|
||||
alias mv='mv -iv'
|
||||
alias mkdir='mkdir -pv' # Make parent directories that don't exist
|
||||
alias type='type -a' # See what the command you want to run points to
|
||||
alias cp="cp -aiv" # Confirm before overwriting something
|
||||
alias df='df -hT --total' # Human readable, print filetype, and total
|
||||
alias free='free -ht' # Human readable and total
|
||||
alias ln='ln -iv'
|
||||
alias rename='rename -v'
|
||||
alias ta='tmux attach -t'
|
||||
alias tnw='tmux new -s'
|
||||
alias tls='tmux ls'
|
||||
alias tk='tmux kill-session -t'
|
||||
alias trsh='gvfs-trash -f'
|
||||
alias trsh-ls='gvfs-ls -h trash://'
|
||||
alias trsh-e='gvfs-trash --empty' # empty trash globally (all partitions)
|
||||
alias py='python '
|
||||
alias py2='python2 '
|
||||
alias rb='ruby '
|
||||
alias inxi='inxi -Fz'
|
||||
alias dir='dir --color=always'
|
||||
alias slop='slop --highlight --tolerance=0 --color=0.3,0.4,0.6,0.4 -f '%wx%h+%x+%y''
|
||||
alias java='java -Dawt.useSystemAAFontSettings=on -Dswing.aatext=true -Dswing.defaultlaf=com.sun.java.swing.plaf.gtk.GTKLookAndFeel'
|
||||
alias help='run-help'
|
||||
|
||||
mkcd () {
|
||||
case "$1" in
|
||||
*/..|*/../) cd -- "$1";; # that doesn't make any sense unless the directory already exists
|
||||
/*/../*) (cd "${1%/../*}/.." && mkdir -p "./${1##*/../}") && cd -- "$1";;
|
||||
/*) mkdir -p "$1" && cd "$1";;
|
||||
*/../*) (cd "./${1%/../*}/.." && mkdir -p "./${1##*/../}") && cd "./$1";;
|
||||
../*) (cd .. && mkdir -p "${1#.}") && cd "$1";;
|
||||
*) mkdir -p "./$1" && cd "./$1";;
|
||||
esac
|
||||
}
|
||||
|
||||
# Convert flac to mp3
|
||||
flaco() { parallel ffmpeg -i {} -qscale:a 0 {.}.mp3 ::: ./*.flac ;}
|
||||
midplayer() { adlmidi "$1" > /dev/null 2>&1 ;}
|
||||
midi-fluidsynth() { fluidsynth -a alsa -m alsa_seq -l -i /usr/share/soundfonts/fluidr3/FluidR3GM.SF2 "$1" ;}
|
||||
|
||||
shot() { maim -u ~/Pictures/scrot/$(date +%s).png && notify-send 'Screen captured' ;}
|
||||
|
||||
# Read markdown files like manpages. could also do pandoc -s -f markdown -t man "$*" | man -l -
|
||||
md() { pandoc -s -f markdown -t man "$*" | groff -T utf8 -man | less ;}
|
||||
|
||||
|
||||
function cfg(){
|
||||
case $1 in
|
||||
vi) $EDITOR ~/.config/nvim/init.vim ;;
|
||||
obmenu) sudo -e $EDITOR /etc/oblogout.conf ;;
|
||||
start) $EDITOR ~/.config/bspwm/autostart ;;
|
||||
bspwm) $EDITOR ~/.config/bspwm/bspwmrc ;;
|
||||
keys) $EDITOR ~/.config/sxhkd/sxhkdrc ;;
|
||||
mutt) $EDITOR ~/.mutt/muttrc ;;
|
||||
nano) $EDITOR ~/.nanorc ;;
|
||||
zsh) $EDITOR ~/.zshrc ;;
|
||||
alias) $EDITOR ~/zstuff/rc/alias.zsh ;;
|
||||
prompt) $EDITOR ~/zstuff/rc/prompt.zsh ;;
|
||||
bar) $EDITOR ~/.config/polybar/config ;;
|
||||
dunst) $EDITOR ~/.config/dunst/dunstrc ;;
|
||||
term) $EDITOR ~/.config/termite/config ;;
|
||||
rofi) $EDITOR ~/.config/rofi/config.rasi;;
|
||||
dmenu) $EDITOR ~/.dmenurc ;;
|
||||
mpv) $EDITOR ~/.config/mpv/input.conf ;;
|
||||
mpd) $EDITOR ~/.config/mpd/mpd.conf ;;
|
||||
play) $EDITOR ~/.config/ncmpcpp/config ;;
|
||||
rg) $EDITOR ~/.config/ranger/rc.conf ;;
|
||||
rifle) $EDITOR ~/.config/ranger/rifle.conf ;;
|
||||
scope) $EDITOR ~/.config/ranger/scope.sh ;;
|
||||
tx) $EDITOR ~/.tmux.conf ;;
|
||||
comp) $EDITOR ~/.config/compton.conf ;;
|
||||
tsd) $EDITOR ~/.config/transmission-daemon/settings.json ;;
|
||||
tsr) $EDITOR ~/.config/transmission-remote-cli/settings.cfg ;;
|
||||
xinit) $EDITOR ~/.xinitrc ;;
|
||||
xres) $EDITOR ~/.Xresources ;;
|
||||
*) echo "Can't help you with that" ;;
|
||||
esac
|
||||
}
|
||||
|
||||
function rld(){
|
||||
case $1 in
|
||||
zsh) source ~/.zshrc ;;
|
||||
fonts) fc-cache -v -f ;;
|
||||
keys) pkill -USR1 -x sxhkd ;;
|
||||
dunst) ~/.config/dunst/./reload ;;
|
||||
comp) pkill compton && compton -bcCGf ;;
|
||||
xres) xrdb ~/.Xresources ;;
|
||||
bspwm) bspc wm -d > "$BSPWM_STATE" && bspc quit && bspc quit 1 ;;
|
||||
*) echo "Can't help you with that" ;;
|
||||
esac
|
||||
}
|
||||
|
||||
tx() {
|
||||
[[ -n "$TMUX" ]] && change="switch-client" || change="attach-session"
|
||||
if [ $1 ]; then
|
||||
tmux $change -t "$1" 2>/dev/null || (tmux new-session -d -s $1 && tmux $change -t "$1"); return
|
||||
fi
|
||||
session=$(tmux list-sessions -F "#{session_name}" 2>/dev/null | fzf --exit-0) && tmux $change -t "$session" || echo "No sessions found."
|
||||
}
|
||||
|
||||
source $HOME/.config/zstuff/rc/video.zsh
|
||||
source $HOME/.config/zstuff/rc/transmission.zsh
|
||||
source $HOME/.config/zstuff/rc/pacman.zsh
|
||||
source $HOME/.config/zstuff/rc/dotfiles.zsh
|
|
@ -1,90 +0,0 @@
|
|||
#fpath=(/usr/share/zsh/site-functions $fpath)
|
||||
|
||||
zstyle ':completion:*' auto-description 'Specify: %d'
|
||||
zstyle ':completion:*:functions' ignored-patterns '_*'
|
||||
zstyle ':completion:*' format $'\n%F{yellow}Completing %d%f\n'
|
||||
zstyle ':completion:*' group-name ''
|
||||
zstyle ':completion:*' menu select
|
||||
#zstyle ':completion:*' list-prompt %SAt %p: Hit TAB for more, or the character to insert%s
|
||||
zstyle ':completion:*:default' list-prompt '%S%M matches%s'
|
||||
zstyle ':completion:*:default' menu 'select=0'
|
||||
zstyle ':completion:*' matcher-list 'm:{a-zA-Z}={A-Za-z}'
|
||||
zstyle ':completion:*' matcher-list '' \
|
||||
'm:{a-z\-}={A-Z\_}' \
|
||||
'r:[^[:alpha:]]||[[:alpha:]]=** r:|=* m:{a-z\-}={A-Z\_}' \
|
||||
'r:[[:ascii:]]||[[:ascii:]]=** r:|=* m:{a-z\-}={A-Z\_}'
|
||||
|
||||
zstyle ':completion:*' select-prompt %SScrolling active: current selection at %p%s
|
||||
zstyle ':completion:*' use-compctl false
|
||||
#zstyle ':completion:*' verbose true
|
||||
zstyle ':completion:*:options' verbose yes
|
||||
zstyle ':completion:*:values' verbose yes
|
||||
zstyle ':completion:*:processes' command "ps -au $USER -o pid,stat,%cpu,%mem,cputime,command"
|
||||
zstyle ':completion:*:processes-names' command 'ps c -u ${USER} -o command | uniq'
|
||||
zstyle ':completion:*:*:kill:*:processes' list-colors '=(#b) #([0-9]#)*=0=01;31'
|
||||
zstyle ':completion:*:killall:*' command 'ps -u $USER -o pid,%cpu,tty,cputime,cmd'
|
||||
zstyle ':completion:*' rehash true
|
||||
zstyle ':completion:*' list-colors 'reply=( "=(#b)(*$VAR)(?)*=00=$color[green]=$color[bg-green]" )'
|
||||
zstyle ':completion:*:*:*:*:users' list-colors '=*=$color[green]=$color[red]'
|
||||
zstyle ':completion:*:descriptions' format "$fg[yellow]%B--- %d%b ---"
|
||||
zstyle ':completion:*:warnings' format "$fg[red]I got nothing for:$reset_color %d"
|
||||
zstyle ':completion:*:corrections' format '%B%d (errors: %e)%b'
|
||||
zstyle ':completion:*:options' description 'yes'
|
||||
zstyle ':completion:*' accept-exact '*(N)'
|
||||
zstyle ':completion:*' list-colors "${LS_COLORS}"
|
||||
zstyle ':completion:*' special-dirs true
|
||||
zstyle ':completion:*' use-cache on
|
||||
zstyle ':completion:*' cache-path ~/.config/zstuff/cache
|
||||
|
||||
# Always use menu selection for `cd -`
|
||||
zstyle ':completion:*:*:cd:*:directory-stack' force-list always
|
||||
zstyle ':completion:*:*:cd:*:directory-stack' menu yes select
|
||||
|
||||
# Keep directories and files separated
|
||||
zstyle ':completion:*' list-dirs-first true
|
||||
|
||||
# separate man page sections
|
||||
zstyle ':completion:*:manuals' separate-sections true
|
||||
|
||||
# completion of .. directories
|
||||
zstyle ':completion:*' special-dirs true
|
||||
|
||||
# Search path for sudo completion
|
||||
zstyle ':completion:*:sudo:*' command-path /usr/local/sbin \
|
||||
/usr/local/bin \
|
||||
/usr/sbin \
|
||||
/usr/bin \
|
||||
/sbin \
|
||||
/bin
|
||||
|
||||
export HISTIGNORE="ls:cd:cd -:pwd:exit:date:* --help"
|
||||
HISTFILE=~/.config/zstuff/zhistory
|
||||
HISTSIZE=10000
|
||||
SAVEHIST=50000
|
||||
|
||||
# prompt formats
|
||||
LISTPROMPT='View all items?. '
|
||||
|
||||
# prompt for correct
|
||||
SPROMPT="Correct to %r?. "
|
||||
|
||||
# limit the do you wish to see all n possibilities
|
||||
LISTMAX=256
|
||||
|
||||
# History search multi-word
|
||||
zstyle ":plugin:history-search-multi-word" clear-on-cancel "yes"
|
||||
zstyle ":history-search-multi-word" page-size "LINES/4"
|
||||
|
||||
# fzf
|
||||
export FZF_DEFAULT_OPTS='--height 40% --reverse --ansi'
|
||||
export FZF_COMPLETION_OPTS='+c -x'
|
||||
export FZF_DEFAULT_COMMAND='ag -l -g ""'
|
||||
|
||||
#export FZF_COMPLETION_TRIGGER=''
|
||||
#bindkey '^T' fzf-completion
|
||||
#bindkey '^I' $fzf_default_completion
|
||||
|
||||
export FZF_CTRL_T_COMMAND="$FZF_DEFAULT_COMMAND"
|
||||
export FZF_CTRL_T_OPTS="--select-1 --exit-0"
|
||||
export FZF_CTRL_R_OPTS="--preview 'echo {}' --preview-window down:3:hidden:wrap --bind '?:toggle-preview'"
|
||||
export FZF_ALT_C_OPTS="--preview 'tree -C {} | head -200'"
|
|
@ -1,34 +0,0 @@
|
|||
# This is random stuff i didn't know where to put
|
||||
|
||||
# Set the window title based on command run
|
||||
function preexec() {
|
||||
title "$1" "%m(%35<...<%~)"
|
||||
}
|
||||
|
||||
function title() {
|
||||
# escape '%' chars in $1, make nonprintables visible
|
||||
a=${(V)1//\%/\%\%}
|
||||
|
||||
# Truncate command, and join lines.
|
||||
a=$(print -Pn "%40>...>$a" | tr -d "\n")
|
||||
|
||||
case $TERM in
|
||||
xterm*|rxvt)
|
||||
print -Pn "\e]2;$a@$2\a" # plain xterm title
|
||||
;;
|
||||
esac
|
||||
}
|
||||
|
||||
export LESS='--tabs=4 --no-init --LONG-PROMPT --ignore-case --quit-if-one-screen --RAW-CONTROL-CHARS'
|
||||
|
||||
export GREP_COLOR="0;32"
|
||||
|
||||
export PULSEMIXER_BAR_STYLE="┌╶┐╴└┘▮ ◆┆"
|
||||
|
||||
ranger() {
|
||||
if [ -z "$RANGER_LEVEL" ]; then
|
||||
/usr/bin/ranger "$@"
|
||||
else
|
||||
exit
|
||||
fi
|
||||
}
|
|
@ -1,48 +0,0 @@
|
|||
# Use syntax highlighting
|
||||
source /usr/share/zsh/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
|
||||
|
||||
typeset -A ZSH_HIGHLIGHT_STYLES
|
||||
ZSH_HIGHLIGHT_HIGHLIGHTERS=(main brackets pattern cursor line root regexp)
|
||||
ZSH_HIGHLIGHT_STYLES[dollar-double-quoted-argument]="fg=blue"
|
||||
ZSH_HIGHLIGHT_STYLES[single-quoted-argument]='fg=yellow'
|
||||
ZSH_HIGHLIGHT_STYLES[double-quoted-argument]='fg=yellow'
|
||||
ZSH_HIGHLIGHT_STYLES[bracket-error]='fg=red'
|
||||
ZSH_HIGHLIGHT_STYLES[bracket-level-1]='fg=green'
|
||||
ZSH_HIGHLIGHT_STYLES[bracket-level-2]='fg=green'
|
||||
ZSH_HIGHLIGHT_STYLES[bracket-level-3]='fg=green'
|
||||
ZSH_HIGHLIGHT_STYLES[bracket-level-4]='fg=green'
|
||||
ZSH_HIGHLIGHT_STYLES[bracket-level-5]='fg=green'
|
||||
ZSH_HIGHLIGHT_STYLES[commandseparator]='fg=blue'
|
||||
ZSH_HIGHLIGHT_STYLES[cursor-matchingbracket]='underline'
|
||||
ZSH_HIGHLIGHT_STYLES[reserved-word]='fg=green'
|
||||
ZSH_HIGHLIGHT_STYLES[unknown-token]='fg=red'
|
||||
ZSH_HIGHLIGHT_STYLES[default]='none'
|
||||
ZSH_HIGHLIGHT_STYLES[unknown-token]='fg=red'
|
||||
ZSH_HIGHLIGHT_STYLES[reserved-word]='fg=yellow'
|
||||
ZSH_HIGHLIGHT_STYLES[alias]='fg=blue'
|
||||
ZSH_HIGHLIGHT_STYLES[builtin]='fg=blue'
|
||||
ZSH_HIGHLIGHT_STYLES[function]='fg=blue'
|
||||
ZSH_HIGHLIGHT_STYLES[command]='fg=blue'
|
||||
ZSH_HIGHLIGHT_STYLES[precommand]='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[back-double-quoted-argument]='fg=cyan'
|
||||
ZSH_HIGHLIGHT_STYLES[assign]='none'
|
||||
export ZSH_HIGHLIGHT_STYLES
|
||||
export ZSH_HIGHLIGHT_HIGHLIGHTERS
|
||||
|
||||
# Use history substring search
|
||||
source /usr/share/zsh/plugins/zsh-history-substring-search/zsh-history-substring-search.zsh
|
||||
## bind UP and DOWN arrow keys to history substring search
|
||||
zmodload zsh/terminfo
|
||||
bindkey "$terminfo[kcuu1]" history-substring-search-up
|
||||
bindkey "$terminfo[kcud1]" history-substring-search-down
|
||||
bindkey '^[[A' history-substring-search-up
|
||||
bindkey '^[[B' history-substring-search-down
|
|
@ -1,56 +0,0 @@
|
|||
bindkey -v
|
||||
|
||||
autoload -U select-bracketed
|
||||
autoload -U select-quoted
|
||||
zle -N select-quoted
|
||||
zle -N select-bracketed
|
||||
for km in visual viopp; do
|
||||
bindkey -M $km -- '-' vi-up-line-or-history
|
||||
for c in {a,i}${(s..)^:-\'\"\`\|,./:;-=+@}; do
|
||||
bindkey -M $km $c select-quoted
|
||||
done
|
||||
for c in {a,i}${(s..)^:-'()[]{}<>bB'}; do
|
||||
bindkey -M $km $c select-bracketed
|
||||
done
|
||||
done
|
||||
|
||||
bindkey -a u undo
|
||||
bindkey -a '^y' redo
|
||||
bindkey '^?' backward-delete-char
|
||||
bindkey '^h' backward-delete-char
|
||||
bindkey '^w' backward-kill-word
|
||||
|
||||
# Beginning search with arrow keys
|
||||
bindkey "^[OA" up-line-or-beginning-search
|
||||
bindkey "^[OB" down-line-or-beginning-search
|
||||
|
||||
# Better searching in command mode
|
||||
#bindkey -M vicmd '?' history-incremental-search-backward
|
||||
#bindkey -M vicmd '/' history-incremental-search-forward
|
||||
#bindkey -M vicmd 'k' up-line-or-beginning-search
|
||||
#bindkey -M vicmd 'j' down-line-or-beginning-search
|
||||
|
||||
bindkey '^[[7~' beginning-of-line # Home key
|
||||
bindkey '^[[H' beginning-of-line # Home key
|
||||
if [[ "${terminfo[khome]}" != "" ]]; then
|
||||
bindkey "${terminfo[khome]}" beginning-of-line # [Home] - Go to beginning of line
|
||||
fi
|
||||
bindkey '^[[8~' end-of-line # End key
|
||||
bindkey '^[[F' end-of-line # End key
|
||||
if [[ "${terminfo[kend]}" != "" ]]; then
|
||||
bindkey "${terminfo[kend]}" end-of-line # [End] - Go to end of line
|
||||
fi
|
||||
bindkey '^[[2~' overwrite-mode # Insert key
|
||||
bindkey '^[[3~' delete-char # Delete key
|
||||
bindkey '^[[C' forward-char # Right key
|
||||
bindkey '^[[D' backward-char # Left key
|
||||
bindkey '^[[5~' history-beginning-search-backward # Page up key
|
||||
bindkey '^[[6~' history-beginning-search-forward # Page down key
|
||||
|
||||
# Navigate words with ctrl+arrow keys
|
||||
bindkey '^[Oc' forward-word #
|
||||
bindkey '^[Od' backward-word #
|
||||
bindkey '^[[1;5D' backward-word #
|
||||
bindkey '^[[1;5C' forward-word #
|
||||
#bindkey '^H' backward-kill-word # delete previous word with ctrl+backspace
|
||||
#bindkey '^[[Z' undo # Shift+tab undo last action
|
|
@ -1,41 +0,0 @@
|
|||
_comp_options+=(NO_err_return) # this should fix autocomplete bug/regression introduced in zsh 5.3
|
||||
|
||||
# if you want red dots to be displayed while waiting for completion
|
||||
COMPLETION_WAITING_DOTS="true"
|
||||
|
||||
setopt autocd
|
||||
setopt auto_resume
|
||||
setopt equals # Enable "=command" feature
|
||||
setopt magic_equal_subst # Enable completion in "--option=arg"
|
||||
setopt prompt_subst # allow expansion in prompts
|
||||
setopt brace_ccl # Enable brace expansion function
|
||||
setopt append_history # don't create the hist file over and over
|
||||
setopt hist_ignore_all_dups # If a new command is a duplicate, remove the older one
|
||||
setopt hist_reduce_blanks # remove blank spaces from history file
|
||||
setopt hist_ignore_space # Ignore add history if space
|
||||
setopt extended_history # Save time stamp
|
||||
setopt hist_expand # Expand history
|
||||
setopt inc_append_history # Share zsh histories
|
||||
setopt share_history
|
||||
setopt mark_dirs # Add "/" if completes directory
|
||||
setopt path_dirs # Can search subdirectory in $PATH
|
||||
setopt RM_STAR_WAIT # if you do a 'rm *', Zsh will give you a sanity check!
|
||||
unsetopt correctall # turn off the infernal correctall for filenames
|
||||
setopt nonomatch # try to avoid the 'zsh: no matches found...'
|
||||
setopt interactivecomments # bash style comments
|
||||
setopt correct # Auto correct mistakes
|
||||
setopt long_list_jobs # Better jobs
|
||||
setopt glob_complete # Expand globs when completion
|
||||
setopt extendedglob # Extended globbing
|
||||
setopt nocaseglob # Case insensitive globbing
|
||||
#setopt rcexpandparam # Array expension with parameters. Breaks zplugin
|
||||
setopt nocheckjobs # Don't warn about running processes when exiting
|
||||
setopt numericglobsort # Sort filenames numerically when it makes sense
|
||||
setopt completealiases # autocompletion CLI switches for aliases
|
||||
setopt nohup # Don't kill processes when exiting
|
||||
setopt nobeep # No beep
|
||||
setopt printeightbit # For multi byte
|
||||
setopt auto_list # List completion
|
||||
setopt auto_param_slash
|
||||
setopt auto_param_keys
|
||||
setopt list_types # List like "ls -F"
|
|
@ -1,40 +0,0 @@
|
|||
alias pacaur='pacaur --color always'
|
||||
alias pacman='pacman --color always'
|
||||
alias cower='cower --color=always'
|
||||
|
||||
what() { pacaur -Ss "$1" ;} # package info
|
||||
show() { pacaur -Sii "$1" ;} # package details
|
||||
files() { pacman -Ql "$1" ;} # list files owned by package
|
||||
explicit() { sudo pacman -D --asexplicit "$1" ;} # mark package as explicitly installed
|
||||
|
||||
gimme(){
|
||||
local file
|
||||
for file in "$@" ;do
|
||||
if pacaur -S "$file" ;then
|
||||
echo "$file $(date +%F)" >> ~/packagelist.txt
|
||||
fi
|
||||
done
|
||||
}
|
||||
|
||||
#alias gimme='pacaur -S' # package install
|
||||
alias fuck='sudo pacman -Rns' # package remove
|
||||
alias upd='pacaur -Syu' # package update
|
||||
|
||||
orphans() {
|
||||
pacman -Qdt
|
||||
echo "Press ENTER to remove these orphaned packages or CTRL+C to cancel."
|
||||
read
|
||||
sudo pacman -Rsn $(pacman -Qqdt) --noconfirm
|
||||
}
|
||||
|
||||
paclist() {
|
||||
pacman -Qqettn >> ~/paketes.txt
|
||||
pacman -Qqettm >> ~/paurketos.txt
|
||||
}
|
||||
|
||||
pacfix() {
|
||||
sudo rm -f /var/lib/pacman/db.lck
|
||||
sudo pacman-mirrors -g
|
||||
sudo pacman -Syyuu
|
||||
sudo pacman -Suu
|
||||
}
|
|
@ -1,100 +0,0 @@
|
|||
NEWLINE=$'\n'
|
||||
PROMPT="${NEWLINE}%B%{$fg[green]%}%~%{$reset_color%}%b "
|
||||
|
||||
## Prompt on right side:
|
||||
# - shows status of git when in git repository (code adapted from https://techanic.net/2012/12/30/my_git_prompt_for_zsh.html)
|
||||
# - shows exit status of previous command (if previous command finished with an error)
|
||||
# - is invisible, if neither is the case
|
||||
|
||||
# Modify the colors and symbols in these variables as desired.
|
||||
GIT_PROMPT_SYMBOL="%{%B$fg[blue]%} %b" # clean repo
|
||||
GIT_PROMPT_AHEAD="%{$fg[red]%} ANUM %{$reset_color%}" # A"NUM" ahead by "NUM" commits
|
||||
GIT_PROMPT_BEHIND="%{$fg[cyan]%} BNUM %{$reset_color%}" # B"NUM" behind by "NUM" commits
|
||||
GIT_PROMPT_MERGING="%{%B$fg[magenta]%} %{$reset_color%}%b" # merge conflict
|
||||
GIT_PROMPT_UNTRACKED="%{%B$fg[red]%} %{$reset_color%}%b" # untracked files
|
||||
GIT_PROMPT_MODIFIED="%{%B$fg[yellow]%} %{$reset_color%}%b" # tracked files modified
|
||||
GIT_PROMPT_STAGED="%{%B$fg[green]%} %{$reset_color%}%b" # staged changes present, ready for "git push"
|
||||
GIT_PROMPT_SHA_BEFORE="%{$reset_color%}%{$WHITE%}" # Format for git_prompt_short_sha()
|
||||
GIT_PROMPT_SHA_AFTER="%{$WHITE%}%{$reset_color%}"
|
||||
|
||||
VI_PROMPT_BG_NORMAL="%{$bg[green]%}"
|
||||
VI_PROMPT_BG_INSERT="%{$bg[blue]%}"
|
||||
VI_PROMPT_FG="%{$fg[black]%}"
|
||||
VI_PROMPT_AFTER="%{$reset_color%}"
|
||||
|
||||
function vi_prompt_normal() {
|
||||
echo "$VI_PROMPT_BG_NORMAL$VI_PROMPT_FG NORMAL $VI_PROMPT_AFTER"
|
||||
}
|
||||
|
||||
function vi_prompt_insert() {
|
||||
echo "$VI_PROMPT_BG_INSERT$VI_PROMPT_FG INSERT $VI_PROMPT_AFTER"
|
||||
}
|
||||
|
||||
function git_prompt_short_sha() {
|
||||
local SHA
|
||||
SHA=$(command git rev-parse --short HEAD 2> /dev/null) && echo "$GIT_PROMPT_SHA_BEFORE$SHA$GIT_PROMPT_SHA_AFTER"
|
||||
}
|
||||
|
||||
parse_git_branch() {
|
||||
# Show Git branch/tag, or name-rev if on detached head
|
||||
( git symbolic-ref -q HEAD || git name-rev --name-only --no-undefined --always HEAD ) 2> /dev/null
|
||||
}
|
||||
|
||||
parse_git_state() {
|
||||
# Show different symbols as appropriate for various Git repository states
|
||||
# Compose this value via multiple conditional appends.
|
||||
local GIT_STATE=""
|
||||
local NUM_AHEAD="$(git log --oneline @{u}.. 2> /dev/null | wc -l | tr -d ' ')"
|
||||
if [ "$NUM_AHEAD" -gt 0 ]; then
|
||||
GIT_STATE=$GIT_STATE${GIT_PROMPT_AHEAD//NUM/$NUM_AHEAD}
|
||||
fi
|
||||
local NUM_BEHIND="$(git log --oneline ..@{u} 2> /dev/null | wc -l | tr -d ' ')"
|
||||
if [ "$NUM_BEHIND" -gt 0 ]; then
|
||||
GIT_STATE=$GIT_STATE${GIT_PROMPT_BEHIND//NUM/$NUM_BEHIND}
|
||||
fi
|
||||
local GIT_DIR="$(git rev-parse --git-dir 2> /dev/null)"
|
||||
if [ -n $GIT_DIR ] && test -r $GIT_DIR/MERGE_HEAD; then
|
||||
GIT_STATE=$GIT_STATE$GIT_PROMPT_MERGING
|
||||
fi
|
||||
if [[ -n $(git ls-files --other --exclude-standard 2> /dev/null) ]]; then
|
||||
GIT_STATE=$GIT_STATE$GIT_PROMPT_UNTRACKED
|
||||
fi
|
||||
if ! git diff --quiet 2> /dev/null; then
|
||||
GIT_STATE=$GIT_STATE$GIT_PROMPT_MODIFIED
|
||||
fi
|
||||
if ! git diff --cached --quiet 2> /dev/null; then
|
||||
GIT_STATE=$GIT_STATE$GIT_PROMPT_STAGED
|
||||
fi
|
||||
if [[ -n $GIT_STATE ]]; then
|
||||
echo "$GIT_STATE"
|
||||
fi
|
||||
}
|
||||
|
||||
git_prompt_string() {
|
||||
local git_where="$(parse_git_branch)"
|
||||
|
||||
# If inside a Git repository, print its branch and state
|
||||
[ -n "$git_where" ] && echo " $(parse_git_state)%{$fg[yellow]%}${git_where#(refs/heads/|tags/)}: $(git_prompt_short_sha)"
|
||||
|
||||
# If not inside the Git repo, print exit codes of last command (only if it failed)
|
||||
[ ! -n "$git_where" ] && echo " %B%{$fg[red]%} %(✗ ?..[%?])%b"
|
||||
}
|
||||
|
||||
function zle-line-init zle-keymap-select {
|
||||
RPS1="$(git_prompt_string) ${${KEYMAP/vicmd/$(vi_prompt_normal)}/(main|viins)/$(vi_prompt_insert)} $EPS1"
|
||||
zle reset-prompt
|
||||
}
|
||||
|
||||
#RPROMPT='$(git_prompt_string)'
|
||||
|
||||
zle -N zle-line-init
|
||||
zle -N zle-keymap-select
|
||||
KEYTIMEOUT=1
|
||||
|
||||
prompt () {
|
||||
_ERR=$?
|
||||
_prompt="${_prompt:->}"
|
||||
[ $(jobs | wc -l) -ne 0 ] && _prompt="$_prompt$_prompt"
|
||||
[ $_ERR -ne 0 ] && _prompt="\e[7m$_prompt\e[0m" # invert
|
||||
echo -n -e "$_prompt "
|
||||
}
|
|
@ -1,28 +0,0 @@
|
|||
alias ytdl='youtube-dl -ic'
|
||||
alias ytv='youtube-viewer'
|
||||
alias ytw='youtube-viewer -C -D -W -f -7 --results=10'
|
||||
|
||||
ytl() { youtube-viewer -n $@ ;}
|
||||
|
||||
ytmp3() { youtube-dl -ic --restrict-filenames --extract-audio --audio-format mp3 -o "%(title)s.%(ext)s" $@ ;}
|
||||
|
||||
yt2mp3() { youtube-dl -ic --restrict-filenames -x --audio-format mp3 -o "%(title)s.%(ext)s" -f 171 "$@" ;}
|
||||
|
||||
ytconv() {
|
||||
if [[ "$#" -lt 2 ]]; then
|
||||
printf "\n %s \n" 'Usage: ytconv <image> <audio> <extension> (Extension is optional: defaults to .mkv)'
|
||||
return 1
|
||||
elif [[ -e "out.${3:-mkv}" ]]; then
|
||||
printf "\n\033[31m%s\033[0m\n" 'Error "out.'"${3:-mkv}"'" exists!'
|
||||
return 2
|
||||
else
|
||||
ffmpeg -loop 1 -y -i "$1" -i "$2" -c:a copy -c:v libx264 \
|
||||
-strict experimental -b:a 192k -preset ultrafast -pix_fmt yuv420p -tune stillimage \
|
||||
-threads 0 -shortest "out.${3:-mkv}"
|
||||
# ffmpeg -loop 1 -y -i "$1" -i "$2" -c:a copy -c:v libx265 \
|
||||
# -strict experimental -b:a 192k -pix_fmt yuv420p -tune psnr \
|
||||
# -threads 0 -shortest "out.${3:-mkv}"
|
||||
fi
|
||||
}
|
||||
|
||||
gif() { ffmpeg -i "${1:?Error: no input file specified!}" "${2:-${1%.*}.gif}" -threads 0; }
|
|
@ -4,13 +4,13 @@
|
|||
include "/home/deadguy/.gtkrc-2.0.mine"
|
||||
gtk-theme-name="8089"
|
||||
gtk-icon-theme-name="Papirus-Dark"
|
||||
gtk-font-name="IBM Plex Sans weight=453 9"
|
||||
gtk-font-name="Inter UI Medium 9"
|
||||
gtk-cursor-theme-name="Alkano"
|
||||
gtk-cursor-theme-size=0
|
||||
gtk-toolbar-style=GTK_TOOLBAR_BOTH_HORIZ
|
||||
gtk-toolbar-icon-size=GTK_ICON_SIZE_LARGE_TOOLBAR
|
||||
gtk-toolbar-icon-size=GTK_ICON_SIZE_SMALL_TOOLBAR
|
||||
gtk-button-images=0
|
||||
gtk-menu-images=0
|
||||
gtk-menu-images=1
|
||||
gtk-enable-event-sounds=0
|
||||
gtk-enable-input-feedback-sounds=0
|
||||
gtk-xft-antialias=1
|
||||
|
|
|
@ -55,6 +55,7 @@ window {
|
|||
children: [mainbox];
|
||||
border: 0 0 0 1px solid;
|
||||
border-color: @active-background;
|
||||
margin: 22px 0 0 0;
|
||||
}
|
||||
|
||||
mainbox {
|
||||
|
|
235
.tmux.conf
235
.tmux.conf
|
@ -1,135 +1,138 @@
|
|||
# Set the default TERM
|
||||
set -g default-terminal tmux-256color
|
||||
set -ga terminal-overrides ',xterm-256color:Tc'
|
||||
set -g default-terminal tmux-256color
|
||||
set -ga terminal-overrides ',xterm-256color:Tc'
|
||||
|
||||
unbind C-b
|
||||
unbind space
|
||||
unbind '"'
|
||||
unbind %
|
||||
unbind q
|
||||
# Basics
|
||||
set -g set-clipboard on
|
||||
set -sg escape-time 0
|
||||
set -g mouse on
|
||||
set -gq status-utf8 on
|
||||
setw -gq utf8 on
|
||||
|
||||
set-option -g prefix C-a
|
||||
bind-key C-a send-prefix
|
||||
set -sg escape-time 0
|
||||
setw -g mouse on
|
||||
setw -g mode-keys vi
|
||||
# Windows
|
||||
set -g base-index 1
|
||||
setw -g automatic-rename on
|
||||
set -g renumber-windows on
|
||||
|
||||
# urlview
|
||||
bind-key u capture-pane \; save-buffer /tmp/tmux-buffer \; new-window -n "urlview" '$SHELL -c "urlview < /tmp/tmux-buffer"'
|
||||
# Panes
|
||||
setw -g pane-base-index 1
|
||||
setw -g aggressive-resize on
|
||||
|
||||
# Notifications
|
||||
set -g monitor-activity on
|
||||
set -g visual-activity off
|
||||
set -g visual-bell off
|
||||
set -g visual-silence off
|
||||
set -g bell-action none
|
||||
|
||||
# Vim
|
||||
set -g mode-keys vi
|
||||
set -g status-keys vi
|
||||
|
||||
# Statusbar
|
||||
setw -g automatic-rename-format "#{s/zsh//:pane_current_command}"
|
||||
setw -g pane-border-style fg=colour8
|
||||
setw -g pane-active-border-style fg=colour8
|
||||
set -g message-command-style bg=colour0,fg=colour13,bold
|
||||
set -g message-style bg=colour12,fg=colour0,bold
|
||||
set -g status-style bg=default,fg=colour7
|
||||
set -g status-interval 1
|
||||
set -g status-left ''
|
||||
set -g status-right '#[fg=colour4]#S'
|
||||
set -g window-status-separator ' '
|
||||
set -g window-status-current-style fg=colour3,bold
|
||||
set -g window-status-activity-style bg=colour1,fg=colour14,bold
|
||||
set -g window-status-format " #{=-15:?window_name,#{window_name},#{s/deadguy/home/:?pane_current_path,#{b:pane_current_path},}} "
|
||||
set -g window-status-current-format " #{=-15:?window_name,#{window_name},#{s/deadguy/home/:?pane_current_path,#{b:pane_current_path},}} "
|
||||
|
||||
# Unbind defaults
|
||||
unbind-key -a
|
||||
unbind-key C-b
|
||||
unbind-key space
|
||||
unbind-key '"'
|
||||
unbind-key %
|
||||
unbind-key q
|
||||
|
||||
# Prefix
|
||||
set -g prefix C-a
|
||||
bind-key C-a send-prefix
|
||||
|
||||
# Misc
|
||||
bind-key ? list-keys
|
||||
bind-key d detach-client
|
||||
bind-key : command-prompt
|
||||
bind-key R respawn-window
|
||||
bind-key T command-prompt 'rename-window %%'
|
||||
bind-key S command-prompt 'rename-session %%'
|
||||
bind-key r source-file $HOME/.tmux.conf \; display "Config Reloaded!"
|
||||
|
||||
# Switch panes using Alt-arrow without prefix
|
||||
bind -n M-Left select-pane -L
|
||||
bind -n M-Right select-pane -R
|
||||
bind -n M-Up select-pane -U
|
||||
bind -n M-Down select-pane -D
|
||||
bind , swap-pane -D # swap current pane with the next one
|
||||
bind . swap-pane -U # swap current pane with the previous one
|
||||
bind-key -n M-Left select-pane -L
|
||||
bind-key -n M-Right select-pane -R
|
||||
bind-key -n M-Up select-pane -U
|
||||
bind-key -n M-Down select-pane -D
|
||||
|
||||
# Vim inside tmux
|
||||
bind-key -T copy-mode-vi M-Left select-pane -L
|
||||
bind-key -T copy-mode-vi M-Down select-pane -D
|
||||
bind-key -T copy-mode-vi M-Up select-pane -U
|
||||
bind-key -T copy-mode-vi M-Right select-pane -R
|
||||
bind-key -T copy-mode-vi M-Tab select-pane -l
|
||||
# Swap panes
|
||||
bind-key M-Left swap-pane -s {left-of}
|
||||
bind-key M-Right swap-pane -s {right-of}
|
||||
bind-key M-Up swap-pane -U
|
||||
bind-key M-Down swap-pane -D
|
||||
|
||||
bind down new-window
|
||||
bind left prev
|
||||
bind right next
|
||||
bind Pageup swap-window -t -1
|
||||
bind Pagedown swap-window -t +1
|
||||
# Resize panes
|
||||
bind-key J resize-pane -D 2
|
||||
bind-key K resize-pane -U 2
|
||||
bind-key H resize-pane -L 2
|
||||
bind-key L resize-pane -R 2
|
||||
|
||||
# Pane resizing & splitting
|
||||
bind -r H resize-pane -L 2
|
||||
bind -r J resize-pane -D 2
|
||||
bind -r K resize-pane -U 2
|
||||
bind -r L resize-pane -R 2
|
||||
bind-key | split-window -h -c "#{pane_current_path}"
|
||||
bind-key - split-window -v -c "#{pane_current_path}"
|
||||
bind-key M-| split-window -fh -c "#{pane_current_path}"
|
||||
bind-key M-- split-window -fv -c "#{pane_current_path}"
|
||||
bind X select-layout even-vertical
|
||||
# Split panes
|
||||
bind-key | split-window -h -c "#{pane_current_path}"
|
||||
bind-key - split-window -v -c "#{pane_current_path}"
|
||||
bind-key M-| split-window -fh -c "#{pane_current_path}"
|
||||
bind-key M-- split-window -fv -c "#{pane_current_path}"
|
||||
bind-key X select-layout even-vertical
|
||||
|
||||
# Toggle zoom
|
||||
bind-key -n M-z resize-pane -Z
|
||||
# Zoom pane
|
||||
bind-key -n M-z resize-pane -Z
|
||||
|
||||
# Move to window
|
||||
bind -n M-S-1 select-window -t :1
|
||||
bind -n M-S-2 select-window -t :2
|
||||
bind -n M-S-3 select-window -t :3
|
||||
bind -n M-S-4 select-window -t :4
|
||||
bind -n M-S-5 select-window -t :5
|
||||
bind -n M-S-6 select-window -t :6
|
||||
bind -n M-S-7 select-window -t :7
|
||||
bind -n M-S-8 select-window -t :8
|
||||
bind -n M-S-9 select-window -t :9
|
||||
# Close pane
|
||||
bind-key q kill-window
|
||||
bind-key x kill-pane
|
||||
|
||||
# Go to window
|
||||
bind-key 1 select-window -t :1
|
||||
bind-key 2 select-window -t :2
|
||||
bind-key 3 select-window -t :3
|
||||
bind-key 4 select-window -t :4
|
||||
bind-key 5 select-window -t :5
|
||||
bind-key 6 select-window -t :6
|
||||
bind-key 7 select-window -t :7
|
||||
bind-key 8 select-window -t :8
|
||||
bind-key 9 select-window -t :9
|
||||
bind-key 0 select-window -t :0
|
||||
|
||||
# Window
|
||||
bind-key Enter new-window
|
||||
bind-key Tab choose-window
|
||||
|
||||
# Urlview
|
||||
bind-key u capture-pane \; save-buffer /tmp/tmux-buffer \; new-window -n "urlview" '$SHELL -c "urlview < /tmp/tmux-buffer"'
|
||||
|
||||
# Vim
|
||||
bind-key [ copy-mode
|
||||
bind-key ] paste-buffer
|
||||
|
||||
# Copy/paste. Selecting any text with mouse automatically copies it to the clipboard
|
||||
bind-key -T copy-mode-vi MouseDragEnd1Pane send-keys -X copy-pipe-and-cancel "xsel -i -p -b"
|
||||
bind-key p run "xsel -o | tmux load-buffer - ; tmux paste-buffer"
|
||||
bind -n C-S-v run "xsel -o | tmux load-buffer - ; tmux paste-buffer"
|
||||
bind-key C-S-v run "xsel -o | tmux load-buffer - ; tmux paste-buffer"
|
||||
bind-key p run "xsel -o | tmux load-buffer - ; tmux paste-buffer"
|
||||
bind -n C-S-v run "xsel -o | tmux load-buffer - ; tmux paste-buffer"
|
||||
bind-key C-S-v run "xsel -o | tmux load-buffer - ; tmux paste-buffer"
|
||||
|
||||
bind Escape copy-mode
|
||||
set-window-option -g xterm-keys on
|
||||
bind-key q kill-window
|
||||
bind-key x kill-pane
|
||||
|
||||
bind-key / set-option -g status
|
||||
|
||||
set -g status-interval 2
|
||||
setw -g aggressive-resize on
|
||||
set-option -g base-index 1
|
||||
setw -g pane-base-index 1
|
||||
set -g renumber-windows on
|
||||
set-window-option -g automatic-rename on
|
||||
set -wg automatic-rename-format "#{s/zsh//:pane_current_command}"
|
||||
|
||||
## Status bar design
|
||||
# Status line
|
||||
set -g status-justify right
|
||||
set -g status-bg default
|
||||
|
||||
# Messaging
|
||||
set -g message-fg colour0
|
||||
set -g message-bg colour4
|
||||
set -g message-command-fg colour13
|
||||
set -g message-command-bg colour0
|
||||
|
||||
# Panes
|
||||
set -g pane-border-style bold,fg="#080808"
|
||||
set -g pane-active-border-style bold,fg="#c4a000"
|
||||
#"215d9c"
|
||||
setw -g pane-border-status bottom
|
||||
setw -g pane-border-format '─'
|
||||
|
||||
# Window notifications; display activity on other window
|
||||
set-window-option -g monitor-activity off
|
||||
set-option -g visual-activity off
|
||||
|
||||
# Window status
|
||||
bind-key t command-prompt "select-pane -T '%%'"
|
||||
bind-key , command-prompt "rename-window '%%'"
|
||||
set -g window-status-format " #{=-15:?window_name,#{window_name},#{s/deadguy/home/:?pane_current_path,#{b:pane_current_path},}} "
|
||||
set -g window-status-current-format " #{=-15:?window_name,#{window_name},#{s/deadguy/home/:?pane_current_path,#{b:pane_current_path},}} "
|
||||
set-window-option -g window-status-separator ' '
|
||||
|
||||
# Left side of status bar
|
||||
set-option -g status-left '#[fg=#725ffc]#S'
|
||||
|
||||
# Right side of status bar
|
||||
set-option -g status-right ''
|
||||
|
||||
# default window title colors
|
||||
set-window-option -g window-status-fg colour7
|
||||
|
||||
# active window title colors
|
||||
set-window-option -g window-status-current-fg colour3
|
||||
set-window-option -g window-status-current-attr bright
|
||||
|
||||
# Reload conf file
|
||||
bind r source-file ~/.tmux.conf \; display-message ' reloaded '
|
||||
# Toggle the status bar
|
||||
bind-key / set-option -g status
|
||||
|
||||
# Better mouse support
|
||||
set -g @prevent-scroll-for-fullscreen-alternate-buffer 'on'
|
||||
set -g @scroll-speed-num-lines-per-scroll '3'
|
||||
run-shell ~/bin/tmux-better-mouse-mode/scroll_copy_mode.tmux
|
||||
run-shell ~/bin/tmux-better-mouse-mode/scroll_copy_mode.tmux
|
||||
|
||||
# vim: set ft=tmux:
|
|
@ -1,47 +0,0 @@
|
|||
#
|
||||
# weechat -- alias.conf
|
||||
#
|
||||
# WARNING: It is NOT recommended to edit this file by hand,
|
||||
# especially if WeeChat is running.
|
||||
#
|
||||
# Use /set or similar command to change settings in WeeChat.
|
||||
#
|
||||
# For more info, see: https://weechat.org/doc/quickstart
|
||||
#
|
||||
|
||||
[cmd]
|
||||
AAWAY = "allserv /away"
|
||||
AME = "allchan /me"
|
||||
AMSG = "allchan /msg *"
|
||||
ANICK = "allserv /nick"
|
||||
BEEP = "print -beep"
|
||||
C = "buffer clear"
|
||||
CHAT = "dcc chat"
|
||||
CL = "buffer clear"
|
||||
CLOSE = "buffer close"
|
||||
EXIT = "quit"
|
||||
IG = "ignore"
|
||||
J = "join"
|
||||
K = "kick"
|
||||
KB = "kickban"
|
||||
LEAVE = "part;buffer close"
|
||||
M = "msg"
|
||||
MSGBUF = "command -buffer $1 * /input send $2-"
|
||||
MUB = "unban *"
|
||||
N = "names"
|
||||
out = "part;buffer close"
|
||||
Q = "quit"
|
||||
REDRAW = "window refresh"
|
||||
SAY = "msg *"
|
||||
T = "topic"
|
||||
UB = "unban"
|
||||
UMODE = "mode $nick"
|
||||
V = "command core version"
|
||||
W = "who"
|
||||
WC = "window merge"
|
||||
WI = "whois"
|
||||
WII = "whois $1 $1"
|
||||
WW = "whowas"
|
||||
|
||||
[completion]
|
||||
MSGBUF = "%(buffers_plugins_names)"
|
|
@ -1,80 +0,0 @@
|
|||
#
|
||||
# weechat -- buffers.conf
|
||||
#
|
||||
# WARNING: It is NOT recommended to edit this file by hand,
|
||||
# especially if WeeChat is running.
|
||||
#
|
||||
# Use /set or similar command to change settings in WeeChat.
|
||||
#
|
||||
# For more info, see: https://weechat.org/doc/quickstart
|
||||
#
|
||||
|
||||
[color]
|
||||
current_bg = default
|
||||
current_fg = yellow
|
||||
default_bg = default
|
||||
default_fg = default
|
||||
hotlist_highlight_bg = default
|
||||
hotlist_highlight_fg = lightred
|
||||
hotlist_low_bg = default
|
||||
hotlist_low_fg = black
|
||||
hotlist_message_bg = default
|
||||
hotlist_message_fg = lightblue
|
||||
hotlist_private_bg = default
|
||||
hotlist_private_fg = lightgreen
|
||||
none_channel_bg = default
|
||||
none_channel_fg = default
|
||||
number = white
|
||||
number_char = lightgreen
|
||||
prefix_bufname = default
|
||||
queries_default_bg = default
|
||||
queries_default_fg = default
|
||||
queries_highlight_bg = default
|
||||
queries_highlight_fg = default
|
||||
queries_message_bg = default
|
||||
queries_message_fg = default
|
||||
suffix_bufname = default
|
||||
whitelist_default_bg = 67
|
||||
whitelist_default_fg = black
|
||||
whitelist_highlight_bg = darkgray
|
||||
whitelist_highlight_fg = default
|
||||
whitelist_low_bg = darkgray
|
||||
whitelist_low_fg = default
|
||||
whitelist_message_bg = lightred
|
||||
whitelist_message_fg = default
|
||||
whitelist_private_bg = green
|
||||
whitelist_private_fg = black
|
||||
|
||||
[look]
|
||||
core_to_front = on
|
||||
detach = 0
|
||||
detach_buffer_immediately = ""
|
||||
detach_buffer_immediately_level = 2
|
||||
detach_display_window_number = off
|
||||
detach_displayed_buffers = off
|
||||
detach_free_content = off
|
||||
detach_query = off
|
||||
hide_merged_buffers = server
|
||||
hotlist_counter = off
|
||||
immune_detach_buffers = ""
|
||||
indenting = under_name
|
||||
indenting_amount = 2
|
||||
indenting_number = on
|
||||
jump_prev_next_visited_buffer = off
|
||||
mark_inactive = on
|
||||
mouse_move_buffer = off
|
||||
mouse_wheel = off
|
||||
name_crop_suffix = "+"
|
||||
name_size_max = 12
|
||||
number_char = " "
|
||||
prefix = off
|
||||
prefix_bufname = ""
|
||||
prefix_empty = on
|
||||
prefix_for_query = ""
|
||||
short_names = on
|
||||
show_lag = off
|
||||
show_number = off
|
||||
sort = name
|
||||
suffix_bufname = ""
|
||||
toggle_bar = on
|
||||
whitelist_buffers = "server.rizon,server.freenode,server.gitter,server.slack,server.nixers"
|
|
@ -1,39 +0,0 @@
|
|||
#
|
||||
# weechat -- buflist.conf
|
||||
#
|
||||
# WARNING: It is NOT recommended to edit this file by hand,
|
||||
# especially if WeeChat is running.
|
||||
#
|
||||
# Use /set or similar command to change settings in WeeChat.
|
||||
#
|
||||
# For more info, see: https://weechat.org/doc/quickstart
|
||||
#
|
||||
|
||||
[look]
|
||||
add_newline = on
|
||||
auto_scroll = 50
|
||||
display_conditions = "${buffer.hidden}==0"
|
||||
enabled = on
|
||||
mouse_jump_visited_buffer = off
|
||||
mouse_move_buffer = off
|
||||
mouse_wheel = off
|
||||
nick_prefix = off
|
||||
nick_prefix_empty = on
|
||||
signals_refresh = ""
|
||||
sort = "number"
|
||||
|
||||
[format]
|
||||
buffer = "${color_hotlist}${format_number}${if:${buffer.name}=~^server?${if:${buffer.prev_buffer.number}==${buffer.number}?├:┬}:${if:${type}==channel||${type}==private?: }}${indent}${color_hotlist}${format_nick_prefix}${cut:15,…,${name}} ${hotlist}"
|
||||
buffer_current = "${format_number}${if:${type}==server?${color:brown,default}:${color:cyan,default}}${if:${buffer.name}=~^server?${if:${buffer.prev_buffer.number}==${buffer.number}?├:┬}:${if:${type}==channel||${type}==private?: }}${indent}${color_hotlist}${format_nick_prefix}${cut:15,…,${name}} ${hotlist}"
|
||||
hotlist = " ${color:244}${hotlist}${color:244}"
|
||||
hotlist_highlight = "${color:163}"
|
||||
hotlist_low = "${color:white}"
|
||||
hotlist_message = "${color:229}"
|
||||
hotlist_none = "${if:${type}==server?${color:white}:${color:cyan}}"
|
||||
hotlist_private = "${color:121}"
|
||||
hotlist_separator = "${color:default},"
|
||||
indent = "${color:brown}${if:${merged}?${if:${buffer.prev_buffer.number}!=${buffer.number}?│┌:${if:${buffer.next_buffer.number}==${buffer.number}?│├:${if:${buffer.next_buffer.name}=~^server||${buffer.next_buffer.number}<0?└┴:├┴}}}:${if:${buffer.active}>0?${if:${buffer.next_buffer.name}=~^server?└:${if:${buffer.next_buffer.number}>0?├:└}}:${if:${buffer.next_buffer.name}=~^server? :│}}}─"
|
||||
lag = " ${color:green}[${color:brown}${lag}${color:green}]"
|
||||
name = "${if:${type}==server?${color:white}:${color_hotlist}}${if:${type}==server||${type}==channel||${type}==private?${if:${cutscr:12,+,${name}}!=${name}?${cutscr:12,${color:${weechat.color.chat_prefix_more}}+,${if:${type}==server&&${info:irc_server_isupport_value,${name},NETWORK}?${info:irc_server_isupport_value,${name},NETWORK}:${name}}}:${cutscr:12, ,${if:${type}==server&&${info:irc_server_isupport_value,${name},NETWORK}?${info:irc_server_isupport_value,${name},NETWORK} :${name} }}}:${name}}"
|
||||
nick_prefix = "${color_nick_prefix} ${nick_prefix}"
|
||||
number = "${if:${type}==server?${color:black,31}:${color:244}}${number}${if:${number_displayed}?.: }"
|
|
@ -1,975 +0,0 @@
|
|||
#
|
||||
# weechat -- weechat.conf
|
||||
#
|
||||
# WARNING: It is NOT recommended to edit this file by hand,
|
||||
# especially if WeeChat is running.
|
||||
#
|
||||
# Use /set or similar command to change settings in WeeChat.
|
||||
#
|
||||
# For more info, see: https://weechat.org/doc/quickstart
|
||||
#
|
||||
|
||||
[debug]
|
||||
|
||||
[startup]
|
||||
command_after_plugins = ""
|
||||
command_before_plugins = ""
|
||||
display_logo = off
|
||||
display_version = on
|
||||
sys_rlimit = ""
|
||||
|
||||
[look]
|
||||
align_end_of_lines = message
|
||||
align_multiline_words = on
|
||||
bar_more_down = " [+] "
|
||||
bar_more_left = "◀"
|
||||
bar_more_right = "▶"
|
||||
bar_more_up = " [-] "
|
||||
bare_display_exit_on_input = on
|
||||
bare_display_time_format = "%H:%M"
|
||||
buffer_auto_renumber = on
|
||||
buffer_notify_default = message
|
||||
buffer_position = end
|
||||
buffer_search_case_sensitive = off
|
||||
buffer_search_force_default = off
|
||||
buffer_search_regex = off
|
||||
buffer_search_where = prefix_message
|
||||
buffer_time_format = ""
|
||||
color_basic_force_bold = off
|
||||
color_inactive_buffer = off
|
||||
color_inactive_message = on
|
||||
color_inactive_prefix = on
|
||||
color_inactive_prefix_buffer = on
|
||||
color_inactive_time = on
|
||||
color_inactive_window = off
|
||||
color_nick_offline = off
|
||||
color_pairs_auto_reset = 5
|
||||
color_real_white = off
|
||||
command_chars = ""
|
||||
command_incomplete = off
|
||||
confirm_quit = off
|
||||
confirm_upgrade = off
|
||||
day_change = on
|
||||
day_change_message_1date = " ├───────────────────┄┄┄┄ ${eval:${color:*cyan}} %A %d de %B %Y ${eval:${color:brown}} ┄┄┄┄─────────────────── "
|
||||
day_change_message_2dates = " ├─┄┄ %%a %%d %%b %%Y (%a %d %b %Y) ─┄┄ "
|
||||
eat_newline_glitch = off
|
||||
emphasized_attributes = "*"
|
||||
highlight = ""
|
||||
highlight_regex = ""
|
||||
highlight_tags = ""
|
||||
hotlist_add_conditions = "${away} || ${buffer} != ${window.buffer}"
|
||||
hotlist_buffer_separator = ", "
|
||||
hotlist_count_max = 4
|
||||
hotlist_count_min_msg = 2
|
||||
hotlist_names_count = 10
|
||||
hotlist_names_length = 0
|
||||
hotlist_names_level = 12
|
||||
hotlist_names_merged_buffers = off
|
||||
hotlist_prefix = ""
|
||||
hotlist_remove = merged
|
||||
hotlist_short_names = on
|
||||
hotlist_sort = group_time_asc
|
||||
hotlist_suffix = ""
|
||||
hotlist_unique_numbers = on
|
||||
input_cursor_scroll = 20
|
||||
input_share = all
|
||||
input_share_overwrite = off
|
||||
input_undo_max = 32
|
||||
item_away_message = on
|
||||
item_buffer_filter = "⚑"
|
||||
item_buffer_zoom = "!"
|
||||
item_mouse_status = "M"
|
||||
item_time_format = "%H:%M"
|
||||
jump_current_to_previous_buffer = on
|
||||
jump_previous_buffer_when_closing = on
|
||||
jump_smart_back_to_buffer = on
|
||||
key_bind_safe = on
|
||||
key_grab_delay = 800
|
||||
mouse = on
|
||||
mouse_timer_delay = 100
|
||||
nick_color_force = ""
|
||||
nick_color_hash = djb2
|
||||
nick_color_stop_chars = "_|["
|
||||
nick_prefix = ""
|
||||
nick_suffix = " │"
|
||||
paste_auto_add_newline = on
|
||||
paste_bracketed = off
|
||||
paste_bracketed_timer_delay = 10
|
||||
paste_max_lines = 1
|
||||
prefix_action = " ╞══"
|
||||
prefix_align = right
|
||||
prefix_align_max = 14
|
||||
prefix_align_min = 14
|
||||
prefix_align_more = "+"
|
||||
prefix_align_more_after = off
|
||||
prefix_buffer_align = right
|
||||
prefix_buffer_align_max = 11
|
||||
prefix_buffer_align_more = "+"
|
||||
prefix_buffer_align_more_after = off
|
||||
prefix_error = "┄┼┄"
|
||||
prefix_join = " ├─┄┄"
|
||||
prefix_network = "╎"
|
||||
prefix_quit = " ┄┄─┤"
|
||||
prefix_same_nick = " │"
|
||||
prefix_suffix = ""
|
||||
quote_nick_prefix = "❝"
|
||||
quote_nick_suffix = "❞"
|
||||
quote_time_format = "%H:%M"
|
||||
read_marker = none
|
||||
read_marker_always_show = off
|
||||
read_marker_string = "⋯"
|
||||
save_config_on_exit = on
|
||||
save_config_with_fsync = off
|
||||
save_layout_on_exit = all
|
||||
scroll_amount = 3
|
||||
scroll_bottom_after_switch = off
|
||||
scroll_page_percent = 100
|
||||
search_text_not_found_alert = on
|
||||
separator_horizontal = "─"
|
||||
separator_vertical = "│"
|
||||
tab_width = 1
|
||||
time_format = "%a, %d %b %Y %T"
|
||||
window_auto_zoom = off
|
||||
window_separator_horizontal = on
|
||||
window_separator_vertical = on
|
||||
window_title = "WeeChat ${info:version}"
|
||||
word_chars_highlight = "!\u00A0,-,_,|,alnum"
|
||||
word_chars_input = "!\u00A0,-,_,|,alnum"
|
||||
|
||||
[palette]
|
||||
100 = "100"
|
||||
101 = "101"
|
||||
102 = "102"
|
||||
103 = "103"
|
||||
104 = "104"
|
||||
105 = "105"
|
||||
106 = "106"
|
||||
107 = "107"
|
||||
108 = "108"
|
||||
109 = "109"
|
||||
110 = "110"
|
||||
111 = "111"
|
||||
112 = "112"
|
||||
113 = "113"
|
||||
114 = "114"
|
||||
115 = "115"
|
||||
116 = "116"
|
||||
117 = "117"
|
||||
118 = "118"
|
||||
119 = "119"
|
||||
120 = "120"
|
||||
121 = "121"
|
||||
122 = "122"
|
||||
123 = "123"
|
||||
124 = "124"
|
||||
125 = "125"
|
||||
126 = "126"
|
||||
127 = "127"
|
||||
128 = "128"
|
||||
129 = "129"
|
||||
130 = "130"
|
||||
131 = "131"
|
||||
132 = "132"
|
||||
133 = "133"
|
||||
134 = "134"
|
||||
135 = "135"
|
||||
136 = "136"
|
||||
137 = "137"
|
||||
138 = "138"
|
||||
139 = "139"
|
||||
140 = "140"
|
||||
141 = "141"
|
||||
142 = "142"
|
||||
143 = "143"
|
||||
144 = "144"
|
||||
145 = "145"
|
||||
146 = "146"
|
||||
147 = "147"
|
||||
148 = "148"
|
||||
149 = "149"
|
||||
150 = "150"
|
||||
151 = "151"
|
||||
152 = "152"
|
||||
153 = "153"
|
||||
154 = "154"
|
||||
155 = "155"
|
||||
156 = "156"
|
||||
157 = "157"
|
||||
158 = "158"
|
||||
159 = "159"
|
||||
160 = "160"
|
||||
161 = "161"
|
||||
162 = "162"
|
||||
163 = "163"
|
||||
164 = "164"
|
||||
165 = "165"
|
||||
166 = "166"
|
||||
167 = "167"
|
||||
168 = "168"
|
||||
169 = "169"
|
||||
17 = "17"
|
||||
170 = "170"
|
||||
171 = "171"
|
||||
172 = "172"
|
||||
173 = "173"
|
||||
174 = "174"
|
||||
175 = "175"
|
||||
176 = "176"
|
||||
177 = "177"
|
||||
178 = "178"
|
||||
179 = "179"
|
||||
18 = "18"
|
||||
180 = "180"
|
||||
181 = "181"
|
||||
182 = "182"
|
||||
183 = "183"
|
||||
184 = "184"
|
||||
185 = "185"
|
||||
186 = "186"
|
||||
187 = "187"
|
||||
188 = "188"
|
||||
189 = "189"
|
||||
19 = "19"
|
||||
190 = "190"
|
||||
191 = "191"
|
||||
192 = "192"
|
||||
193 = "193"
|
||||
194 = "194"
|
||||
195 = "195"
|
||||
196 = "196"
|
||||
197 = "197"
|
||||
198 = "198"
|
||||
199 = "199"
|
||||
20 = "20"
|
||||
200 = "200"
|
||||
201 = "201"
|
||||
202 = "202"
|
||||
203 = "203"
|
||||
204 = "204"
|
||||
205 = "205"
|
||||
206 = "206"
|
||||
207 = "207"
|
||||
208 = "208"
|
||||
209 = "209"
|
||||
21 = "21"
|
||||
210 = "210"
|
||||
211 = "211"
|
||||
212 = "212"
|
||||
213 = "213"
|
||||
214 = "214"
|
||||
215 = "215"
|
||||
216 = "216"
|
||||
217 = "217"
|
||||
218 = "218"
|
||||
219 = "219"
|
||||
22 = "22"
|
||||
220 = "220"
|
||||
221 = "221"
|
||||
222 = "222"
|
||||
223 = "223"
|
||||
224 = "224"
|
||||
225 = "225"
|
||||
226 = "226"
|
||||
227 = "227"
|
||||
228 = "228"
|
||||
229 = "229"
|
||||
23 = "23"
|
||||
230 = "230"
|
||||
231 = "231"
|
||||
232 = "232"
|
||||
233 = "233"
|
||||
234 = "234"
|
||||
235 = "235"
|
||||
236 = "236"
|
||||
237 = "237"
|
||||
238 = "238"
|
||||
239 = "239"
|
||||
24 = "24"
|
||||
240 = "240"
|
||||
241 = "241"
|
||||
242 = "242"
|
||||
243 = "243"
|
||||
244 = "244"
|
||||
245 = "245"
|
||||
246 = "246"
|
||||
247 = "247"
|
||||
248 = "248"
|
||||
249 = "249"
|
||||
25 = "25"
|
||||
250 = "250"
|
||||
251 = "251"
|
||||
252 = "252"
|
||||
253 = "253"
|
||||
254 = "254"
|
||||
255 = "255"
|
||||
256 = "256"
|
||||
26 = "26"
|
||||
27 = "27"
|
||||
28 = "28"
|
||||
29 = "29"
|
||||
30 = "30"
|
||||
31 = "31"
|
||||
32 = "32"
|
||||
33 = "33"
|
||||
34 = "34"
|
||||
35 = "35"
|
||||
36 = "36"
|
||||
37 = "37"
|
||||
38 = "38"
|
||||
39 = "39"
|
||||
40 = "40"
|
||||
41 = "41"
|
||||
42 = "42"
|
||||
43 = "43"
|
||||
44 = "44"
|
||||
45 = "45"
|
||||
46 = "46"
|
||||
47 = "47"
|
||||
48 = "48"
|
||||
49 = "49"
|
||||
50 = "50"
|
||||
51 = "51"
|
||||
52 = "52"
|
||||
53 = "53"
|
||||
54 = "54"
|
||||
55 = "55"
|
||||
56 = "56"
|
||||
57 = "57"
|
||||
58 = "58"
|
||||
59 = "59"
|
||||
60 = "60"
|
||||
61 = "61"
|
||||
62 = "62"
|
||||
63 = "63"
|
||||
64 = "64"
|
||||
65 = "65"
|
||||
66 = "66"
|
||||
67 = "67"
|
||||
68 = "68"
|
||||
69 = "69"
|
||||
70 = "70"
|
||||
71 = "71"
|
||||
72 = "72"
|
||||
73 = "73"
|
||||
74 = "74"
|
||||
75 = "75"
|
||||
76 = "76"
|
||||
77 = "77"
|
||||
78 = "78"
|
||||
79 = "79"
|
||||
80 = "80"
|
||||
81 = "81"
|
||||
82 = "82"
|
||||
83 = "83"
|
||||
84 = "84"
|
||||
85 = "85"
|
||||
86 = "86"
|
||||
87 = "87"
|
||||
88 = "88"
|
||||
89 = "89"
|
||||
90 = "90"
|
||||
91 = "91"
|
||||
92 = "92"
|
||||
93 = "93"
|
||||
94 = "94"
|
||||
95 = "95"
|
||||
96 = "96"
|
||||
97 = "97"
|
||||
98 = "98"
|
||||
99 = "99"
|
||||
|
||||
[color]
|
||||
bar_more = lightmagenta
|
||||
chat = default
|
||||
chat_bg = default
|
||||
chat_buffer = white
|
||||
chat_channel = blue
|
||||
chat_day_change = brown
|
||||
chat_delimiters = brown
|
||||
chat_highlight = yellow
|
||||
chat_highlight_bg = default
|
||||
chat_host = lightcyan
|
||||
chat_inactive_buffer = darkgray
|
||||
chat_inactive_window = darkgray
|
||||
chat_nick = lightcyan
|
||||
chat_nick_colors = "cyan,magenta,green,lightblue,default,lightcyan,lightmagenta,lightgreen,blue,31,35,38,40,49,63,70,80,92,99,112,126,130,138,142,148,160,162,167,169,174,176,178,184,186,210,212,215,247"
|
||||
chat_nick_offline = darkgray
|
||||
chat_nick_offline_highlight = default
|
||||
chat_nick_offline_highlight_bg = blue
|
||||
chat_nick_other = cyan
|
||||
chat_nick_prefix = brown
|
||||
chat_nick_self = *gray
|
||||
chat_nick_suffix = brown
|
||||
chat_prefix_action = brown
|
||||
chat_prefix_buffer = brown
|
||||
chat_prefix_buffer_inactive_buffer = default
|
||||
chat_prefix_error = yellow
|
||||
chat_prefix_join = lightgreen
|
||||
chat_prefix_more = lightmagenta
|
||||
chat_prefix_network = magenta
|
||||
chat_prefix_quit = lightred
|
||||
chat_prefix_suffix = brown
|
||||
chat_read_marker = magenta
|
||||
chat_read_marker_bg = default
|
||||
chat_server = brown
|
||||
chat_tags = red
|
||||
chat_text_found = yellow
|
||||
chat_text_found_bg = lightmagenta
|
||||
chat_time = default
|
||||
chat_time_delimiters = default
|
||||
chat_value = cyan
|
||||
chat_value_null = blue
|
||||
emphasized = yellow
|
||||
emphasized_bg = magenta
|
||||
input_actions = lightgreen
|
||||
input_text_not_found = red
|
||||
item_away = yellow
|
||||
nicklist_away = cyan
|
||||
nicklist_group = green
|
||||
separator = black
|
||||
status_count_highlight = magenta
|
||||
status_count_msg = lightblue
|
||||
status_count_other = default
|
||||
status_count_private = green
|
||||
status_data_highlight = lightmagenta
|
||||
status_data_msg = yellow
|
||||
status_data_other = default
|
||||
status_data_private = lightgreen
|
||||
status_filter = green
|
||||
status_more = yellow
|
||||
status_mouse = green
|
||||
status_name = white
|
||||
status_name_ssl = lightgreen
|
||||
status_nicklist_count = default
|
||||
status_number = yellow
|
||||
status_time = default
|
||||
|
||||
[completion]
|
||||
base_word_until_cursor = on
|
||||
command_inline = on
|
||||
default_template = "%(nicks)|%(irc_channels)"
|
||||
nick_add_space = on
|
||||
nick_case_sensitive = off
|
||||
nick_completer = ":"
|
||||
nick_first_only = off
|
||||
nick_ignore_chars = "^`"
|
||||
partial_completion_alert = on
|
||||
partial_completion_command = on
|
||||
partial_completion_command_arg = on
|
||||
partial_completion_count = on
|
||||
partial_completion_other = off
|
||||
|
||||
[history]
|
||||
display_default = 5
|
||||
max_buffer_lines_minutes = 0
|
||||
max_buffer_lines_number = 4096
|
||||
max_commands = 100
|
||||
max_visited_buffers = 50
|
||||
|
||||
[proxy]
|
||||
|
||||
[network]
|
||||
connection_timeout = 60
|
||||
gnutls_ca_file = "/etc/ssl/certs/ca-certificates.crt"
|
||||
gnutls_handshake_timeout = 30
|
||||
proxy_curl = ""
|
||||
|
||||
[plugin]
|
||||
autoload = "*,!aspell,!lua,!tcl,!xfer,!logger,!guile,!javascript,!ruby"
|
||||
debug = off
|
||||
extension = ".so,.dll"
|
||||
path = "%h/plugins"
|
||||
save_config_on_unload = on
|
||||
|
||||
[bar]
|
||||
activetitle.color_bg = default
|
||||
activetitle.color_delim = brown
|
||||
activetitle.color_fg = lightgreen
|
||||
activetitle.conditions = "${active}"
|
||||
activetitle.filling_left_right = vertical
|
||||
activetitle.filling_top_bottom = horizontal
|
||||
activetitle.hidden = on
|
||||
activetitle.items = "buffer_title"
|
||||
activetitle.position = top
|
||||
activetitle.priority = 500
|
||||
activetitle.separator = on
|
||||
activetitle.size = 1
|
||||
activetitle.size_max = 0
|
||||
activetitle.type = window
|
||||
buffers.color_bg = default
|
||||
buffers.color_delim = default
|
||||
buffers.color_fg = default
|
||||
buffers.conditions = "active"
|
||||
buffers.filling_left_right = columns_vertical
|
||||
buffers.filling_top_bottom = horizontal
|
||||
buffers.hidden = on
|
||||
buffers.items = "buffers"
|
||||
buffers.position = top
|
||||
buffers.priority = 0
|
||||
buffers.separator = on
|
||||
buffers.size = 0
|
||||
buffers.size_max = 25
|
||||
buffers.type = root
|
||||
buflist.color_bg = default
|
||||
buflist.color_delim = default
|
||||
buflist.color_fg = default
|
||||
buflist.conditions = ""
|
||||
buflist.filling_left_right = vertical
|
||||
buflist.filling_top_bottom = horizontal
|
||||
buflist.hidden = off
|
||||
buflist.items = "buflist"
|
||||
buflist.position = right
|
||||
buflist.priority = 0
|
||||
buflist.separator = on
|
||||
buflist.size = 25
|
||||
buflist.size_max = 25
|
||||
buflist.type = root
|
||||
fset.color_bg = default
|
||||
fset.color_delim = cyan
|
||||
fset.color_fg = default
|
||||
fset.conditions = "${buffer.full_name} == fset.fset"
|
||||
fset.filling_left_right = vertical
|
||||
fset.filling_top_bottom = horizontal
|
||||
fset.hidden = off
|
||||
fset.items = "fset"
|
||||
fset.position = top
|
||||
fset.priority = 0
|
||||
fset.separator = on
|
||||
fset.size = 3
|
||||
fset.size_max = 3
|
||||
fset.type = window
|
||||
input.color_bg = default
|
||||
input.color_delim = brown
|
||||
input.color_fg = white
|
||||
input.conditions = ""
|
||||
input.filling_left_right = vertical
|
||||
input.filling_top_bottom = horizontal
|
||||
input.hidden = off
|
||||
input.items = "[input_search],[input_paste], └──┄┄ input_text,[vi_buffer]"
|
||||
input.position = bottom
|
||||
input.priority = 500
|
||||
input.separator = off
|
||||
input.size = 0
|
||||
input.size_max = 3
|
||||
input.type = root
|
||||
isetbar.color_bg = default
|
||||
isetbar.color_delim = cyan
|
||||
isetbar.color_fg = default
|
||||
isetbar.conditions = ""
|
||||
isetbar.filling_left_right = vertical
|
||||
isetbar.filling_top_bottom = horizontal
|
||||
isetbar.hidden = on
|
||||
isetbar.items = "isetbar_help"
|
||||
isetbar.position = top
|
||||
isetbar.priority = 0
|
||||
isetbar.separator = on
|
||||
isetbar.size = 3
|
||||
isetbar.size_max = 3
|
||||
isetbar.type = window
|
||||
nicklist.color_bg = default
|
||||
nicklist.color_delim = cyan
|
||||
nicklist.color_fg = default
|
||||
nicklist.conditions = "${nicklist} && ${window.number} == 1"
|
||||
nicklist.filling_left_right = vertical
|
||||
nicklist.filling_top_bottom = columns_vertical
|
||||
nicklist.hidden = on
|
||||
nicklist.items = "buffer_nicklist"
|
||||
nicklist.position = right
|
||||
nicklist.priority = 200
|
||||
nicklist.separator = on
|
||||
nicklist.size = 15
|
||||
nicklist.size_max = 15
|
||||
nicklist.type = window
|
||||
spacer.color_bg = default
|
||||
spacer.color_delim = black
|
||||
spacer.color_fg = black
|
||||
spacer.conditions = "active"
|
||||
spacer.filling_left_right = vertical
|
||||
spacer.filling_top_bottom = horizontal
|
||||
spacer.hidden = on
|
||||
spacer.items = "+ +irc_channel+ (+buffer_plugin+)"
|
||||
spacer.position = top
|
||||
spacer.priority = 1500
|
||||
spacer.separator = off
|
||||
spacer.size = 0
|
||||
spacer.size_max = 0
|
||||
spacer.type = window
|
||||
spacer2.color_bg = default
|
||||
spacer2.color_delim = default
|
||||
spacer2.color_fg = default
|
||||
spacer2.conditions = ""
|
||||
spacer2.filling_left_right = vertical
|
||||
spacer2.filling_top_bottom = horizontal
|
||||
spacer2.hidden = on
|
||||
spacer2.items = "+ +"
|
||||
spacer2.position = top
|
||||
spacer2.priority = 0
|
||||
spacer2.separator = off
|
||||
spacer2.size = 0
|
||||
spacer2.size_max = 0
|
||||
spacer2.type = window
|
||||
status.color_bg = default
|
||||
status.color_delim = brown
|
||||
status.color_fg = lightblue
|
||||
status.conditions = "${active} && ${nicklist}"
|
||||
status.filling_left_right = columns_vertical
|
||||
status.filling_top_bottom = horizontal
|
||||
status.hidden = off
|
||||
status.items = " ┌─┄┄─────┘ [time],buffer_number+:+buffer_count+ +buffer_name+ +(buffer_nicklist_count),irc_nick_modes+ +buffer_modes+,scroll"
|
||||
status.position = bottom
|
||||
status.priority = 400
|
||||
status.separator = off
|
||||
status.size = 0
|
||||
status.size_max = 0
|
||||
status.type = root
|
||||
title.color_bg = black
|
||||
title.color_delim = black
|
||||
title.color_fg = lightblue
|
||||
title.conditions = "${inactive}"
|
||||
title.filling_left_right = vertical
|
||||
title.filling_top_bottom = horizontal
|
||||
title.hidden = off
|
||||
title.items = "buffer_number,buffer_name,| hotlist,| lag,| completion,| scroll"
|
||||
title.position = top
|
||||
title.priority = 600
|
||||
title.separator = on
|
||||
title.size = 1
|
||||
title.size_max = 0
|
||||
title.type = window
|
||||
|
||||
[layout]
|
||||
highlight.buffer = "core;weechat;1"
|
||||
highlight.buffer = "perl;iset;2"
|
||||
highlight.window = "1;0;0;0;perl;iset"
|
||||
highlight.current = on
|
||||
|
||||
[notify]
|
||||
|
||||
[filter]
|
||||
irc_smart = on;*;irc_smart_filter;*
|
||||
irc_join_names = on;*;irc_366,irc_332,irc_333,irc_329,irc_324;*
|
||||
E420 = on;irc.freenode.#weechat;nick_E420;*
|
||||
|
||||
[key]
|
||||
ctrl-? = "/input delete_previous_char"
|
||||
ctrl-A = "/input move_beginning_of_line"
|
||||
ctrl-B = "/input move_previous_char"
|
||||
ctrl-C_ = "/input insert \x1F"
|
||||
ctrl-Cb = "/input insert \x02"
|
||||
ctrl-Cc = "/input insert \x03"
|
||||
ctrl-Ci = "/input insert \x1D"
|
||||
ctrl-Co = "/input insert \x0F"
|
||||
ctrl-Cv = "/input insert \x16"
|
||||
ctrl-D = "/input delete_next_char"
|
||||
ctrl-E = "/input move_end_of_line"
|
||||
ctrl-F = "/input move_next_char"
|
||||
ctrl-H = "/input delete_previous_char"
|
||||
ctrl-I = "/input complete_next"
|
||||
ctrl-J = "/input return"
|
||||
ctrl-K = "/input delete_end_of_line"
|
||||
ctrl-L = "/window refresh"
|
||||
ctrl-M = "/input return"
|
||||
ctrl-N = "/buffer +1"
|
||||
ctrl-P = "/buffer -1"
|
||||
ctrl-R = "/input search_text_here"
|
||||
ctrl-Sctrl-U = "/input set_unread"
|
||||
ctrl-T = "/input transpose_chars"
|
||||
ctrl-U = "/input delete_beginning_of_line"
|
||||
ctrl-W = "/input delete_previous_word"
|
||||
ctrl-X = "/input switch_active_buffer"
|
||||
ctrl-Y = "/input clipboard_paste"
|
||||
meta-meta-OP = "/bar scroll buflist * b"
|
||||
meta-meta-OQ = "/bar scroll buflist * e"
|
||||
meta-meta2-1~ = "/window scroll_top"
|
||||
meta-meta2-23~ = "/bar scroll nicklist * b"
|
||||
meta-meta2-24~ = "/bar scroll nicklist * e"
|
||||
meta-meta2-4~ = "/window scroll_bottom"
|
||||
meta-meta2-5~ = "/window scroll_up"
|
||||
meta-meta2-6~ = "/window scroll_down"
|
||||
meta-meta2-7~ = "/window scroll_top"
|
||||
meta-meta2-8~ = "/window scroll_bottom"
|
||||
meta-meta2-A = "/buffer -1"
|
||||
meta-meta2-B = "/buffer +1"
|
||||
meta-meta2-C = "/buffer +1"
|
||||
meta-meta2-D = "/buffer -1"
|
||||
meta-- = "/filter toggle @"
|
||||
meta-/ = "/input jump_last_buffer_displayed"
|
||||
meta-0 = "/buffer *10"
|
||||
meta-1 = "/buffer *1"
|
||||
meta-2 = "/buffer *2"
|
||||
meta-3 = "/buffer *3"
|
||||
meta-4 = "/buffer *4"
|
||||
meta-5 = "/buffer *5"
|
||||
meta-6 = "/buffer *6"
|
||||
meta-7 = "/buffer *7"
|
||||
meta-8 = "/buffer *8"
|
||||
meta-9 = "/buffer *9"
|
||||
meta-< = "/input jump_previously_visited_buffer"
|
||||
meta-= = "/filter toggle"
|
||||
meta-> = "/input jump_next_visited_buffer"
|
||||
meta-OA = "/input history_global_previous"
|
||||
meta-OB = "/input history_global_next"
|
||||
meta-OC = "/input move_next_word"
|
||||
meta-OD = "/input move_previous_word"
|
||||
meta-OF = "/input move_end_of_line"
|
||||
meta-OH = "/input move_beginning_of_line"
|
||||
meta-OP = "/bar scroll buflist * -100%"
|
||||
meta-OQ = "/bar scroll buflist * +100%"
|
||||
meta-Oa = "/input history_global_previous"
|
||||
meta-Ob = "/input history_global_next"
|
||||
meta-Oc = "/input move_next_word"
|
||||
meta-Od = "/input move_previous_word"
|
||||
meta2-15~ = "/buffer -1"
|
||||
meta2-17~ = "/buffer +1"
|
||||
meta2-18~ = "/window -1"
|
||||
meta2-19~ = "/window +1"
|
||||
meta2-1;3A = "/buffer -1"
|
||||
meta2-1;3B = "/buffer +1"
|
||||
meta2-1;3C = "/buffer +1"
|
||||
meta2-1;3D = "/buffer -1"
|
||||
meta2-1;3F = "/window scroll_bottom"
|
||||
meta2-1;3H = "/window scroll_top"
|
||||
meta2-1;5A = "/input history_global_previous"
|
||||
meta2-1;5B = "/input history_global_next"
|
||||
meta2-1;5C = "/input move_next_word"
|
||||
meta2-1;5D = "/input move_previous_word"
|
||||
meta2-1~ = "/input move_beginning_of_line"
|
||||
meta2-200~ = "/input paste_start"
|
||||
meta2-201~ = "/input paste_stop"
|
||||
meta2-20~ = "/bar scroll title * -30%"
|
||||
meta2-21~ = "/bar scroll title * +30%"
|
||||
meta2-23;3~ = "/bar scroll nicklist * b"
|
||||
meta2-23~ = "/bar scroll nicklist * -100%"
|
||||
meta2-24;3~ = "/bar scroll nicklist * e"
|
||||
meta2-24~ = "/bar scroll nicklist * +100%"
|
||||
meta2-3~ = "/input delete_next_char"
|
||||
meta2-4~ = "/input move_end_of_line"
|
||||
meta2-5;3~ = "/window scroll_up"
|
||||
meta2-5~ = "/window page_up"
|
||||
meta2-6;3~ = "/window scroll_down"
|
||||
meta2-6~ = "/window page_down"
|
||||
meta2-7~ = "/input move_beginning_of_line"
|
||||
meta2-8~ = "/input move_end_of_line"
|
||||
meta2-A = "/input history_previous"
|
||||
meta2-B = "/input history_next"
|
||||
meta2-C = "/input move_next_char"
|
||||
meta2-D = "/input move_previous_char"
|
||||
meta2-F = "/input move_end_of_line"
|
||||
meta2-G = "/window page_down"
|
||||
meta2-H = "/input move_beginning_of_line"
|
||||
meta2-I = "/window page_up"
|
||||
meta2-Z = "/input complete_previous"
|
||||
meta2-[E = "/buffer -1"
|
||||
meta-_ = "/input redo"
|
||||
meta-a = "/input jump_smart"
|
||||
meta-b = "/input move_previous_word"
|
||||
meta-d = "/input delete_next_word"
|
||||
meta-f = "/input move_next_word"
|
||||
meta-g = "/go"
|
||||
meta-h = "/input hotlist_clear"
|
||||
meta-jmeta-f = "/buffer -"
|
||||
meta-jmeta-l = "/buffer +"
|
||||
meta-jmeta-r = "/server raw"
|
||||
meta-jmeta-s = "/server jump"
|
||||
meta-j01 = "/buffer *1"
|
||||
meta-j02 = "/buffer *2"
|
||||
meta-j03 = "/buffer *3"
|
||||
meta-j04 = "/buffer *4"
|
||||
meta-j05 = "/buffer *5"
|
||||
meta-j06 = "/buffer *6"
|
||||
meta-j07 = "/buffer *7"
|
||||
meta-j08 = "/buffer *8"
|
||||
meta-j09 = "/buffer *9"
|
||||
meta-j10 = "/buffer *10"
|
||||
meta-j11 = "/buffer *11"
|
||||
meta-j12 = "/buffer *12"
|
||||
meta-j13 = "/buffer *13"
|
||||
meta-j14 = "/buffer *14"
|
||||
meta-j15 = "/buffer *15"
|
||||
meta-j16 = "/buffer *16"
|
||||
meta-j17 = "/buffer *17"
|
||||
meta-j18 = "/buffer *18"
|
||||
meta-j19 = "/buffer *19"
|
||||
meta-j20 = "/buffer *20"
|
||||
meta-j21 = "/buffer *21"
|
||||
meta-j22 = "/buffer *22"
|
||||
meta-j23 = "/buffer *23"
|
||||
meta-j24 = "/buffer *24"
|
||||
meta-j25 = "/buffer *25"
|
||||
meta-j26 = "/buffer *26"
|
||||
meta-j27 = "/buffer *27"
|
||||
meta-j28 = "/buffer *28"
|
||||
meta-j29 = "/buffer *29"
|
||||
meta-j30 = "/buffer *30"
|
||||
meta-j31 = "/buffer *31"
|
||||
meta-j32 = "/buffer *32"
|
||||
meta-j33 = "/buffer *33"
|
||||
meta-j34 = "/buffer *34"
|
||||
meta-j35 = "/buffer *35"
|
||||
meta-j36 = "/buffer *36"
|
||||
meta-j37 = "/buffer *37"
|
||||
meta-j38 = "/buffer *38"
|
||||
meta-j39 = "/buffer *39"
|
||||
meta-j40 = "/buffer *40"
|
||||
meta-j41 = "/buffer *41"
|
||||
meta-j42 = "/buffer *42"
|
||||
meta-j43 = "/buffer *43"
|
||||
meta-j44 = "/buffer *44"
|
||||
meta-j45 = "/buffer *45"
|
||||
meta-j46 = "/buffer *46"
|
||||
meta-j47 = "/buffer *47"
|
||||
meta-j48 = "/buffer *48"
|
||||
meta-j49 = "/buffer *49"
|
||||
meta-j50 = "/buffer *50"
|
||||
meta-j51 = "/buffer *51"
|
||||
meta-j52 = "/buffer *52"
|
||||
meta-j53 = "/buffer *53"
|
||||
meta-j54 = "/buffer *54"
|
||||
meta-j55 = "/buffer *55"
|
||||
meta-j56 = "/buffer *56"
|
||||
meta-j57 = "/buffer *57"
|
||||
meta-j58 = "/buffer *58"
|
||||
meta-j59 = "/buffer *59"
|
||||
meta-j60 = "/buffer *60"
|
||||
meta-j61 = "/buffer *61"
|
||||
meta-j62 = "/buffer *62"
|
||||
meta-j63 = "/buffer *63"
|
||||
meta-j64 = "/buffer *64"
|
||||
meta-j65 = "/buffer *65"
|
||||
meta-j66 = "/buffer *66"
|
||||
meta-j67 = "/buffer *67"
|
||||
meta-j68 = "/buffer *68"
|
||||
meta-j69 = "/buffer *69"
|
||||
meta-j70 = "/buffer *70"
|
||||
meta-j71 = "/buffer *71"
|
||||
meta-j72 = "/buffer *72"
|
||||
meta-j73 = "/buffer *73"
|
||||
meta-j74 = "/buffer *74"
|
||||
meta-j75 = "/buffer *75"
|
||||
meta-j76 = "/buffer *76"
|
||||
meta-j77 = "/buffer *77"
|
||||
meta-j78 = "/buffer *78"
|
||||
meta-j79 = "/buffer *79"
|
||||
meta-j80 = "/buffer *80"
|
||||
meta-j81 = "/buffer *81"
|
||||
meta-j82 = "/buffer *82"
|
||||
meta-j83 = "/buffer *83"
|
||||
meta-j84 = "/buffer *84"
|
||||
meta-j85 = "/buffer *85"
|
||||
meta-j86 = "/buffer *86"
|
||||
meta-j87 = "/buffer *87"
|
||||
meta-j88 = "/buffer *88"
|
||||
meta-j89 = "/buffer *89"
|
||||
meta-j90 = "/buffer *90"
|
||||
meta-j91 = "/buffer *91"
|
||||
meta-j92 = "/buffer *92"
|
||||
meta-j93 = "/buffer *93"
|
||||
meta-j94 = "/buffer *94"
|
||||
meta-j95 = "/buffer *95"
|
||||
meta-j96 = "/buffer *96"
|
||||
meta-j97 = "/buffer *97"
|
||||
meta-j98 = "/buffer *98"
|
||||
meta-j99 = "/buffer *99"
|
||||
meta-k = "/input grab_key_command"
|
||||
meta-l = "/window bare"
|
||||
meta-m = "/mute mouse toggle"
|
||||
meta-n = "/bar toggle nicklist"
|
||||
meta-p = "/window scroll_previous_highlight"
|
||||
meta-r = "/input delete_line"
|
||||
meta-s = "/mute aspell toggle"
|
||||
meta-u = "/window scroll_unread"
|
||||
meta-wmeta-meta2-A = "/window up"
|
||||
meta-wmeta-meta2-B = "/window down"
|
||||
meta-wmeta-meta2-C = "/window right"
|
||||
meta-wmeta-meta2-D = "/window left"
|
||||
meta-wmeta2-1;3A = "/window up"
|
||||
meta-wmeta2-1;3B = "/window down"
|
||||
meta-wmeta2-1;3C = "/window right"
|
||||
meta-wmeta2-1;3D = "/window left"
|
||||
meta-wmeta-b = "/window balance"
|
||||
meta-wmeta-s = "/window swap"
|
||||
meta-x = "/input zoom_merged_buffer"
|
||||
meta-z = "/window zoom"
|
||||
ctrl-_ = "/input undo"
|
||||
|
||||
[key_search]
|
||||
ctrl-I = "/input search_switch_where"
|
||||
ctrl-J = "/input search_stop_here"
|
||||
ctrl-M = "/input search_stop_here"
|
||||
ctrl-Q = "/input search_stop"
|
||||
ctrl-R = "/input search_switch_regex"
|
||||
meta2-A = "/input search_previous"
|
||||
meta2-B = "/input search_next"
|
||||
meta-c = "/input search_switch_case"
|
||||
|
||||
[key_cursor]
|
||||
ctrl-J = "/cursor stop"
|
||||
ctrl-M = "/cursor stop"
|
||||
meta-meta2-A = "/cursor move area_up"
|
||||
meta-meta2-B = "/cursor move area_down"
|
||||
meta-meta2-C = "/cursor move area_right"
|
||||
meta-meta2-D = "/cursor move area_left"
|
||||
meta2-1;3A = "/cursor move area_up"
|
||||
meta2-1;3B = "/cursor move area_down"
|
||||
meta2-1;3C = "/cursor move area_right"
|
||||
meta2-1;3D = "/cursor move area_left"
|
||||
meta2-A = "/cursor move up"
|
||||
meta2-B = "/cursor move down"
|
||||
meta2-C = "/cursor move right"
|
||||
meta2-D = "/cursor move left"
|
||||
@item(buffer_nicklist):K = "/window ${_window_number};/kickban ${nick}"
|
||||
@item(buffer_nicklist):b = "/window ${_window_number};/ban ${nick}"
|
||||
@item(buffer_nicklist):k = "/window ${_window_number};/kick ${nick}"
|
||||
@item(buffer_nicklist):q = "/window ${_window_number};/query ${nick};/cursor stop"
|
||||
@item(buffer_nicklist):w = "/window ${_window_number};/whois ${nick}"
|
||||
@chat:Q = "hsignal:chat_quote_time_prefix_message;/cursor stop"
|
||||
@chat:m = "hsignal:chat_quote_message;/cursor stop"
|
||||
@chat:q = "hsignal:chat_quote_prefix_message;/cursor stop"
|
||||
|
||||
[key_mouse]
|
||||
@bar(buffers):ctrl-wheeldown = "hsignal:buffers_mouse"
|
||||
@bar(buffers):ctrl-wheelup = "hsignal:buffers_mouse"
|
||||
@bar(buflist):ctrl-wheeldown = "hsignal:buflist_mouse"
|
||||
@bar(buflist):ctrl-wheelup = "hsignal:buflist_mouse"
|
||||
@bar(input):button2 = "/input grab_mouse_area"
|
||||
@bar(nicklist):button1-gesture-down = "/bar scroll nicklist ${_window_number} +100%"
|
||||
@bar(nicklist):button1-gesture-down-long = "/bar scroll nicklist ${_window_number} e"
|
||||
@bar(nicklist):button1-gesture-up = "/bar scroll nicklist ${_window_number} -100%"
|
||||
@bar(nicklist):button1-gesture-up-long = "/bar scroll nicklist ${_window_number} b"
|
||||
@chat(fset.fset):button1 = "/window ${_window_number};/fset -go ${_chat_line_y}"
|
||||
@chat(fset.fset):button2* = "hsignal:fset_mouse"
|
||||
@chat(fset.fset):wheeldown = "/fset -down 5"
|
||||
@chat(fset.fset):wheelup = "/fset -up 5"
|
||||
@chat(perl.iset):button1 = "hsignal:iset_mouse"
|
||||
@chat(perl.iset):button2* = "hsignal:iset_mouse"
|
||||
@chat(perl.iset):wheeldown = "/repeat 5 /iset **down"
|
||||
@chat(perl.iset):wheelup = "/repeat 5 /iset **up"
|
||||
@chat(script.scripts):button1 = "/window ${_window_number};/script go ${_chat_line_y}"
|
||||
@chat(script.scripts):button2 = "/window ${_window_number};/script go ${_chat_line_y};/script installremove -q ${script_name_with_extension}"
|
||||
@chat(script.scripts):wheeldown = "/script down 5"
|
||||
@chat(script.scripts):wheelup = "/script up 5"
|
||||
@item(buffer_nicklist):button1 = "/window ${_window_number};/query ${nick}"
|
||||
@item(buffer_nicklist):button1-gesture-left = "/window ${_window_number};/kick ${nick}"
|
||||
@item(buffer_nicklist):button1-gesture-left-long = "/window ${_window_number};/kickban ${nick}"
|
||||
@item(buffer_nicklist):button2 = "/window ${_window_number};/whois ${nick}"
|
||||
@item(buffer_nicklist):button2-gesture-left = "/window ${_window_number};/ban ${nick}"
|
||||
@item(buffers):button1* = "hsignal:buffers_mouse"
|
||||
@item(buffers):button2* = "hsignal:buffers_mouse"
|
||||
@item(buflist):button1* = "hsignal:buflist_mouse"
|
||||
@item(buflist):button2* = "hsignal:buflist_mouse"
|
||||
@item(buflist2):button1* = "hsignal:buflist_mouse"
|
||||
@item(buflist2):button2* = "hsignal:buflist_mouse"
|
||||
@item(buflist3):button1* = "hsignal:buflist_mouse"
|
||||
@item(buflist3):button2* = "hsignal:buflist_mouse"
|
||||
@bar:wheeldown = "/bar scroll ${_bar_name} ${_window_number} +20%"
|
||||
@bar:wheelup = "/bar scroll ${_bar_name} ${_window_number} -20%"
|
||||
@chat:button1 = "/window ${_window_number}"
|
||||
@chat:button1-gesture-left = "/window ${_window_number};/buffer -1"
|
||||
@chat:button1-gesture-left-long = "/window ${_window_number};/buffer 1"
|
||||
@chat:button1-gesture-right = "/window ${_window_number};/buffer +1"
|
||||
@chat:button1-gesture-right-long = "/window ${_window_number};/input jump_last_buffer"
|
||||
@chat:ctrl-wheeldown = "/window scroll_horiz -window ${_window_number} +10%"
|
||||
@chat:ctrl-wheelup = "/window scroll_horiz -window ${_window_number} -10%"
|
||||
@chat:wheeldown = "/window scroll_down -window ${_window_number}"
|
||||
@chat:wheelup = "/window scroll_up -window ${_window_number}"
|
||||
@*:button3 = "/cursor go ${_x},${_y}"
|
1
.xinitrc
1
.xinitrc
|
@ -18,6 +18,7 @@ xset s noexpose &
|
|||
|
||||
setxkbmap -option caps:escape
|
||||
wmname LG3D &
|
||||
gnome-keyring-daemon --start --components=pkcs11 &
|
||||
/usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1 &
|
||||
sxhkd &
|
||||
xfce4-power-manager &
|
||||
|
|
572
.zshrc
572
.zshrc
|
@ -9,42 +9,63 @@ export CLIBROWSER="links"
|
|||
export GREP_COLOR="0;32"
|
||||
export PULSEMIXER_BAR_STYLE="┌╶┐╴└┘▮ ◆┆"
|
||||
export RANGER_LOAD_DEFAULT_RC="FALSE"
|
||||
|
||||
source ~/.config/zsh/rc/transmission.zsh
|
||||
source /etc/icons-in-terminal/icons_bash.sh
|
||||
# }}}
|
||||
|
||||
# Zsh addons {{{
|
||||
autoload -Uz compinit
|
||||
autoload -Uz colors
|
||||
zmodload zsh/complist
|
||||
compinit
|
||||
colors
|
||||
autoload -Uz zcalc
|
||||
autoload -Uz run-help
|
||||
autoload -Uz run-help-git
|
||||
# Zplugin {{{
|
||||
### Added by Zplugin's installer
|
||||
source '/home/deadguy/.zplugin/bin/zplugin.zsh'
|
||||
autoload -Uz _zplugin
|
||||
(( ${+_comps} )) && _comps[zplugin]=_zplugin
|
||||
### End of Zplugin's installer chunk
|
||||
|
||||
autoload -Uz surround
|
||||
zle -N delete-surround surround
|
||||
zle -N add-surround surround
|
||||
zle -N change-surround surround
|
||||
bindkey -a cs change-surround
|
||||
bindkey -a ds delete-surround
|
||||
bindkey -a ys add-surround
|
||||
bindkey -M visual S add-surround
|
||||
zplugin load djui/alias-tips
|
||||
zplugin load peterhurford/up.zsh
|
||||
zplugin load hlissner/zsh-autopair
|
||||
zplugin ice as"program" pick"$ZPFX/bin/git-*" make"PREFIX=$ZPFX" nocompile'!'
|
||||
zplugin light tj/git-extras
|
||||
|
||||
autoload -U select-bracketed
|
||||
autoload -U select-quoted
|
||||
zle -N select-quoted
|
||||
zle -N select-bracketed
|
||||
zplugin ice pick"bin/git-dsf" as"program"
|
||||
zplugin light zdharma/zsh-diff-so-fancy
|
||||
|
||||
# Zcalc stuff
|
||||
function __calc_plugin {
|
||||
zcalc -e "$*"
|
||||
zplugin ice pick"c.zsh" atclone"dircolors -b LS_COLORS > c.zsh" atpull"%atclone"
|
||||
zplugin light trapd00r/LS_COLORS
|
||||
# }}}
|
||||
|
||||
# Prompt {{{
|
||||
setopt promptsubst
|
||||
zplugin ice pick"async.zsh" src"pure.zsh"; zplugin light sindresorhus/pure
|
||||
PURE_CMD_MAX_EXEC_TIME=1000000
|
||||
VIM_PROMPT=">"
|
||||
prompt_newline='%666v'
|
||||
PROMPT=' %(?.%B%F{green}.%B%F{red})${VIM_PROMPT}%b%f '
|
||||
#PROMPT='%(?.%B%F{green}.%B%F{red}>%B%F{green})${VIM_PROMPT}%b%f '
|
||||
prompt_pure_update_vim_prompt() {
|
||||
zle || {
|
||||
print "error: pure_update_vim_prompt must be called when zle is active"
|
||||
return 1
|
||||
}
|
||||
VIM_PROMPT=${${KEYMAP/vicmd/<}/(main|viins)/>}
|
||||
zle .reset-prompt
|
||||
}
|
||||
aliases[calc]='noglob __calc_plugin'
|
||||
aliases[=]='noglob __calc_plugin'
|
||||
#}}}
|
||||
|
||||
function zle-line-init zle-keymap-select {
|
||||
prompt_pure_update_vim_prompt
|
||||
}
|
||||
export KEYTIMEOUT=1
|
||||
zle -N zle-line-init
|
||||
zle -N zle-keymap-select
|
||||
# }}}
|
||||
|
||||
# History Highlight Hooha {{{
|
||||
# Load all my stuff, sometimes i feel like zplugin is too convoluted
|
||||
zplugin ice atinit'local i; for i in *.zsh; do source $i; done'; zpl light ~/.config/zsh
|
||||
|
||||
zplugin ice wait"0" blockf lucid
|
||||
zplugin light zsh-users/zsh-completions
|
||||
zplugin ice wait"0" lucid atinit"zpcompinit; zpcdreplay"
|
||||
zplugin light zdharma/fast-syntax-highlighting
|
||||
zplugin load zsh-users/zsh-history-substring-search
|
||||
# }}}
|
||||
|
||||
# Completion styles {{{
|
||||
zstyle :compinstall filename '/home/deadguy/.zshrc'
|
||||
|
@ -61,7 +82,7 @@ zstyle ':completion:*:correct:*' original true
|
|||
zstyle ':completion:*' list-colors ${(s.:.)LS_COLORS}
|
||||
zstyle ':completion:*' format $'\n%BCompleting %F{magenta}%d%f%b'
|
||||
zstyle ':completion:*:descriptions' format '%F{yellow}%B--- %d%b --- %f'
|
||||
zstyle ':completion:*' matcher-list 'm:{[:lower:]}={[:upper:]} m:{[:lower:][:upper:]}={[:upper:][:lower:]}' 'm:{[:lower:]}={[:upper:]} m:{[:lower:][:upper:]}={[:upper:][:lower:]} l:|=* r:|=*' 'm:{[:lower:]}={[:upper:]} m:{[:lower:][:upper:]}={[:upper:][:lower:]} l:|=* r:|=*' 'm:{[:lower:]}={[:upper:]} m:{[:lower:][:upper:]}={[:upper:][:lower:]} l:|=* r:|=*'
|
||||
zstyle ':completion:*' matcher-list 'm:{[:lower:]}={[:upper:]} m:{[:lower:][:upper:]}={[:upper:][:lower:]}' 'm:{[:lower:]}={[:upper:]} m:{[:lower:][:upper:]}={[:upper:][:lower:]} l:|=* r:|=*'
|
||||
zstyle ':completion:*:matches' group 'yes'
|
||||
zstyle ':completion:*' group-name ''
|
||||
zstyle ':completion:*:messages' format ' %F{magenta} -- %d --%f'
|
||||
|
@ -70,7 +91,6 @@ zstyle ':completion:*:options' description 'yes'
|
|||
zstyle ':completion:*:processes' command 'ps -au $USER -o pid,stat,%cpu,%mem,cputime,command'
|
||||
zstyle ':completion:*:killall:*' command 'ps -u $USER -o pid,%cpu,tty,cputime,cmd'
|
||||
zstyle ':completion:*' verbose true
|
||||
zstyle ':completion:*:-command-:*:' verbose false
|
||||
zstyle ':completion:*:warnings' format 'No matches for: %B%F{cyan}%d%f%b'
|
||||
zstyle ':completion::(^approximate*):*:functions' ignored-patterns '_*'
|
||||
zstyle ':completion:*:processes-names' command 'ps c -u ${USER} -o command | uniq'
|
||||
|
@ -84,11 +104,10 @@ zstyle ':completion:*:commands' list-colors '=*=1;32'
|
|||
zstyle ':completion:*:builtins' list-colors '=*=1;38;5;142'
|
||||
zstyle ':completion:*:aliases' list-colors '=*=2;38;5;120'
|
||||
zstyle ':completion:*:options' list-colors '=^(-- *)=34'
|
||||
zstyle ':completion:*:*:kill:*:processes' list-colors '=(#b) #([0-9]#) ([0-9a-z-]#)*=01;36=0=01'
|
||||
zstyle ':completion:*:*:kill:*:processes' list-colors '=(#b) #([0-9]#) ([0-9a-z-]#)*=01;34=0=01'
|
||||
zstyle ':completion:*:*:*:*:processes' command "ps -u `whoami` -o pid,user,comm -w -w"
|
||||
zstyle ':completion::complete:*' use-cache on
|
||||
zstyle ':completion::complete:*' cache-path "$HOME/.config/zsh/cache"
|
||||
|
||||
# do we still need these?
|
||||
zstyle ':completion::complete:*' cache-path "$HOME/.zplugin/cache"
|
||||
zstyle ':completion:*' completions 1
|
||||
zstyle ':completion:*' expand prefix suffix
|
||||
zstyle ':completion:*' file-sort modification
|
||||
|
@ -97,7 +116,7 @@ zstyle ':completion:*' list-suffixes true
|
|||
zstyle ':completion:*' list-rows-first true
|
||||
zstyle ':completion:*' match-original both
|
||||
zstyle ':completion:*' max-errors 1 numeric
|
||||
zstyle ':completion:*' old-list _complete _approximate _expand _correct
|
||||
zstyle ':completion:*' old-list _complete _approximate _expand _correct _match _prefix
|
||||
zstyle ':completion:*' old-menu false
|
||||
zstyle ':completion:*' substitute 1
|
||||
zstyle ':completion:*' word true
|
||||
|
@ -110,479 +129,22 @@ zstyle ':completion:*:*:-subscript-:*' tag-order indexes parameters
|
|||
zstyle ':completion:*:*:kill:*' menu yes select
|
||||
zstyle ':completion:*:*:kill:*' force-list always
|
||||
zstyle ':completion:*:*:kill:*' insert-ids single
|
||||
zstyle ':completion:*:cd:*' tag-order local-directories directory-stack path-directories
|
||||
zstyle ':completion:*:*:cd:*:directory-stack' force-list always
|
||||
zstyle ':completion:*:*:cd:*:directory-stack' menu yes select
|
||||
zstyle ':completion:*:*:*:*:users' list-colors '=*=$color[green]=$color[red]'
|
||||
zstyle ':completion:*:*:*:users' ignored-patterns \
|
||||
adm amanda apache avahi beaglidx bin cacti canna clamav daemon \
|
||||
dbus distcache dovecot fax ftp games gdm gkrellmd gopher \
|
||||
hacluster haldaemon halt hsqldb ident junkbust ldap lp mail \
|
||||
mailman mailnull mldonkey mysql nagios \
|
||||
named netdump news nfsnobody nobody nscd ntp nut nx openvpn \
|
||||
operator pcap postfix postgres privoxy pulse pvm quagga radvd \
|
||||
rpc rpcuser rpm shutdown squid sshd sync uucp vcsa xfs '_*'
|
||||
adm amanda apache at avahi avahi-autoipd beaglidx bin cacti canna \
|
||||
clamav daemon dbus distcache dnsmasq dovecot fax ftp games gdm \
|
||||
gkrellmd gopher hacluster haldaemon halt hsqldb ident junkbust kdm \
|
||||
ldap lp mail mailman mailnull man messagebus mldonkey mysql nagios \
|
||||
named netdump news nfsnobody nobody nscd ntp nut nx obsrun openvpn \
|
||||
operator pcap polkitd postfix postgres privoxy pulse pvm quagga radvd \
|
||||
rpc rpcuser rpm rtkit scard shutdown squid sshd statd svn sync tftp \
|
||||
usbmux uucp vcsa wwwrun xfs '_*'
|
||||
|
||||
# prompt formats
|
||||
LISTPROMPT='View all items? '
|
||||
|
||||
# prompt for correct
|
||||
SPROMPT="Correct to %r? "
|
||||
zstyle ':completion:*' list-prompt %SAt %p: Hit TAB for more, or the character to insert%s
|
||||
zstyle ':completion:*' select-prompt %SScrolling active: current selection at %p%s
|
||||
# }}}
|
||||
|
||||
# Options {{{
|
||||
export HISTIGNORE="ls:cd:cd -:pwd:exit:date:* --help"
|
||||
HISTFILE=~/.config/zsh/histfile
|
||||
HISTSIZE=10000
|
||||
SAVEHIST=50000
|
||||
|
||||
unsetopt beep
|
||||
unsetopt nomatch
|
||||
unsetopt menucomplete # show a menu instead
|
||||
unsetopt flowcontrol
|
||||
unsetopt correctall # turn off the infernal correctall for filenames
|
||||
setopt completealiases # autocompletion CLI switches for aliases
|
||||
setopt autocd
|
||||
setopt autoresume
|
||||
setopt equals # Enable "=command" feature
|
||||
setopt magic_equal_subst # Enable completion in "--option=arg"
|
||||
setopt brace_ccl # Enable brace expansion function
|
||||
setopt appendhistory # dont create the hist file over and over
|
||||
setopt hist_ignore_all_dups # If a new command is a duplicate, remove the older one
|
||||
setopt hist_reduce_blanks # remove blank spaces from history file
|
||||
setopt hist_ignore_space # Ignore add history if space
|
||||
setopt extended_history # Save time stamp
|
||||
setopt hist_expand # Expand history
|
||||
setopt inc_append_history # Share zsh histories
|
||||
setopt share_history
|
||||
setopt mark_dirs # Add "/" if completes directory
|
||||
setopt RM_STAR_WAIT # if you do a 'rm *', Zsh will give you a sanity check!
|
||||
setopt interactivecomments # bash style comments
|
||||
setopt correct # Auto correct mistakes
|
||||
setopt long_list_jobs # Better jobs
|
||||
setopt glob_complete # Expand globs when completion
|
||||
setopt extendedglob # Extended globbing
|
||||
setopt nocaseglob # Case insensitive globbing
|
||||
setopt nocheckjobs # Dont warn about running processes when exiting
|
||||
setopt numericglobsort # Sort filenames numerically when it makes sense
|
||||
setopt nohup # Dont kill processes when exiting
|
||||
setopt printeightbit # For multi byte
|
||||
setopt auto_list # List completion
|
||||
setopt auto_param_slash
|
||||
setopt auto_param_keys
|
||||
setopt auto_name_dirs
|
||||
setopt always_to_end
|
||||
setopt complete_in_word
|
||||
setopt list_types # List like "ls -F"
|
||||
setopt prompt_subst # allow expansion in prompts
|
||||
|
||||
|
||||
eval $( dircolors -b $HOME/.config/zsh/LS_COLORS )
|
||||
|
||||
HELPDIR=/usr/share/zsh/$ZSH_VERSION/help
|
||||
|
||||
COMPLETION_WAITING_DOTS="true" # if you want red dots to be displayed while waiting for completion
|
||||
|
||||
if [[ $COMPLETION_WAITING_DOTS = true ]]; then
|
||||
expand-or-complete-with-dots() {
|
||||
# toggle line-wrapping off and back on again
|
||||
[[ -n "$terminfo[rmam]" && -n "$terminfo[smam]" ]] && echoti rmam
|
||||
print -Pn "%{%F{red}......%f%}"
|
||||
[[ -n "$terminfo[rmam]" && -n "$terminfo[smam]" ]] && echoti smam
|
||||
|
||||
zle expand-or-complete
|
||||
zle redisplay
|
||||
}
|
||||
zle -N expand-or-complete-with-dots
|
||||
bindkey "^I" expand-or-complete-with-dots
|
||||
fi
|
||||
# }}}
|
||||
|
||||
# Vi mode and keys {{{
|
||||
bindkey -v
|
||||
|
||||
# Fix backspace not working after returning from cmd mode
|
||||
bindkey '^?' backward-delete-char
|
||||
bindkey '^h' backward-delete-char
|
||||
bindkey '^w' backward-kill-word
|
||||
|
||||
# Even more ways to search
|
||||
autoload -U up-line-or-beginning-search
|
||||
autoload -U down-line-or-beginning-search
|
||||
zle -N up-line-or-beginning-search
|
||||
zle -N down-line-or-beginning-search
|
||||
bindkey '^P' up-line-or-beginning-search
|
||||
bindkey '^N' down-line-or-beginning-search
|
||||
bindkey '^U' history-incremental-pattern-search-backward
|
||||
|
||||
# Ctrl+Y is a standard in some places, and since Ctrl+R is taken...
|
||||
bindkey -a u undo
|
||||
bindkey -a '^y' redo
|
||||
|
||||
# Beginning search with arrow keys
|
||||
if [[ "${terminfo[kcuu1]}" != "" ]]; then
|
||||
autoload -U history-substring-search-up
|
||||
zle -N history-substring-search-up
|
||||
bindkey "${terminfo[kcuu1]}" history-substring-search-up
|
||||
fi
|
||||
# start typing + [Down-Arrow] - fuzzy find history backward
|
||||
if [[ "${terminfo[kcud1]}" != "" ]]; then
|
||||
autoload -U history-substring-search-down
|
||||
zle -N history-substring-search-down
|
||||
bindkey "${terminfo[kcud1]}" history-substring-search-down
|
||||
fi
|
||||
bindkey '^[[A' history-substring-search-up
|
||||
bindkey '^[[B' history-substring-search-down
|
||||
|
||||
# file rename magick
|
||||
bindkey "^[m" copy-prev-shell-word
|
||||
|
||||
# Better searching in command mode
|
||||
bindkey -M vicmd '?' history-incremental-search-backward
|
||||
bindkey -M vicmd '/' history-incremental-search-forward
|
||||
bindkey -M vicmd 'k' history-substring-search-up
|
||||
bindkey -M vicmd 'j' history-substring-search-down
|
||||
|
||||
bindkey '^[[7~' beginning-of-line # Home key
|
||||
bindkey '^[[H' beginning-of-line # Home key
|
||||
if [[ "${terminfo[khome]}" != "" ]]; then
|
||||
bindkey "${terminfo[khome]}" beginning-of-line # [Home] - Go to beginning of line
|
||||
fi
|
||||
bindkey '^[[8~' end-of-line # End key
|
||||
bindkey '^[[F' end-of-line # End key
|
||||
if [[ "${terminfo[kend]}" != "" ]]; then
|
||||
bindkey "${terminfo[kend]}" end-of-line # [End] - Go to end of line
|
||||
fi
|
||||
bindkey '^[[2~' overwrite-mode # Insert key
|
||||
bindkey '^[[3~' delete-char # Delete key
|
||||
bindkey '^[[C' forward-char # Right key
|
||||
bindkey '^[[D' backward-char # Left key
|
||||
bindkey '^[[5~' history-beginning-search-backward # Page up key
|
||||
bindkey '^[[6~' history-beginning-search-forward # Page down key
|
||||
# }}}
|
||||
|
||||
# Assorted Alias {{{
|
||||
unalias run-help
|
||||
|
||||
# Programs
|
||||
alias gdl='gallery-dl'
|
||||
alias mutt='neomutt'
|
||||
alias rg='ranger'
|
||||
alias pmix='ncpamixer'
|
||||
alias amix='alsamixer'
|
||||
alias vi='nvim'
|
||||
alias vim='nvim'
|
||||
alias chat='irssi'
|
||||
alias play='ncmpcpp'
|
||||
alias tsrc='transmission-remote-cli'
|
||||
alias cal='calcurse'
|
||||
alias _='sudo '
|
||||
alias py='python '
|
||||
alias py2='python2 '
|
||||
alias rb='ruby '
|
||||
alias ytv='youtube-viewer'
|
||||
alias git='lab'
|
||||
alias help='run-help'
|
||||
alias p='pacui'
|
||||
alias sr='sr -browser=$CLIBROWSER' # open in cli browser
|
||||
alias surfraw='surfraw -browser=$BROWSER' # open in gui browser
|
||||
alias foxy='FoxDot & disown'
|
||||
|
||||
# MAXIMUM VERBOSITY YIELDS MAXIMUM RESULTS
|
||||
alias chmod='chmod -v'
|
||||
alias chown='chown -v'
|
||||
alias mv='mv -iv'
|
||||
alias rmdir='rmdir -v' # rm empty directory only
|
||||
alias rm='rm -iv' # Always confirm before deleting things
|
||||
alias mkdir='mkdir -pv' # Make parent directories that don't exist
|
||||
alias cp="cp -aiv" # Confirm before overwriting something
|
||||
alias ln='ln -iv'
|
||||
alias rename='rename -v'
|
||||
alias mount='mount -v | column -t'
|
||||
alias umount='umount -v'
|
||||
|
||||
# Opinionated
|
||||
alias tx='tmux -2'
|
||||
alias imv='imv -sd -e gohugohufont:11 -r'
|
||||
alias ydl='youtube-dl -ic'
|
||||
alias ls='ls -F --color=always --group-directories-first'
|
||||
alias grep='grep --color=tty -d skip'
|
||||
alias sgrep='grep -R -n -H -C 5 --exclude-dir={.git,.svn,CVS} '
|
||||
alias dmesg='dmesg --color=always'
|
||||
alias ag="ag --one-device --color --color-line-number '0;35' --color-match '46;30' --color-path '4;36'"
|
||||
alias tree='tree -CAFa -I "CVS|*.*.package|.svn|.git|.hg|node_modules|bower_components" --dirsfirst'
|
||||
alias lsblk='lsblk -o "KNAME,HOTPLUG,SIZE,FSTYPE,TYPE,LABEL,MOUNTPOINT,UUID,MODEL,SERIAL"'
|
||||
alias dir='dir --color=always'
|
||||
alias type='type -a' # See what the command you want to run points to
|
||||
alias df='df -hT --total' # Human readable, print filetype, and total
|
||||
alias free='free -ht' # Human readable and total
|
||||
alias du='du -d1 -h | sort -rh' # Human readable, max depth
|
||||
alias info='info --vi-keys' # GNU info act like man command
|
||||
alias inxi='inxi -Fz'
|
||||
alias slop='slop --highlight --tolerance=0 --color=0.3,0.4,0.6,0.4 -f '%wx%h+%x+%y''
|
||||
alias ping='ping -c 5'
|
||||
alias dd="dd status=progress"
|
||||
|
||||
# Commands
|
||||
alias svi="sudo nvim"
|
||||
alias pacmir='sudo pacman-mirrors -f5'
|
||||
alias tis='tig status'
|
||||
alias til='tig log'
|
||||
alias tib='tig blame -C'
|
||||
alias fuck='sudo pacman -Rns'
|
||||
alias upd='trizen -Syu'
|
||||
alias ytw='youtube-viewer -C -D -W -f -7 --results=10'
|
||||
alias hoy='calcurse -a --format-apt=" - %m (%S a %E)\n" --format-recur-apt=" - %m (%S a %E)\n"'
|
||||
alias week='calcurse -r7 --format-apt=" - %m (%S a %E)\n" --format-recur-apt=" - %m (%S a %E)\n"'
|
||||
alias todo='calcurse -t --format-todo "(%p) %m\n"'
|
||||
alias winclass='xprop | grep WM_CLASS' # for bspwm rules
|
||||
alias path='echo -e ${PATH//:/\\n}' # Pretty-print of some PATH variables
|
||||
alias compare='grep -nFxvf' # Usage: compare <file1> <file2>
|
||||
alias pwn='chmod +x'
|
||||
alias ta='tmux attach -t'
|
||||
alias tnw='tmux new -s'
|
||||
alias tls='tmux ls'
|
||||
alias tk='tmux kill-session -t'
|
||||
alias lst='ls -FAghoBtH --group-directories-first --dereference-command-line-symlink-to-dir --time-style=+"%d-%m-%Y %H:%M"'
|
||||
alias java='java -Dawt.useSystemAAFontSettings=on -Dswing.aatext=true -Dswing.defaultlaf=com.sun.java.swing.plaf.gtk.GTKLookAndFeel'
|
||||
alias disks='echo "╓───── m o u n t . p o i n t s"; echo "╙────────────────────────────────────── ─ ─ "; lsblk -a; echo ""; echo "╓───── d i s k . u s a g e"; echo "╙────────────────────────────────────── ─ ─ "; df -h;'
|
||||
# }}}
|
||||
|
||||
# Dotfiles {{{
|
||||
alias hexa='/usr/bin/git --git-dir=$HOME/hexagons/ --work-tree=$HOME'
|
||||
alias hx-up='hexa add -vu'
|
||||
alias hx-ls='hexa ls-files -m'
|
||||
alias hx-diff='hexa diff'
|
||||
alias hx-push='hexa push'
|
||||
alias hx-stat='hexa status'
|
||||
|
||||
hx-add() { hexa add -v "$@" ;}
|
||||
hx-rm() { hexa rm --cached "$@" ;}
|
||||
hx-commit() { hexa commit -m "$@" ;}
|
||||
# }}}
|
||||
|
||||
# Video {{{
|
||||
ytl() { youtube-viewer -n $@ ;}
|
||||
mp3() { youtube-dl -icw --no-cache-dir --no-call-home --restrict-filenames --extract-audio --audio-format mp3 --audio-quality 0 --prefer-ffmpeg -o "%(title)s.%(ext)s" $@ ;}
|
||||
2mp3() { youtube-dl -icw --no-cache-dir --no-call-home --restrict-filenames -x --audio-format mp3 --audio-quality 0 --prefer-ffmpeg -o "%(title)s.%(ext)s" -f 171 "$@" ;}
|
||||
# }}}
|
||||
|
||||
# Pacman {{{
|
||||
what() { trizen -Ss "$1" ;} # package info
|
||||
show() { trizen -Si "$1" ;} # package details
|
||||
files() { pacman -Ql "$1" ;} # list files owned by package
|
||||
explicit() { sudo pacman -D --asexplicit "$@" ;} # mark package as explicitly installed
|
||||
|
||||
orphans() {
|
||||
pacman -Qdt
|
||||
echo "Press ENTER to remove these orphaned packages or CTRL+C to cancel."
|
||||
read
|
||||
sudo pacman -Rsn $(pacman -Qqdt) --noconfirm
|
||||
}
|
||||
|
||||
paclist() {
|
||||
pacman -Qqettn > ~/paketes.txt
|
||||
pacman -Qqettm > ~/paurketos.txt
|
||||
}
|
||||
|
||||
pacfix() {
|
||||
sudo rm -f /var/lib/pacman/db.lck
|
||||
sudo pacman-mirrors -f5
|
||||
sudo pacman -Syyuu
|
||||
sudo pacman -Suu
|
||||
}
|
||||
# }}}
|
||||
|
||||
# Functions and things {{{
|
||||
# Create a directory and enter it automatically
|
||||
mkcd () {
|
||||
case "$1" in
|
||||
*/..|*/../) cd -- "$1";; # that doesn't make any sense unless the directory already exists
|
||||
/*/../*) (cd "${1%/../*}/.." && mkdir -p "./${1##*/../}") && cd -- "$1";;
|
||||
/*) mkdir -p "$1" && cd "$1";;
|
||||
*/../*) (cd "./${1%/../*}/.." && mkdir -p "./${1##*/../}") && cd "./$1";;
|
||||
../*) (cd .. && mkdir -p "${1#.}") && cd "$1";;
|
||||
*) mkdir -p "./$1" && cd "./$1";;
|
||||
esac
|
||||
}
|
||||
|
||||
# Handle trash
|
||||
trash-empty() { gio trash --empty }
|
||||
trash() { gio trash -f $@ }
|
||||
trash-ls() { gio list -h trash:// }
|
||||
|
||||
# Take a screenshot
|
||||
shot() { maim -d 5 -q -u ~/Pictures/scrot/$(date +%s).png && notify-send 'Screen captured' ;}
|
||||
|
||||
# Set wallpaper
|
||||
wpp() { hsetroot -fill ~/Pictures/wallpaper/$1 ;}
|
||||
|
||||
ranger() {
|
||||
if [ -z "$RANGER_LEVEL" ]; then
|
||||
/usr/bin/ranger "$@"
|
||||
else
|
||||
exit
|
||||
fi
|
||||
}
|
||||
|
||||
# Colored man pages using less as pager
|
||||
man() {
|
||||
env \
|
||||
LESS_TERMCAP_mb=$(printf "\e[1;36m") \
|
||||
LESS_TERMCAP_md=$(printf "\e[1;34m") \
|
||||
LESS_TERMCAP_me=$(printf "\e[0m") \
|
||||
LESS_TERMCAP_se=$(printf "\e[0m") \
|
||||
LESS_TERMCAP_so=$(printf "\e[1;33m") \
|
||||
LESS_TERMCAP_ue=$(printf "\e[0m") \
|
||||
LESS_TERMCAP_us=$(printf "\e[1;32m") \
|
||||
man "$@"
|
||||
}
|
||||
|
||||
# This is a workaround for tmux. When you clear the terminal with ctrl-l
|
||||
# anything on-screen is not saved (this is compatible with xterm behavior).
|
||||
# In contrast, GNU screen will first push anything on-screen into the
|
||||
# scrollback buffer before clearing the screen.
|
||||
function tmux-clear-screen() {
|
||||
for line in {1..$(( $LINES ))} ; do echo; done
|
||||
zle clear-screen
|
||||
}
|
||||
zle -N tmux-clear-screen
|
||||
bindkey "^L" tmux-clear-screen
|
||||
|
||||
[[ -e /usr/share/doc/pkgfile/command-not-found.zsh ]] && source /usr/share/doc/pkgfile/command-not-found.zsh
|
||||
# }}}
|
||||
|
||||
# Zplugin {{{
|
||||
local -A ZPLGM
|
||||
ZPLGM[BIN_DIR]="$HOME/.config/zsh/zplugin/bin"
|
||||
ZPLGM[HOME_DIR]="$HOME/.config/zsh/zplugin"
|
||||
ZPLGM[PLUGINS_DIR]="$HOME/.config/zsh/zplugin/plugins"
|
||||
ZPLGM[COMPLETIONS_DIR]="$HOME/.config/zsh/zplugin/root_completions"
|
||||
ZPLGM[SNIPPETS_DIR]="$HOME/.config/zsh/zplugin/snippets"
|
||||
|
||||
source ~/.config/zsh/zplugin/bin/zplugin.zsh
|
||||
|
||||
zplugin ice wait"2" lucid as"program" pick"bin/git-dsf"
|
||||
zplugin light zdharma/zsh-diff-so-fancy
|
||||
zplugin ice wait"2" lucid as"program" pick"$ZPFX/bin/git-alias" make"PREFIX=$ZPFX"
|
||||
zplugin light tj/git-extras
|
||||
zplugin ice wait"2" lucid as"program" atclone'perl Makefile.PL PREFIX=$ZPFX' atpull'%atclone' \
|
||||
make'install' pick"$ZPFX/bin/git-cal"
|
||||
zplugin light k4rthik/git-cal
|
||||
zplugin snippet OMZ::lib/git.zsh
|
||||
zplugin snippet OMZ::plugins/git/git.plugin.zsh
|
||||
source ~/.config/zsh/zplugin/plugins/tj---git-extras/etc/git-extras-completion.zsh
|
||||
|
||||
#export AM_UPDATE_L_PROMPT=0
|
||||
#export AM_SHOW_FULL_DIR=1
|
||||
export PROMPT_START_TAG='> '
|
||||
export PROMPT_END_TAG=''
|
||||
export PROMPT_START_TAG_COLOR=41
|
||||
export PROMPT_END_TAG_COLOR=41
|
||||
export AM_ERROR_ON_START_TAG=1
|
||||
export AM_HIDE_EXIT_CODE=1
|
||||
export AM_INITIAL_LINE_FEED=1
|
||||
export AM_THEME=terminal
|
||||
zplugin load eendroroy/alien-minimal
|
||||
|
||||
export KEYTIMEOUT=1
|
||||
|
||||
zplugin cdclear -q # <- forget completions provided up to this moment
|
||||
zplugin snippet 'https://github.com/junegunn/fzf/blob/master/shell/completion.zsh'
|
||||
zplugin snippet 'https://github.com/junegunn/fzf/blob/master/shell/key-bindings.zsh'
|
||||
zplugin light hlissner/zsh-autopair
|
||||
|
||||
zplugin load zdharma history-search-multi-word
|
||||
zstyle ":plugin:history-search-multi-word" clear-on-cancel "yes"
|
||||
zstyle ":history-search-multi-word" page-size "LINES/2"
|
||||
|
||||
zplugin light djui/alias-tips
|
||||
zplugin light peterhurford/up.zsh
|
||||
zplugin ice blockf
|
||||
zplugin light zsh-users/zsh-completions
|
||||
zplugin load zdharma/fast-syntax-highlighting
|
||||
zplugin load zsh-users/zsh-history-substring-search
|
||||
# }}}
|
||||
|
||||
# FZF {{{
|
||||
export FZF_DEFAULT_OPTS='
|
||||
--extended
|
||||
--height 40%
|
||||
--reverse
|
||||
--ansi
|
||||
--color fg:-1,bg:-1,hl:33,fg+:254,bg+:235,hl+:33
|
||||
--color info:136,prompt:136,pointer:230,marker:230,spinner:166
|
||||
'
|
||||
|
||||
export FZF_COMPLETION_OPTS='+c -x'
|
||||
export FZF_DEFAULT_COMMAND='ag -l -g ""'
|
||||
|
||||
_fzf_compgen_path() {
|
||||
fd --hidden --follow --exclude ".git" . "$1"
|
||||
}
|
||||
|
||||
_fzf_compgen_dir() {
|
||||
fd --type d --hidden --follow --exclude ".git" . "$1"
|
||||
}
|
||||
|
||||
export FZF_CTRL_T_COMMAND="$FZF_DEFAULT_COMMAND"
|
||||
export FZF_CTRL_T_OPTS="--select-1 --exit-0 --preview '(highlight -O ansi -l {} 2> /dev/null || cat {} || tree -C {}) 2> /dev/null | head -200'"
|
||||
export FZF_CTRL_R_OPTS="--preview 'echo {}' --preview-window down:3:hidden:wrap --bind '?:toggle-preview'"
|
||||
export FZF_ALT_C_OPTS="--select-1 --exit-0 --preview 'tree -C {} | head -200'"
|
||||
|
||||
command -v tree > /dev/null && export FZF_ALT_C_OPTS="--preview 'tree -C {} | head -$LINES'"
|
||||
|
||||
# vf - fuzzy open with vim from anywhere
|
||||
vf() {
|
||||
local files
|
||||
files=(${(f)"$(locate -Ai -0 $@ | grep -z -vE '~$' | fzf --read0 -0 -1 -m)"})
|
||||
|
||||
if [[ -n $files ]]
|
||||
then
|
||||
nvim -- $files
|
||||
print -l $files[1]
|
||||
fi
|
||||
}
|
||||
|
||||
# fkill - kill process using fzf.
|
||||
function fkill {
|
||||
local pid
|
||||
pid=$( pstree -T -p -a | fzf -e -m -i +s --reverse --margin=4%,1%,1%,2% --inline-info --header="TAB to (un)select. ENTER to kill selected process(es). ESC or CTRL+C to quit." --prompt='Enter string to filter list of processes > ' | awk -F ',' '{print $NF}' | awk '{print $1}' )
|
||||
|
||||
if [ "x$pid" != "x" ]
|
||||
then
|
||||
echo "$pid" | xargs kill -${1:-9}
|
||||
fi
|
||||
}
|
||||
# }}}
|
||||
|
||||
# Recolor fast-syntax-highlighting {{{
|
||||
FAST_HIGHLIGHT_STYLES[default]="fg=252"
|
||||
FAST_HIGHLIGHT_STYLES[unknown-token]="fg=254,bold,bg=126"
|
||||
FAST_HIGHLIGHT_STYLES[reserved-word]="fg=yellow,bold"
|
||||
FAST_HIGHLIGHT_STYLES[alias]="fg=green,bold"
|
||||
FAST_HIGHLIGHT_STYLES[suffix-alias]="fg=green"
|
||||
FAST_HIGHLIGHT_STYLES[builtin]="fg=107,bold"
|
||||
FAST_HIGHLIGHT_STYLES[function]="fg=84,bold"
|
||||
FAST_HIGHLIGHT_STYLES[command]="fg=105,bold"
|
||||
FAST_HIGHLIGHT_STYLES[precommand]="none"
|
||||
FAST_HIGHLIGHT_STYLES[commandseparator]="fg=blue"
|
||||
FAST_HIGHLIGHT_STYLES[hashed-command]="fg=70"
|
||||
FAST_HIGHLIGHT_STYLES[path]="fg=33,underline"
|
||||
FAST_HIGHLIGHT_STYLES[path_pathseparator]=""
|
||||
FAST_HIGHLIGHT_STYLES[globbing]="fg=green,bold"
|
||||
FAST_HIGHLIGHT_STYLES[history-expansion]="fg=192"
|
||||
FAST_HIGHLIGHT_STYLES[single-hyphen-option]="fg=cyan"
|
||||
FAST_HIGHLIGHT_STYLES[double-hyphen-option]="fg cyan"
|
||||
FAST_HIGHLIGHT_STYLES[back-quoted-argument]="220,bold"
|
||||
FAST_HIGHLIGHT_STYLES[single-quoted-argument]="fg=138"
|
||||
FAST_HIGHLIGHT_STYLES[double-quoted-argument]="fg=138"
|
||||
FAST_HIGHLIGHT_STYLES[dollar-quoted-argument]="fg=148"
|
||||
FAST_HIGHLIGHT_STYLES[back-or-dollar-double-quoted-argument]="fg=172,bold"
|
||||
FAST_HIGHLIGHT_STYLES[back-dollar-quoted-argument]="fg=244"
|
||||
FAST_HIGHLIGHT_STYLES[assign]="243,bold"
|
||||
FAST_HIGHLIGHT_STYLES[redirection]="none"
|
||||
FAST_HIGHLIGHT_STYLES[comment]="fg=55,bold"
|
||||
FAST_HIGHLIGHT_STYLES[variable]="fg=magenta"
|
||||
#}}}
|
||||
|
||||
# vim:foldmethod=marker:foldlevel=0
|
1
bin/cfg
1
bin/cfg
|
@ -2,7 +2,6 @@
|
|||
|
||||
case $1 in
|
||||
vi) $EDITOR ~/.config/nvim/init.vim ;;
|
||||
ob) sudo -e $EDITOR /etc/oblogout.conf ;;
|
||||
start) $EDITOR ~/.config/bspwm/autostart ;;
|
||||
wm) $EDITOR ~/.config/bspwm/bspwmrc ;;
|
||||
keys) $EDITOR ~/.config/sxhkd/sxhkdrc ;;
|
||||
|
|
|
@ -1,10 +1,10 @@
|
|||
#!/bin/bash
|
||||
|
||||
pidof python -m FoxDot || {
|
||||
pkill -9 -f scsynth\ -u\ 57110\ -a\ 144\ -i\ 16\ -o\ 16\ -b\ 65536\ -n\ 32768\ -m\ 131072\ -S\ 44100\ -R\ 0\ -C\ 0\ -l\ 1
|
||||
pkill -9 -f scsynth\ -u\ 57110\ -a\ 116\ -i\ 2\ -o\ 2\ -b\ 65536\ -n\ 32768\ -m\ 131072\ -S\ 44100\ -R\ 0\ -C\ 0\ -l\ 1
|
||||
pkill -9 -f sclang\ -D\ /home/deadguy/Music/LiveCoding/foxy.scd
|
||||
sleep 3s
|
||||
tmux kill-session -t livecode
|
||||
tmux kill-session -t "Livecode ~Ar"
|
||||
}
|
||||
|
||||
#pidof python -m FoxDot 2> /dev/null
|
||||
|
|
|
@ -19,15 +19,41 @@ dunst() {
|
|||
|
||||
dunst stop
|
||||
|
||||
# lock colors
|
||||
c0='#00000000' # clear
|
||||
#c1='#000000ff' # black
|
||||
c2='#007c0000'
|
||||
c3='#af000000'
|
||||
c4='#af0000ff'
|
||||
c5='#00d70000'
|
||||
c6='#9c060600'
|
||||
c7='#eeeeec00'
|
||||
c8='#eeeeecff'
|
||||
c9='#12121200'
|
||||
cA='#c4a000ff'
|
||||
|
||||
# Fork both i3lock and its monitor to avoid blocking xautolock.
|
||||
i3lock \
|
||||
--radius=98 --ring-width=3.8 --indpos="684:353" \
|
||||
--image=/home/deadguy/Pictures/maralock.png --color=000000 \
|
||||
--insidevercolor=007c0000 --insidewrongcolor=af000000 --insidecolor=00000000 \
|
||||
--ringvercolor=00d70000 --ringwrongcolor=9c060600 --ringcolor=eeeeec00 \
|
||||
--verifcolor=eeeeecff --wrongcolor=af0000ff --linecolor=eeeeec00 \
|
||||
--separatorcolor=12121200 --keyhlcolor=eeeeecff --bshlcolor=c4a000ff \
|
||||
--veriftext="0x0D.7" --wrongtext="005917" --ignore-empty-password --nofork &
|
||||
-i ~/Pictures/maralock.png \
|
||||
--insidevercolor=$c2 \
|
||||
--insidewrongcolor=$c3 \
|
||||
--insidecolor=$c0 \
|
||||
--ringvercolor=$c5 \
|
||||
--ringwrongcolor=$c6 \
|
||||
--ringcolor=$c7 \
|
||||
--verifcolor=$c8 \
|
||||
--wrongcolor=$c4 \
|
||||
--linecolor=$c7 \
|
||||
--separatorcolor=$c9 \
|
||||
--keyhlcolor=$c8 \
|
||||
--bshlcolor=$cA \
|
||||
--radius 98 \
|
||||
--ring-width 3.8 \
|
||||
--indpos="684:353" \
|
||||
--veriftext="0x0D.7" \
|
||||
--wrongtext="005917" \
|
||||
--ignore-empty-password \
|
||||
--nofork &
|
||||
|
||||
pid="$!"
|
||||
while 2>/dev/null kill -0 "$pid"; do
|
||||
|
|
17
bin/livecode
17
bin/livecode
|
@ -2,29 +2,32 @@
|
|||
|
||||
set -euf -o pipefail
|
||||
|
||||
session="livecode"
|
||||
session="Livecode ~Ar"
|
||||
|
||||
# set up tmux
|
||||
tmux -2 start-server
|
||||
|
||||
# create a new tmux session
|
||||
tmux new-session -d -s $session
|
||||
tmux new-session -d -s "$session"
|
||||
|
||||
# Select pane 1, start scsynth
|
||||
tmux selectp -t 1
|
||||
tmux send-keys "scsynth -u 57110" C-m
|
||||
sleep 3s
|
||||
|
||||
# Split pane 1 horizontal by 50%, start sclang
|
||||
tmux splitw -v -p 50
|
||||
# Split pane 1 vertical by 50%, start sclang
|
||||
tmux splitw -h -p 50
|
||||
tmux send-keys "sclang -D ~/Music/LiveCoding/foxy.scd" C-m
|
||||
|
||||
sleep 5s
|
||||
|
||||
# Create new window, launch foxdot
|
||||
tmux new-window -t $session:2
|
||||
tmux new-window -t "$session":2
|
||||
tmux selectp -t 1
|
||||
tmux send-keys "FoxDot" C-m
|
||||
tmux send-keys "foxy" C-m
|
||||
|
||||
# Switch back to the log window
|
||||
tmux select-window -t :1
|
||||
|
||||
# Attach to the session
|
||||
tmux attach-session -t $session
|
||||
tmux attach-session -t "$session"
|
Reference in New Issue