Fluxbox - простой и минималистичный менеджер окон для X Window System.
-
nk
- Модератор
- Сообщения: 480
- Зарегистрирован: 14 сен 2014, 00:35
-
Темы:
85
-
Статус:
Не в сети
Сообщение
nk » 16 май 2015, 19:55
~/.fluxbox/keys - файл отвечающий за хоткеи, клавиши клавиатуры и кнопки мыши в WM:Fluxbox.
Шпаргалка по кнопкам, что чему соответствувет:
Код: Выделить всё
# ------------------------------------------
# Mouse1 == left click
# Mouse2 == middle click (e.g. mouse wheel click)
# Mouse3 == right click
# Mouse4 == mouse wheel up
# Mouse5 == mouse wheel down
# -------------------------------------------
Код: Выделить всё
# ------------------------------------------
# Mod1 == Alt
# Mod4 == Windows key
# Super == Windows key
# Control == Ctrl
# Shift == Shift
# Return == Enter
# Escape == Esc
# ------------------------------------------
Доп.информация:
Keyboard shortcuts: fluxbox-keys - fluxbox-wiki
- сделаем, что бы окно, если его потянуть за заголовок, переставало быть развернутым на весь экран и принимало свой прежний размер, в ~/.fluxbox/keys закомментируйте и пропишите:
Код: Выделить всё
# OnTitlebar Move1 :StartMoving
OnTitlebar Move1 :If {Matches (Maximized=yes)} {MacroCmd {Maximize} {MoveTo \* 0% Top} {Raise} {Focus} {StartMoving}} {MacroCmd {Raise} {Focus} {StartMoving}}
и сделайте: [reconfig] (Reload config)
аналогично можно применить и для таскания распахнутого окна и сочитании alt+лкм
Код: Выделить всё
OnWindow Mod1 Mouse1 :If {Matches (Maximized=yes)} {MacroCmd {Maximize} {MoveTo \* 0% Top} {Raise} {Focus} {StartMoving}} {MacroCmd {Raise} {Focus} {StartMoving}}
- делаем что бы по 2 клику ПКМ по рамке окна - оно разворачивалось во весь экран, а не сворачивалось в заголовок
Код: Выделить всё
# double click on the titlebar to shade
#OnTitlebar Double Mouse1 :Shade
OnTitlebar Double Mouse1 :Maximize
- назначим клавишу Insert на выключение экрана
Код: Выделить всё
# Blank screen
Insert :exec xset dpms force off
- PrintScreen, вызов программы screengrab по нажатию на клавишу PrntScr/PrtScn
- Запускать блокировщик экрана xlock
Код: Выделить всё
#Mod4 l :exec xlock -mode matrix
Mod4 l :exec xlock
- Вызов главного меню клавишей Win:
- Fluxbox-Restart
- Разместить окно по-центру
- скрыть декорацию
- cделаем что бы все окна скрывались по правой клавише Правому Win и Space
- Повторное нажатие ЛКМ по столу скриывает flux-меню
Код: Выделить всё
#OnDesktop Mouse3 :RootMenu
OnDesktop Mouse3 :ToggleCmd {RootMenu} {HideMenus}
- Cделаем что бы по клику ПКМ по рамке окна не выпадало меню окна, а появлялась возможность изменения размера окна
Код: Выделить всё
# right click on the titlebar for a menu of options
#OnTitlebar Mouse3 :WindowMenu
OnTitlebar Mouse3 :MacroCmd {Raise} {Focus} {StartResizing NearestCorner}
- Что бы можно было изменять размер окна по нижней границе и ЛКМ, но Внимание!
только смотрите, данный параметр применится и для верхней и нижней граници
Код: Выделить всё
#OnWindowBorder Move1 :StartMoving
OnWindowBorder Move1 :StartResizing bottom
Аналогично сделаем что бы можно было менять размер зажав ПКМ
Код: Выделить всё
OnWindowBorder Move3 :StartResizing bottom
OnLeftGrip Move3 :StartResizing bottomleft
OnRightGrip Move3 :StartResizing bottomright
- Сделаем чтобы зажав кнопку Alt и ЛКМ можно было перемещать окно, и при этом оно не становилось активным и не поднималась на передний план
Код: Выделить всё
#OnWindow Mod1 Mouse1 :MacroCmd {Raise} {Focus} {StartMoving}
OnWindow Mod1 Mouse1 :MacroCmd {StartMoving}
- Распахнуть активное окно по-центру
- Убрать декорацию активного окна
- Закрыть окно
-
nk
- Модератор
- Сообщения: 480
- Зарегистрирован: 14 сен 2014, 00:35
-
Темы:
85
-
Статус:
Не в сети
Сообщение
nk » 21 май 2015, 19:51
Keyboard shortcuts:
fluxbox-keys - fluxbox-wiki
Пример настройки мультимедийных кнопок для клавиатуры
logitech mx5000
http://ben.lobaugh.net/blog/104/2009-fluxbox-keys-file писал(а):Код: Выделить всё
# Special keyboard codes for audio!!
# **** logitech mx5000
# volume settings, using common keycodes
# if these don't work, use xev to find out your real keycodes
123 :Exec amixer sset Master,0 1+
122 :Exec amixer sset Master,0 1-
121 :Exec amixer sset Master,0 toggle
172 :Exec amarok --play-pause
174 :Exec amarok -s
171 :Exec amarok --next
173 :Exec amarok --previous
179 :Exec amarok
-
nk
- Модератор
- Сообщения: 480
- Зарегистрирован: 14 сен 2014, 00:35
-
Темы:
85
-
Статус:
Не в сети
Сообщение
nk » 12 июн 2017, 20:37
Простенький ТАЙЛИНГ! по хоткеям
- FluxBox; Is tiling possible?
Код: Выделить всё
# splits all windows side by side
Mod4 w Mod4 q :ArrangeWindowsVertical
# splits all windows from top to bottom
Mod4 w Mod4 a :ArrangeWindowsHorizontal
ArrangeWindows pattern / ArrangeWindowsVertical pattern / ArrangeWindowsHorizontal pattern
Tries to arrange all windows on the current workspace so that they overlap the least amount possible. ArrangeWindowsVertical prefers vertical splits (windows side by side), whereas ArrangeWindowsHorizontal prefers horizontal splits (windows on top of eachother). See CLIENT PATTERNS for more about the pattern arguments.
ArrangeWindowsStackLeft pattern / ArrangeWindowsStackRight pattern
Similar to ArrangeWindows, these commands arrange windows on the current workspace. The currently focussed window is used as the main window, and will fill half the screen, while the other windows are tiled on the other half of the screen as if they were tiled with ArrangeWindows. ArrangeWindowsStackLeft puts the main window on the RIGHT hand side of the screen, and the tiled windows are on the LEFT hand side of the screen. ArrangeWindowsStackRight puts the main window on the LEFT hand side of the screen, and the tiled windows are on the RIGHT hand side of the screen.
ArrangeWindowsStackTop pattern / ArrangeWindowsStackBottom pattern
Behaves just like ArrangeWindowsStackLeft and ArrangeWindowsStackRight. ArrangeWindowsStackBottom places the main window on the TOP half of the screen, and the tiled windows on the bottom half of the screen. ArrangeWindowsStackTop places the main window on the BOTTOM half of the screen and the tiled windows on the top half of the screen.
- Разместить окно по-центру
Код: Выделить всё
# Win.Pos.
Alt_R :MacroCmd {Moveto 0 0 center}
- Сместить окно к краю экраная по Alt и соотв клавише
Код: Выделить всё
# MoveToBorder
Mod1 q :MoveTo 00 00 UpperLeft
Mod1 w :MoveTo 00 00 UpperRight
Mod1 a :MoveTo 00 00 LowerLeft
Mod1 s :MoveTo 00 00 LowerRight
- Изменение размера и положения активного окна Alt+ КЛАВИША (мозаичность)
Код: Выделить всё
# 1/2 - WxH - 50x100
Mod4 1 :MacroCmd {ResizeTo 50% 99%} {MoveTo 00 00 LowerLeft}
Mod4 2 :MacroCmd {ResizeTo 70% 88%} {MoveTo 00 00 Center}
Mod4 3 :MacroCmd {ResizeTo 50% 99%} {MoveTo 00 00 LowerRight}
Mod4 4 :Maximize
Mod4 5 :Minimize
# 1/4 - WxH - 50x50
Mod4 q :MacroCmd {ResizeTo 50% 50%} {MoveTo 00 00 UpperLeft}
Mod4 a :MacroCmd {ResizeTo 50% 50%} {MoveTo 00 00 LowerLeft}
Mod4 w :MacroCmd {ResizeTo 50% 50%} {MoveTo 00 00 UpperRight}
Mod4 s :MacroCmd {ResizeTo 50% 50%} {MoveTo 00 00 LowerRight}
- Располагаем по-центру и изменяем размер Win+Стрелочки , либо заживаем еще ctrl и меняем только размер
Код: Выделить всё
# 1 size +/- 20
Mod4 Left :MacroCmd {ResizeHorizontal -20} {MoveTo 00 00 Center}
Mod4 Right :MacroCmd {ResizeHorizontal +20} {MoveTo 00 00 Center}
Mod4 Up :MacroCmd {ResizeVertical +20} {MoveTo 00 00 Center}
Mod4 Down :MacroCmd {ResizeVertical -20} {MoveTo 00 00 Center}
# 1 size +/- 01
Mod4 Control Left :Resize -05 00
Mod4 Control Right :Resize +05 00
Mod4 Control Up :Resize 00 +05
Mod4 Control Down :Resize 00 -05
Сейчас этот форум просматривают: нет зарегистрированных пользователей и 0 гостей