.bashrc: Right Windows key = left mouse button.

This commit is contained in:
Ole Tange 2023-02-08 00:26:00 +01:00
parent 017d33ac7b
commit 5699f0b461
2 changed files with 22 additions and 4 deletions

View file

@ -171,8 +171,8 @@ alias y='idok -port $((RANDOM+2000))'
# gqview ui? # gqview ui?
#export QT_SCALE_FACTOR=2 #export QT_SCALE_FACTOR=2
MANPATH=$MANPATH:$HOME/share/man MANPATH=$MANPATH:$HOME/share/man
if [ -f ~/.mysqlrootpassword ]; then if [ -f ~/.passwords ]; then
export mysqlrootpass=$(cat ~/.mysqlrootpassword) . ~/.passwords
fi fi
cat <<EOF | bash 2>/dev/null >/dev/null cat <<EOF | bash 2>/dev/null >/dev/null
@ -214,6 +214,7 @@ cat <<EOF | bash 2>/dev/null >/dev/null
# => # =>
# key <COMP> { [ Pointer_Button2 ] }; # key <COMP> { [ Pointer_Button2 ] };
perl -pe '/key <COMP>/ && s/\[.*\]/ [ Pointer_Button2 ]/' | perl -pe '/key <COMP>/ && s/\[.*\]/ [ Pointer_Button2 ]/' |
perl -pe '/key <RWIN>/ && s/\[.*\]/ [ Pointer_Button1 ]/' |
sed -e '/interpret KP_/,/};/d' | sed -e '/interpret KP_/,/};/d' |
# Replace numpad , with . # Replace numpad , with .
sed -e 's/ KP_Separator / period /' | sed -e 's/ KP_Separator / period /' |
@ -235,7 +236,9 @@ IO() {
perl -ne 'BEGIN { $| = 1; $string = shift } perl -ne 'BEGIN { $| = 1; $string = shift }
s/(........)(\s+\S+)(\s+\S+)(\s+\S+)(\s+\S+)(\s+\S+)(\s+\S+)(\s+\S+)(\s+\S+)(\s+\S+)(\s+\S+)(\s+\S+)(\s+\S+)(\s+\S+)(\s+\S+)(\s+\S+)(\s+\S+)(\s+\S+)(\s+\S+)(\s+\S+)(\s+\S+)/$1$3$9$21/ s/(........)(\s+\S+)(\s+\S+)(\s+\S+)(\s+\S+)(\s+\S+)(\s+\S+)(\s+\S+)(\s+\S+)(\s+\S+)(\s+\S+)(\s+\S+)(\s+\S+)(\s+\S+)(\s+\S+)(\s+\S+)(\s+\S+)(\s+\S+)(\s+\S+)(\s+\S+)(\s+\S+)/$1$3$9$21/
|| ||
s/(........)(\s+\S+)(\s+\S+)(\s+\S+)(\s+\S+)(\s+\S+)(\s+\S+)(\s+\S+)(\s+\S+)(\s+\S+)(\s+\S+)(\s+\S+)(\s+\S+)(\s+\S+)(\s+\S+)(\s+\S+)/$1$4$5$16/; s/(........)(\s+\S+)(\s+\S+)(\s+\S+)(\s+\S+)(\s+\S+)(\s+\S+)(\s+\S+)(\s+\S+)(\s+\S+)(\s+\S+)(\s+\S+)(\s+\S+)(\s+\S+)(\s+\S+)(\s+\S+)/$1$4$5$16/
||
s/(........)(\s+\S+)(\s+\S+)(\s+\S+)(\s+\S+)(\s+\S+)(\s+\S+)(\s+\S+)(\s+\S+)(\s+\S+)(\s+\S+)(\s+\S+)(\s+\S+)(\s+\S+)/$1$6$7$14/;
/Device/ and print and next; /Device/ and print and next;
m^$string^ and print; m^$string^ and print;
' $string; ' $string;
@ -244,7 +247,20 @@ ORACLE_HOME=/usr/lib/oracle/19.6/client64
PATH=$PATH:$ORACLE_HOME/bin PATH=$PATH:$ORACLE_HOME/bin
export ORACLE_HOME export ORACLE_HOME
export ORACLE_SID=XE export ORACLE_SID=XE
ppid() { ps -o ppid -p "$@" | tail -n1; } ppid() {
for _pid in "$@" ; do
ps -o ppid -p "$_pid" | tail -n1;
done
}
# Add dotnet + go binaries # Add dotnet + go binaries
export PATH="$PATH:$HOME/.dotnet/tools:$HOME/go/bin" export PATH="$PATH:$HOME/.dotnet/tools:$HOME/go/bin"
PLAN9=/usr/local/plan9 export PLAN9
PATH=$PATH:$PLAN9/bin export PATH
export DRAC_HOST=drac.lan
LBRY_YOUTUBEDL="torsocks yt-dlp"
export LBRY_YOUTUBEDL
YOUTUBE="yt-dlp"
export YOUTUBE
export SMALLDISK=/mnt/ram

View file

@ -1,6 +1,8 @@
#!/bin/sh #!/bin/sh
# Search for cryptkey.txt # Search for cryptkey.txt
# Run:
# update-initramfs -u
PREREQ="cryptroot-prepare" PREREQ="cryptroot-prepare"