/MyElementaryOsNote

This is the config of libinput-gesture on my linux

Primary LanguageShell

Readme

Here are my elementary OS some configurations.

git repository

Yimac:MyElementaryOsNote dexter$ git remote -v
github	git@github.com:dexterlu/MyElementaryOsNote.git (fetch)
github	git@github.com:dexterlu/MyElementaryOsNote.git (push)
origin	ssh://dexter@sandydexter.direct.quickconnect.to/volume1/git/MyElementaryOsNote (fetch)
origin	ssh://dexter@sandydexter.direct.quickconnect.to/volume1/git/MyElementaryOsNote (push)

Elementary OS must install

Some apps to installl

sudo apt install vlc
sudo apt-get install unace rar unrar p7zip-rar p7zip sharutils uudeview mpack arj cabextract lzip lunzip
sudo apt-get install libreoffice
sudo apt-get install chromium-browser firefox
sudo apt install openssh-server
sudo apt install gimp
sudo apt install audacity
sudo apt install build-essential
sudo apt install solaar solaar-gnome3

電源管理 sudo apt install tlp

Check your card and set profile

pactl list cards short pacmd set-card-profile

Change Bluetooth profile to A2DP

pacmd set-card-profile bluez_card.28_11_A5_45_6F_35 a2dp_sink

Apps configuration

libinput-gestures

增强Touchpad板功能 使用的工具是 libinput-gestures,按照 Github 上的說明安裝即可。

Install

Following : https://github.com/bulletmark/libinput-gestures

Install lib
sudo gpasswd -a $USER input
sudo apt-get install xdotool wmctrl
sudo apt-get install libinput-tools
Install this software:
git clone https://github.com/bulletmark/libinput-gestures.git
cd libinput-gestures
sudo make install (or sudo ./libinput-gestures-setup install)
CONFIGURATION and run
libinput-gestures-setup autostart
libinput-gestures-setup start
Replace my setting
cp libinput-gestures.conf /etc/libinput-gestures.conf
libinput-gestures-setup stop
libinput-gestures-setup start
My Setting
# libinput-gestures -l
libinput-gestures -l
libinput-gestures: session pantheon+x11 on Linux-4.15.0-47-generic-x86_64-with-elementary-5.0-juno, python 3.6.7, libinput 1.10.4
/usr/bin/libinput-gestures: hash 22c5b1ff726b44d6d9bec968a03c3901
Gestures configured in ~/.config/libinput-gestures.conf:
swipe up         3 xdotool key ctrl+alt+Up
swipe up         4 xdotool key super+a
swipe down       3 xdotool key ctrl+Home
swipe down       4 xdotool key super+space
swipe left       3 xdotool key alt+Left
swipe right      3 xdotool key alt+Right
swipe left       4 _internal ws_up
swipe right      4 _internal ws_down
swipe right_down 3 xdotool key control+w
pinch out        2 xdotool key control+shift+plus
pinch in         2 xdotool key control+minus
libinput-gestures: device /dev/input/event7: ETPS/2 Elantech Touchpad

Terminal alternative

How can I change the default Terminal app?

You can set the default terminal by changing the alternative for x-terminal-emulator. Installing gnome-terminal creates an alternative symlink so all you have to do is set it.

sudo update-alternatives --set x-terminal-emulator /usr/bin/gnome-terminal.wrapper Edit: It seems like the shortcut implementation is not using the alternative, but rather a gsettings configuration. It's still a good idea to set the alternative symlink above, however, to use the keyboard shortcut some gsettings properties will need to be modified. Use dconf-editor (sudo apt-get install dconf-editor) or gsettings to change the default terminal application to gnome-terminal. You will need to modify the exec and exec-arg properties in the org.gnome.desktop.default-applications.terminal schema.

gsettings set org.gnome.desktop.default-applications.terminal exec gnome-terminal
gsettings set org.gnome.desktop.default-applications.terminal exec-arg ''

customize dock panel on Ubuntu 20.04

ref: https://linuxconfig.org/how-to-customize-dock-panel-on-ubuntu-20-04-focal-fossa-linux

gsettings set org.gnome.shell.extensions.dash-to-dock extend-height false
gsettings set org.gnome.shell.extensions.dash-to-dock dock-position BOTTOM
gsettings set org.gnome.shell.extensions.dash-to-dock transparency-mode FIXED
gsettings set org.gnome.shell.extensions.dash-to-dock dash-max-icon-size 64
gsettings set org.gnome.shell.extensions.dash-to-dock unity-backlit-items true

Tweak

https://linuxconfig.org/how-to-install-tweak-tool-on-ubuntu-20-04-lts-focal-fossa-linux

The first step is to make sure that we have the universe repository enabled on our Ubuntu system: $ sudo add-apt-repository universe Once ready, execute the following command to install Tweak Tool on your Ubuntu 20.04 system: $ sudo apt install gnome-tweak-tool Use activities and search for tweak keyword to start the Tweak Tool. Alternatively, execute the bellow command: $ gnome-tweaks ( optional ) You may now install additional extensions to further tweak your system. Search for available gnome shell extensions: $ apt search gnome-shell-extension Next, either install only selected extensions for example: $ sudo apt install gnome-shell-extension-gsconnect or install all extensions: $ sudo apt install $(apt search gnome-shell-extension | grep ^gnome | cut -d / -f1)

Keychron

Change Function Key behavior

ref: https://help.ubuntu.com/community/AppleKeyboard#Change_Function_Key_behavior

This section of the document describe how to change the behavior of 'fn' key to better match what user expect. (See #201711, #162083) Here a description of each behavior : 0 = disabled : Disable the 'fn' key. Pressing 'fn'+'F8' will behave like you only press 'F8' 1 = fkeyslast : Function keys are used as last key. Pressing 'F8' key will act as a special key. Pressing 'fn'+'F8' will behave like a F8. 2 = fkeysfirst : Function keys are used as first key. Pressing 'F8' key will behave like a F8. Pressing 'fn'+'F8' will act as special key (play/pause)

  • Switch to "Windows/Android" $ echo 0 | sudo tee /sys/module/hid_apple/parameters/fnmode
  • Switch to "iOS" $ echo 2 | sudo tee /sys/module/hid_apple/parameters/fnmode

You can also change your driver settings to make this change permanent, like so:

echo options hid_apple fnmode=0 | sudo tee -a /etc/modprobe.d/hid_apple.conf
sudo update-initramfs -u -k all
# reboot when convenient

Keychron Bluetooth setting in Ubuntu

bluetoothctl connect DC:2C:26:43:18:B4

Script: (save it as /home/username/connect_speaker.sh)

#!/usr/bin/bash
bluetoothctl trust DC:2C:26:43:18:B4
bluetoothctl disconnect DC:2C:26:43:18:B4
bluetoothctl connect DC:2C:26:43:18:B4