https://wiki.archlinux.org/api.php?action=feedcontributions&user=Julien&feedformat=atomArchWiki - User contributions [en]2024-03-29T08:46:35ZUser contributionsMediaWiki 1.41.0https://wiki.archlinux.org/index.php?title=Fluxbox&diff=113510Fluxbox2010-08-08T10:43:52Z<p>Julien: /* Additional Resources */ fixed fluxbox HP dead link</p>
<hr />
<div>[[Category:Stacking WMs (English)]]<br />
[[Category:HOWTOs (English)]]<br />
<br />
{{i18n|Fluxbox}}<br />
<br />
= Getting Started =<br />
<br />
==Full Guide==<br />
Thanks to narada; he is the author of this guide.<br />
You can find it at:<br />
[http://bbs.archlinux.org/viewtopic.php?id=77729]<br />
<br />
== Starting Fluxbox ==<br />
=== Method 1: KDM/GDM ===<br />
Users of [[KDM]] or [[GDM]] will find a new fluxbox entry added to their session menu automatically. Simply choose the fluxbox option when logging in.<br />
<br />
=== Method 2: ~/.xinitrc ===<br />
Edit {{Filename|~/.xinitrc}} and add the following code:<br />
exec fluxbox<br />
or if you would like to use the 'startfluxbox' file, add this line instead:<br />
exec startfluxbox <br />
<tt>startfluxbox</tt> is the recommended method, as this will also execute any programs defined in {{Filename|~/.fluxbox/startup}}.<br />
<br />
{{Note | There can only be one <tt>exec</tt> line in your {{Filename|~/.xinitrc}} file.}}<br />
<br />
If it crashes on startup, it may be a locale problem. Setting LC_ALL to the default "C" locale, may avoid this crash. [http://bbs.archlinux.org/viewtopic.php?t=25797 1].<br />
<br />
= Configuration =<br />
== Menu Management ==<br />
=== Built-in method ===<br />
Built-in command:<br />
$ fluxbox-generate_menu<br />
This command will generate a ~/.fluxbox/menu/ file based on your installed programs. There is also "helper / regenerate menu" in the fluxbox menu.<br />
<br />
=== MenuMaker ===<br />
[http://menumaker.sourceforge.net/ MenuMaker] is a powerful tool that creates XML-based menus for a variety of Window Managers, including Fluxbox. MenuMaker will search your computer for executable programs and create a menu based on the results. It can be configured to exclude Legacy X, GNOME, KDE, or Xfce applications if desired.<br />
<br />
MenuMaker is available in [community] via pacman:<br />
# pacman -S menumaker<br />
<br />
Once installed, you can generate a complete menu by running:<br />
$ mmaker -v Fluxbox<br />
<br />
To see a full list of options, run '''mmaker --help'''<br />
<br />
=== Arch Linux Xdg menu ===<br />
Requires [http://aur.archlinux.org/packages.php?ID=10535 Arch Linux xdg menu] <br><br />
$ xdg_menu --fullmenu --format fluxbox --root-menu /etc/xdg/menus/arch-applications.menu >~/.fluxbox/menu<br />
'''Tip:''' replace default xterm/urxvt:<br />
$ sed -i 's/xterm/urxvt/g' ~/.fluxbox/menu<br />
More info:<br />
$ xdg_menu --help<br />
<br />
''See also: [[XdgMenu]]''<br />
<br />
=== Creating a custom menu with fluxconf ===<br />
To start the menu section of fluxconf run:<br />
$ fluxmenu<br />
In the window you will see three columns: Type, Title, & Command/Comment.<br><br />
Clicking on an entry in this will allow you to edit it.<br><br />
Clicking on "Add sub" will add a submenu.<br><br />
Clicking on "Add exec" will add a command.<br><br />
<br />
The type column has several valid options:<br />
#begin, required to start the menu file. The title option is the menu header.<br><br />
#submenu, a "folder" inside the menu. Title is the name of the submenu.<br><br />
#exec, a command line. Title is what is shown and Command/Comment is the command to be executed.<br />
#separator, a divider in the menu. No arguments to this one.<br />
#workspaces, a list of workspaces and what applications are running on each. Title is what will be shown to the user.<br />
#stylesdir, a directory containing styles. Title is the path to the dir. Recommended that you put this into its own subdirectory as it can get quite large. directories to use: /usr/share/fluxbox/styles ~/.fluxbox/styles .<br />
#config, a menu with many options for configuring behavior of fluxbox. Title is the name of the menu shown to the user.<br />
#reconfig, reloads the config file. Title is the title shown to the user.<br />
#restart, restarts fluxbox. Title is the title shown to the user.<br />
#exit, exit fluxbox, will drop back to the desktop manager or exit X depending on the startup method you used. Title is the title shown to the user.<br />
<br />
Remember to hit save before closing<br />
<br />
=== Manually create/edit the menu ===<br />
Use command:<br />
$ nano ~/.fluxbox/menu<br />
Then write lines in this style:<br />
[exec] (name) {command}<br />
If you want to make submenu write:<br />
[submenu] (Name)<br />
...<br />
...<br />
[end]<br />
When done save and exit. There is no need to restart fluxbox.<br />
<br />
== Hotkeys ==<br />
Fluxbox offers basic hotkeys functionality. The fluxbox key file is located at:<br />
~/.fluxbox/keys<br />
Control key is represented by "Control". Mod1 corresponds to Alt and Mod4 corresponds to Meta (not a standard key but many map meta to the win key)<br />
<br />
Here is a quick way of controlling your Master volume, using CTRL-ALT+ Arrow up or down:<br />
Control Mod1 Up :Exec amixer set Master,0 5%+ <br />
Control Mod1 Down :Exec amixer set Master,0 5%- <br />
<br />
If you installed fluxconf, you may use its method of editing this in GUI with the command:<br />
$ fluxkeys<br />
<br />
The First text box is for a button and the second is for an action. Select execCommand to set a command and put the name of the command into the 3rd text box.<br />
<br />
More functions of this can be used from the 2nd text box (A drop down menu is available)<br />
<br />
== Workspaces ==<br />
Fluxbox defaults to having four workspaces. These are accessible using Alt+F1-F4 shortcuts, or the arrows on the toolbar next to where it says '''one'''.<br />
<br />
Right clicking on desktop and going to your Workspaces menu (menumaker users: FluxBox>Workspaces, fluxconf users: the workspaces title) will let you interact with the workspaces.<br />
<br />
Workspaces Menu:<br />
Icons - shows minimized applications<br />
--separator--<br />
Workspaces names (default: one,two,three,four) - Shows all the applications on that desktop<br />
--separator--<br />
New Workspace - Adds a workspace<br />
Edit Current workspace name - lets you title your workspace whatever you want. Will show up on the left side of the toolbar <br />
Remove Last - Removes the last workspace on the list, dumps all of the applications running on that desktop into the one before it<br />
<br />
== Background ==<br />
Setting the background requires a background setter. you will need to install one of these packages:<br />
*eterm <br />
*feh (lacks menu transparency). <br />
<br />
There are others but these are the most recommended two, to see others check out the fbsetbg documentation in the "Additional Links section"<br />
To set the background:<br />
$ fbsetbg /path/to/background.image<br />
<br />
You can also add (or modify) the following line to the file ~/.fluxbox/init to something like this:<br />
session.screen0.rootCommand: fbsetbg /path/to/wallpaper<br />
<br />
Or simply:<br />
session.screen0.rootCommand: fbsetbg -l<br />
<br />
====Additional notes for people who like to change wallpaper a lot====<br />
<br />
Place the following submenu in your fluxbox menu<br />
[submenu] (Backgrounds)<br />
[wallpapers] (~/.fluxbox/backgrounds)<br />
[wallpapers] (/usr/share/fluxbox/backgrounds)<br />
[end]<br />
Then put your background images into ~/.fluxbox/backgrounds or any other folder you specify, they will then appear in the same fashion as your styles.\<br />
<br />
=== Feh ===<br />
Install feh with:<br />
# pacman -S feh<br />
You may add a quick submenu to your {{Filename|~/.fluxbox/menu}} file which will allow you to change backgrounds on-the-fly:<br />
[submenu] (Wallpaper)<br />
[wallpapers] (/path/to/your/wallpapers) {feh --bg-scale}<br />
[end]<br />
<br />
To make sure fluxbox will load feh background next time start:<br />
<br />
'''1.''' Make {{Filename|.fehbg}} executable:<br />
$ chmod 770 ~/.fehbg<br />
<br />
'''2.''' Then add (or modify) the following line to the file {{Filename|~/.fluxbox/init}}:<br />
session.screen0.rootCommand: ~/.fehbg<br />
<br />
'''3.''' or add (or modify) the following line to the file {{Filename|~/.fluxbox/startup}}:<br />
~/.fehbg<br />
<br />
== Theming ==<br />
To install a theme extract the archive to a stylesdir the default ones are:<br />
*global - /usr/share/fluxbox/styles<br />
*user only - ~/.fluxbox/styles<br />
Links to some theme sites are provided below.<br />
<br />
== GTK2 Themes ==<br />
''See: [[GTK+]]''<br />
<br />
== Autostarting Applications ==<br />
xinitrc users should put all code into {{Filename|~/.xinitrc}}. However, fluxbox provides functionality to autostart applications on its own.<br />
<br />
The {{Filename|~/.fluxbox/startup}} file is a script for autostarting applications as well as starting fluxbox itself. The # symbol denotes a comment.<br />
<br />
A sample file:<br />
fbsetbg -l <nowiki>#</nowiki> sets the last background set, very useful and recommended.<br />
<nowiki>#</nowiki> In the below commands the ampersand symbol (&) is required on all applications that do not terminate immediately. <br />
<nowiki>#</nowiki> failure to provide them will cause fluxbox not to start.<br />
idesk & <br />
xterm &<br />
<nowiki>#</nowiki> exec is for starting fluxbox itself, don't put an ampersand (&) after this or fluxbox will exit immediately<br />
exec /usr/bin/fluxbox<br />
<nowiki>#</nowiki> or if you want to keep a log, uncomment the below command and comment out the above command:<br />
<nowiki>#</nowiki> exec /usr/bin/fluxbox -log ~/.fluxbox/log<br />
<br />
== A life after xorg.conf ==<br />
Xorg no longer requires an xorg.conf file. Traditionally this is where you would change your keyboard settings and powersave settings. Luckily there are elegant solutions not using xorg.conf. <br />
<br />
=== Setting your keyboard right ===<br />
Just add the following line to {{Filename|~/.fluxbox/startup}}:<br />
setxkbmap us -variant intl & # to have a us keyboard with special characters enabled (like éóíáú)<br />
<br />
Instead of 'us' you can also pass your language code and remove the variant option. See man setxkbmap for more options.<br />
<br />
To make a help function in your menu, just add in {{Filename|~/.fluxbox/menu}}:<br />
[submenu] (Keyboard)<br />
[exec] (normal) {setxkbmap us}<br />
[exec] (international) {setxkbmap us -variant intl}<br />
[end]<br />
<br />
=== Disable Powersave ===<br />
Do you recognize the problem while watching a movie that the screen goes blank? Congratulations, Xorg just detected that you were doing nothing :). If you don't need these movement exercises, you can disable this feature altogether. You'll just have to remember to manually turn off your monitor if you're not using it.<br />
<br />
Just add the following line at the start of {{Filename|~/.fluxbox/startup}}:<br />
xset s off -dpms &<br />
<br />
= Additional Resources =<br />
<br />
* [http://fluxbox.org/ Fluxbox Homepage]<br />
* [http://en.gentoo-wiki.com/wiki/Fluxbox Gentoo Wiki about Fluxbox]<br />
* [http://www.gentoo.org/doc/en/fluxbox-config.xml Gentoo Fluxbox Documentation]<br />
* [http://box-look.org/ Themes for Fluxbox]<br />
* [http://fluxbox-wiki.org/ Fluxbox Wiki]<br />
* [http://www.xs4all.nl/~hanb/software/fbsetbg/fbsetbg.html fbsetbg documentation]<br />
* [http://archux.com/page/application-recommendations Application recommendations]<br />
* [http://wiki.archlinux.org/index.php/Fluxbox_Style_Guide Fluxbox Style Guide]</div>Julienhttps://wiki.archlinux.org/index.php?title=Input_Japanese_using_uim&diff=28973Input Japanese using uim2007-09-13T07:28:18Z<p>Julien: </p>
<hr />
<div>[[Category:Internationalization (English)]]<br />
[[Category:HOWTOs (English)]]<br />
{{stub}}<br />
<br />
This page explains how to get the Japanese input to work using UIM.<br><br />
Written from a system with Gnome, people using other environments may skip/adapt commands. <br />
<br />
= Installation =<br />
== Anthy ==<br />
First we need to install Anthy :<br />
# pacman -S anthy<br />
<br />
== UIM ==<br />
=== Using pacman ===<br />
Pull down the necessary things with a :<br />
# pacman -S uim<br />
<br />
GTK users will have to generate the immodules file :<br />
$ gtk-query-immodules-2.0 /usr/lib/gtk-2.0/2.10.0/immodules/im-uim.so > ~/.immodules<br />
<br />
<br />
=== Compiling from source ===<br />
Here are the steps I followed to get it to work with Gnome using the sources from the official site :<br />
<br />
#Get uim from [http://code.google.com/p/uim/downloads/list the UIM download page]<br />
#Extract the files<br />
#In the extracted files' folder do : <br />
$ ./configure --prefix=/opt/uim<br />
$ make<br />
# make install<br />
''remove or change the prefix if you're not happy with it but then you'd need to adapt paths and commands written below'' <br />
<br />
<br />
Link to uim libraries :<br />
# echo "/opt/uim/lib" >> /etc/ld.so.conf<br />
# /sbin/ldconfig<br />
<br />
Generate the immodules file :<br />
$ gtk-query-immodules-2.0 /opt/uim/lib/gtk-2.0/2.10.0/immodules/im-uim.so > ~/.immodules<br />
<br />
You might consider updating your PATH so you can run uim related applications easily, for instance :<br />
export UIM_HOME=/opt/uim<br />
PATH=$UIM_HOME/bin:$PATH<br />
<br />
<br />
== Setting the environment variables ==<br />
In your '''~/.xprofile''' file add :<br />
export GTK_IM_MODULE='uim'<br />
export GTK_IM_MODULE_FILE=~/.immodules<br />
export QT_IM_MODULE='uim'<br />
uim-xim &<br />
export XMODIFIERS=@im='uim'<br />
<br />
<br />
== UIM preferences ==<br />
You can configure uim preferences by running :<br />
$ uim-pref-gtk<br />
which brings forth a GUI.<br />
<br />
<br />
You can run <tt>uim-xim</tt> or logout/login to test your settings.<br><br />
Provided everything went well you should be able to input Japanese in X.<br />
<br />
お疲れ様です!<br />
<br />
<br />
= Useful literature =<br />
http://code.google.com/p/uim/wiki/OfficialUserDocument<br><br />
http://en.wikibooks.org/wiki/Uim</div>Julienhttps://wiki.archlinux.org/index.php?title=Input_Japanese_using_uim&diff=28971Input Japanese using uim2007-09-13T06:28:42Z<p>Julien: updated uim's OfficialUserDocument link</p>
<hr />
<div>[[Category:Internationalization (English)]]<br />
[[Category:HOWTOs (English)]]<br />
{{stub}}<br />
<br />
<br />
= Installation =<br />
== Anthy ==<br />
Simply do a :<br />
# pacman -S anthy<br />
<br />
== UIM ==<br />
=== Using pacman ===<br />
# pacman -S uim<br />
=== Compiling from source ===<br />
#Get uim from [http://code.google.com/p/uim/downloads/list the UIM download page]<br />
#Extract the files<br />
#In the extracted files' folder do<br />
$ ./configure<br />
$ make<br />
# make install<br />
<br />
= Configuration =<br />
Depending on the way you installed UIM and your Desktop Environment or Window Manager configuration varies.<br />
<br />
Here are the steps I followed to get it to work with Gnome, after having compiled uim from sources with<br />
$ ./configure --prefix=/opt/uim<br />
<br />
You need of course to adapt commands to your system or simply skip unecessary steps if you did an install using pacman.<br />
<br />
== UIM libraries ==<br />
If you've installed uim to another location than the default one, you need to link to uim libraries :<br />
# echo "/opt/uim/lib" >> /etc/ld.so.conf<br />
# /sbin/ldconfig<br />
<br />
== GTK modules ==<br />
<small>''TODO : write short explaination''</small><br />
$ gtk-query-immodules-2.0 /opt/uim/lib/gtk-2.0/2.10.0/immodules/im-uim.so > ~/.immodules<br />
<br />
== Environment variables ==<br />
Edit your '''~/.xprofile''' file, for instance :<br />
export GTK_IM_MODULE='uim'<br />
export GTK_IM_MODULE_FILE=~/.immodules<br />
export QT_IM_MODULE='uim'<br />
uim-xim &<br />
export XMODIFIERS=@im='uim'<br />
<br />
In the case you've compiled uim from sources and set a --prefix option you might consider updating your PATH so you can run uim related applications easily, for instance :<br />
export UIM_HOME=/opt/uim<br />
PATH=$UIM_HOME/bin:$PATH<br />
<br />
== UIM preferences ==<br />
You can configure uim preferences by running :<br />
$ uim-pref-gtk<br />
which brings forth a GUI.<br />
<br />
<br />
<br />
You can run <tt>uim-xim</tt> or logout/login to test your settings.<br><br />
Provided everything went well you should be able to input Japanese in X.<br />
<br />
お疲れ様です!<br />
<br />
= Useful literature =<br />
http://code.google.com/p/uim/wiki/OfficialUserDocument<br><br />
http://en.wikibooks.org/wiki/Uim</div>Julienhttps://wiki.archlinux.org/index.php?title=Input_Japanese_using_uim&diff=28970Input Japanese using uim2007-09-13T06:13:31Z<p>Julien: updated uim download link</p>
<hr />
<div>[[Category:Internationalization (English)]]<br />
[[Category:HOWTOs (English)]]<br />
{{stub}}<br />
<br />
<br />
= Installation =<br />
== Anthy ==<br />
Simply do a :<br />
# pacman -S anthy<br />
<br />
== UIM ==<br />
=== Using pacman ===<br />
# pacman -S uim<br />
=== Compiling from source ===<br />
#Get uim from [http://code.google.com/p/uim/downloads/list the UIM download page]<br />
#Extract the files<br />
#In the extracted files' folder do<br />
$ ./configure<br />
$ make<br />
# make install<br />
<br />
= Configuration =<br />
Depending on the way you installed UIM and your Desktop Environment or Window Manager configuration varies.<br />
<br />
Here are the steps I followed to get it to work with Gnome, after having compiled uim from sources with<br />
$ ./configure --prefix=/opt/uim<br />
<br />
You need of course to adapt commands to your system or simply skip unecessary steps if you did an install using pacman.<br />
<br />
== UIM libraries ==<br />
If you've installed uim to another location than the default one, you need to link to uim libraries :<br />
# echo "/opt/uim/lib" >> /etc/ld.so.conf<br />
# /sbin/ldconfig<br />
<br />
== GTK modules ==<br />
<small>''TODO : write short explaination''</small><br />
$ gtk-query-immodules-2.0 /opt/uim/lib/gtk-2.0/2.10.0/immodules/im-uim.so > ~/.immodules<br />
<br />
== Environment variables ==<br />
Edit your '''~/.xprofile''' file, for instance :<br />
export GTK_IM_MODULE='uim'<br />
export GTK_IM_MODULE_FILE=~/.immodules<br />
export QT_IM_MODULE='uim'<br />
uim-xim &<br />
export XMODIFIERS=@im='uim'<br />
<br />
In the case you've compiled uim from sources and set a --prefix option you might consider updating your PATH so you can run uim related applications easily, for instance :<br />
export UIM_HOME=/opt/uim<br />
PATH=$UIM_HOME/bin:$PATH<br />
<br />
== UIM preferences ==<br />
You can configure uim preferences by running :<br />
$ uim-pref-gtk<br />
which brings forth a GUI.<br />
<br />
<br />
<br />
You can run <tt>uim-xim</tt> or logout/login to test your settings.<br><br />
Provided everything went well you should be able to input Japanese in X.<br />
<br />
お疲れ様です!<br />
<br />
= Useful literature =<br />
http://uim.freedesktop.org/wiki/OfficialUserDocument<br><br />
http://en.wikibooks.org/wiki/Uim</div>Julienhttps://wiki.archlinux.org/index.php?title=Kernel_Panics&diff=28880Kernel Panics2007-09-12T07:12:51Z<p>Julien: Reverted the page back to english</p>
<hr />
<div>[[Category: System recovery (English)]]<br />
[[Category:HOWTOs (English)]]<br />
<!-- Dutch is my native language, so probably there are some spelling mistakes in this text. Please, feel free to edit them :) (Edited spelling and grammar by Archuser. :))--><br />
<br />
This page describes how to fall back to a previously installed kernel version if the current one fails.<br />
<br />
==Start from the installation CD==<br />
The first step is booting the installation CD. When started, type arch, like you would when installing arch.<br />
# arch<br />
<br />
==Chroot to your normal root==<br />
When booted, you have a small but working mini-Linux environment with some basic tools.<br />
Now, you have to mount your normal root disk to /mnt.<br />
# mount /dev/hdXY /mnt<br />
If you use a boot partition, don't forget to mount it<br />
# mount /dev/hdaXY /mnt/boot<br />
<br />
Now, we will chroot to this disk, so you can use it like you booted your computer "normal". Of course, a lot will not work.<br />
# chroot /mnt<br />
<br />
==Roll back to previous kernel version==<br />
If you keep your downloaded pacman packages, you now can easily roll back. If you didn't keep them, you have to find a way to get a previous kernel version on your system now.<br />
<br />
Let's suppose you keep the previous versions. We will now install the last working one.<br />
# pacman -U /var/cache/pacman/pkg/kernel26-2.6.16.13-1.pkg.tar.gz<br />
<br />
Maybe you'll have to change the version numbers to the version that last worked for you, but it won't make a big difference.<br />
<br />
==Reboot==<br />
Now the working kernel is reinstalled, you can safely reboot your PC, and boot your computer as usual.<br />
Don't forget to check the arch-newspage to check what went wrong with the kernel build.</div>Julienhttps://wiki.archlinux.org/index.php?title=Screen_capture&diff=25768Screen capture2007-06-19T19:54:41Z<p>Julien: taking a screenshot with gnome requires gnome-utils package</p>
<hr />
<div>[[Category:Graphics and DTP (English)]]<br />
[[Category:Utilities (English)]]<br />
[[Category:Tutorials (English)]]<br />
<br />
{{i18n_links_start}}<br />
{{i18n_entry|English|Taking a Screenshot}}<br />
{{i18n_entry|简体中文|屏幕截图}}<br />
{{i18n_links_end}}<br />
<br />
== import ==<br />
<br />
An easy way to take a screenshot of your curent system is using the import command:<br />
import -window root screenshot.jpg<br />
<br />
import is part of the imagemagick package.<br />
<br />
If you run twinview or dualhead, simply take the screenshot twice and use imagemagick to paste them together:<br />
import -window root -display :0.0 -screen /tmp/0.png<br />
import -window root -display :0.1 -screen /tmp/1.png<br />
convert +append /tmp/0.png /tmp/1.png screenshot.png<br />
rm /tmp/{0,1}.png<br />
<br />
== gimp ==<br />
<br />
You also can take screenshots with gimp (File -> Acquire -> Screenshot ...).<br />
<br />
== xwd ==<br />
<br />
xwd is part of the xorg-apps package.<br />
<br />
Take a screenshot of the root window:<br />
xwd -root -out screenshot.xwd<br />
<br />
== KDE ==<br />
<br />
If you use KDE, you might want to use ksnapshot, which can also be activated using <Prt Scr>.<br />
<br />
== GNOME ==<br />
<br />
You can press <Prt Scr> or Apps->Accessories->Take Screenshot.<br />
<br />
''Note: if <Prt Scr> complains about not finding gnome-screenshot or there is no "Take Screenshot" entry in your menu, you will need to install the [http://www.archlinux.org/packages/3154 gnome-utils] package.''</div>Julienhttps://wiki.archlinux.org/index.php?title=Input_Japanese_using_uim&diff=23411Input Japanese using uim2007-04-23T21:42:09Z<p>Julien: /* Configuration */</p>
<hr />
<div>[[Category:Internationalization (English)]]<br />
[[Category:HOWTOs (English)]]<br />
{{stub}}<br />
<br />
<br />
= Installation =<br />
== Anthy ==<br />
Simply do a :<br />
# pacman -S anthy<br />
<br />
== UIM ==<br />
=== Using pacman ===<br />
# pacman -S uim<br />
=== Compiling from source ===<br />
#Get uim from [http://uim.freedesktop.org/wiki/UimDownload the UIM download page]<br />
#Extract the files<br />
#In the extracted files' folder do<br />
$ ./configure<br />
$ make<br />
# make install<br />
<br />
= Configuration =<br />
Depending on the way you installed UIM and your Desktop Environment or Window Manager configuration varies.<br />
<br />
Here are the steps I followed to get it to work with Gnome, after having compiled uim from sources with<br />
$ ./configure --prefix=/opt/uim<br />
<br />
You need of course to adapt commands to your system or simply skip unecessary steps if you did an install using pacman.<br />
<br />
== UIM libraries ==<br />
If you've installed uim to another location than the default one, you need to link to uim libraries :<br />
# echo "/opt/uim/lib" >> /etc/ld.so.conf<br />
# /sbin/ldconfig<br />
<br />
== GTK modules ==<br />
<small>''TODO : write short explaination''</small><br />
$ gtk-query-immodules-2.0 /opt/uim/lib/gtk-2.0/2.10.0/immodules/im-uim.so > ~/.immodules<br />
<br />
== Environment variables ==<br />
Edit your '''~/.xprofile''' file, for instance :<br />
export GTK_IM_MODULE='uim'<br />
export GTK_IM_MODULE_FILE=~/.immodules<br />
export QT_IM_MODULE='uim'<br />
uim-xim &<br />
export XMODIFIERS=@im='uim'<br />
<br />
In the case you've compiled uim from sources and set a --prefix option you might consider updating your PATH so you can run uim related applications easily, for instance :<br />
export UIM_HOME=/opt/uim<br />
PATH=$UIM_HOME/bin:$PATH<br />
<br />
== UIM preferences ==<br />
You can configure uim preferences by running :<br />
$ uim-pref-gtk<br />
which brings forth a GUI.<br />
<br />
<br />
<br />
You can run <tt>uim-xim</tt> or logout/login to test your settings.<br><br />
Provided everything went well you should be able to input Japanese in X.<br />
<br />
お疲れ様です!<br />
<br />
= Useful literature =<br />
http://uim.freedesktop.org/wiki/OfficialUserDocument<br><br />
http://en.wikibooks.org/wiki/Uim</div>Julienhttps://wiki.archlinux.org/index.php?title=Input_Japanese_using_uim&diff=23409Input Japanese using uim2007-04-23T21:35:49Z<p>Julien: New page: Category:Internationalization (English) Category:HOWTOs (English) {{stub}} = Installation = == Anthy == Simply do a : # pacman -S anthy == UIM == === Using pacman === # pacman...</p>
<hr />
<div>[[Category:Internationalization (English)]]<br />
[[Category:HOWTOs (English)]]<br />
{{stub}}<br />
<br />
<br />
= Installation =<br />
== Anthy ==<br />
Simply do a :<br />
# pacman -S anthy<br />
<br />
== UIM ==<br />
=== Using pacman ===<br />
# pacman -S uim<br />
=== Compiling from source ===<br />
#Get uim from [http://uim.freedesktop.org/wiki/UimDownload the UIM download page]<br />
#Extract the files<br />
#In the extracted files' folder do<br />
$ ./configure<br />
$ make<br />
# make install<br />
<br />
= Configuration =<br />
Depending on the way you installed UIM and your Desktop Environment or Window Manager configuration varies.<br />
<br />
Here are the steps I followed to get it to work with Gnome, after having compiled uim from sources with<br />
$ ./configure --prefix=/opt/uim<br />
<br />
You need of course to adapt commands to your system or simply skip unecessary steps if you did an install using pacman.<br />
$ gtk-query-immodules-2.0 /opt/uim/lib/gtk-2.0/2.10.0/immodules/im-uim.so > ~/.immodules<br />
<br />
# echo "/opt/uim/lib" >> /etc/ld.so.conf<br />
# /sbin/ldconfig<br />
<br />
Edit your '''~/.xprofile''' file, for instance :<br />
export GTK_IM_MODULE='uim'<br />
export GTK_IM_MODULE_FILE=~/.immodules<br />
export QT_IM_MODULE='uim'<br />
uim-xim &<br />
export XMODIFIERS=@im='uim'<br />
<br />
In the case you've compiled uim from sources and set a --prefix option you might consider updating your PATH so you can run uim related applications easily, for instance :<br />
export UIM_HOME=/opt/uim<br />
PATH=$UIM_HOME/bin:$PATH<br />
<br />
You can now configure uim preferences by running :<br />
$ uim-pref-gtk<br />
which brings forth a GUI.<br />
<br />
You can run <tt>uim-xim</tt> or logout/login to test your settings.<br><br />
Provided everything went well you should be able to input Japanese in X.<br />
<br />
お疲れ様です!<br />
<br />
<br />
= Useful literature =<br />
http://uim.freedesktop.org/wiki/OfficialUserDocument<br><br />
http://en.wikibooks.org/wiki/Uim</div>Julien