M-q
Reload XMonad configurationM-S-q
Exit XMonad
M-SPC
Switch to next layout in current workspaceM-S-SPC
Reset layout in current workspaceM-f
Switch to fullscreen layout
test |
(defun counsel-projectile-bookmark () | |
"Forward to `bookmark-jump' or `bookmark-set' if bookmark doesn't exist." | |
(interactive) | |
(require 'bookmark) | |
(let ((projectile-bookmarks (projectile-bookmarks))) | |
(ivy-read "Create or jump to bookmark: " | |
projectile-bookmarks | |
:action (lambda (x) | |
(cond ((and counsel-bookmark-avoid-dired | |
(member x projectile-bookmarks) |
#!/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))" |
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)) |
(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))) |
#!/bin/sh | |
for file in "$@" | |
do | |
if [ -f "$file" ]; then | |
termite -e "nvim $file" | |
break | |
fi | |
done |
# vim: ft=python fileencoding=utf-8 sts=4 sw=4 et: | |
# Copyright 2014-2017 Florian Bruhin (The Compiler) <[email protected]> | |
# | |
# 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. |
# 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/>/\>/' | sed 's/</\</' | sed 's/\$/\\$/' | |
} |
(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 |