first commit

This commit is contained in:
nojhan 2011-02-05 18:46:24 +01:00
commit 8d3bccdd9b
3 changed files with 412 additions and 0 deletions

94
.ion3/cfg_ion.lua Normal file
View file

@ -0,0 +1,94 @@
dopath("cfg_defaults")
-- Mod1 = Alt
-- Mod4 = Window
-- rajouter "+" après le code pour les concaténations suivantes
ALTMETA="Mod5+"
META="Mod1+"
ioncore.set{
-- dessine les fenetres lors d'un redimensionnement
opaque_resize=true,
}
defbindings("WMPlex.toplevel", {
-- suppression des raccourcis directs sur les touches de fonctions
kpress("F1", "nil"),
kpress("F2", "nil"),
kpress("F3", "nil"),
kpress("F4", "nil"),
kpress("F5", "nil"),
kpress("F6", "nil"),
kpress("F9", "nil"),
kpress("F12", "nil"),
-- lancement xterm
kpress(META.."F1", "ioncore.exec_on(_, XTERM or 'xterm')"),
-- exec
kpress(META.."F2", "mod_query.query_exec(_)"),
-- nouveau bureau
kpress(META.."F3", "mod_query.query_workspace(_)"),
-- menu général ion3
kpress(META.."F12", "mod_query.query_menu(_, _sub, 'mainmenu', 'Main menu:')")
})
defbindings("WScreen", {
-- Aller à l'écran physique précédent/suivant
kpress(META.."twosuperior", "ioncore.goto_prev_screen()"),
kpress(META.."Next", "ioncore.goto_next_screen()"),
-- aller au nième écran physique (attention, inversion pour 2e écran à gauche)
kpress(META.."Shift+2", "ioncore.goto_nth_screen(0)"),
kpress(META.."Shift+1", "ioncore.goto_nth_screen(1)"),
-- Aller au cadre suivant/précédent
kpress(META.."Right", "ioncore.goto_next(_chld, 'right')", "_chld:non-nil"),
kpress(META.."Left", "ioncore.goto_next(_chld, 'left')", "_chld:non-nil"),
-- Aller au bureau suivant/précédent
kpress(META.."Page_Down", "WScreen.switch_next(_)"),
kpress(META.."Page_Up", "WScreen.switch_prev(_)"),
-- Aller au bureau n°
kpress(META.."1", "WScreen.switch_nth(_, 0)"),
kpress(META.."2", "WScreen.switch_nth(_, 1)"),
kpress(META.."3", "WScreen.switch_nth(_, 2)"),
kpress(META.."4", "WScreen.switch_nth(_, 3)"),
kpress(META.."5", "WScreen.switch_nth(_, 4)"),
kpress(META.."6", "WScreen.switch_nth(_, 5)"),
kpress(META.."7", "WScreen.switch_nth(_, 6)"),
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()")
})
defbindings("WTiling", {
-- Aller au cadre supérieur/inférieur
kpress(META.."Up", "ioncore.goto_next(_sub, 'up', {no_ascend=_})"),
kpress(META.."Down", "ioncore.goto_next(_sub, 'down', {no_ascend=_})")
})
defbindings("WFrame", {
-- Aller à la fenetre suivante dans le cadre
kpress(META.."Tab", "_:switch_prev()"),
--kpress(ALTMETA.."Tab", "_:switch_next()")
kpress(META.."A", "_:switch_next()")
})
defbindings("WFrame.toplevel", {
-- Attacher la fenetre marquée (avec META.."T" par défaut)
kpress(META.."Z", "WRegion.set_tagged(_sub, 'toggle')", "_sub:non-nil"),
kpress(META.."E", "ioncore.tagged_attach(_)")
})
-- pour mettre la stalonetray dans le dock
defwinprop {class="stalonetray", statusbar="dock"}

127
.ion3/cfg_statusbar.lua Normal file
View file

@ -0,0 +1,127 @@
--
-- Ion statusbar module configuration file
--
-- Create a statusbar
mod_statusbar.create{
-- First screen, bottom left corner
screen=0,
pos='bl',
-- 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="%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",
}
-- Launch ion-statusd. This must be done after creating any statusbars
-- for necessary statusd modules to be parsed from the templates.
mod_statusbar.launch_statusd{
-- Date meter
date={
-- ISO-8601 date format with additional abbreviated day name
date_format='%a %Y-%m-%d %H:%M',
-- Finnish etc. date format
--date_format='%a %d.%m.%Y %H:%M',
-- Locale date format (usually shows seconds, which would require
-- updating rather often and can be distracting)
--date_format='%c',
-- Additional date formats.
--[[
formats={
time = '%H:%M', -- %date_time
}
--]]
},
-- Load meter
load={
--update_interval=10*1000,
--important_threshold=1.5,
--critical_threshold=4.0,
},
-- Mail meter
--
-- To monitor more mbox files, add them to the files table. For
-- example, add mail_work_new and mail_junk_new to the template
-- above, and define them in the files table:
--
-- files = { work = "/path/to/work_email", junk = "/path/to/junk" }
--
-- Don't use the keyword 'spool' as it's reserved for mbox.
mail={
--update_interval=60*1000,
--mbox=os.getenv("MAIL"),
--files={},
},
}

191
.ion3/look_noj.lua Normal file
View file

@ -0,0 +1,191 @@
-- $Id: look_tibi.lua 78 2007-02-07 18:36:32Z tibi $
-- version : 0.2
-- date : 2007-02-07
-- author : Tibor Csögör <tibi@tiborius.net>
-- This style highlights active elements with an `accent' color. Bright and
-- dimmed variants emphasize the level of importance. The corresponding neutral
-- colors are (roughly) the non-saturated versions.
-- The author likes the color scheme `gold' best, however, feel free to
-- experiment with the accent color(s).
-- This software is in the public domain.
-- color configuration ---------------------------------------------------------
-- gold
local my_accent_color_bright = "lightgoldenrod1"
local my_accent_color_normal = "gold2"
local my_accent_color_dimmed = "gold3"
local my_accent_color_dark = "gold4"
local my_accent_color_flashy = "red"
local my_accent_color_error = "tomato"
-- green
-- local my_accent_color_bright = "#c2ffc2"
-- local my_accent_color_normal = "palegreen1"
-- local my_accent_color_dimmed = "palegreen2"
-- local my_accent_color_dark = "palegreen3"
-- blue
-- local my_accent_color_bright = "lightblue1"
-- local my_accent_color_normal = "skyblue1"
-- local my_accent_color_dimmed = "skyblue2"
-- local my_accent_color_dark = "skyblue3"
-- plum
-- local my_accent_color_bright = "#ffd3ff"
-- local my_accent_color_normal = "plum1"
-- local my_accent_color_dimmed = "plum2"
-- local my_accent_color_dark = "plum3"
--------------------------------------------------------------------------------
-- neutral colors
local my_neutral_color_normal = "grey45"
local my_neutral_color_dimmed = "grey20"
local my_neutral_color_dark = "grey10"
if not gr.select_engine("de") then return end
de.reset()
de.defstyle("*", {
padding_pixels = 2,
shadow_pixels = 0,
highlight_pixels = 0,
border_style = "elevated",
foreground_colour = "black",
background_colour = "black",
})
de.defstyle("frame", {
based_on = "*",
highlight_pixels = 2,
shadow_pixels = 2,
highlight_colour = my_neutral_color_dark,
shadow_colour = my_neutral_color_dark,
de.substyle("active", {
highlight_colour = my_accent_color_normal,
shadow_colour = my_accent_color_normal,
}),
de.substyle("inactive", {
highlight_colour = my_neutral_color_normal,
shadow_colour = my_neutral_color_normal,
}),
})
de.defstyle("frame-tiled", {
based_on = "frame",
de.substyle("inactive", {
highlight_colour = my_neutral_color_dark,
shadow_colour = my_neutral_color_dark,
}),
})
de.defstyle("frame-transient", {
based_on = "frame",
de.substyle("active", {
highlight_colour = my_accent_color_flashy,
shadow_colour = my_accent_color_flashy,
}),
})
de.defstyle("tab", {
based_on = "*",
spacing = 2,
background_colour = my_neutral_color_dimmed,
text_align = "center",
font = "-*-helvetica-bold-r-normal-*-10-*-*-*-*-*-*-*",
de.substyle("active-selected", {
background_colour = my_accent_color_normal,
}),
de.substyle("active-unselected", {
background_colour = my_accent_color_dark,
}),
de.substyle("inactive-selected", {
background_colour = my_neutral_color_normal,
}),
})
de.defstyle("tab-frame-floating", {
based_on = "tab",
spacing = 0,
})
de.defstyle("input", {
based_on = "*",
padding_pixels = 10,
highlight_pixels = 1,
shadow_pixels = 1,
background_colour = my_accent_color_bright,
highlight_colour = my_accent_color_dark,
shadow_colour = my_accent_color_dark,
font = "-*-terminus-bold-r-*-*-14",
de.substyle("cursor", {
background_colour = my_accent_color_flashy,
}),
de.substyle("selection", {
background_colour = my_accent_color_dimmed,
}),
})
de.defstyle("input-message", {
based_on = "input",
background_colour = my_accent_color_error,
})
de.defstyle("stdisp", {
based_on = "*",
padding_pixels = 2,
foreground_colour = "white",
background_colour = my_neutral_color_dark,
font = "-*-terminus-medium-r-*-*-13-*-*-*-*-*-*-*",
de.substyle("critical", {
foreground_colour = my_accent_color_flashy,
}),
de.substyle("important", {
foreground_colour = my_accent_color_normal,
})
})
de.defstyle("tab-menuentry", {
based_on = "*",
text_align = "left",
background_colour = my_accent_color_bright,
font = "-*-helvetica-medium-r-normal-*-12-*-*-*-*-*-*-*",
de.substyle("inactive-selected", {
background_colour = my_accent_color_dimmed,
}),
})
de.defstyle("moveres_display", {
based_on = "*",
text_align = "center",
padding_pixels = 10,
background_colour = my_accent_color_bright,
highlight_pixels = 1,
shadow_pixels = 1,
highlight_colour = my_accent_color_dark,
shadow_colour = my_accent_color_dark,
font = "-*-terminus-bold-r-normal-*-14-*-*-*-*-*-*-*",
})
de.defstyle("actnotify", {
based_on = "*",
padding_pixels = 4,
highlight_pixels = 2,
shadow_pixels = 2,
highlight_colour = my_accent_color_normal,
shadow_colour = my_accent_color_normal,
background_colour = my_accent_color_flashy,
foreground_colour = "white",
font = "-*-helvetica-bold-r-normal-*-10-*-*-*-*-*-*-*",
})
gr.refresh()