Обзор
Следующий сценарий должен быть совместим со всеми менеджерами окон, совместимыми с EWMH (например, xfwm4, openbox, kwin, compiz ...). Он использует wmctrl и xprop, которые могут быть установлены с помощью:
sudo apt-get install x11-utils wmctrl
Обзор
Скопируйте и сохраните следующий фрагмент как simple-window-switcher:
#!/bin/bash
# based on a script by Robert Steiniger
# (http://lars.st0ne.at/blog/switch%20between%20windows%20within%20the%20same%20application)
Usage="
Title: simple-window-switcher 0.1
Description: switch between all windows of active application
Author: Copyright Glutanimate 2014 (https://github.com/Glutanimate)
License: GNU GPLv3
Usage: $(basename "$0") [-g|-l|-h]
-g: global window switching (across all workspaces)
-l: local window switching (current workspace)
-h: display this help message
If no argument is provided window switching will be set to global.
"
while getopts "lgh" OPTIONS; do
case $OPTIONS in
l ) Fields="3-4"
;;
g ) Fields="4"
;;
h ) echo "$Usage"
exit 0
;;
\? ) echo "$Usage"
exit 1
;;
esac
done
ActiveWinID="$(xprop -root | sed -n 's/_NET_ACTIVE_WINDOW(WINDOW): window id # 0x//p')"
# fields 3-4: <desktop number> <window class>
ActiveWinClass="$(wmctrl -xl | grep "$ActiveWinID" | cut -d" " -f${Fields})"
WindowList="$(wmctrl -xl | grep "$ActiveWinClass" | cut -d" " -f1)"
NextWindow="$(echo "$WindowList" | grep -A1 "$ActiveWinID" | sed -n 2p)"
if [[ -z "$NextWindow" ]]; then
NextWindow="$(echo $WindowList | head -n 1)"
fi
wmctrl -i -a "$NextWindow"
Отметьте сценарий как исполняемый файл и сохраните его в любом месте (желательно в вашем PATH, например /usr/local/bin или ~/bin).
Использование [!d11 ]
Используйте меню сочетаний клавиш вашего оконного менеджера, чтобы назначить simple-window-switcher на горячую клавишу по вашему выбору. Вы можете использовать следующие параметры для управления тем, как работает скрипт:
-g: глобальное переключение окон (во всех рабочих пространствах) -l: локальное переключение окон (текущее рабочее пространство); может не работать с Unity / Compiz (см. раздел комментариев для дополнительной информации)Темы прорыва: / usr / share / kde4 / apps / kbreakout / themes / или если у вас есть источники: ... / kbreakout / themes /
Внутри svgz (http: / /en.wikipedia.org/wiki/SVG).
apt-cache show inkscape
Description: vector-based drawing program
Inkscape loads and saves a subset of the SVG (Scalable Vector Graphics)
format, a standard maintained by the WWW consortium.
.
Inkscape user interface should be familiar from CorelDraw and similar
drawing programs. There are rectangles, ellipses, text items, bitmap
images and freehand curves.
As an added bonus, both vector and bitmap objects can have alpha
transparency and can be arbitrarily transformed.
.
Inkscape supports multiple opened files and multiple views per file.
Graphics can be printed and exported to png bitmaps.
.
Some of the import and export features are provided using the packages
dia, libwmf-bin, pstoedit, skencil, imagemagick, and perlmagick.
.
Other extensions use ruby, libxml-xql-perl, python-numpy, and python-lxml.
You must have these packages to make full use of all extensions and effects.
.
If you want to use the spellchecker, you have to install aspell and the
respective language-pack, e.g. aspell-en or aspell-de.
Homepage: http://www.inkscape.org/