@echo off | |
SET st3Path=C:\Program Files\Sublime Text 3\sublime_text.exe | |
rem add it for all file types | |
@reg add "HKEY_CLASSES_ROOT\*\shell\Open with Sublime Text 3" /t REG_SZ /v "" /d "Open with Sublime Text 3" /f | |
@reg add "HKEY_CLASSES_ROOT\*\shell\Open with Sublime Text 3" /t REG_EXPAND_SZ /v "Icon" /d "%st3Path%,0" /f | |
@reg add "HKEY_CLASSES_ROOT\*\shell\Open with Sublime Text 3\command" /t REG_SZ /v "" /d "%st3Path% \"%%1\"" /f | |
rem add it for folders | |
@reg add "HKEY_CLASSES_ROOT\Folder\shell\Open with Sublime Text 3" /t REG_SZ /v "" /d "Open with Sublime Text 3" /f |
#!/bin/sh | |
# | |
# cmus-status-display | |
# | |
# Usage: | |
# in cmus command ":set status_display_program=cmus-status-display" | |
# | |
# This scripts is executed by cmus when status changes: | |
# cmus-status-display key1 val1 key2 val2 ... | |
# |
#!/bin/bash | |
# | |
# mplayerp - Use mplayer+bash as a full-featured music player | |
# | |
# Starts mplayer in slave mode listening to commands from a fifo and reading | |
# media from a playlist file. There are some extras to make it pleasent to use. | |
# | |
# Syntax: mplayerp [OPTIONS] [ACTION | DIR] | |
# | |
# Options: |
#! /bin/sh | |
# Increment and count the number of files passed to the script | |
# for later use in the progress dialog box | |
n=1 | |
# Ask for the destination graphic image format to change to | |
# Next line is entered all on one line | |
EXT=`zenity --title="Convert Image" --entry --text="Please | |
enter the image format to convert to (e.g. PNG, JPG, TIFF, WEBP etc.)"` |
I recently switched over to neovim (see my screenshots at the bottom). Below is my updated config file.
It's currently synchronized with my .vimrc
config except for a block of neovim-specific terminal key mappings.
This is still a work in progress (everyone's own config is always a labor of love), but I'm already extremely pleased with how well this is working for me with neovim. While terminal mode isn't enough to make me stop using tmux, it is quite good and I like having it since it simplifies my documentation workflow for yanking terminal output to paste in a markdown buffer.
These days I primarily develop in Go. I'm super thrilled and grateful for fatih/vim-go,
# Conky, a system monitor, based on torsmo | |
# | |
# Any original torsmo code is licensed under the BSD license | |
# | |
# All code written since the fork of torsmo is licensed under the GPL | |
# | |
# Please see COPYING for details | |
# | |
# Copyright (c) 2004, Hannu Saransaari and Lauri Hakkarainen | |
# Copyright (c) 2005-2010 Brenden Matthews, Philip Kovacs, et. al. (see AUTHORS) |
Increases indentation on the file tree and adds some lines to each directory/file.
Works 15 levels deep, but you can expand it by just adding more of each line thats repeating, i.e.:
- add another box shadow
(n*-20px) 0 0 0 rgba(255, 255, 255, 0.4)
- add another padding-left
.monaco-tree-row[aria-level="n"] { padding-left: ((n-1)*20)px; }
- add another :before & :after with left positioning
.monaco-tree-row[aria-level="n"]:before { left: (((n-1)*20)-9)px; }
.monaco-tree-row[aria-level="n"]:after { left: (((n-1)*20)-9)px; }
conky.config = { | |
_update_interval=0.03, | |
update_interval=0.075, | |
background=false, | |
text_buffer_size=2048, | |
double_buffer=true, | |
no_buffers=true, | |
use_xft=true, | |
font='Inconsolata', | |
draw_shades=false, |
#!/usr/bin/env lua | |
conky_color = "${color1}%2d${color}" | |
t = os.date('*t', os.time()) | |
year, month, currentday = t.year, t.month, t.day | |
daystart = os.date("*t",os.time{year=year,month=month,day=01}).wday | |
month_name = os.date("%B") |