sorry, no commit msg
This commit is contained in:
parent
ee0d13f225
commit
831c51fcec
27 changed files with 278 additions and 91 deletions
|
|
@ -1,6 +1,8 @@
|
|||
|
||||
dopath("cfg_defaults")
|
||||
|
||||
dopath("mod_statusbar")
|
||||
|
||||
-- Mod1 = Alt
|
||||
-- Mod4 = Window
|
||||
-- rajouter "+" après le code pour les concaténations suivantes
|
||||
|
|
@ -81,8 +83,11 @@ defbindings("WScreen", {
|
|||
kpress(META.."8", "WScreen.switch_nth(_, 7)"),
|
||||
kpress(META.."9", "WScreen.switch_nth(_, 8)"),
|
||||
kpress(META.."0", "WScreen.switch_nth(_, 9)"),
|
||||
|
||||
kpress(META.."N", "ioncore.goto_nextact()")
|
||||
|
||||
kpress(META.."N", "ioncore.goto_nextact()"),
|
||||
|
||||
bdoc("Create a new workspace of chosen default type."),
|
||||
kpress(META.."F9", "ioncore.create_ws(_)")
|
||||
})
|
||||
|
||||
defbindings("WTiling", {
|
||||
|
|
@ -115,7 +120,101 @@ defbindings("WTiling", {
|
|||
kpress(META.."D", "WTiling.unsplit_at(_, _sub)"),
|
||||
})
|
||||
|
||||
defbindings("WScreen", {
|
||||
bdoc("Toggle scratchpad."),
|
||||
kpress(META.."space", "mod_sp.set_shown_on(_, 'toggle')"),
|
||||
|
||||
-- A more ideal key for toggling the scratchpad would be the key left of
|
||||
-- the key for numeral 1. Unfortunately the symbols mapped to this key
|
||||
-- vary by the keyboard layout, and to be fully portable to different
|
||||
-- architechtures and fancy keyboards, we can't rely on keycodes either.
|
||||
-- However, on standard Finnish/Swedish (and other Nordic) keyboard
|
||||
-- layouts the following should work:
|
||||
--kpress(META.."section", "mod_sp.set_shown_on(_, 'toggle')"),
|
||||
-- and on UK and US layouts this should work:
|
||||
--kpress(META.."grave", "mod_sp.set_shown_on(_, 'toggle')"),
|
||||
})
|
||||
|
||||
-- pour mettre la stalonetray dans le dock
|
||||
-- defwinprop {class="stalonetray", statusbar="dock"}
|
||||
|
||||
-- WFrame context bindings
|
||||
--
|
||||
-- These bindings are common to all types of frames. Some additional
|
||||
-- frame bindings are found in some modules' configuration files.
|
||||
|
||||
defbindings("WFrame", {
|
||||
submap(META.."K", {
|
||||
bdoc("Maximize the frame horizontally/vertically."),
|
||||
kpress("H", "WFrame.maximize_horiz(_)"),
|
||||
kpress("V", "WFrame.maximize_vert(_)"),
|
||||
}),
|
||||
|
||||
bdoc("Display context menu."),
|
||||
mpress("Button3", "mod_menu.pmenu(_, _sub, 'ctxmenu')"),
|
||||
|
||||
bdoc("Begin move/resize mode."),
|
||||
kpress(META.."R", "WFrame.begin_kbresize(_)"),
|
||||
|
||||
bdoc("Switch the frame to display the object indicated by the tab."),
|
||||
mclick("Button1@tab", "WFrame.p_switch_tab(_)"),
|
||||
mclick("Button2@tab", "WFrame.p_switch_tab(_)"),
|
||||
|
||||
bdoc("Resize the frame."),
|
||||
mdrag("Button1@border", "WFrame.p_resize(_)"),
|
||||
mdrag(META.."Button3", "WFrame.p_resize(_)"),
|
||||
|
||||
bdoc("Move the frame."),
|
||||
mdrag(META.."Button1", "WFrame.p_move(_)"),
|
||||
|
||||
bdoc("Move objects between frames by dragging and dropping the tab."),
|
||||
mdrag("Button1@tab", "WFrame.p_tabdrag(_)"),
|
||||
mdrag("Button2@tab", "WFrame.p_tabdrag(_)"),
|
||||
|
||||
bdoc("Switch to next/previous object within the frame."),
|
||||
mclick(META.."Button4", "WFrame.switch_next(_)"),
|
||||
mclick(META.."Button5", "WFrame.switch_prev(_)"),
|
||||
})
|
||||
|
||||
|
||||
-- WMoveresMode context bindings
|
||||
--
|
||||
-- These bindings are available keyboard move/resize mode. The mode
|
||||
-- is activated on frames with the command begin_kbresize (bound to
|
||||
-- META.."R" above by default).
|
||||
|
||||
defbindings("WMoveresMode", {
|
||||
bdoc("Cancel the resize mode."),
|
||||
kpress("AnyModifier+Escape","WMoveresMode.cancel(_)"),
|
||||
|
||||
bdoc("End the resize mode."),
|
||||
kpress("AnyModifier+Return","WMoveresMode.finish(_)"),
|
||||
|
||||
bdoc("Grow in specified direction."),
|
||||
kpress("Left", "WMoveresMode.resize(_, 1, 0, 0, 0)"),
|
||||
kpress("Right", "WMoveresMode.resize(_, 0, 1, 0, 0)"),
|
||||
kpress("Up", "WMoveresMode.resize(_, 0, 0, 1, 0)"),
|
||||
kpress("Down", "WMoveresMode.resize(_, 0, 0, 0, 1)"),
|
||||
|
||||
bdoc("Shrink in specified direction."),
|
||||
kpress("Shift+Left", "WMoveresMode.resize(_,-1, 0, 0, 0)"),
|
||||
kpress("Shift+Right", "WMoveresMode.resize(_, 0,-1, 0, 0)"),
|
||||
kpress("Shift+Up", "WMoveresMode.resize(_, 0, 0,-1, 0)"),
|
||||
kpress("Shift+Down", "WMoveresMode.resize(_, 0, 0, 0,-1)"),
|
||||
|
||||
bdoc("Move in specified direction."),
|
||||
kpress(META.."Left", "WMoveresMode.move(_,-1, 0)"),
|
||||
kpress(META.."Right", "WMoveresMode.move(_, 1, 0)"),
|
||||
kpress(META.."Up", "WMoveresMode.move(_, 0,-1)"),
|
||||
kpress(META.."Down", "WMoveresMode.move(_, 0, 1)"),
|
||||
})
|
||||
|
||||
|
||||
-- Client window group bindings
|
||||
|
||||
defbindings("WGroupCW", {
|
||||
bdoc("Toggle client window group full-screen mode"),
|
||||
kpress_wait(META.."Return", "WGroup.set_fullscreen(_, 'toggle')"),
|
||||
})
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -38,47 +38,48 @@ mod_statusbar.create{
|
|||
--
|
||||
--template="[ %date || load:% %>load || mail:% %>mail_new/%>mail_total ] %filler%systray",
|
||||
--template=" %filler%systray [ load: % %>load || mail: %>mail_new/%>mail_total || %date ]",
|
||||
template="%date %systray_dock %systray %workspace_pager bat: %laptopstatus_batterypercent (%laptopstatus_batterytimeleft) %filler %vv_disk_ - %vv_disk_home",
|
||||
}
|
||||
|
||||
-- Create a statusbar
|
||||
mod_statusbar.create{
|
||||
-- First screen, bottom left corner
|
||||
screen=1,
|
||||
pos='tr',
|
||||
-- Set this to true if you want a full-width statusbar
|
||||
fullsize=false,
|
||||
-- Swallow systray windows
|
||||
systray=true,
|
||||
|
||||
-- Template. Tokens %string are replaced with the value of the
|
||||
-- corresponding meter. Currently supported meters are:
|
||||
-- date date
|
||||
-- load load average (1min, 5min, 15min)
|
||||
-- load_Nmin N minute load average (N=1, 5, 15)
|
||||
-- mail_new mail count (mbox format file $MAIL)
|
||||
-- mail_unread mail count
|
||||
-- mail_total mail count
|
||||
-- mail_*_new mail count (from an alternate mail folder, see below)
|
||||
-- mail_*_unread mail count
|
||||
-- mail_*_total mail count
|
||||
--
|
||||
-- Space preceded by % adds stretchable space for alignment of variable
|
||||
-- meter value widths. > before meter name aligns right using this
|
||||
-- stretchable space , < left, and | centers.
|
||||
-- Meter values may be zero-padded to a width preceding the meter name.
|
||||
-- These alignment and padding specifiers and the meter name may be
|
||||
-- enclosed in braces {}.
|
||||
--
|
||||
-- %filler causes things on the marker's sides to be aligned left and
|
||||
-- right, respectively, and %systray is a placeholder for system tray
|
||||
-- windows and icons.
|
||||
--
|
||||
--template="[ %date || load:% %>load || mail:% %>mail_new/%>mail_total ] %filler%systray",
|
||||
--template=" %filler%systray [ load: % %>load || mail: %>mail_new/%>mail_total || %date ]",
|
||||
template="%filler %systray_dock %systray %date",
|
||||
-- template="%date %systray_dock %systray %workspace_pager bat: %laptopstatus_batterypercent (%laptopstatus_batterytimeleft) %filler %vv_disk_ - %vv_disk_home",
|
||||
template="%date %systray_dock systray %workspace_pager %filler %vv_disk_ - %vv_disk_home",
|
||||
}
|
||||
|
||||
-- -- Create a statusbar
|
||||
-- mod_statusbar.create{
|
||||
-- -- First screen, bottom left corner
|
||||
-- screen=1,
|
||||
-- pos='tr',
|
||||
-- -- Set this to true if you want a full-width statusbar
|
||||
-- fullsize=false,
|
||||
-- -- Swallow systray windows
|
||||
-- systray=true,
|
||||
--
|
||||
-- -- Template. Tokens %string are replaced with the value of the
|
||||
-- -- corresponding meter. Currently supported meters are:
|
||||
-- -- date date
|
||||
-- -- load load average (1min, 5min, 15min)
|
||||
-- -- load_Nmin N minute load average (N=1, 5, 15)
|
||||
-- -- mail_new mail count (mbox format file $MAIL)
|
||||
-- -- mail_unread mail count
|
||||
-- -- mail_total mail count
|
||||
-- -- mail_*_new mail count (from an alternate mail folder, see below)
|
||||
-- -- mail_*_unread mail count
|
||||
-- -- mail_*_total mail count
|
||||
-- --
|
||||
-- -- Space preceded by % adds stretchable space for alignment of variable
|
||||
-- -- meter value widths. > before meter name aligns right using this
|
||||
-- -- stretchable space , < left, and | centers.
|
||||
-- -- Meter values may be zero-padded to a width preceding the meter name.
|
||||
-- -- These alignment and padding specifiers and the meter name may be
|
||||
-- -- enclosed in braces {}.
|
||||
-- --
|
||||
-- -- %filler causes things on the marker's sides to be aligned left and
|
||||
-- -- right, respectively, and %systray is a placeholder for system tray
|
||||
-- -- windows and icons.
|
||||
-- --
|
||||
-- --template="[ %date || load:% %>load || mail:% %>mail_new/%>mail_total ] %filler%systray",
|
||||
-- --template=" %filler%systray [ load: % %>load || mail: %>mail_new/%>mail_total || %date ]",
|
||||
-- template="%filler %systray_dock %systray %date",
|
||||
-- }
|
||||
--
|
||||
|
||||
|
||||
-- Launch ion-statusd. This must be done after creating any statusbars
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue