feat:: little updates`

This commit is contained in:
Flinner Yuu 2024-11-14 16:19:28 +03:00
parent da693aad3a
commit 2818d0946a
Signed by: flinner
GPG Key ID: 95CE0DA7F0E58CA6
6 changed files with 10 additions and 6 deletions

View File

@ -70,3 +70,5 @@ source /etc/profile
if [ -f ~/.bash_aliases ]; then . ~/.bash_aliases ; fi if [ -f ~/.bash_aliases ]; then . ~/.bash_aliases ; fi
#eval "$(starship init bash)" #eval "$(starship init bash)"
export QSYS_ROOTDIR="/home/lambda/Programs/intelQuartus/quartus/sopc_builder/bin"

View File

@ -53,3 +53,5 @@ fi
#fi #fi
export QSYS_ROOTDIR="/home/lambda/Programs/intelQuartus/quartus/sopc_builder/bin"

View File

@ -1,4 +1,4 @@
#!/bin/sh #!/bin/sh
grep -qs '^ID=artix$' /etc/os-release \ grep -qs '^ID=arch$' /etc/os-release \
&& { test -e /lib/modules/`uname -r` \ && { test -e /lib/modules/`uname -r` \
|| echo Kernel updated, reboot computer.; } || echo Kernel updated, reboot computer.; }

View File

@ -35,13 +35,13 @@ isbn = None
if not sys.stdin.isatty() and fileinput.input(): if not sys.stdin.isatty() and fileinput.input():
stdin_ = list(fileinput.input()) stdin_ = list(fileinput.input())
isbn = ",".join(stdin_) isbn = ",".join(stdin_)
print("isbn from stdin:", isbn) eprint("isbn from stdin:", isbn)
# favour stdin over args! # favour stdin over args!
if (not isbn): if (not isbn):
if (len(sys.argv) > 1): if (len(sys.argv) > 1):
isbn = sys.argv[1] isbn = sys.argv[1]
print("isbn from args:", isbn) eprint("isbn from args:", isbn)
else: else:
eprint("No Arguments (or stdin) Provided!") eprint("No Arguments (or stdin) Provided!")
sys.exit(1) sys.exit(1)
@ -51,6 +51,6 @@ bibtex = convert_isbn_to_bibtex(isbn)
if bibtex: if bibtex:
print(bibtex) print(bibtex)
else: else:
print("Failed to convert ISBN to BibTeX") eprint("Failed to convert ISBN to BibTeX")
sys.exit(2) sys.exit(2)
sys.exit(0) sys.exit(0)

View File

@ -1 +0,0 @@
~/.gem/ruby/2.7.0/bin/jekyll "$@"

View File

@ -1,7 +1,8 @@
#!/usr/bin/env bash #!/usr/bin/env bash
setxkbmap -option ctrl:swapcaps setxkbmap -option ctrl:swapcaps
setxkbmap -option altwin:swap_lalt_lwin 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 xset r rate 300 50