Skip to content

Instantly share code, notes, and snippets.

View rohshall's full-sized avatar

Salil Wadnerkar rohshall

  • United States
View GitHub Profile
@rohshall
rohshall / .vimrc
Last active November 9, 2022 20:52
syntax on
set hidden
set tabstop=4 softtabstop=4
set shiftwidth=4
set expandtab
set smartindent
set nu
set laststatus=2
# .bashrc
# Source global definitions
if [ -f /etc/bashrc ]; then
. /etc/bashrc
fi
# Uncomment the following line if you don't like systemctl's auto-paging feature:
# export SYSTEMD_PAGER=
# Default config for sway
#
# Copy this to ~/.config/sway/config and edit it to your liking.
#
# Read `man 5 sway` for a complete reference.
### Variables
#
# Logo key. Use Mod1 for Alt.
set $mod Mod4
@rohshall
rohshall / bspwmrc
Last active November 8, 2022 23:40 — forked from jinyeow/bspwmrc
Config files related to bspwm and panel (lemonbar)
#! /bin/sh
xrandr.sh
sxhkd &
xcompmgr &
$HOME/bin/panel &
bspc monitor LVDS-1 -d 1 2 3 4 5
bspc monitor HDMI-2 -d 6 7 8 9 0
@rohshall
rohshall / i3config
Last active September 20, 2022 19:04
# This file has been auto-generated by i3-config-wizard(1).
# It will not be overwritten, so edit it as you like.
#
# Should you change your keyboard layout some time, delete
# this file and re-run i3-config-wizard(1).
#
# i3 config file (v4)
#
# Please see https://i3wm.org/docs/userguide.html for a complete reference!
@rohshall
rohshall / convert.py
Last active February 28, 2024 15:25 — forked from EsotericAlgorithm/convert.py
A script to process azw3, epub, and mobi into text files using calibre ebook-convert
import os
import shlex
import subprocess
sink = open('/dev/null', 'w')
def convert_book(input, output):
subprocess.call("ebook-convert" + " " + input + " " + output, shell=True, stdout=sink, stderr=sink)
@rohshall
rohshall / tmux.conf
Last active November 21, 2022 06:15
unbind-key C-b
set -g prefix C-a
bind-key C-a send-prefix
# Start windows and panes at 1, not 0
set -g base-index 1
setw -g pane-base-index 1
set-option -g renumber-windows on
set -g mouse on
@rohshall
rohshall / Xdefaults (Linux)
Last active July 12, 2022 05:15
Xdefaults
Xft.dpi: 96
Xft.antialias: true
Xft.hinting: full
Xft.hintstyle: hintslight
Xft.rgba: rgb
UXTerm.termName: xterm-256color
UXTerm.loginShell: true
UXTerm.vt100.locale: true
UXTerm.vt100.faceName: xft:Liberation Mono
@rohshall
rohshall / .kshrc (NetBSD)
Last active November 13, 2022 20:10
kshrc
# $NetBSD: dot.shrc,v 1.3 2007/11/24 11:14:42 pavel Exp $
if [ -f /etc/shrc ]; then
. /etc/shrc
fi
case "$-" in *i*)
# interactive mode settings go here
export PS1='$(logname)@$(hostname -s) $(pwd) $ '
;;
# use UTF-8 everywhere
export LANG=en_US.UTF-8
# specify location of kshrc
export ENV=$HOME/.kshrc
xrdb -merge $HOME/.Xdefaults
# set your background color
xsetroot -solid dimgray