Shell scripts
Optional:
- Create
$HOME/.local/bin
directory and add it to thePATH
variable. Then put these scripts on the~/.local/bin
dir.
This section is all about scripts thar have been written using dmenu
.
So dmenu
is the main dependency.
Take screenshot using scrot
and dmenu
.
- Dependencies
- scrot
- (n)sxiv
- xclip
- dunst (or any notification manager)
Search and kill processes.
- Dependencies
- ps
- awk
- sed
- dunst (or any notification manager)
Run custom make scripts from ~/.local/bin
and
~/.local/dev/hossein-lap/scripts/
which they are not
part of my $PATH
variable.
- Dependencies
- No extra dependencies
Manage usb devices.
- Mount
- Unmount
- Eject
- Dependencies
- lsblk
- grep
- udisks2
- dunst (or any notification manager)
Record from screen using ffmpeg
with options to whole screen or active window,
with or without sound, sound of mic or system.
- Dependencies
- ffmpeg
- xdpyinfo
- awk
- pulseaudio
To reboot, poweroff and lock the screen.
To this script works, you need to add a rule
to sudoers
file for /bin/reboot
and /bin/shutdown
to sudo not asking for a password.
- Dependencies
- sudo
- slock
- sudo rule to run
shutdown
andreboot
commands without asking for a password
This section is all about scripts that have been written for
image manipulation using ImageMagick
. So ImageMagick
is the main dependency.
Change specific color in photo.
- Dependencies
- No extra dependencies
Negate photo's color
- Dependencies
- No extra dependencies
Add shadow border to photos.
- Dependencies
- No extra dependencies
Just a simple lf
file-manager runner.
- Dependencies
- ueberzug
- bat
- perl-file-mimeinfo (
mimetype
)
Show webcam with no sound from /dev/video0
.
- Dependencies
- mplayer
Send command output to a pastebin service (termbin.com).
- Dependencies
- netcat (GNU or OpenBSD)
A daily note-taking script with markdown
and using vim
text editor.
- Dependencies
- vim
Build pdf
and html
files from daily notes.
Neededd to be used inside vim.
- Dependencies
- pandoc
- Rmarkdown
- LaTeX
- groff
- st
Set second keyboard layout and Keypress dely
- Dependencies
- xrate
Show the ping of 1.1.1.1 in slstatus
program
- Dependencies
- ping
Run cmus
inside tmux
as mpd alternative.
- Dependencies
- st
- cmus
- tmux
Run programs inside terminal and separate them from shell
- Dependencies
- nohub