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
" persian langmap | |
set langmap=۱1,۲2,۳3,۴4,۵5,۶6,۷7,۸8,۹9,۰0,٬@,٫#,﷼$,٪%,×^,،&,ـ_ | |
set langmap+=ضq,صw,ثe,قr,فt,غy,عu,هi,خo,حp,ج[,چ] | |
set langmap+=شa,سs,یd,بf,لg,اh,تj,نk,مl,ک\\;,گ' | |
set langmap+=ظz,طx,زc,رv,ذb,دn,پm,و\\, | |
set langmap+=ْQ,ٌW,ٍE,ًR,ُT,ِY,َU,ّI, | |
set langmap+=ؤA,ئS,يD,إF,أG,آH,ةJ,»K,«L | |
set langmap+=كZ,ژC,ٰV,B,ٔN,ءM,؟? |
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 | |
# | |
# 2022-06-21 | |
# version: 0.1.1 | |
# author: Ehsan Ghorbannezhad <[email protected]> | |
# | |
# sets a video or gif as your wallpaper. | |
# requires mpv, xwinwrap and xrandr. | |
main() |
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
function script_description() | |
return [[ | |
<h2>obs-pulse-remap</h2> | |
<p>Load a module-remap-sink on pulseaudio when OBS starts, and unload it when OBS exits.</p> | |
<p>Useful for when you want OBS to capture the audio of only one program.</p> | |
<p>Author: Ehsan Ghorbannezhad <[email protected]></p> | |
]] | |
end | |
local modules = {} |
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/sh | |
# setup a LAN audio stream as a microphone for pulseaudio. | |
# requires: dmenu, ffmpeg. | |
# config | |
NAME=VirtualMic | |
PIDFILE=${XDG_RUNTIME_DIR:?}/virtualmic | |
DIR=${XDG_CACHE_HOME:-$HOME/.cache}/virtualmic | |
main() { |
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/sh | |
# download, configure and start the psiphon proxy client. | |
# requires curl, aria2, libnotify (optional). | |
# Config | |
# ========== | |
# ports | |
SOCKS_PORT=9050 | |
HTTP_PORT=8585 | |
# |
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
-- lua code for generating a nice unicode progress bar. | |
-- author: Ehsan Ghorbannezhad <ehsan at disroot dot org> | |
-- input percentage | |
PERCENT = 96 | |
function round(n) | |
return math.floor(n+0.5) | |
end |
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/sh | |
# this script mounts and opens any connected mtp devices while it's running. | |
# requires go-mtpfs, moreutils , fuse and udev. | |
# config | |
cache="${XDG_CACHE_HOME:-$HOME/.cache}/mtpd" | |
tmp="${XDG_RUNTIME_DIR:-/tmp}/mtpd" | |
main() | |
{ |
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
A modified version of dwm's swallow patch that works with tmux. | |
Based on: https://dwm.suckless.org/patches/swallow/dwm-swallow-20201211-61bb8b2.diff | |
Hosted at: https://gist.github.com/soystemd/0ac35d048672c63d7fc3afb1fde4c5f2 | |
--- | |
diff --git a/config.def.h b/config.def.h | |
index a2ac963..f833d23 100644 | |
--- a/config.def.h | |
+++ b/config.def.h |
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 | |
# mount ftp servers from a server list. | |
# i use it to mount my phone with the | |
# help of an ftp server android app. | |
# requires curlftpfs. | |
# config | |
hosts=~/.config/mftp/hosts | |
mntdir=~/Mount/FTP |
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/sh | |
# show a cleaned-up output of lsusb periodically. requires usbutils. | |
watch --differences --no-title --interval 0.5 "lsusb | grep -vi 'root hub$'" | |