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
;; -*- mode: emacs-lisp -*- | |
;; This file is loaded by Spacemacs at startup. | |
;; It must be stored in your home directory. | |
(defun dotspacemacs/layers () | |
"Configuration Layers declaration. | |
You should not put any user code in this function besides modifying the variable | |
values." | |
(setq-default | |
;; Base distribution to use. This is a layer contained in the directory |
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
myLayout = smartBorders $ avoidStruts $ minimize (mkToggle (NOBORDERS ?? FULL ?? EOT) (tiled ||| Mirror tiled ||| Full)) | |
where | |
-- default tiling algorithm partitions the screen into two panes | |
-- tiled = gaps [(U,5), (R,5), (L,5), (D,5)] $ spacing 5 $ Tall nmaster delta ratio | |
tiled = Tall nmaster delta ratio | |
-- The default number of windows in the master pane | |
nmaster = 1 | |
-- Default proportion of screen occupied by master pane |
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
# Tmux settings | |
# Set send prefix to b | |
bind b send-prefix | |
# Set XTerm key bindings | |
setw -g xterm-keys on | |
# Set colors | |
set-option -g default-terminal "screen-256color" |
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 XMonad | |
import XMonad.Layout.Spacing | |
import XMonad.Layout.Gaps | |
import XMonad.Hooks.DynamicLog | |
import XMonad.Hooks.ManageDocks | |
import XMonad.Util.Run | |
import XMonad.Util.EZConfig | |
import XMonad.Actions.CycleWS | |
import XMonad.Layout.Maximize | |
import XMonad.Layout.MultiToggle |
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 |
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
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
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
(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
! ----------------------------------------------------------------------------- | |
! 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 |