Skip to content

stjandra/scripts-public

Repository files navigation

scripts-public

Some Bash scripts for convenience. Mostly used in my dotfiles or other scripts.

amixer_toggle

Toggle sound (mute/unmute) with amixer.

change_theme

Change the following theme:

change_theme_tmux

Change tmux theme.

copy_fzf

Copy to clipboard strings that are regularly used with fzf.

docker_macos

A script to open Docker on macOS and block until Docker is initialized.

git_clone

Loop through a set of git repos and clone them locally if missing.

git_pull

Pull git repos belonging to a particular user.

in_tmux

Whether we are in a tmux session.

is_arch

Whether we are in an Arch Linux system.

is_linux

Whether we are in a Linux system.

is_macos

Whether we are in a macOS system.

lf_ueberzug

Open the lf file manager with Überzug++ for image preview.

mac_keystroke

Simulate hitting a key on OS X.

mac_start

A script that is executed once during macOS login.

  • Starts Emacs daemon.
  • Add keys to the ssh agent with password from the keychain.

my_battery

Prints the current battery status and capacity.

my_date

Prints the current datetime in yyyy-mm-dd HH:MM format.

my_light

Change screen brightness with light.

pactl_toggle

Toggle sound (mute/unmute) with pactl.

pactl_volume

Change sound volume with pactl.

start_emacs

Start Emacs daemon.

tmux_mycli

Run mycli (a MySQL terminal client) and rename the current tmux window to host and database name.

tmux_session

Create a new or switch to an existing tmux session with fzf.

tmux_ssh

Ssh and rename the current tmux window to the ssh destination.

url_decode

URL decode a string given via stdin or argument.

url_encode

URL encode a string given via stdin or argument.

vpn_ip

If connected to a vpn, get the ip.

vpn_tb

Connect or disconnect TunnelBlick VPN on macOS.

About

No description or website provided.

Topics

Resources

License

Stars

Watchers

Forks

Languages