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
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/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
" 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 | |
# a dmenu wrapper script for system functions. | |
actions=( | |
'鈴 Sleep' | |
'鈴 Hibernate' | |
'⏻ Poweroff' | |
' Reboot' | |
' Logout' | |
) |
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 return true if the pointer is on the root window. | |
# requires xorg-xwininfo and xdotool. | |
rootwin=$(xwininfo -root | grep -Po 'Window id: \K\S+') | |
currentwin=$(printf '0x%x\n' "$(xdotool getmouselocation | cut -d: -f5)") | |
[ -n "$currentwin" ] && [ "$currentwin" = "$rootwin" ] |
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
AddKeysToAgent yes | |
Host github.com | |
IdentityFile ~/.ssh/keys/github | |
Host aur.archlinux.org | |
IdentityFile ~/.ssh/keys/aur | |
User aur | |
Host desktop.local |
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 accompanies barrier (https://github.com/debauchee/barrier). | |
# it runs commands upon your mouse leaving or entering your machine. | |
# config | |
interval=2 | |
check_count=10 | |
# this hook runs when mouse enters this machine. |
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 v1</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: ghesy <ehsan at disroot dot org></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/bash | |
# show android notifications on linux. | |
# it updates duckdns ddns and portforwards via upnp. | |
# requires a duckdns account, NetworkManager, miniupnpc and an2linux. | |
# config | |
duckdns_token= # put your duckdns token here | |
local_ddns= # local ddns name | |
public_ddns= # public ddns name |