Skip to content

Instantly share code, notes, and snippets.

View mmmaxwwwell's full-sized avatar
🦖

mmmaxwwwell mmmaxwwwell

🦖
View GitHub Profile
@mmmaxwwwell
mmmaxwwwell / save-i3-workspaces.sh
Created February 9, 2022 04:34
Saves i3 workspaces on all active displays to files
#!/bin/bash
echo "Saving current i3 window config"
read -p "Please enter the name of the workspace [default]: " name
name=${name:-default}
output_path=~/.i3/workspaces/$name
mkdir -p $output_path
if [ "$(ls -A $DIR)" ]; then
read -n 1 -s -r -p "Workspace $name is not empty. This will delete the existing config.
Press enter to continue or any key to cancel:
@mmmaxwwwell
mmmaxwwwell / gist:f1a9cc0fe71e22c9ecc19617e32dff08
Created February 9, 2022 04:33
Saves i3 workspaces on all active displays to files
#!/bin/bash
echo "Saving current i3 window config"
read -p "Please enter the name of the workspace [default]: " name
name=${name:-default}
output_path=~/.i3/workspaces/$name
mkdir -p $output_path
if [ "$(ls -A $DIR)" ]; then
read -n 1 -s -r -p "Workspace $name is not empty. This will delete the existing config.
Press enter to continue or any key to cancel:

Keybase proof

I hereby claim:

  • I am mmmaxwwwell on github.
  • I am mmmaxwwwell (https://keybase.io/mmmaxwwwell) on keybase.
  • I have a public key ASD6RMFBxAAFKNbmurTMQobn4v6Bfv7cdHkAbrUV7S3smAo

To claim this, I am signing this object: