Skip to content

Instantly share code, notes, and snippets.

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

Forud fzerorubigd

🤷‍♂️
/shrug
View GitHub Profile
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
#!/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() {
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]
@fzerorubigd
fzerorubigd / call.go
Last active December 12, 2018 09:50 — forked from slifer2015/call.go
api function handler
package api
import (
"bytes"
"context"
"encoding/json"
"errors"
"io/ioutil"
"net/http"
"strings"
{
"applications": [
{
"class" : "jetbrains-idea",
"name" : "\uf6cc"
},
{
"class" : "Firefox",
"name" : "\uf269"
},
#!/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;
#!/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 {
#!/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"
#!/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
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