This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(defun toggle-tabs-local () | |
(interactive) | |
(if indent-tabs-mode | |
(setq-local indent-tabs-mode nil) | |
(setq-local indent-tabs-mode t))) | |
(defun set-indentation-local () | |
(interactive) | |
(let ((indent (string-to-number (read-string "Indentation: ")))) | |
(setq-local tab-width indent) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python2 | |
# coding=utf-8 | |
# Archey Plus [version 0.2.8] | |
# | |
# Archey is a system information tool written in Python. | |
# This tool should work all supported OSs. | |
# | |
# Maintained by Melik Manukyan <[email protected]> | |
# ASCII art by Brett Bohnenkamper <[email protected]> | |
# Changes Jerome Launay <[email protected]> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
! ----------------------------------------------------------------------------- | |
! File: gruvbox-dark.xresources | |
! Description: Retro groove colorscheme generalized | |
! Author: morhetz <[email protected]> | |
! Source: https://github.com/morhetz/gruvbox-generalized | |
! Last Modified: 6 Sep 2014 | |
! ----------------------------------------------------------------------------- | |
! hard contrast: *background: #1d2021 | |
!*background: #1d2021 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(evil-define-operator evil-delete-char-without-register (beg end type reg) | |
"delete character without yanking unless in visual mode" | |
:motion evil-forward-char | |
(interactive "<R><y>") | |
(if (evil-visual-state-p) | |
(evil-delete beg end type reg) | |
(evil-delete beg end type ?_))) | |
(evil-define-operator evil-delete-backward-char-without-register (beg end type reg) | |
"delete backward character without yanking" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Config { | |
font = "xft:MesloLGM:size=9.5:bold:antialias=true" | |
, bgColor = "#282828" | |
, fgColor = "#ebdbb2" | |
, position = TopW L 94 | |
, alpha = 150 | |
, commands = [ Run Cpu ["-t", "<fc=#83a598><icon=/home/gilbertw1/.xmonad/icons/cpu.xbm/></fc> <total>%", "-L","3","-H","50","-l","#ebdbb2","-n","#ebdbb2","-h","#fb4934"] 10 | |
, Run Memory ["-t","<fc=#458588><icon=/home/gilbertw1/.xmonad/icons/mem.xbm/></fc> <usedratio>%","-H","80","-L","10","-l","#ebdbb2","-n","#ebdbb2","-h","#fb4934"] 10 | |
, Run Date "%a %b %_d %k:%M" "date" 10 | |
, Run DynNetwork ["-t","<fc=#8ec07c><icon=/home/gilbertw1/.xmonad/icons/arrow_down.xbm/></fc> <rx>, <fc=#d3869b><icon=/home/gilbertw1/.xmonad/icons/arrow_up.xbm/></fc> <tx>","-H","200","-L","10","-h","#ebdbb2","-l","#ebdbb2","-n","#ebdbb2"] 10 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
fn start_cropped_screencast_process_gif(slop_out: &SlopOutput, out_path: &Path) -> (Child, Child) { | |
let ffmpeg_proc = | |
Command::new("ffmpeg") | |
.args(&["-f", "x11grab", | |
"-s", &format!("{}x{}", slop_out.w, slop_out.h), | |
"-i", &format!(":0.0+{},{}", slop_out.x, slop_out.y), | |
"-an", | |
"-f", "image2pipe", | |
"-vcodec", "ppm", | |
"-"]) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import scala.io.Source | |
import scala.util.Sorting | |
import scala.collection.mutable.ListBuffer | |
import scala.math._ | |
import Stream._ | |
object PrimeChompWordGameDictionary { | |
private val dictionary = createDictionary() | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import System.Exit | |
import Data.Maybe (Maybe, isNothing, fromJust) | |
import qualified Data.List as L | |
import qualified Data.Map as M | |
import GHC.IO.Handle | |
-- Xmonad Core | |
import XMonad | |
import qualified XMonad.StackSet as W | |
import XMonad.Config.Desktop |