2015年12月28日 星期一

gsimplecal 圖形化介面月曆

使用 X-Window-System 為 IceWM,於其下方 toolbar 可設立時間條至右下角,
想要點一下就跳出圖形化月曆 (calendar) 之功能,方法:


  • 安裝 gsimplecal 並至 IceWM 設定檔進行設定。 



##ReadMore##

Step1.
Debian/Jessie 直接 APT 進行安裝:
apt-get -y install gsimplecal

Step2.
寫設定檔(可以使用 man gsimplecal 查看詳細設定):
vim ~/.config/gsimplecal/config
show_calendar = 1
show_timezones = 1
mark_today = 1
show_week_numbers = 0
close_on_unfocus = 0
external_viewer = sunbird -showdate "%Y-%m-%d"
clock_format = %Y/%m/%d (%a) %T
force_lang = en_US.utf8
mainwindow_decorated = 1
mainwindow_keep_above = 1
mainwindow_sticky = 0
mainwindow_skip_taskbar = 1
mainwindow_resizable = 1
mainwindow_position = mouse
mainwindow_xoffset = 0
mainwindow_yoffset = 0
clock_label = Taipei
clock_tz = :Asia/Taipei

Step3.
設定 IceWM 之設定檔:
sudo vim /etc/X11/icewm/preferences
#  Command to run on clock
ClockCommand="gsimplecal"

Step4.
完成→測試。

鍵盤操作快捷鍵:

  • Escape, Ctrl+w, Ctrl+q →  Close the window.
  • j    → Switch to the next month.
  • k   → Switch to the previous month.
  • J    → Jump one year forward.
  • K   → Jump one year backward.
  • g, Home → Jump to the current date.


---
Reference:
http://dmedvinsky.github.io/gsimplecal/