Compare commits

...

3 Commits

Author SHA1 Message Date
880e1376da Do not pass nonexistend DISPLAY variable 2024-04-28 18:14:32 +02:00
c3d6af2471 Make yaml2json a proper script 2024-04-27 16:25:42 +02:00
fd2d4f8bcf Add pacman orphan remove script 2024-04-27 16:25:17 +02:00
4 changed files with 6 additions and 2 deletions

2
bin/pacman-remove-orphans Executable file
View File

@@ -0,0 +1,2 @@
#!/usr/bin/env sh
pacman -Qtdq | xargs --no-run-if-empty sudo pacman -Rns

4
bin/yaml2json Executable file
View File

@@ -0,0 +1,4 @@
#!/usr/bin/env python3
import sys, yaml, json
json.dump([d for d in yaml.safe_load_all(sys.stdin)][-1], sys.stdout, indent=4)

View File

@@ -67,7 +67,6 @@ touch "${feature_dir}"/gpg_agent
# Make important environment variables also usable in the systemd user instance
systemd_envs=(
DISPLAY
GNUPGHOME
PATH
ACPI_LID_NAME

View File

@@ -131,7 +131,6 @@ alias twa="task add"
alias twd="task done"
alias inbox="task add +inbox"
alias yaml2json="python3 -c 'import sys, yaml, json; json.dump([d for d in yaml.safe_load_all(sys.stdin)][-1], sys.stdout, indent=4)'"
alias json2yaml="python3 -c 'import sys, yaml, json; yaml.safe_dump(json.loads(sys.stdin.read()), stream=sys.stdout)'"
alias currentbranch='git rev-parse --abbrev-ref HEAD'