喝醉了

March 20th, 2009 / 2 Comments » / by SteamedFish

虽然我成功地一个人爬到二楼,用钥匙开了门,走进房间,正确地输入密码打开电脑,正确地输入网址,正确地登录,开始书写这个博客,并且觉得暂时还没有写出什么语法错误出来,但是我还是觉得我应该是喝醉了。
证据有五个:一是我在酒席上死活想要和人拼酒,这不符合我的风格;二是我觉得一阵一阵晕;三是公司的人死活要开车送我回家;四是我坐在一个喝了很多酒的同事的汽车上回家居然没有犯我经常会犯的汽车恐惧症;五是我平时从来没有过我不会写出语法错误的自信,我一向以为我的汉语很烂。
据说喝醉了的人在醒了酒之后记不得周围发生的事情。那我趁我现在还记得赶紧记录一下:彪哥给我买了香蕉和酸奶,说它们能醒酒。据彪哥说他因此花了八块钱,因此我欠他八块钱。
根据我的记忆,我似乎大概可能也许好像没有发酒疯。谢天谢地。

接下来我应该干什么?睡觉?可是我今天下午15点才刚刚起床。工作?我觉得如果我真的是醉的状态的话我还是不要工作的好。这就是为什么我过来写博客了。
只是我没想到,写个博客竟然只用花这么短的时间,接下来我该干什么呢?
神啊,赐我个美女陪我聊天吧!
在说完上面的两句之后,我终于100%确信,我确实是喝醉了。

更新:有人建议我去洗个澡,被我拒绝了。因为我觉得如果我洗澡的时候出了什么故障,没人会在第一时间发现,我因此也就不会在第一时间获救。安全起见,还是不洗的好。

又熬夜了,配置 awesome

March 20th, 2009 / 7 Comments » / by SteamedFish

为什么我每天晚上都会遇到让我不想睡觉的事情呢?比如今天, awesome 更新到了 3.2, 我之前的配置文件又再次不好用了,只得继续重新配置一遍。这个可不能不做,不然我的电脑约等于没法用了。于是就又忙到这个时间了。
这个 awesome 也确实可恨,每次更新总要把配置文件语法改那么一点点。虽然确实每次改动都能看出是进步了,但是每次都要人重新配置这不要人命么。一开始我还非常仔细的配置,后来我干脆直接拿默认配置过来随便改改,勉强能用就不管了。幸好 awesome 的默认配置还不算难用。

记录一下今天晚上的成果。先勉强这样用起来吧,别的以后再说,真得睡觉了。我都饿了。

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
--- /etc/xdg/awesome/rc.lua	2009-03-19 07:46:50.000000000 +0800
+++ .config/awesome/rc.lua	2009-03-20 03:34:40.981216823 +0800
@@ -8,7 +8,7 @@
 -- {{{ Variable definitions
 -- Themes define colours, icons, and wallpapers
 -- The default is a dark theme
-theme_path = "/usr/share/awesome/themes/default/theme"
+theme_path = "/home/steamedfish/.config/awesome/default/theme"
 -- Uncommment this for a lighter theme
 -- theme_path = "/usr/share/awesome/themes/sky/theme"
 
@@ -16,8 +16,8 @@
 beautiful.init(theme_path)
 
 -- This is used later as the default terminal and editor to run.
-terminal = "xterm"
-editor = os.getenv("EDITOR") or "nano"
+terminal = "urxvt"
+editor = os.getenv("EDITOR") or "vim"
 editor_cmd = terminal .. " -e " .. editor
 
 -- Default modkey.
@@ -52,6 +52,11 @@
     ["MPlayer"] = true,
     ["pinentry"] = true,
     ["gimp"] = true,
+    ["SMPlayer"] = true,
+    ["Gimp"] = true,
+    ["Pidgin"] = true,
+    ["Kopete"] = true,
+    ["feh"] = true,
     -- by instance
     ["mocp"] = true
 }
@@ -75,12 +80,23 @@
     -- Each screen has its own tag table.
     tags[s] = {}
     -- Create 9 tags per screen.
+    tags[s][1] = tag({ name = "bash" })
+    tags[s][2] = tag({ name = "firefox" })
+    tags[s][3] = tag({ name = "pidgin" })
+    tags[s][4] = tag({ name = "PCManX" })
+    tags[s][5] = tag({ name = "floating" })
+    tags[s][6] = tag({ name = "six" })
+    tags[s][7] = tag({ name = "seven" })
+    tags[s][8] = tag({ name = "eight" })
+    tags[s][9] = tag({ name = "nine" })
     for tagnumber = 1, 9 do
-        tags[s][tagnumber] = tag(tagnumber)
+        -- 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
+        -- Setup tag six to use floating layout.
+        awful.layout.set(layouts[10], tags[s][5])
     -- I'm sure you want to see at least one tag.
     tags[s][1].selected = true
 end
@@ -90,18 +106,26 @@
 -- Create a textbox widget
 mytextbox = widget({ type = "textbox", align = "right" })
 -- Set the default text in textbox
-mytextbox.text = "<b><small> " .. AWESOME_RELEASE .. " </small></b>"
+-- mytextbox.text = "<b><small> " .. AWESOME_RELEASE .. " </small></b>"
+mytextbox.text = "<b><small> Fisher Duan </small></b>"
 
 -- Create a laucher widget and a main menu
 myawesomemenu = {
+   { "lock", "xscreensaver-command -activate" },
    { "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 }
+mymainmenu = awful.menu.new({ items = { 
+                                        { "open terminal", terminal },
+                                        { "firefox", "firefox" },
+                                        { "pidgin", "pidgin" },
+                                        { "emacs", "emacs" },
+                                        { "pcmanx", "pcmanx" },
+                                        { "Files", "pcmanfm" },
+                                        { "awesome", myawesomemenu, beautiful.awesome_icon }
                                       }
                             })
 
@@ -145,7 +169,7 @@
     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] = widget({ type = "imagebox", align = "left" })
     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),
@@ -159,14 +183,14 @@
                                               end, mytasklist.buttons)
 
     -- Create the wibox
-    mywibox[s] = wibox({ position = "top", fg = beautiful.fg_normal, bg = beautiful.bg_normal })
+    mywibox[s] = wibox({ position = "bottom", fg = beautiful.fg_normal, bg = beautiful.bg_normal })
     -- Add widgets to the wibox - order matters
     mywibox[s].widgets = { mylauncher,
                            mytaglist[s],
-                           mytasklist[s],
+                           mylayoutbox[s],
                            mypromptbox[s],
+                           mytasklist[s],
                            mytextbox,
-                           mylayoutbox[s],
                            s == 1 and mysystray or nil }
     mywibox[s].screen = s
 end
@@ -225,9 +249,10 @@
     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),
+    key({ modkey, "Control" }, "l",     function () awful.util.spawn("xscreensaver-command -activate") end),
 
     -- Prompt
-    key({ modkey }, "F1",
+    key({ modkey }, "F2",
         function ()
             awful.prompt.run({ prompt = "Run: " },
             mypromptbox[mouse.screen],
@@ -428,8 +453,8 @@
     end
 end)
 
--- Hook called every minute
-awful.hooks.timer.register(60, function ()
-    mytextbox.text = os.date(" %a %b %d, %H:%M ")
+-- Hook called every second
+awful.hooks.timer.register(1, function ()
+    mytextbox.text = os.date(" %Y-%m-%e, %H:%M:%S ")
 end)
 -- }}}

Tags:

装了一个 Windows 7 beta

February 28th, 2009 / 3 Comments » / by SteamedFish

截图请自行去我的相册观看。
我的评论如下:

  1. 默认安装并 update 完之后竟然占用了 10G 的空间。 Oh my godness!
  2. 我发现没有了 scrot 之后我竟然不知道怎么截图了,只好去问了舍友才知道。
  3. 微软拼音真难用啊真难用。
  4. IE 不支持中键在新标签中打开太不习惯了。
  5. 虽然是 beta 版,但是貌似挺稳定,用了一天了没有蓝屏过。
  6. 貌似速度比 vista 要快了许多了,虽然还是挺慢的。
  7. DVD 里面装的东西就是多。安装过后我的大部分设备都自动识别了,没有识别的也通过自动更新识别出来了。
  8. 我已经太久不用 windows 了,现在基本上处于不会用的地步了,什么都找不到。
  9. IE 8 的 javascript 执行速度简直慢得不能忍受啊。

正式支持用 OpenID 发表 comment

February 26th, 2009 / 3 Comments » / by SteamedFish

在某人的鄙视下,我的 BLOG 现在正式支持使用 OpenID 发表 comment. 只需在 URL 中填入你的 OpenID 既可,无须填写用户名和电子邮箱地址。

Tags:

转折的时期

February 25th, 2009 / 5 Comments » / by SteamedFish

今天不上班,我凌晨1点不到的时候睡的觉,一直睡到下午快两点才起。然后做饭吃,吃完饭,三点了,再看看外面的雨,决定继续在家里宅一天。
算下来我已经公司和家两点一线了一个多月了。哪里都没有去过,不上班的时候就睡到很晚,然后宅在家里,就和今天一样。
我虽然是个很能睡觉的人,但是竟然能够连续每天睡十多个小时,这也太疯狂了。

还记得刚进公司的时候,不上班的时候,我虽然也睡懒觉,但是总能在上午十一点之前起床,然后赶去公司吃午饭,顺便就呆在公司吃晚饭。不但是因为能够给我省下很多饭钱,而且因为在公司实在比在家里闲得无聊要好得多。而我现在已经很久很久没有这样做过了,一是起床之后已经错过了午饭,二是实在懒得出门。

刚进公司的那种激情和热血都没有了。生活逐渐变得单调和一成不变。只能说自己已经习惯了。
我痛恨这种生活。

Page 12 of 16« First...1011121314...Last »