View preview
#!/bin/sh
FILE_LINE_NO="$1"
FILE="$(echo "$FILE_LINE_NO" | cut -d":" -f1)"
SUFFIX="$(echo $FILE | cut -d"." -f2)"
LINE_NO="$(echo "$FILE_LINE_NO" | cut -d":" -f2)"
if [ "$LINE_NO" -gt 10 ]
then
START="$((${LINE_NO} - 10))"
View conifg.py
c.aliases['edit-field'] = 'debug-pyeval -q objreg.get(\'tabbed-browser\', scope=\'window\', window=\'last-focused\').currentWidget()._widget.page().runJavaScript(\'document.activeElement.value\', lambda res: objreg.get(\'command-dispatcher\', scope=\'window\', window=\'last-focused\')._run_userscript(\'edit_field\', res, verbose=False))'
# Indented Command Python
objreg.get('tabbed-browser', scope='window', window='last-focused') \
.currentWidget()._widget.page() \
.runJavaScript('document.activeElement.value', lambda res:
objreg.get('command-dispatcher', scope='window', window='last-focused') \
._run_userscript('edit_field', res, verbose=False))
View evil.el
(evil-define-command evil-ex (&optional initial-input)
:keep-visual t
:repeat abort
(interactive
(list
(let ((s (concat
(cond
(current-prefix-arg
(let ((arg (prefix-numeric-value current-prefix-arg)))
(cond ((< arg 0) (setq arg (1+ arg)))
View gvim
#!/bin/sh
for file in "$@"
do
if [ -f "$file" ]; then
termite -e "nvim $file"
break
fi
done
View completiondelegate.py
# vim: ft=python fileencoding=utf-8 sts=4 sw=4 et:
# Copyright 2014-2017 Florian Bruhin (The Compiler) <mail@qutebrowser.org>
#
# This file is part of qutebrowser.
#
# qutebrowser is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
View keybindings.org

XMonad Keybindings

Core

  • M-q Reload XMonad configuration
  • M-S-q Exit XMonad

Layout

  • M-SPC Switch to next layout in current workspace
  • M-S-SPC Reset layout in current workspace
  • M-f Switch to fullscreen layout
View mu-index-notify.sh
# puts timestamps into an easily comparable format
extract_timestamp() {
local RAW="$(echo "$1" | cut -c1-31)"
echo "$(date --date="$RAW" '+%Y-%m-%d:%H:%M:%S')"
}
# removes html characters that are interpreted poorly by dunst
format_string() {
echo "$1" | sed 's/>/\&gt;/' | sed 's/</\&lt;/' | sed 's/\$/\\$/'
}
View workspace.el
(use-package persp-mode :demand t
:config
(setq wg-morph-on nil
persp-autokill-buffer-on-remove 'kill-weak
persp-nil-name "nil"
persp-nil-hidden t
persp-auto-save-fname "autosave"
persp-auto-resume-time 1
persp-auto-save-opt 1
View init.vim
set nocompatible
if empty(glob('~/.config/nvim/autoload/plug.vim'))
silent !curl -fLo ~/.config/nvim/autoload/plug.vim --create-dirs
\ https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
autocmd VimEnter * PlugInstall --sync | source $MYVIMRC
endif
if (has("nvim"))
let $NVIM_TUI_ENABLE_CURSOR_SHAPE=1
View .Xresources
Xft.dpi: 150
Xft.antialias: true
Xft.hinting: true
Xft.rgba: rgb
Xft.hintstyle: hintslight
rofi.color-enabled: true
rofi.font: Hack Bold 16
rofi.modi: window,run,ssh
rofi.opacity: 90