User:Pali/Notes, tips and tricks

Customize Firefox
mousewheel.with_shift.action 2 mousewheel.default.delta_multiplier_y 300 mousewheel.with_alt.action 1 mousewheel.with_alt.delta_multiplier_y 900
 * in about:config

browser.tabs.warnOnOpen false browser.tabs.insertRelatedAfterCurrent true browser.tabs.drawInTitlebar true toolkit.tabbox.switchByScrolling true ui.key.menuAccessKeyFocuses false accessibility.browsewithcaret false accessibility.warn_on_browsewithcaret true
 * tabs in titlebar
 * switch tabs by wheel
 * suppress menu by Alt key (use key combination, ex. Alt-f ... File)
 * allow arrow keys for page movement, warn accidental change (by key F7)

Extension for external editor
cd /tmp git clone --recurse-submodules https://github.com/jlebon/textern cd textern
 * best is textern https://github.com/jlebon/textern
 * short install steps

make native-install USER=1 ["gvim","-f", "+%l"] Ctrl+Alt+D wiki
 * následně nainstalovat vlastní extenzi: https://addons.mozilla.org/cs/firefox/addon/textern/
 * a nastavit příkaz:
 * nastavit zkratku: (default: Ctrl+Shift+D)
 * Document extension

Customize desktop / gnome-shell
dconf write /org/gnome/desktop/wm/preferences/focus-mode '"sloppy"' dconf write /org/gnome/desktop/wm/preferences/raise-on-click false dconf write /org/gnome/desktop/input-sources/per-window true dconf write /org/gnome/desktop/input-sources/sources "[('xkb', 'us'), ('xkb', 'cz')]" dconf write /org/gnome/desktop/input-sources/xkb-options "['grp_led:scroll', 'grp:shifts_toggle']" dconf write /org/gnome/libgnomekbd/desktop/group-per-window true dconf write /org/gnome/libgnomekbd/desktop/default-group 0 dconf write /org/gnome/libgnomekbd/desktop/group-per-window true dconf write /org/gnome/libgnomekbd/desktop/default-group -1
 * window mode
 * keyboard switch us/en shortcut (GUI: use gnome-tweak-tool (Psaní -> Modifiers-only input source switch -> Shift L Shift R)
 * CINNAMON: nastavení default klávesnice group-per-window
 * CINNAMON: nastavení aktuální klávesnice group-per-window

dconf write /org/gnome/desktop/wm/keybindings/raise-or-lower "['space']" dconf write /org/gnome/desktop/wm/keybindings/maximize-vertically "['Down']" dconf write /org/gnome/desktop/wm/keybindings/maximize-horizontally "['Right']" dconf write /org/gnome/desktop/wm/preferences/mouse-button-modifier '""' dconf write /org/gnome/shell/overrides/button-layout '":minimize,maximize,close"' dconf write /org/gnome/shell/overrides/workspaces-only-on-primary false gsettings set org.gnome.settings-daemon.plugins.media-keys custom-keybindings "['/org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/custom0/','/org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/custom1/']"
 * window raise-or-lower from Window key to Alt key: "['space']" je již použito
 * maximize window vertically, horizontally:
 * modifikátor kliknutí myši: v F20 je to nově klávesa Super, tímto vrátíme původní chování
 * nastavení tlačítek na okně
 * pro duální monitor, virtuální pracovní plochy budou na obou monitorech
 * nastavení vlastních zkratek

gsettings set org.gnome.settings-daemon.plugins.media-keys.custom-keybinding:/org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/custom0/ name 'Terminal' gsettings set org.gnome.settings-daemon.plugins.media-keys.custom-keybinding:/org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/custom0/ binding 'x' gsettings set org.gnome.settings-daemon.plugins.media-keys.custom-keybinding:/org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/custom0/ command 'gnome-terminal --hide-menubar'

gsettings set org.gnome.settings-daemon.plugins.media-keys.custom-keybinding:/org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/custom1/ name 'MC' gsettings set org.gnome.settings-daemon.plugins.media-keys.custom-keybinding:/org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/custom1/ binding 'c' gsettings set org.gnome.settings-daemon.plugins.media-keys.custom-keybinding:/org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/custom1/ command 'gnome-terminal --hide-menubar --geometry=120x40 --zoom=1.0 --command mc' dconf write /org/gnome/nautilus/preferences/click-policy "'single'" dconf write /org/gnome/nautilus/preferences/sort-directories-first true dconf write /org/gnome/shell/overrides/attach-modal-dialogs false dconf write /org/gnome/shell/always-show-log-out true dconf write /org/gnome/settings-daemon/plugins/xsettings/antialiasing "'rgba'" dconf write /org/gnome/settings-daemon/plugins/xsettings/hinting "'slight'" dconf write /org/gnome/terminal/legacy/default-show-menubar false dconf write /org/gnome/terminal/legacy/menu-accelerator-enabled false dconf write /org/gnome/terminal/legacy/profiles:/:b1dcc9dd-5262-4d8d-a863-c897e6d979b9/use-system-font true dconf write /org/gnome/terminal/legacy/profiles:/:b1dcc9dd-5262-4d8d-a863-c897e6d979b9/audible-bell false dconf write /org/gnome/settings-daemon/peripherals/touchpad/touchpad-enabled false
 * nautilus: single-click
 * nautilus: Zobrazovat v oknech nejdříve složky
 * detach modal windows
 * Gnome Shell Logout option comes back for single accounts (for more info see http://www.ryanlerch.org/blog/no-logout-option-in-the-gnome-shell-user-menu/)
 * nastavení pro lepší fonty
 * gnome-terminal: bez menu lišty a zkratky (F10)
 * gnome-terminal: systémový font, bez beep
 * touchpad