From 7ee65be29baede8345fc25b827e426efb93dbe24 Mon Sep 17 00:00:00 2001 From: lxf Date: Tue, 5 Apr 2022 10:15:23 -0400 Subject: shell: latest tweaks to aliases and bash --- .aliases | 2 +- .bashrc | 10 +++++++--- .tmux/dev-ccg | 5 +++++ .tmux/dev-lbh | 5 +++++ 4 files changed, 18 insertions(+), 4 deletions(-) create mode 100644 .tmux/dev-ccg create mode 100644 .tmux/dev-lbh diff --git a/.aliases b/.aliases index 543591c..85f62c1 100644 --- a/.aliases +++ b/.aliases @@ -70,7 +70,7 @@ alias serve='python -m http.server' alias servenet="python -c 'import BaseHTTPServer as bhs, SimpleHTTPServer as shs; bhs.HTTPServer(('\''192.168.1.10'\'', 8080), shs.SimpleHTTPRequestHandler).serve_forever()'" # download movies -alias yt='youtube-dl $1 --no-check-certificate --format best' +alias yt='yt-dlp $1 --format best' alias yt-audio='youtube-dl --no-check-certificate --ignore-errors --output "%(title)s.%(ext)s" --extract-audio --audio-format mp3' alias @less="fc -s | less" diff --git a/.bashrc b/.bashrc index 13dfd7b..ac7160b 100644 --- a/.bashrc +++ b/.bashrc @@ -1,9 +1,9 @@ #basics stty -ixon export MOZ_DBUS_REMOTE=1 -#export BROWSER="vivaldi-stable --enable-features=UseOzonePlatform --ozone-platform=wayland --use-cmd-decoder=validating --use-gl=egl" +export BROWSER="vivaldi-stable --enable-features=UseOzonePlatform --ozone-platform=wayland --use-cmd-decoder=validating --use-gl=egl" -export BROWSER="qutebrowser" +#export BROWSER="qutebrowser" export EDITOR="nvim" #export EDITOR="vim" # keep dictionaries in ~/bin/ @@ -18,6 +18,10 @@ export PATH=$PATH:$HOME/bin export PATH=$PATH:$HOME/bin/bash-scripts export PATH=$PATH:$HOME/.local/bin +export XDG_SESSION_TYPE=wayland +export GDK_BACKEND=wayland +QT_QPA_PLATFORM=wayland-egl + # Alias definitions if [ -f ~/.aliases ]; then . ~/.aliases @@ -156,7 +160,7 @@ function fn() { } function tolux() { - scp $3 $1 lxf:/home/lxf/$2 + scp $3 "$1" lxf:/home/lxf/$2 } function todis() { diff --git a/.tmux/dev-ccg b/.tmux/dev-ccg new file mode 100644 index 0000000..490802b --- /dev/null +++ b/.tmux/dev-ccg @@ -0,0 +1,5 @@ +neww -n '' +splitw -h -p 36 +send "cd ~/sites/cumuluslearning.net/ && lxc exec ccg -- su - lxf" enter #open vim +selectp -t 1 # select the original pane +send "cd ~/sites/cumuluslearning.net/ && v" enter #open vim diff --git a/.tmux/dev-lbh b/.tmux/dev-lbh new file mode 100644 index 0000000..4010e3f --- /dev/null +++ b/.tmux/dev-lbh @@ -0,0 +1,5 @@ +neww -n '' +splitw -h -p 36 +send "cd ~/sites/libregraf.net/ && lxc exec lbh -- su - lxf" enter #open vim +selectp -t 1 # select the original pane +send "cd ~/sites/libregraf.net/ && v" enter #open vim -- cgit v1.2.3-70-g09d2