From 2818d0946a3865f3ac1c804e83f396cfbd26a845 Mon Sep 17 00:00:00 2001 From: Flinner Yuu Date: Thu, 14 Nov 2024 16:19:28 +0300 Subject: [PATCH] feat:: little updates` --- bash/.bashrc | 2 ++ bash/.profile | 2 ++ bin/bin/is-reboot-needed | 2 +- bin/bin/isbn_to_bibtex.py | 6 +++--- bin/bin/jekyll | 1 - bin/bin/keyboard | 3 ++- 6 files changed, 10 insertions(+), 6 deletions(-) delete mode 100755 bin/bin/jekyll diff --git a/bash/.bashrc b/bash/.bashrc index f2ae483..9db22a1 100644 --- a/bash/.bashrc +++ b/bash/.bashrc @@ -70,3 +70,5 @@ source /etc/profile if [ -f ~/.bash_aliases ]; then . ~/.bash_aliases ; fi #eval "$(starship init bash)" + +export QSYS_ROOTDIR="/home/lambda/Programs/intelQuartus/quartus/sopc_builder/bin" diff --git a/bash/.profile b/bash/.profile index bbed138..5b920b9 100644 --- a/bash/.profile +++ b/bash/.profile @@ -53,3 +53,5 @@ fi #fi + +export QSYS_ROOTDIR="/home/lambda/Programs/intelQuartus/quartus/sopc_builder/bin" diff --git a/bin/bin/is-reboot-needed b/bin/bin/is-reboot-needed index 9f399d0..4756ffd 100755 --- a/bin/bin/is-reboot-needed +++ b/bin/bin/is-reboot-needed @@ -1,4 +1,4 @@ #!/bin/sh -grep -qs '^ID=artix$' /etc/os-release \ +grep -qs '^ID=arch$' /etc/os-release \ && { test -e /lib/modules/`uname -r` \ || echo Kernel updated, reboot computer.; } diff --git a/bin/bin/isbn_to_bibtex.py b/bin/bin/isbn_to_bibtex.py index 6f77cbe..c835cbd 100755 --- a/bin/bin/isbn_to_bibtex.py +++ b/bin/bin/isbn_to_bibtex.py @@ -35,13 +35,13 @@ isbn = None if not sys.stdin.isatty() and fileinput.input(): stdin_ = list(fileinput.input()) isbn = ",".join(stdin_) - print("isbn from stdin:", isbn) + eprint("isbn from stdin:", isbn) # favour stdin over args! if (not isbn): if (len(sys.argv) > 1): isbn = sys.argv[1] - print("isbn from args:", isbn) + eprint("isbn from args:", isbn) else: eprint("No Arguments (or stdin) Provided!") sys.exit(1) @@ -51,6 +51,6 @@ bibtex = convert_isbn_to_bibtex(isbn) if bibtex: print(bibtex) else: - print("Failed to convert ISBN to BibTeX") + eprint("Failed to convert ISBN to BibTeX") sys.exit(2) sys.exit(0) diff --git a/bin/bin/jekyll b/bin/bin/jekyll deleted file mode 100755 index a56b2ce..0000000 --- a/bin/bin/jekyll +++ /dev/null @@ -1 +0,0 @@ -~/.gem/ruby/2.7.0/bin/jekyll "$@" diff --git a/bin/bin/keyboard b/bin/bin/keyboard index 5126879..10c6ac6 100755 --- a/bin/bin/keyboard +++ b/bin/bin/keyboard @@ -1,7 +1,8 @@ #!/usr/bin/env bash setxkbmap -option ctrl:swapcaps setxkbmap -option altwin:swap_lalt_lwin -setxkbmap -model pc105 -layout us,ara -variant ,qwerty -option grp:shifts_toggle +#setxkbmap -model pc105 -layout us,ara -variant ,qwerty -option grp:shifts_toggle +setxkbmap -layout us,ara -option grp:shifts_toggle xset r rate 300 50