Skip to content

Instantly share code, notes, and snippets.

View fzerorubigd's full-sized avatar
🤷‍♂️
/shrug

Forud fzerorubigd

🤷‍♂️
/shrug
View GitHub Profile
unbind C-b
set -g prefix C-b
#urxvt tab like window switching (-n: no prior escape seq)
bind -n M-down new-window
bind -n M-left prev
bind -n M-right next
#bind -n C-left swap-window -t -1
#bind -n C-right swap-window -t +1
package main
import (
"time"
"flag"
"github.com/Sirupsen/logrus"
"github.com/crackcomm/cloudflare"
"github.com/shirou/gopsutil/cpu"
@fzerorubigd
fzerorubigd / bat.sh
Last active January 17, 2017 14:51
Better battery status for i3blocks
#!/bin/bash
X=$(acpi | grep -o "[ 1][0-9][0-9]%" | grep -o "[ 1][0-9][0-9]")
Y=""
if [ -n "`acpi --ac-adapter| grep 'on-line'`" ]; then
Y=""
else
Y="DIS"
fi;
unbind C-b
set -g prefix C-b
#urxvt tab like window switching (-n: no prior escape seq)
bind -n M-down new-window
bind -n M-left prev
bind -n M-right next
#bind -n C-left swap-window -t -1
#bind -n C-right swap-window -t +1
#!/bin/bash
check_inactive() {
idle=$(xprintidle)
if [ $idle -gt 600000 ]; then
i3lock-fancy
fi
}
while :
#!/bin/bash
case $BLOCK_BUTTON in
1) xkblayout-state set +1 ;; # left click
3) xkblayout-state set +1 ;; # right click
esac
xkblayout-state print " %s"
if [ ! -e ~/.antigen/source/antigen.zsh ];then
mkdir ~/.antigen
git clone https://github.com/zsh-users/antigen.git ~/.antigen/source
fi;
source ~/.antigen/source/antigen.zsh
antigen bundle fzerorubigd/zsh-must
antigen bundle fzerorubigd/zshfunc
antigen bundle zsh-users/zsh-syntax-highlighting
antigen bundle zsh-users/zsh-completions src
if [ ! -e ~/.antigen/source/antigen.zsh ];then
mkdir ~/.antigen
git clone https://github.com/zsh-users/antigen.git ~/.antigen/source
fi;
if [ ! -e "$HOME/.scm_breeze/scm_breeze.sh" ];then
git clone git://github.com/scmbreeze/scm_breeze.git ~/.scm_breeze
fi;
source ~/.antigen/source/antigen.zsh
if [ ! -e ~/.antigen/source/antigen.zsh ];then
mkdir ~/.antigen
git clone https://github.com/zsh-users/antigen.git ~/.antigen/source
fi;
if [ ! -e "$HOME/.scm_breeze/scm_breeze.sh" ];then
git clone git://github.com/scmbreeze/scm_breeze.git ~/.scm_breeze
fi;
source ~/.antigen/source/antigen.zsh
if [ ! -e ~/.antigen/source/antigen.zsh ];then
mkdir ~/.antigen
git clone https://github.com/zsh-users/antigen.git ~/.antigen/source
fi;
if [ ! -e "$HOME/.scm_breeze/scm_breeze.sh" ];then
git clone git://github.com/scmbreeze/scm_breeze.git ~/.scm_breeze
fi;
source ~/.antigen/source/antigen.zsh