Compare commits

...

4 Commits

Author SHA1 Message Date
cubernetes ecb582a1a2 Disable paste mode, that's why indentautoindent never worked lol 2023-08-13 21:07:55 +02:00
cubernetes 8087665ee0 cut_term_width fix 2023-08-13 21:07:29 +02:00
cubernetes e47610c4d0 Minor stuff .bashrc 2023-08-13 21:07:08 +02:00
cubernetes 87d4ae293a .bash_xinitrc no nohup output 2023-08-13 21:06:43 +02:00
4 changed files with 20 additions and 5 deletions

View File

@ -111,7 +111,7 @@ export NVM_DIR="${HOME}"/.nvm
[ -s "${NVM_DIR}"/bash_completion ] && . "${NVM_DIR}"/bash_completion
######################## More or less shell specific END #####################
nohup startlxde & disown
nohup startlxde 2>/dev/null 1>&2 & disown
while true ; do
dwm
sleep 0.5

View File

@ -362,6 +362,7 @@ fi
# sudo kbdrate --rate=30.0 --delay=250
complete -C pomo pomo
eval "$(keyring --print-completion bash)"
# shellcheck disable=SC1091
if [ -f "${HOME}"/.userbashrc ]; then . "${HOME}"/.userbashrc; fi
@ -371,3 +372,9 @@ if [ -f "${HOME}"/.userbashrc ]; then . "${HOME}"/.userbashrc; fi
alias new_mp_project='clear && builtin cd -P ./ && python3 -m venv ./env/ && . ./env/bin/activate && pip install --no-input opencv-python mediapipe && pip freeze > ./requirements.txt && printf '\''#!/usr/bin/env python3\n\nfrom typing import NoReturn\n\nimport mediapipe as mp\nimport cv2\n\n\ndef main() -> NoReturn:\n\tpass\n\nif __name__ == '\''"'\''"'\''__main__'\''"'\''"'\'':\n\tmain()\n'\'' 1>./main.py && chmod +x ./main.py && printf '\''__pycache__/\nenv/\n'\'' 1>.gitignore && git init && git add -A && git commit -m '\''Initial commit'\'' && git ls-files && echo Done'
alias check_for_tabs="clear && 2>/dev/null grep -r ' ' ../ | grep -v pre-rebase | grep -v sendemail | grep -v update.sample | grep -v fsmonitor | grep -v pre-push | grep -v commit-msg | grep -v pre-commit | grep -v push-to- | grep -v pre-receive | grep -v ChangeLog | grep -v '.git/config' | grep -v autogen | grep -v configure.ac | grep -v Makefile | grep -v debian | grep -v lxpolkit-listener | grep -v '.git' | grep -v desktop-files | grep -v autostart.vala | grep -v combobox | grep -v main.vala | grep -v vala | grep -v lxsession-default | grep -v logout | grep -v settings-daemon | grep -v xdg-autostart | grep -v data/images | grep -v compile.sh | grep -v lxsession.xml | grep -v lxsession-utils"
# alias lxsession-edit='cd /tmp/lxsession/lxsession-edit && ./compile.sh && 2>/dev/null ./lxsession-edit'
function c () {
cc -std=c89 -Wall -Wextra -pedantic -Werror -Wconversion -g -O0 -o main *.c && ./main "${@}"
rm -f ./main
}

View File

@ -1,3 +1,5 @@
vim.g.mapleader = ' '
vim.opt.number = true
vim.opt.relativenumber = true
@ -37,6 +39,4 @@ vim.opt.updatetime = 50
vim.opt.colorcolumn = '80'
vim.opt.paste = true
vim.g.mapleader = ' '
vim.opt.paste = false

View File

@ -1,5 +1,6 @@
#!/usr/bin/env python3
import os
import re
import sys
@ -24,7 +25,14 @@ def pad_to_width(line: bytes, width: int) -> str:
return output_line.decode('utf-8')
def main() -> int:
width = int(sys.argv[1])
if len(sys.argv) != 2:
columns = os.environ.get('COLUMNS')
if columns:
width = int(columns)
else:
width = 20
else:
width = int(sys.argv[1])
lines = open(0, 'rb').read().strip(b'\n').split(b'\n')
for line in lines:
try: