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
| 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 |
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
| package main | |
| import ( | |
| "time" | |
| "flag" | |
| "github.com/Sirupsen/logrus" | |
| "github.com/crackcomm/cloudflare" | |
| "github.com/shirou/gopsutil/cpu" |
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
| #!/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; |
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
| 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 |
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
| #!/bin/bash | |
| check_inactive() { | |
| idle=$(xprintidle) | |
| if [ $idle -gt 600000 ]; then | |
| i3lock-fancy | |
| fi | |
| } | |
| while : |
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
| #!/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" |
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
| 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 |
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
| 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 |
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
| 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 |
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
| 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 |