まず,ustream.tvでアカウント作ります.
適当でいいです.むしろなくてもいいです.アカウントができたら,おもむろに端末を開きweechat-cureses
/connect chat1.ustream.tv
/charset utf-8
nicknameがUserNameになってると思うので,アカウントがある場合
/nick username:pass
channelはブラウザで表示させたときChatの下ら辺にでてる文字列のはず.
/join #hogehoge
これでおk!
/connect chat1.ustream.tv
/charset utf-8
nicknameがUserNameになってると思うので,アカウントがある場合
/nick username:pass
channelはブラウザで表示させたときChatの下ら辺にでてる文字列のはず.
/join #hogehoge
URxvt*font: -mplus-gothic-medium-r-normal--12-*-*-*-*-60-*
URxvt*imFont:-mplus-gothic-medium-r-normal--12-*-*-*-*-120-
URxvt*preeditType: OverTheSpot
sudo pacman -S xf86-input-keyboard xf86-input-mouseログインマネージャにslimを使ったら,/var/log/slim.logにエラーとか出るから,起動しないみたいなら,それ見ながら検索しると良いと思う.
vi .xinitrc. /opt/atokx3/bin/atokx3start.sh
exec awesome
export LANG=ja_JP.UTF-8を追加したら動き出した…死にたいorz
vi /etc/locale.gen
ja_JP.UTF-8追加して
locale.gen
pacman -Sy
pacman -Su
pacman -S zsh
pacman -S hal
pacman -S alsa-utils
alsaconf
pacman -S xorg
pacman -S vim
pacman -S xf86-video-siliconmotion
pacman -S awesome
pacman -S slim
pacman -S ttf-bitstream-vera ttf-dejavu
pacman -S w3m
pacman -S rxvt-unicode
wget http://github.com/mamimu/config/raw/4f7485c833b66db236e2dbd811d1f8f9c9ece109/xorg.conf
mv xorg.conf /etc/X11/
reboot
exec awesomeとすればawesomeが起動した.
cat /proc/scsi/scsiと打てば起動した.
でHDDとCDROMが見えていることを確認する.HDDが見えてなきゃ困る.
ln -sf /dev/sdb1 /dev/archiso
ln -sf /dev/sr0 /dev/archiso
mount -t vfat /dev/archiso /bootmnt
sudo apt-get install git-core
cd .config/awesome
git clone http://git.sysphere.org/vicious
vi rc.lua-- Standard awesome library
require("vicious")
require("wicked")
require("awful")
require("awful.autofocus")
require("awful.rules")
-- Theme handling library
require("beautiful")
-- Notification library
require("naughty")
-- Load Debian menu entries
require("debian.menu")
-- {{{ Variable definitions
-- Themes define colours, icons, and wallpapers
beautiful.init("/usr/share/awesome/themes/default/theme.lua")
-- beautiful.init("/usr/share/awesome/themes/zenburn/theme.lua")
--zenburn
-- This is used later as the default terminal and editor to run.
terminal = "x-terminal-emulator"
editor = os.getenv("EDITOR") or "editor"
editor_cmd = terminal .. " -e " .. editor
-- Default modkey.
-- Usually, Mod4 is the key with a logo between Control and Alt.
-- If you do not like this or do not have such a key,
-- I suggest you to remap Mod4 to another key using xmodmap or other tools.
-- However, you can use another modifier like Mod1, but it may interact with others.
modkey = "Mod3"
-- Table of layouts to cover with awful.layout.inc, order matters.
layouts =
{
awful.layout.suit.tile,
awful.layout.suit.tile.left,
awful.layout.suit.tile.bottom,
awful.layout.suit.tile.top,
awful.layout.suit.fair,
awful.layout.suit.fair.horizontal,
awful.layout.suit.spiral,
awful.layout.suit.spiral.dwindle,
awful.layout.suit.max,
awful.layout.suit.max.fullscreen,
awful.layout.suit.magnifier,
awful.layout.suit.floating
}
-- }}}
-- {{{ Tags
-- Define a tag table which hold all screen tags.
tags = {}
for s = 1, screen.count() do
-- Each screen has its own tag table.
tags[s] = awful.tag({ 1, 2, 3, 4, 5, 6, 7, 8, 9 }, s, awful.layout.suit.tile)
end
-- }}}
-- {{{ Menu
-- Create a laucher widget and a main menu
myawesomemenu = {
{ "manual", terminal .. " -e man awesome" },
{ "edit config", editor_cmd .. " " .. awful.util.getdir("config") .. "/rc.lua" },
{ "restart", awesome.restart },
{ "quit", awesome.quit }
}
mymainmenu = awful.menu({ items = { { "awesome", myawesomemenu, beautiful.awesome_icon },
{ "Debian", debian.menu.Debian_menu.Debian },
{ "open terminal", terminal }
}
})
mylauncher = awful.widget.launcher({ image = image(beautiful.awesome_icon),
menu = mymainmenu })
-- }}}
-- {{{ Wibox
-- Create a textclock widget
mytextclock = awful.widget.textclock( { align = "right" },"%Y/%m/%d (%a) %H:%M:%S","1")
-- Create a systray
mysystray = widget({ type = "systray" })
refreshdelay = 1
-- memwidget
-- text
memtext = widget({ type = "textbox" })
memtext.text = ' mem '
-- bar
membar = awful.widget.progressbar()
membar:set_width(50)
membar:set_height(17)
membar:set_background_color("#494B4F")
membar:set_border_color(nil)
membar:set_color("#AECF96")
membar:set_gradient_colors({ "#AECF96", "#88A175", "#FF5656" })
vicious.register(membar, vicious.widgets.mem, "$1", refreshdelay)
-- // memwidget
-- cpuwidget
-- text
cputext = widget({ type = "textbox" })
cputext.text = ' cpu '
-- graph
cpugraph = awful.widget.graph()
cpugraph:set_width(50)
cpugraph:set_height(17)
cpugraph:set_background_color("#494B4F")
cpugraph:set_color("#FF5656")
cpugraph:set_gradient_colors({ "#FF5656", "#88A175", "#AECF96" })
vicious.register(cpugraph, vicious.widgets.cpu, "$1", refreshdelay)
-- // cpuwidget
-- Create a wibox for each screen and add it
mywibox = {}
mypromptbox = {}
mylayoutbox = {}
mytaglist = {}
mytaglist.buttons = awful.util.table.join(
awful.button({ }, 1, awful.tag.viewonly),
awful.button({ modkey }, 1, awful.client.movetotag),
awful.button({ }, 3, awful.tag.viewtoggle),
awful.button({ modkey }, 3, awful.client.toggletag),
awful.button({ }, 4, awful.tag.viewnext),
awful.button({ }, 5, awful.tag.viewprev)
)
mytasklist = {}
mytasklist.buttons = awful.util.table.join(
awful.button({ }, 1, function (c)
if not c:isvisible() then
awful.tag.viewonly(c:tags()[1])
end
client.focus = c
c:raise()
end),
awful.button({ }, 3, function ()
if instance then
instance:hide()
instance = nil
else
instance = awful.menu.clients({ width=250 })
end
end),
awful.button({ }, 4, function ()
awful.client.focus.byidx(1)
if client.focus then client.focus:raise() end
end),
awful.button({ }, 5, function ()
awful.client.focus.byidx(-1)
if client.focus then client.focus:raise() end
end))
for s = 1, screen.count() do
-- Create a promptbox for each screen
mypromptbox[s] = awful.widget.prompt({ layout = awful.widget.layout.horizontal.leftright })
-- Create an imagebox widget which will contains an icon indicating which layout we're using.
-- We need one layoutbox per screen.
mylayoutbox[s] = awful.widget.layoutbox(s)
mylayoutbox[s]:buttons(awful.util.table.join(
awful.button({ }, 1, function () awful.layout.inc(layouts, 1) end),
awful.button({ }, 3, function () awful.layout.inc(layouts, -1) end),
awful.button({ }, 4, function () awful.layout.inc(layouts, 1) end),
awful.button({ }, 5, function () awful.layout.inc(layouts, -1) end)))
-- Create a taglist widget
mytaglist[s] = awful.widget.taglist(s, awful.widget.taglist.label.all, mytaglist.buttons)
-- Create a tasklist widget
mytasklist[s] = awful.widget.tasklist(function(c)
return awful.widget.tasklist.label.currenttags(c, s)
end, mytasklist.buttons)
-- Create the wibox
mywibox[s] = awful.wibox({ position = "top", screen = s })
-- Add widgets to the wibox - order matters
mywibox[s].widgets = {
{
mylauncher,
mytaglist[s],
mypromptbox[s],
layout = awful.widget.layout.horizontal.leftright
},
mytextclock,
mylayoutbox[s],
s == 1 and mysystray or nil,
membar.widget,
memtext,
cpugraph.widget,
cputext,
mytasklist[s],
layout = awful.widget.layout.horizontal.rightleft
}
end
-- }}}
-- {{{ Mouse bindings
root.buttons(awful.util.table.join(
awful.button({ }, 3, function () mymainmenu:toggle() end),
awful.button({ }, 4, awful.tag.viewnext),
awful.button({ }, 5, awful.tag.viewprev)
))
-- }}}
-- {{{ Key bindings
globalkeys = awful.util.table.join(
awful.key({ modkey, }, "Left", awful.tag.viewprev ),
awful.key({ modkey, }, "Right", awful.tag.viewnext ),
awful.key({ modkey, }, "Escape", awful.tag.history.restore),
awful.key({ modkey, }, "j",
function ()
awful.client.focus.byidx( 1)
if client.focus then client.focus:raise() end
end),
awful.key({ modkey, }, "k",
function ()
awful.client.focus.byidx(-1)
if client.focus then client.focus:raise() end
end),
awful.key({ modkey, }, "w", function () mymainmenu:show(true) end),
-- Layout manipulation
awful.key({ modkey, "Shift" }, "j", function () awful.client.swap.byidx( 1) end),
awful.key({ modkey, "Shift" }, "k", function () awful.client.swap.byidx( -1) end),
awful.key({ modkey, "Control" }, "j", function () awful.screen.focus_relative( 1) end),
awful.key({ modkey, "Control" }, "k", function () awful.screen.focus_relative(-1) end),
awful.key({ modkey, }, "u", awful.client.urgent.jumpto),
awful.key({ modkey, }, "Tab",
function ()
awful.client.focus.history.previous()
if client.focus then
client.focus:raise()
end
end),
-- Standard program
awful.key({ modkey, }, "Return", function () awful.util.spawn(terminal) end),
awful.key({ modkey, "Control" }, "r", awesome.restart),
awful.key({ modkey, "Shift" }, "q", awesome.quit),
awful.key({ modkey, }, "l", function () awful.tag.incmwfact( 0.05) end),
awful.key({ modkey, }, "h", function () awful.tag.incmwfact(-0.05) end),
awful.key({ modkey, "Shift" }, "h", function () awful.tag.incnmaster( 1) end),
awful.key({ modkey, "Shift" }, "l", function () awful.tag.incnmaster(-1) end),
awful.key({ modkey, "Control" }, "h", function () awful.tag.incncol( 1) end),
awful.key({ modkey, "Control" }, "l", function () awful.tag.incncol(-1) end),
awful.key({ modkey, }, "space", function () awful.layout.inc(layouts, 1) end),
awful.key({ modkey, "Shift" }, "space", function () awful.layout.inc(layouts, -1) end),
-- Prompt
awful.key({ modkey }, "F2", function () mypromptbox[mouse.screen]:run() end),
awful.key({ modkey }, "x",
function ()
awful.prompt.run({ prompt = "Run Lua code: " },
mypromptbox[mouse.screen].widget,
awful.util.eval, nil,
awful.util.getdir("cache") .. "/history_eval")
end)
)
clientkeys = awful.util.table.join(
awful.key({ modkey, }, "f", function (c) c.fullscreen = not c.fullscreen end),
awful.key({ modkey, }, "F4", function (c) c:kill() end),
awful.key({ modkey, "Control" }, "space", awful.client.floating.toggle ),
awful.key({ modkey, "Control" }, "Return", function (c) c:swap(awful.client.getmaster()) end),
awful.key({ modkey, }, "o", awful.client.movetoscreen ),
awful.key({ modkey, "Shift" }, "r", function (c) c:redraw() end),
awful.key({ modkey, }, "n", function (c) c.minimized = not c.minimized end),
awful.key({ modkey, }, "m",
function (c)
c.maximized_horizontal = not c.maximized_horizontal
c.maximized_vertical = not c.maximized_vertical
end)
)
-- Compute the maximum number of digit we need, limited to 9
keynumber = 0
for s = 1, screen.count() do
keynumber = math.min(9, math.max(#tags[s], keynumber));
end
-- Bind all key numbers to tags.
-- Be careful: we use keycodes to make it works on any keyboard layout.
-- This should map on the top row of your keyboard, usually 1 to 9.
for i = 1, keynumber do
globalkeys = awful.util.table.join(globalkeys,
awful.key({ modkey }, "#" .. i + 9,
function ()
local screen = mouse.screen
if tags[screen][i] then
awful.tag.viewonly(tags[screen][i])
end
end),
awful.key({ modkey, "Control" }, "#" .. i + 9,
function ()
local screen = mouse.screen
if tags[screen][i] then
awful.tag.viewtoggle(tags[screen][i])
end
end),
awful.key({ modkey, "Shift" }, "#" .. i + 9,
function ()
if client.focus and tags[client.focus.screen][i] then
awful.client.movetotag(tags[client.focus.screen][i])
end
end),
awful.key({ modkey, "Control", "Shift" }, "#" .. i + 9,
function ()
if client.focus and tags[client.focus.screen][i] then
awful.client.toggletag(tags[client.focus.screen][i])
end
end))
end
clientbuttons = awful.util.table.join(
awful.button({ }, 1, function (c) client.focus = c; c:raise() end),
awful.button({ modkey }, 1, awful.mouse.client.move),
awful.button({ modkey }, 3, awful.mouse.client.resize))
-- Set keys
root.keys(globalkeys)
-- }}}
-- {{{ Rules
awful.rules.rules = {
-- All clients will match this rule.
{ rule = { },
properties = { border_width = beautiful.border_width,
border_color = beautiful.border_normal,
focus = true,
keys = clientkeys,
buttons = clientbuttons } },
{ rule = { class = "MPlayer" },
properties = { floating = true } },
{ rule = { class = "pinentry" },
properties = { floating = true } },
{ rule = { class = "gimp" },
properties = { floating = true } },
-- Set パイヤーポックス to always map on tags number 2 of screen 1.
-- { rule = { class = "パイヤーポックス" },
-- properties = { tag = tags[1][2] } },
}
-- }}}
-- {{{ Signals
-- Signal function to execute when a new client appears.
client.add_signal("manage", function (c, startup)
-- Add a titlebar
-- awful.titlebar.add(c, { modkey = modkey })
-- Enable sloppy focus
c:add_signal("mouse::enter", function(c)
if awful.layout.get(c.screen) ~= awful.layout.suit.magnifier
and awful.client.focus.filter(c) then
client.focus = c
end
end)
if not startup then
-- Set the windows at the slave,
-- i.e. put it at the end of others instead of setting it master.
-- awful.client.setslave(c)
-- Put windows in a smart way, only if they does not set an initial position.
if not c.size_hints.user_position and not c.size_hints.program_position then
awful.placement.no_overlap(c)
awful.placement.no_offscreen(c)
end
end
end)
client.add_signal("focus", function(c) c.border_color = beautiful.border_focus end)
client.add_signal("unfocus", function(c) c.border_color = beautiful.border_normal end)
-- }}}
-- {{{ startup
os.execute("パイヤーポックス &")
--os.execute("gtk-recordmydesktop &")
os.execute("gvtray &")
os.execute("wicd-client &")
--- }}}
git clone git://github.com/jugyo/termtter.git
cd ./termtter
sudo gem install termtter
./run_termtter.rb
apt-get source rxvt-unicode
cd rxvt-unicode-9.06
patch -p1< doc/urxvt-8.2-256color.patch
wget http://launchpadlibrarian.net/35055142/rxvt-unicode-gcc44%20%281%29.patch
cd src && patch -p1 < /path/to/rxvt-unicode-gcc44\ \(1\).patch && cd ..
後は
rxvt+screen+vimを256色で表示出来るようにすると同じでコンパイルして終わり
--- src/background.C.orig 2009-04-25 01:12:46.000000000 +0200
+++ src/background.C 2009-04-25 01:19:21.000000000 +0200
@@ -261,7 +261,7 @@
unsigned int w = 0, h = 0;
unsigned int n;
unsigned long new_flags = (flags & (~geometryFlags));
- char *p;
+ const char *p;
# define MAXLEN_GEOM 256 /* could be longer than regular geometry string */
if (geom == NULL)
@@ -677,7 +677,7 @@
if (!target->asimman)
target->asimman = create_generic_imageman (target->rs[Rs_path]);
- if (char *f = strchr (file, ';'))
+ if (char *f = (char *) strchr (file, ';'))
{
size_t len = f - file;
f = (char *)malloc (len + 1);
--- src/command.C.orig 2009-04-25 01:20:29.000000000 +0200
+++ src/command.C 2009-04-25 01:21:20.000000000 +0200
@@ -3336,7 +3336,7 @@
}
else
{
- char *eq = strchr (str, '='); // constness lost, but verified to be ok
+ char *eq = (char *) strchr (str, '='); // constness lost, but verified to be ok
if (eq)
{
--- src/misc.C.orig 2009-04-25 01:41:05.000000000 +0200
+++ src/misc.C 2009-04-25 01:41:37.000000000 +0200
@@ -170,7 +170,7 @@
char *
rxvt_basename (const char *str) NOTHROW
{
- char *base = strrchr (str, '/');
+ char *base = (char *) strrchr (str, '/');
return (char *) (base ? base + 1 : str);
}
.zshrcとか.bashrcに書くよexport GOROOT=$HOME/go
export GOARCH=386
export GOOS=linux
source .zshrc
sudo apt-get install mercurial
hg clone -r release https://go.googlecode.com/hg/ $GOROOT
sudo apt-get install bison gcc libc6-dev ed make
cd $GOROOT/src
./all.bash
wget http://mirror.in.th/ubuntu/pool/universe/s/slim/slim_1.3.0-2_i386.deb
sudo dpkg -i slim_1.3.0-2_i386.deb
インストール途中でlogin managerをkdm/gdmから変更するか聞いてくるからslimにする.
awesomeが起動出来るようにする.
sudo vi /etc/slim.conf
54 sessions awesome,default
themeはSLiM Themesにわりとあるので,落としてきて,解凍したら,/usr/share/slim/themes/に置くwget http://download.berlios.de/slim/slim-lunar-0.4.tar.bz2
tar jzxvf slim-lunar-0.4.tar.bz2
sudo mv slim-lunar-0.4 /usr/share/slim/themes
sudo vi /etc/slim.conf
72 current_theme slim-lunar-0.4usernameにconsoleと打ち込むと端末が起動する.
haltとrebootと入力するとroot passwordを要求されて,root passwordを打ち込むとshutdownとrebootを行う.
52 tags[s] = awful.tag({ 1, 2, 3, 4, 5, 6, 7, 8, 9 }, s, awful.layout.suit.tile)
77 mytextclock = awful.widget.textclock( { align = "right" },"%Y/%m/%d (%a) %H:%M:%S","1")
sudo apt-get install moc moc-ffmpeg-plugin終わり.
mocp
javaws aozora.jnlpこれだけでおk!
mkdir -p ~/.soso/aozoraしおりを挟むためのディレクトリを作る
export AWT_TOOLKIT=MToolkitしてね
apt-get source rxvt-unicode
cd rxvt-unicode-9.06/
patch -p1 < doc/urxvt-8.2-256color.patch
vi debian/rules37 --with-term=rxvt-unicode \dpkg-buildpackage
38 --enable-xterm-colors=256
dpkg-checkbuilddeps: Unmet build dependencies: libxt-dev libxrender-dev libx11-dev libxpm-dev xutils libxft-dev (>= 2.1.8.2-5.1) chrpath libperl-dev libafterimage-dev
とか出たらapt-get で入れる
cd .. && sudo dpkg -i rxvt-unicode_9.06-1_i386.deb
wget -O desert256.vim "http://www.vim.org/scripts/download_script.php?src_id=4055"
mkdir -p ~/.vim/colors/
mv desert256.vim ~/.vim/colors/
vi ~/.vimrc全部終わったら256colors2.plで確認set t_Co=256
colorscheme desert256
syntax on
vi ~/.screenrcdefbce on
termcapinfo rxvt-unicode* 'Co#256:pa#32767:AB=\E[48;5;%dm:AF=\E[38;5;%dm:'
vi ~/.XdefaultsURxvt*termName: rxvt-unicode
vi ~/.zshrcif [ $TERM = "rxvt-unicode" -o $SHLVL = '1' ] ; then
exec screen -xR
fi
wget http://sourceforge.net/projects/gtmess/files/gtmess/0.94/gtmess-0.94.tar.gz/downloadlibssl-devとかなけりゃ入れてね.
tar zxvf gtmess-0.94
cd gtmess-0.94
dpkg-buildpackage
cd ..
sudo dpkg -i *.deb
sudo apt-get install xfonts-mplus
vi .Xdefaultsurxvt*font:\
-mplus-gothic-medium-r-normal--12-*-*-*-*-60-*,\
-mplus-gothic-medium-r-normal--12-*-*-*-*-120-
xrdb -load .Xdefaults
sudo apt-get install python-alsaaudio python-gnome2-extras
wget http://gtk-tray-utils.googlecode.com/svn/trunk/gvtray-1.1.tar.gz
tar zxvf gvtray-1.1.tar.gz
cd gvtray-1.1
sudo mkdir /usr/share/gvtray
sudo cp gvtray /usr/bin
sudo cp gvtray.py /usr/share/gvtray/
sudo cp -r gvtray_about/ /usr/share/gvtray/gvtray_about
#!/bin/sh
xrdb /home/hogehoge/.Xdefaults
xset s noblank
xset s off
xset s noexpose
xset s 0 0
setterm -blank 0
Section "ServerFlags"
Option "blank time" "0"
Option "standby time" "0"
Option "suspend time" "0"
Option "off time" "0"
EndSection
sudo apt-get install weechatで導入できるけど,weechat 2.6.1にはiso2022jpが化けるバグがある
dget http://ftp.de.debian.org/debian/pool/main/w/weechat/weechat_0.2.6.3-1.dsc
dpkg-source -x weechat_0.2.6.3-1.dsc
cd weechat_0.2.6.3-1
dpkg-buildpackage
fakerootとかruby1.8-devとか色々入れろと言われたら,入れる
文字コードの変換は/charset iso2022jpでおk
sudo apt-get install screenでインストールしてみよう!
escape+c:新しいshellを開く
escape+n:右のshellに移動
escape+p:左のshellに移動
escape+S:画面を横に分割
escape+|:小文字のLじゃなくて,パイプで,縦に分割
escape+tab:分割してる画面の移動
escape+Q:フォーカスしてい無い画面を消す
escape+数字:数字の対応してるshellに移動
escape+escape:直前に表示してたshellに移動
escape+A:タブ名の変更
escape+d:screenを起動したshellを表示
screen -r :起動中のscreenに接続
-- Standard awesome library
require("awful")
-- Theme handling library
require("beautiful")
-- Notification library
require("naughty")
require("wicked")
-- Load Debian menu entries
require("debian.menu")
-- {{{ Variable definitions
-- Themes define colours, icons, and wallpapers
-- The default is a dark theme
theme_path = "/usr/share/awesome/themes/default/theme"
-- Uncommment this for a lighter theme
-- theme_path = "/usr/share/awesome/themes/sky/theme"
-- Actually load theme
beautiful.init(theme_path)
-- This is used later as the default terminal and editor to run.
terminal = "urxvt"
editor = os.getenv("EDITOR") or "editor"
editor_cmd = terminal .. " -e " .. editor
-- Default modkey.
-- Usually, Mod4 is the key with a logo between Control and Alt.
-- If you do not like this or do not have such a key,
-- I suggest you to remap Mod4 to another key using xmodmap or other tools.
-- However, you can use another modifier like Mod1, but it may interact with others.
modkey = "Mod4"
-- Table of layouts to cover with awful.layout.inc, order matters.
layouts =
{
awful.layout.suit.tile,
awful.layout.suit.tile.left,
awful.layout.suit.tile.bottom,
awful.layout.suit.tile.top,
awful.layout.suit.fair,
awful.layout.suit.fair.horizontal,
awful.layout.suit.max,
awful.layout.suit.max.fullscreen,
awful.layout.suit.magnifier,
awful.layout.suit.floating
}
-- Table of clients that should be set floating. The index may be either
-- the application class or instance. The instance is useful when running
-- a console app in a terminal like (Music on Console)
-- x-terminal-emulator -name mocp -e mocp
floatapps =
{
-- by class
["MPlayer"] = true,
["pinentry"] = true,
["gimp"] = true,
-- by instance
["mocp"] = true
}
-- Applications to be moved to a pre-defined tag by class or instance.
-- Use the screen and tags indices.
apptags =
{
-- ["Firefox"] = { screen = 1, tag = 2 },
-- ["mocp"] = { screen = 2, tag = 4 },
}
-- Define if we want to use titlebar on all applications.
use_titlebar = false
-- }}}
-- {{{ Tags
-- Define tags table.
tags = {}
for s = 1, screen.count() do
-- Each screen has its own tag table.
tags[s] = {}
-- Create 9 tags per screen.
for tagnumber = 1, 9 do
tags[s][tagnumber] = tag(tagnumber)
-- Add tags to screen one by one
tags[s][tagnumber].screen = s
awful.layout.set(layouts[1], tags[s][tagnumber])
end
-- I'm sure you want to see at least one tag.
tags[s][1].selected = true
end
-- }}}
-- {{{ Wibox
-- Create a textbox widget
mytextbox = widget({ type = "textbox", align = "right" })
-- Set the default text in textbox
mytextbox.text = " " .. AWESOME_RELEASE .. " "
-- Create a laucher widget and a main menu
myawesomemenu = {
{ "manual", terminal .. " -e man awesome" },
{ "edit config", editor_cmd .. " " .. awful.util.getdir("config") .. "/rc.lua" },
{ "restart", awesome.restart },
{ "quit", awesome.quit }
}
mymainmenu = awful.menu.new({ items = { { "awesome", myawesomemenu, beautiful.awesome_icon },
{ "open terminal", terminal },
{ "Debian", debian.menu.Debian_menu.Debian }
}
})
mylauncher = awful.widget.launcher({ image = image(beautiful.awesome_icon),
menu = mymainmenu })
-- Create a systray
mysystray = widget({ type = "systray", align = "right" })
-- Create a wibox for each screen and add it
mywibox = {}
mypromptbox = {}
mylayoutbox = {}
mytaglist = {}
mytaglist.buttons = { button({ }, 1, awful.tag.viewonly),
button({ modkey }, 1, awful.client.movetotag),
button({ }, 3, function (tag) tag.selected = not tag.selected end),
button({ modkey }, 3, awful.client.toggletag),
button({ }, 4, awful.tag.viewnext),
button({ }, 5, awful.tag.viewprev) }
mytasklist = {}
mytasklist.buttons = { button({ }, 1, function (c)
if not c:isvisible() then
awful.tag.viewonly(c:tags()[1])
end
client.focus = c
c:raise()
end),
button({ }, 3, function () if instance then instance:hide() end instance = awful.menu.clients({ width=250 }) end),
button({ }, 4, function ()
awful.client.focus.byidx(1)
if client.focus then client.focus:raise() end
end),
button({ }, 5, function ()
awful.client.focus.byidx(-1)
if client.focus then client.focus:raise() end
end) }
for s = 1, screen.count() do
-- Create a promptbox for each screen
mypromptbox[s] = widget({ type = "textbox", align = "left" })
-- Create an imagebox widget which will contains an icon indicating which layout we're using.
-- We need one layoutbox per screen.
mylayoutbox[s] = widget({ type = "imagebox", align = "right" })
mylayoutbox[s]:buttons({ button({ }, 1, function () awful.layout.inc(layouts, 1) end),
button({ }, 3, function () awful.layout.inc(layouts, -1) end),
button({ }, 4, function () awful.layout.inc(layouts, 1) end),
button({ }, 5, function () awful.layout.inc(layouts, -1) end) })
-- Create a taglist widget
mytaglist[s] = awful.widget.taglist.new(s, awful.widget.taglist.label.all, mytaglist.buttons)
-- Create a tasklist widget
mytasklist[s] = awful.widget.tasklist.new(function(c)
return awful.widget.tasklist.label.currenttags(c, s)
end, mytasklist.buttons)
-- Create the wibox
mywibox[s] = wibox({ position = "top", fg = beautiful.fg_normal, bg = beautiful.bg_normal })
--- Create a cpu widget
cpuwidget = widget({
type = 'textbox',
name = 'cpuwidget'
})
wicked.register(cpuwidget, wicked.widgets.cpu,' CPU:')
--and then create a cpu graph
cpugraphwidget = widget({
type = 'graph',
name = 'cpugraphwidget',
})
cpugraphwidget.height = 0.85
cpugraphwidget.width = 80
cpugraphwidget.bg = '#333333'
cpugraphwidget.border_color = '#0a0a0a'
cpugraphwidget.grow = 'left'
cpugraphwidget:plot_properties_set('cpu', {
fg = '#AEC6D8',
fg_center = '#285577',
fg_end = '#285577',
vertical_gradient = false
})
wicked.register(cpugraphwidget, wicked.widgets.cpu, '$1', 1, 'cpu')
--mem widget
memwidget = widget({
type = 'textbox',
name = 'memwidget'
})
wicked.register(memwidget, wicked.widgets.mem,' Memory: ',nil, nil, {2, 4, 4})
--Add mem widgit
membarwidget = widget({
type = 'progressbar',
name = 'membarwidget'
})
membarwidget.height = 0.85
membarwidget.width = 80
membarwidget.bg = '#333333'
membarwidget.border_color = '#0a0a0a'
membarwidget.grow = 'left'
membarwidget:bar_properties_set('mem', {
bg = '#222222',
fg = '#285577',
fg_center = '#285577',
fg_end = '#285577',
fg_off = '#222222',
reverse = false,
min_value = 0,
max_value = 100
})
wicked.register(membarwidget, wicked.widgets.mem, '$1', 1, 'mem')
-- Add widgets to the wibox - order matters
mywibox[s].widgets = { mylauncher,
mytaglist[s],
mytasklist[s],
mypromptbox[s],
mytextbox,
mylayoutbox[s],
cpuwidget,
cpugraphwidget,
memwidget,
membarwidget,
s == 1 and mysystray or nil
}
mywibox[s].screen = s
end
-- }}}
-- {{{ Mouse bindings
root.buttons({
button({ }, 3, function () mymainmenu:toggle() end),
button({ }, 4, awful.tag.viewnext),
button({ }, 5, awful.tag.viewprev)
})
-- }}}
-- {{{ Key bindings
globalkeys =
{
key({ modkey, }, "Left", awful.tag.viewprev ),
key({ modkey, }, "Right", awful.tag.viewnext ),
key({ modkey, }, "Escape", awful.tag.history.restore),
key({ modkey, }, "j",
function ()
awful.client.focus.byidx( 1)
if client.focus then client.focus:raise() end
end),
key({ modkey, }, "k",
function ()
awful.client.focus.byidx(-1)
if client.focus then client.focus:raise() end
end),
-- Layout manipulation
key({ modkey, "Shift" }, "j", function () awful.client.swap.byidx( 1) end),
key({ modkey, "Shift" }, "k", function () awful.client.swap.byidx( -1) end),
key({ modkey, "Control" }, "j", function () awful.screen.focus( 1) end),
key({ modkey, "Control" }, "k", function () awful.screen.focus(-1) end),
key({ modkey, }, "u", awful.client.urgent.jumpto),
key({ modkey, }, "Tab",
function ()
awful.client.focus.history.previous()
if client.focus then
client.focus:raise()
end
end),
-- Standard program
key({ modkey, }, "Return", function () awful.util.spawn(terminal) end),
key({ modkey, "Control" }, "r", awesome.restart),
key({ modkey, "Shift" }, "q", awesome.quit),
key({ modkey, }, "l", function () awful.tag.incmwfact( 0.05) end),
key({ modkey, }, "h", function () awful.tag.incmwfact(-0.05) end),
key({ modkey, "Shift" }, "h", function () awful.tag.incnmaster( 1) end),
key({ modkey, "Shift" }, "l", function () awful.tag.incnmaster(-1) end),
key({ modkey, "Control" }, "h", function () awful.tag.incncol( 1) end),
key({ modkey, "Control" }, "l", function () awful.tag.incncol(-1) end),
key({ modkey, }, "space", function () awful.layout.inc(layouts, 1) end),
key({ modkey, "Shift" }, "space", function () awful.layout.inc(layouts, -1) end),
-- Prompt
key({ modkey }, "F2",
function ()
awful.prompt.run({ prompt = "Run: " },
mypromptbox[mouse.screen],
awful.util.spawn, awful.completion.bash,
awful.util.getdir("cache") .. "/history")
end),
key({ modkey }, "F3",
function ()
awful.prompt.run({ prompt = "Run Lua code: " },
mypromptbox[mouse.screen],
awful.util.eval, awful.prompt.bash,
awful.util.getdir("cache") .. "/history_eval")
end),
}
-- Client awful tagging: this is useful to tag some clients and then do stuff like move to tag on them
clientkeys =
{
key({ modkey, }, "f", function (c) c.fullscreen = not c.fullscreen end),
key({ modkey, }, "F4", function (c) c:kill() end),
key({ modkey, "Control" }, "space", awful.client.floating.toggle ),
key({ modkey, "Control" }, "Return", function (c) c:swap(awful.client.getmaster()) end),
key({ modkey, }, "o", awful.client.movetoscreen ),
key({ modkey, "Shift" }, "r", function (c) c:redraw() end),
key({ modkey }, "t", awful.client.togglemarked),
key({ modkey,}, "m",
function (c)
c.maximized_horizontal = not c.maximized_horizontal
c.maximized_vertical = not c.maximized_vertical
end),
}
-- Compute the maximum number of digit we need, limited to 9
keynumber = 0
for s = 1, screen.count() do
keynumber = math.min(9, math.max(#tags[s], keynumber));
end
for i = 1, keynumber do
table.insert(globalkeys,
key({ modkey }, i,
function ()
local screen = mouse.screen
if tags[screen][i] then
awful.tag.viewonly(tags[screen][i])
end
end))
table.insert(globalkeys,
key({ modkey, "Control" }, i,
function ()
local screen = mouse.screen
if tags[screen][i] then
tags[screen][i].selected = not tags[screen][i].selected
end
end))
table.insert(globalkeys,
key({ modkey, "Shift" }, i,
function ()
if client.focus and tags[client.focus.screen][i] then
awful.client.movetotag(tags[client.focus.screen][i])
end
end))
table.insert(globalkeys,
key({ modkey, "Control", "Shift" }, i,
function ()
if client.focus and tags[client.focus.screen][i] then
awful.client.toggletag(tags[client.focus.screen][i])
end
end))
end
for i = 1, keynumber do
table.insert(globalkeys, key({ modkey, "Shift" }, "F" .. i,
function ()
local screen = mouse.screen
if tags[screen][i] then
for k, c in pairs(awful.client.getmarked()) do
awful.client.movetotag(tags[screen][i], c)
end
end
end))
end
-- Set keys
root.keys(globalkeys)
-- }}}
-- {{{ Hooks
-- Hook function to execute when focusing a client.
awful.hooks.focus.register(function (c)
if not awful.client.ismarked(c) then
c.border_color = beautiful.border_focus
end
end)
-- Hook function to execute when unfocusing a client.
awful.hooks.unfocus.register(function (c)
if not awful.client.ismarked(c) then
c.border_color = beautiful.border_normal
end
end)
-- Hook function to execute when marking a client
awful.hooks.marked.register(function (c)
c.border_color = beautiful.border_marked
end)
-- Hook function to execute when unmarking a client.
awful.hooks.unmarked.register(function (c)
c.border_color = beautiful.border_focus
end)
-- Hook function to execute when the mouse enters a client.
awful.hooks.mouse_enter.register(function (c)
-- Sloppy focus, but disabled for magnifier layout
if awful.layout.get(c.screen) ~= awful.layout.suit.magnifier
and awful.client.focus.filter(c) then
client.focus = c
end
end)
-- Hook function to execute when a new client appears.
awful.hooks.manage.register(function (c, startup)
-- If we are not managing this application at startup,
-- move it to the screen where the mouse is.
-- We only do it for filtered windows (i.e. no dock, etc).
if not startup and awful.client.focus.filter(c) then
c.screen = mouse.screen
end
if use_titlebar then
-- Add a titlebar
awful.titlebar.add(c, { modkey = modkey })
end
-- Add mouse bindings
c:buttons({
button({ }, 1, function (c) client.focus = c; c:raise() end),
button({ modkey }, 1, awful.mouse.client.move),
button({ modkey }, 3, awful.mouse.client.resize)
})
-- New client may not receive focus
-- if they're not focusable, so set border anyway.
c.border_width = beautiful.border_width
c.border_color = beautiful.border_normal
-- Check if the application should be floating.
local cls = c.class
local inst = c.instance
if floatapps[cls] then
awful.client.floating.set(c, floatapps[cls])
elseif floatapps[inst] then
awful.client.floating.set(c, floatapps[inst])
end
-- Check application->screen/tag mappings.
local target
if apptags[cls] then
target = apptags[cls]
elseif apptags[inst] then
target = apptags[inst]
end
if target then
c.screen = target.screen
awful.client.movetotag(tags[target.screen][target.tag], c)
end
-- Do this after tag mapping, so you don't see it on the wrong tag for a split second.
client.focus = c
-- Set key bindings
c:keys(clientkeys)
-- Set the windows at the slave,
-- i.e. put it at the end of others instead of setting it master.
-- awful.client.setslave(c)
-- Honor size hints: if you want to drop the gaps between windows, set this to false.
-- c.size_hints_honor = false
end)
-- Hook function to execute when arranging the screen.
-- (tag switch, new client, etc)
awful.hooks.arrange.register(function (screen)
local layout = awful.layout.getname(awful.layout.get(screen))
if layout and beautiful["layout_" ..layout] then
mylayoutbox[screen].image = image(beautiful["layout_" .. layout])
else
mylayoutbox[screen].image = nil
end
-- Give focus to the latest client in history if no window has focus
-- or if the current window is a desktop or a dock one.
if not client.focus then
local c = awful.client.focus.history.get(screen, 0)
if c then client.focus = c end
end
end)
-- Hook called every minute
awful.hooks.timer.register(1, function ()
mytextbox.text = os.date(" %Y/%m/%d (%a) %H:%M:%S ")
end)
-- }}}
os.execute("firefox &")
os.execute("gwibber &")
-- os.execute("audacious &")
-- os.execute("thunderbird &")
os.execute("pidgin &")
-- os.execute("skype &")
wget http://download.songbirdnest.com/installer/linux/i686/Songbird_1.2.0-1146_linux-i686.tar.gzこんなエラーが出るときは
tar zxvf Songbird_1.2.0-1146_linux-i686.tar.gz
sudo mv Songbird /opt
sudo ln -s /opt/Songbird/songbird /usr/local/bin
*** glibc detected *** ././songbird-bin: munmap_chunk(): invalid pointer: 0xb1f210e0 ***
======= Backtrace: =========
/lib/tls/i686/cmov/libc.so.6[0xb7d4a3f4]
/usr/lib/libvisual-0.4.so.0(visual_mem_free+0x21)[0xb1d3d141]
以下略
dpkg -l |grep libvisual-0.4-plugins
ii libvisual-0.4-plugins 0.4.0.dfsg.1-2 Audio visualization framework plugins
sudo apt-get install libvisual-0.4-pluginsでインストール
sudo apt-get install libvisual-0.4-0 && sudo apt-get remove libvisual-0.4-0をやってみる!
cp -R /etc/xdg/awesome/ ~/.config/awesome/
vi .config/awesome/rc.luaos.execute("firefox &")
os.execute("gwibber &")
os.execute("audacious &")
os.execute("thunderbird &")
os.execute("pidgin &")
最後の部分に追加してね★
awsetbg: Something went wrong while setting the wallpaper.
Run 'display -sample 1920x1080+0+0 -window root /usr/share/awesome/themes/default/background.png' from an xterm to find out what.
sudo apt-get install feh
vi /usr/share/awesome/themes/default/theme52 # You can use your own command to set your wallpaper
53 #wallpaper_cmd = awsetbg /usr/share/awesome/themes/default/background.png
54 wallpaper_cmd = feh --bg-scale /usr/share/awesome/themes/default/background.png
Section "Device"
Identifier "Device0"
Driver "nvidia"
VendorName "NVIDIA Corporation"
BusID "PCI:10:3:0"
EndSection
apt-get install bzrこれでgwibberで起動するよ.起動しないときは,端末から起動してみて!
wget http://mirrors.kernel.org/debian/pool/main/p/pywebkitgtk/python-webkit_1.0.2-1_i386.deb
bzr branch lp:gwibberはなぜか使えなかった(´・ω・`)ショボーン
bzr checkout --lightweight http://bazaar.launchpad.net/~gwibber-committers/gwibber/trunk/
apt-get install libwebkit-1.0-1
dpkg -i python-webkit_1.0.2-1_i386.deb
apt-get install python-dbus python-gtk2 python-notify python-simplejson python-egenix-mxdatetime python-distutils-extra python-feedparser
cd trunk
python setup.py install
apt-get install python-hogehoge2とかで大丈夫のはずだよ.
ip=`LANG=C /sbin/ifconfig eth0 | grep 'inet addr' | awk -F: '{print $2}' | awk '{print $1}'`これで、user名@ip[~]とか表示されると思う。
autoload colors
colors
PROMPT="%n@%{${fg[green]}%}$ip%{${fg[white]}%}[%~]
%#"
#!/bin/sh
find ./ -name "*.wav" > file
while read line ;
do
gogo "$line" "$line".mp3
rm $line
done < file
rm file
sudo apt-get remove openoffice.org3*とか実行して
cd DEBSで入ると思うよ。
sudo dpkg -i *.deb
apt-get install portmap nfs-common nfs-kernel-server
ALL:127.0.0.1
portmap:192.168.1.
lockd:192.168.1.
mountd:192.168.1.
statd:192.168.1.
portmap:ALL
lockd:ALL
mountd:ALL
rquotad:ALL
statd:ALL
クライアントにマウントさせたいところ 許可するホスト(オプション)って感じ
/mnt/server *(rw,no_root_squash,no_subtree_check)
/etc/init.d/nfs-kernel-server restart
apt-get install nfs-common
マウント先を作るよ!
sudo mkdir /mnt/client && sudo chown hoge:hoge /mnt/client
サーバのIP:/マウントさせたい場所 マウントする場所 nfs オプション
192.168.1.xx:/mnt/server /mnt/client nfs users,defaults 0 0
Section "Files"
EndSection
Section "ServerFlags"
Option "DontZap" "off"
EndSection
Section "Device"
Identifier "ATI Technologies Inc Radeon Mobility M6 LY"
# Driver "ati"
Driver "radeon"
BusID "PCI:1:0:0"
Option "BusType" "PCI"
Option "AGPMode" "4"
Option "AGPSize" "32" # default:
Option "AGPFastWrite" "false" # More stable this way.
Option "SWcursor" "true" # More stable this way.
Option "EnablePageFlip" "true" # Faster.
Option "EnableDepthMoves" "false" # More stable this way.
Option "RenderAccel" "false" # More stable this way
Option "AccelMethod" "XAA" # or XAA, EXA, XAA more stable
Option "DDCMode"
Option "SubPixelOrder" "NONE"
Option "ColorTiling" "false" # More stable this way.
Option "DynamicClocks" "true"
Option "bioshotkeys" "True"
Option "XAANoOffscreenPixmaps" "true" # More stable this way.
VideoRam 16384
EndSection
Section "Monitor"
Identifier "Generic Monitor"
EndSection
Section "Screen"
Identifier "Default Screen"
Device "ATI Technologies Inc Radeon Mobility M6 LY"
Monitor "Generic Monitor"
DefaultDepth 16
SubSection "Display"
Depth 16
Modes "1024x768"
EndSubSection
EndSection
Section "ServerLayout"
Identifier "Default Layout"
Screen "Default Screen"
EndSection
Section "DRI"
Mode 0666
EndSection
sudo update-grubしてgrubのupdateしてね.
title Ubuntu 9.04, kernel 2.6.28-11-genericとか追記しておけば良いと思うよ.
root (hd0,4)
kernel /boot/vmlinuz-2.6.28-11-generic root=UUID=hogehoge ro quiet usplash
initrd /boot/initrd.img-2.6.28-11-generic
quiet
title Ubuntu 9.04, kernel 2.6.28-11-generic (recovery mode)
root (hd0,4)
kernel /boot/vmlinuz-2.6.28-11-generic root=UUID=hogehoge ro single
initrd /boot/initrd.img-2.6.28-11-generic
sudo ln -s /etc/fonts/conf.avail/69-language-selector-ja-jp.conf /etc/fonts/conf.d/でfirefoxを再起動で直る.
sudo vi /etc/fonts/にlocal.confこれでおk!<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<fontconfig>
<match target="font">
<edit name="embeddedbitmap" mode="assign">
<bool>false</bool>
</edit>
</match>
</fontconfig>
・rpmをdebに変換するalienをインストールする
sudo apt-get install alien
・Fedora用のrpmをダウンロードする
wget ftp://ftp.pbone.net/mirror/www-ccrma.stanford.edu/planetccrma/mirror/fedora/linux/planetcore/testing/10/i386/kernel-firmware-2.6.29-0.1.rt3.1.rc6.fc10.ccrma.noarch.rpm
・alienを使って変換する
sudo alien kernel-firmware-2.6.29-0.1.rt3.1.rc6.fc10.ccrma.noarch.rpm
・変換したのをインストール
sudo dpkg -i kernel-firmware_2.6.29-1.1_all.deb
sudo mkdir /var/www/icon
sudo cp -r /usr/share/awstat/icon /var/www/icon
export EDITOR=vim
sudo crontab -e
0 * * * * /usr/lib/cgi-bin/awstats.pl -config=hogehoge -update
sudo apt-get install awstat
sudo cp /etc/awstat/awstat.conf /etc/awstat/awstat.hogehoge.conf
sudo vi /etc/awstat/awstat.hogehoge.conf
SiteDomain = "" -> SiteDomain = "hogehoge"
Lang = "auto" -> Lang = "jp"
cd /usr/lib/cgi-bin
sudo perl awstat.pl -config=hogehoge
cp -R /etc/xdg/awesome/ /home/hogehoge/.config/
wallpaper_cmd = awsetbg /usr/share/awesome/themes/default/background.pngログインし直すと壁紙が変わるよ
↓
wallpaper_cmd = awsetbg /home/hogehoge/hogehoge.jpg
display -window root hogehoge.jpgこれでも変えられるよ.
!urxvt.font: xft:Bitstream Vera Sans Mono-8.5
urxvt*shading: 20
urxvt*inheritPixmap: True
urxvt.background: black
urxvt.foreground: white
urxvt*scrollBar: true
urxvt*scrollBar_floating: true
urxvt*scrollBar_right: true
urxvt*scrollColor: #202020
urxvt*termName: xterm
urxvt*urllauncher: firefox
urxvt*matcher.button: 3
urxvt*saveLines: 8192
urxvt.perl-ext-common: default,matcher,tabbed
! black
urxvt*color0: #222222
urxvt*color8: #666666
! red
urxvt*color1: #9e1828
urxvt*color9: #cf6171
! green
urxvt*color2: #aece92
urxvt*color10: #c5f779
! yellow
urxvt*color3: #968a38
urxvt*color11: #fff796
! blue
urxvt*color4: #71C5F4
urxvt*color12: #67CDE9
! magenta
urxvt*color5: #963c59
urxvt*color13: #cf9ebe
! cyan
urxvt*color6: #418179
urxvt*color14: #71bebe
! white
urxvt*color7: #bebebe
urxvt*color15: #FFFFFF
urxvt*cursorColor: #d8d8d8
636 : login:Penguin : 2009/03/04(水) 21:29:21 ID:qO9yloXs
635>
フォーラムでこの警告は無害だとdevilが書いてます。
(p)http://sidux.com/PNphpBB2-viewtopic-t-14968-postdays-0-postorder-asc.html
637 : login:Penguin : sage : 2009/03/04(水) 23:45:14 (p)ID:UdfIqug2(2)
無害だけど,気持ちいいもんじゃないねー.
638 : login:Penguin : 2009/03/05(木) 07:42:12 (p)ID:PDUTAeld(2)
>635,636,637
問題のパッケージmodule-init-tools 、sidのバージョンより新しいナンバーの
パッケージがsidux.comのfix.mainにおかれたようだから、
もう一度d-uすれば警告がきえるはず。
639 : login:Penguin : 2009/03/05(木) 08:14:33 (p)ID:PDUTAeld(2)
>638
fix.mainのパッケージをインストールしても警告が消えない場合は
update-initramfs -d -k $(uname -r)
update-initramfs -c -k $(uname -r)
(p)http://sidux.com/index.php?name=PNphpBB2&file=viewtopic&p=114231#114231
tar zxvf hogehoge-simply-linux.tar.gz
sudo mv simply-linux /usr/share/kde4/apps/kdm/themes/
sudo vi /etc/kde4/kdm/kdmrc
Theme=/usr/share/kde4/apps/kdm/themes/oxygen
↓
Theme=/usr/share/kde4/apps/kdm/themes/simply-linux
sudo apt-get install xlockmore
awful.hooks.timer.register(1, function ()
-- For unix time_t lovers
mytextbox.text = " " .. os.time() .. " time_t "
-- Otherwise use:
-- mytextbox.text = " " .. os.date() .. " "
end)
awful.hooks.timer.register(1, function ()こんな感じにすると良いよ.
-- For unix time_t lovers
--mytextbox.text = " " .. os.time() .. " "
-- Otherwise use:
mytextbox.text = " " .. os.date("%Y/%m/%d %H:%M:%S (%a)") .. " "
end)
http://samemiso.blogspot.com/