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
#!/bin/bash | |
# A simple convertor for change the text from selection and replace all persian charachter with | |
# English charachter in clipboard. | |
# Just assign it to a key binding, with anything you like (i3 for example). | |
# I wrote this for http://linuxvaman.ir/ | |
# Publishe under WTFPL | |
# fzerorubigd <[email protected]> 2 Dec 2015 | |
change_string() { |
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
separator_block_width=15 | |
color=#CCCCCC | |
align=center | |
[online-status] | |
command=ping -c 3 gitlab.n0q.eu >> /dev/null||echo '' | |
color=#FF0000 | |
interval=10 | |
[volume] |
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 api | |
import ( | |
"bytes" | |
"context" | |
"encoding/json" | |
"errors" | |
"io/ioutil" | |
"net/http" | |
"strings" |
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
{ | |
"applications": [ | |
{ | |
"class" : "jetbrains-idea", | |
"name" : "\uf6cc" | |
}, | |
{ | |
"class" : "Firefox", | |
"name" : "\uf269" | |
}, |
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
#!/usr/bin/perl | |
## Made by Pierre Mavro/Deimosfr <[email protected]> | |
use strict; | |
use warnings; | |
use utf8; | |
use Getopt::Long; | |
# Get CPU usage | |
sub get_network_usage { |
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 | |
LAYOUT=$(xkblayout-state print " %s") | |
# i3blocks ignores the output if you miss the \n | |
echo -e "${LAYOUT^^}\n" |
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 | |
setxkbmap -option compose:menu | |
xmodmap -e "remove Lock = Caps_Lock" # Remove Caps Lock | |
xmodmap -e "keycode 66 = Multi_key" # Make the key into multykey | |
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 |