Skip to content

Configs

gmircea edited this page Dec 18, 2019 · 20 revisions

MC

  • safe delete
  • Lynx-like motion

mc has the ability to exit to its current directory. Meaning, you can navigate the filesystem using mc (sometimes it’s easier than cding into that one directory buried deep down somewhere) and when you quit mc (F10), your shell will automagically cd to that directory. This is done thanks to the mc-wrapper script that should be bundled with your installation of mc. The exact location is dependent on your distribution - in mine (Gentoo) it’s /usr/libexec/mc/, in Ubuntu supposedly it’s in /usr/share/mc/bin/. Once found, modify your ~/.bashrc:

alias mc='. /usr/libexec/mc/mc-wrapper.sh'

Restart your shell, launch mc, change to another directory, exit and your shell should be set to that new directory.

Use Midnight Commander like a pro

Terminator

Terminator supports tabs. Tab header height is sometimes considered too big. This can be fixed with gtk styling. From version 1.9 Terminator uses gtk+ 3, so that configuration can be done in ~/.config/gtk-3.0/gtk.css. The items to customize are 'notebook tab', 'notebook tab button'. (note that this affects other gtk3 applications, too).

Example config:

~/.config/gtk-3.0/gtk.css
notebook tab {
  min-height: 0;
  padding-top: 2px;
  padding-bottom: 2px;
}

notebook tab button {
  min-height: 0;
  min-width: 0;
  padding: 1px;
  margin-top: 1px;
  margin-bottom: 1px;
}

Active tab background color

Add to ~/.config/gtk-3.0/gtk.css:

.terminator-terminal-window notebook tab:checked {
    background-color: #bcbcbc;
    background-image: none;
}

.terminator-terminal-window notebook tab:checked label {
    color: #303030;

}

Source

Thunar

To execute sh scripts from thunar:

xfconf-query --channel thunar --property /misc-exec-shell-scripts-by-default --create --type bool --set true

View it with xfce4-settings-editor

Xfce mouse pointers

Download and extract the Breeze icons in ~/.icons

They will show up in Settings -> Mouse and Touchpad -> Theme

Thunderbird & Firetray

Starting from TB 60, Firetray doesn't work anymore, it's discontinued... There is a fork which works. Also see that link for discussion. It seems there is an alternative but needs extras to build(you have to built it yourself): https://github.com/gyunaev/birdtray

git clone https://github.com/firetray-updates/FireTray
cd FireTray/src
make build
ls ../build-*/*.xpi    # <-- your xpi, ready to be installed
(you can use a packed extension on Linux, so the xpi is fine)

As I also mentioned in my previous comment, you can just download the source code (even via github), take the src/ directory, rename it to {9533f794-00b4-4354-aa15-c2bbda6989f8} and place it in ~/.thunderbird/PROFILE/extensions. The default profile is something like XXXX.default, read ~/.thunderbird/profiles.ini for the exact name.

Download my builded xpi:

Serviio

config files stored in /usr/share/java/serviio/config

In order to work with Android + BubbleUPnP + MxPlayer a profile needs to be assigned to the Android device, other that the default, otherwise you cannot rewind all the movies.

There are disabled profiles available in a separate file called /usr/share/java/serviio/config/applications-profiles.xml. This is in the config folder. Open the file in a text editor and find your desired profile.

There's also a ServiiGo profile, which is designed for Android devices as well. This needs to be enabled and assigned to the Android device.

sxiv

Browse through images in directory after opening a single file

Place this script in /usr/local/bin and call it like this:

$ sxiv_wrapper.sh a_single_image.jpg

For MC: Edit extension file

Search for the following block and replace action for Open:

include/image
<------>#Open=/usr/lib/mc/ext.d/image.sh open ALL_FORMATS
<------>Open=/usr/local/bin/sxiv_wrapper.sh %f
<------>View=%view{ascii} /usr/lib/mc/ext.d/image.sh view ALL_FORMATS

Display EXIF data in status bar

This script must be copied in the .config directory.

exiftool must be installed.

If data must be read from multiple fields, e.g. in case one is missing use the next available one, use this:

https://exiftool.org/forum/index.php?topic=9647.msg50095#msg50095

XFCE screen blank after lock

For screensaver and locking support install xfce4-screensaver and uninstall light-locker xscreensaver

Then logout and login again.

Clone this wiki locally