[scripts] Added old scripts.

This commit is contained in:
Keanu Timmermans 2021-06-23 12:05:59 +02:00
parent cbaab0c3b6
commit 97427c27ee
Signed by: keanucode
GPG key ID: A7431C0D513CA93B
2 changed files with 50 additions and 0 deletions

11
scripts/copy-env-var Executable file
View file

@ -0,0 +1,11 @@
#!/usr/bin/env bash
set -euo pipefail
if variable="$(set -euo pipefail; {
awk 'BEGIN{for(v in ENVIRON) print v}'
} | rofi -dmenu)" && [[ -n $variable ]]; then
variable="${variable%% *}"
echo ${!variable} | xclip -sel clip
fi