Skip to content

Instantly share code, notes, and snippets.

View kborling's full-sized avatar
🤘

Kevin Borling kborling

🤘
View GitHub Profile
# cat << EOF > /dev/null
# https://github.com/gpakosz/.tmux
# (‑●‑●)> dual licensed under the WTFPL v2 license and the MIT license,
# without any warranty.
# Copyright 2012— Gregory Pakosz (@gpakosz).
# /!\ do not edit this file
# instead, override settings in ~/.tmux.conf.local, see README.md
# -- general -------------------------------------------------------------------
@kborling
kborling / init.vim
Last active January 16, 2020 15:34
"*****************************************************************************
" Vim-PLug core
"*****************************************************************************
let vimplug_exists=expand('~/.config/nvim/autoload/plug.vim')
let g:vim_bootstrap_langs = "c,elm,go,html,javascript,php,python"
let g:vim_bootstrap_editor = "nvim" " nvim or vim
if !filereadable(vimplug_exists)
if !executable("curl")
"{ Install plugins
call plug#begin(expand('~/.config/nvim/plugged'))
"*****************************************************************************
" Plug install packages
"*****************************************************************************
Plug 'scrooloose/nerdtree'
Plug 'jistr/vim-nerdtree-tabs'
Plug 'Xuyuanp/nerdtree-git-plugin'
Plug 'ryanoasis/vim-devicons'
@kborling
kborling / .ratpoisonrc
Last active February 6, 2022 15:43
Ratpoison Window Manager Config
# Programs to start automatically
exec /usr/bin/rpws init 6 -k
exec picom &
exec nitrogen --restore
# Set the font
set font "Cascadia Mono"
# Set colors
set bgcolor black
@kborling
kborling / init.el
Last active November 16, 2023 18:07
My emacs config
;;; init.el --- My personal emacs config -*- lexical-binding: t; -*-
;; Author: Kevin Borling <https://github.com/kborling>
;; Version: 1.1.0
;; Keywords: configuration
;; URL: https://gist.github.com/kborling/13f2300e60ae4878d5d96f5f4d041664
;; Homepage: https://gist.github.com/kborling/13f2300e60ae4878d5d96f5f4d041664
;; Package-Requires: ((emacs "28.1"))
;;; Commentary:
@kborling
kborling / configuration.nix
Created December 24, 2021 23:59
NixOS Configuration (Sway/Wayland Enabled)
# Edit this configuration file to define what should be installed on
# your system. Help is available in the configuration.nix(5) man page
# and in the NixOS manual (accessible by running ‘nixos-help’).
{ config, pkgs, ... }:
{
nix = {
package = pkgs.nixUnstable;
extraOptions = ''
@kborling
kborling / .cwmrc
Last active January 24, 2022 02:04
Calm Window Manager config
# automatically add new windows to the current group
sticky yes
# snap windows to edges at 4 pixels distance
borderwidth 0
snapdist 4
gap 10 10 10 10
moveamount 10
fontname "Hack:size=10"
## colors ##
@kborling
kborling / cwm_window.sh
Created January 24, 2022 02:03
Window Movements
#!/bin/sh
# Move a window to the side of a screen.
case "$1" in
"left") xdotool getactivewindow windowmove 0 y ;;
"top") xdotool getactivewindow windowmove x 0 ;;
"right")
screen_width=$(xwininfo -root | grep Width | cut -d: -f2 | tr -d ' ')
win_width=$(xdotool getactivewindow getwindowgeometry --shell | grep WIDTH | cut -d= -f2)
@kborling
kborling / make.conf
Created February 18, 2022 17:50
Portage make.conf
# These settings were set by the catalyst build script that automatically
# built this stage.
# Please consult /usr/share/portage/config/make.conf.example for a more
# detailed example.
COMMON_FLAGS="-march=native -O2 -pipe"
CFLAGS="${COMMON_FLAGS}"
CXXFLAGS="${COMMON_FLAGS}"
FCFLAGS="${COMMON_FLAGS}"
FFLAGS="${COMMON_FLAGS}"
MAKEOPTS="-j4 -l4"
@kborling
kborling / rc.xml
Last active March 9, 2022 22:00
Openbox config
<?xml version="1.0" encoding="UTF-8"?>
<openbox_config xmlns="http://openbox.org/3.4/rc" xmlns:xi="http://www.w3.org/2001/XInclude">
<resistance>
<strength>10</strength>
<screen_edge_strength>20</screen_edge_strength>
</resistance>
<focus>
<focusNew>yes</focusNew>
<!-- always try to focus new windows when they appear. other rules do
apply -->