Türkiye
Az konuş, çok çalış..

Forum

Bildirimler
Tümünü temizle

[Nasıl] Openbox sağ tıklama menüsünü Türkçe düzenleme

2 Yazılar
2 Üyeler
0 Reactions
4,398 Görüntüleme
(@yfdogan)
Gönderiler: 615
Prominent Member
Konu başlatıcı
 

Manjaro Linux Openbox ortamında sağ tıklama menüsü öntanımlı olarak İngilizcedir. Bunu menu.xml dosyasında yapacağınız birkaç küçük degişiklikle Türkçe yapabilir ve kullanabilirsiniz. Düzenlemek isterseniz şu yolu takip edin;

1- Dosya yöneticisini açıp üst menüden görünüm>gizli dosyaları göster seçenegini tıklayın.
2- .config klasörüne girip buradan openbox klasörünü açın. Buradan menu.xml dosyasını kullandığınız metin edidörü ( Leafpad,gedit gibi ) ile açın.
3- Burada menü başlıklarını bulup Türkçe karşılığını yazıp kaydedin. Örnegin; " Change Background " sağ tıklama menüsününün ilk ögesidir ve 4.satırda yer almaktadır. Türkçe karşılığı ise " arkaplan degiştirme " dir. Diger menü ögelerini bu örnekte olduğu gibi bulup degiştirin. Düzenlemeniz bittikten sonra kaydedin. Oturumu kapatıp yeniden açın. Sağ tıklama menüsünün degiştigini göreceksiniz. Aşağıda örnek öntanımlı menu.xml dosyası ve Türkçeye çevirilmiş menu.xml dosyası bulunmaktadır.

Öntanımlı menu.xml dosyası


	
		
			
				nitrogen
			
		
		
			
				
					arandr
				
			
			
				
					obconf
				
			
			
				
					lxappearance
				
			
			
				
					xscreensaver-demo
				
			
			
				
					tintwizard
				
			
			
				
					obmenu
				
			
		
		
		
			
				thunar
			
		
		
			
				xfce4-terminal
			
		
		
			
				synapse
			
		
		
			
				xfce4-appfinder
			
		
		
		
			
				oblogout
			
		
	

Türkçe olarak düzenlenmiş menu.xml dosyası


	
		
			
				nitrogen
			
		
		
			
				
					arandr
				
			
			
				
					obconf
				
			
			
				
					lxappearance
				
			
			
				
					xscreensaver-demo
				
			
			
				
					tintwizard
				
			
			
				
					obmenu
				
			
		
		
		
			
				thunar
			
		
		
			
				xfce4-terminal
			
		
		
			
				synapse
			
		
		
			
				xfce4-appfinder
			
		
		
		
			
				oblogout
			
		
	

Öntanımlı sağ tıklama menu ekran görüntüsü

Türkçe olarak düzenlenmiş sağ tıklama menüsü ekran görüntüsü

 
Gönderildi : 05/05/2013 2:36 pm
(@cumali)
Gönderiler: 1770
Noble Member
 

Manjarobox ( Openbox ) Sağ tıklama menüsünü Türrkçe yapma:

Burada schema.pl dosyasında degişiklik yaparak sağ tıklama menüsünü büyük oranda Türkçe yapabiliriz. Bunun için /home/kullanıcı adı/.config/obmenu-generator/schema.pl dosyasını aşağıda düzenlenmiş olarak verilen dosya ile degişip kaydedin.

Öntanımlı schema.pl dosya içerigi aşağıdadır:

##!/usr/bin/perl
##
## SCHEMA supports the following keys: item, cat, begin_cat, end_cat,
##                                     exit, raw, sep, obgenmenu
##
## Modified by Carl Duff.

=for comment

item: add an item into the menu
{item => ["command", "label", "icon"]}

cat: add a category into the menu
{cat => ["name", "label", "icon"]}

begin_cat: begin of a category
{begin_cat => ["name", "icon"]}

end_cat: end of a category
{end_cat => undef}

sep: menu line separator
{sep => undef} or {sep => "label"}

exit: default "Exit" action
{exit => ["label", "icon"]}

raw: any valid Openbox XML string
{raw => q(xml string)},

obgenmenu: category provided by obmenu-generator
{obgenmenu => "label"}

scripts: executable scripts from a directory
{scripts => ["/my/dir", BOOL, "icon"]}
BOOL - can be either true or false (1 or 0)
0 == open the script in background
1 == open the script in a new terminal

wine_apps: windows applications installed via wine
{wine_apps => ["label", "icon"]}

=cut

# NOTE:
#    * Keys and values are case sensitive. Keep all keys lowercase.
#    * ICON can be a either a direct path to a icon or a valid icon name
#    * By default, category names are case insensitive. (e.g.: X-XFCE == x_xfce)

require '/home/cuma/.config/obmenu-generator/config.pl';

our $SCHEMA = [
#             COMMAND                 	LABEL          		ICON
   {item => ['thunar',      		'Thunar','thunar']},
   {item => ['spacefm -f',      	'Search Files','spacefm']},
   {item => ['lxterminal',   	 	'Terminal','lxterminal']},
   {item => ['nitrogen',   	 	'Nitrogen','nitrogen']},
   {sep => undef},

    #          NAME            LABEL                ICON
    {cat => ['utility',     'Accessories', 'applications-utilities']},
    {cat => ['development', 'Development', 'applications-development']},
	{begin_cat => ['Drivers and Support',  '/usr/share/icons/Faenza/apps/48/dconf-editor.png']},
		{item => ['lxterminal -e sudo ~/.config/executables/updatedriver.sh','Detect and install graphics drivers','lxterminal']},
		{item => ['lxterminal -e sudo ~/.config/executables/multimedia.sh','Install full multimedia support','lxterminal']},
		{item => ['lxterminal -e sudo ~/.config/executables/aur.sh','Install full Arch User Repository support','lxterminal']},
		{item => ['lxterminal -e sudo ~/.config/executables/printing.sh','Install full printing support','lxterminal']},
		{item => ['lxterminal -e sudo ~/.config/executables/install-octopi.sh','Install graphical software manager','lxterminal']},
		{item => ['lxterminal -e sudo ~/.config/executables/install-msm.sh','Install Manjaro Settings Manager','lxterminal']},
	{end_cat   => undef},
    {cat => ['education',   'Education',   'applications-science']},
    {cat => ['game',        'Games',       'applications-games']},
    {cat => ['graphics',    'Graphics',    'applications-graphics']},
    {cat => ['audiovideo',  'Multimedia',  'applications-multimedia']},
    {cat => ['network',     'Network',     'applications-internet']},
    {cat => ['office',      'Office',      'applications-office']},
    {cat => ['settings',    'Settings',    'applications-accessories']},

## Custom "Advanced Menu"

   {begin_cat => ['Advanced Settings',  'gnome-settings']},
   {begin_cat => ['Desktop and Login',  '/usr/share/icons/Faenza/apps/48/dconf-editor.png']},
   {item => ['geany -m ~/.conkyrc','Conky RC','geany']},
   {item => ['geany -m ~/.config/tint2/tint2rc','Tint2 Panel','geany']},
   {item => ['gksu geany /etc/slim.conf','Slim Configuration','geany']},
   {item => ['geany -m ~/.xinitrc','.xinitrc','geany']},
   {item => ['geany -m ~/.xprofile','.xprofile','geany']},
   {end_cat   => undef},
   {begin_cat => ['Obmenu-Generator', '/usr/share/icons/Faenza/apps/48/menu-editor.png']},
		{item => ['geany -m ~/.config/obmenu-generator/schema.pl','Pipe Menu Schema','geany']},
		{item => ['geany -m ~/.config/obmenu-generator/config.pl','Pipe Menu Config','geany']},
		{item => ['obmenu-generator -d','Refresh Icon Set','/usr/share/icons/Faenza/apps/48/application-default-icon.png']},
   {end_cat   => undef},
   {begin_cat => ['Openbox',  'openbox']},
		{item => ['openbox --reconfigure','Reconfigure Openbox','openbox']},
		{item => ['geany -m ~/.config/openbox/autostart','Openbox Autostart','geany']},
		{item => ['geany -m ~/.config/openbox/rc.xml','Openbox RC','geany']},
		{item => ['geany -m ~/.config/openbox/menu.xml','Openbox Menu','geany']},
		{item => ['gksu geany /etc/oblogout.conf','Openbox Logout','geany']},
   {end_cat   => undef},
   {begin_cat => ['Pacman / Servers', '/usr/share/icons/Faenza/apps/48/package-manager-icon.png']},
		{item => ['lxterminal -e sudo ~/.config/executables/change-repo.sh','Switch stable, testing and unstable repos','lxterminal']},
		{item => ['gksu geany /etc/pacman.conf','Pacman Config','geany']},
		{item => ['gksu geany /etc/pacman.d/mirrorlist','Pacman Mirrorlist','geany']},
   {end_cat   => undef},
   {end_cat   => undef},

## Back to standard pipe-menu
##!/usr/bin/perl
##
## SCHEMA supports the following keys: item, cat, begin_cat, end_cat,
##                                     exit, raw, sep, obgenmenu
##
## Modified by Carl Duff.

=for comment

item: add an item into the menu
{item => ["command", "label", "icon"]}

cat: add a category into the menu
{cat => ["name", "label", "icon"]}

begin_cat: begin of a category
{begin_cat => ["name", "icon"]}

end_cat: end of a category
{end_cat => undef}

sep: menu line separator
{sep => undef} or {sep => "label"}

exit: default "Exit" action
{exit => ["label", "icon"]}

raw: any valid Openbox XML string
{raw => q(xml string)},

obgenmenu: category provided by obmenu-generator
{obgenmenu => "label"}

scripts: executable scripts from a directory
{scripts => ["/my/dir", BOOL, "icon"]}
BOOL - can be either true or false (1 or 0)
0 == open the script in background
1 == open the script in a new terminal

wine_apps: windows applications installed via wine
{wine_apps => ["label", "icon"]}

=cut

# NOTE:
#    * Keys and values are case sensitive. Keep all keys lowercase.
#    * ICON can be a either a direct path to a icon or a valid icon name
#    * By default, category names are case insensitive. (e.g.: X-XFCE == x_xfce)

require '/home/cuma/.config/obmenu-generator/config.pl';

our $SCHEMA = [
#             COMMAND                 	LABEL          		ICON
   {item => ['thunar',      		'Thunar','thunar']},
   {item => ['spacefm -f',      	'Search Files','spacefm']},
   {item => ['lxterminal',   	 	'Terminal','lxterminal']},
   {item => ['nitrogen',   	 	'Nitrogen','nitrogen']},
   {sep => undef},

    #          NAME            LABEL                ICON
    {cat => ['utility',     'Accessories', 'applications-utilities']},
    {cat => ['development', 'Development', 'applications-development']},
	{begin_cat => ['Drivers and Support',  '/usr/share/icons/Faenza/apps/48/dconf-editor.png']},
		{item => ['lxterminal -e sudo ~/.config/executables/updatedriver.sh','Detect and install graphics drivers','lxterminal']},
		{item => ['lxterminal -e sudo ~/.config/executables/multimedia.sh','Install full multimedia support','lxterminal']},
		{item => ['lxterminal -e sudo ~/.config/executables/aur.sh','Install full Arch User Repository support','lxterminal']},
		{item => ['lxterminal -e sudo ~/.config/executables/printing.sh','Install full printing support','lxterminal']},
		{item => ['lxterminal -e sudo ~/.config/executables/install-octopi.sh','Install graphical software manager','lxterminal']},
		{item => ['lxterminal -e sudo ~/.config/executables/install-msm.sh','Install Manjaro Settings Manager','lxterminal']},
	{end_cat   => undef},
    {cat => ['education',   'Education',   'applications-science']},
    {cat => ['game',        'Games',       'applications-games']},
    {cat => ['graphics',    'Graphics',    'applications-graphics']},
    {cat => ['audiovideo',  'Multimedia',  'applications-multimedia']},
    {cat => ['network',     'Network',     'applications-internet']},
    {cat => ['office',      'Office',      'applications-office']},
    {cat => ['settings',    'Settings',    'applications-accessories']},

## Custom "Advanced Menu"

   {begin_cat => ['Advanced Settings',  'gnome-settings']},
   {begin_cat => ['Desktop and Login',  '/usr/share/icons/Faenza/apps/48/dconf-editor.png']},
   {item => ['geany -m ~/.conkyrc','Conky RC','geany']},
   {item => ['geany -m ~/.config/tint2/tint2rc','Tint2 Panel','geany']},
   {item => ['gksu geany /etc/slim.conf','Slim Configuration','geany']},
   {item => ['geany -m ~/.xinitrc','.xinitrc','geany']},
   {item => ['geany -m ~/.xprofile','.xprofile','geany']},
   {end_cat   => undef},
   {begin_cat => ['Obmenu-Generator', '/usr/share/icons/Faenza/apps/48/menu-editor.png']},
		{item => ['geany -m ~/.config/obmenu-generator/schema.pl','Pipe Menu Schema','geany']},
		{item => ['geany -m ~/.config/obmenu-generator/config.pl','Pipe Menu Config','geany']},
		{item => ['obmenu-generator -d','Refresh Icon Set','/usr/share/icons/Faenza/apps/48/application-default-icon.png']},
   {end_cat   => undef},
   {begin_cat => ['Openbox',  'openbox']},
		{item => ['openbox --reconfigure','Reconfigure Openbox','openbox']},
		{item => ['geany -m ~/.config/openbox/autostart','Openbox Autostart','geany']},
		{item => ['geany -m ~/.config/openbox/rc.xml','Openbox RC','geany']},
		{item => ['geany -m ~/.config/openbox/menu.xml','Openbox Menu','geany']},
		{item => ['gksu geany /etc/oblogout.conf','Openbox Logout','geany']},
   {end_cat   => undef},
   {begin_cat => ['Pacman / Servers', '/usr/share/icons/Faenza/apps/48/package-manager-icon.png']},
		{item => ['lxterminal -e sudo ~/.config/executables/change-repo.sh','Switch stable, testing and unstable repos','lxterminal']},
		{item => ['gksu geany /etc/pacman.conf','Pacman Config','geany']},
		{item => ['gksu geany /etc/pacman.d/mirrorlist','Pacman Mirrorlist','geany']},
   {end_cat   => undef},
   {end_cat   => undef},

## Back to standard pipe-menu
##!/usr/bin/perl
##
## SCHEMA supports the following keys: item, cat, begin_cat, end_cat,
##                                     exit, raw, sep, obgenmenu
##
## Modified by Carl Duff.

=for comment

item: add an item into the menu
{item => ["command", "label", "icon"]}

cat: add a category into the menu
{cat => ["name", "label", "icon"]}

begin_cat: begin of a category
{begin_cat => ["name", "icon"]}

end_cat: end of a category
{end_cat => undef}

sep: menu line separator
{sep => undef} or {sep => "label"}

exit: default "Exit" action
{exit => ["label", "icon"]}

raw: any valid Openbox XML string
{raw => q(xml string)},

obgenmenu: category provided by obmenu-generator
{obgenmenu => "label"}

scripts: executable scripts from a directory
{scripts => ["/my/dir", BOOL, "icon"]}
BOOL - can be either true or false (1 or 0)
0 == open the script in background
1 == open the script in a new terminal

wine_apps: windows applications installed via wine
{wine_apps => ["label", "icon"]}

=cut

# NOTE:
#    * Keys and values are case sensitive. Keep all keys lowercase.
#    * ICON can be a either a direct path to a icon or a valid icon name
#    * By default, category names are case insensitive. (e.g.: X-XFCE == x_xfce)

require '/home/cuma/.config/obmenu-generator/config.pl';##!/usr/bin/perl
##
## SCHEMA supports the following keys: item, cat, begin_cat, end_cat,
##                                     exit, raw, sep, obgenmenu
##
## Modified by Carl Duff.

=for comment

item: add an item into the menu
{item => ["command", "label", "icon"]}

cat: add a category into the menu
{cat => ["name", "label", "icon"]}

begin_cat: begin of a category
{begin_cat => ["name", "icon"]}

end_cat: end of a category
{end_cat => undef}

sep: menu line separator
{sep => undef} or {sep => "label"}

exit: default "Exit" action
{exit => ["label", "icon"]}

raw: any valid Openbox XML string
{raw => q(xml string)},

obgenmenu: category provided by obmenu-generator
{obgenmenu => "label"}

scripts: executable scripts from a directory
{scripts => ["/my/dir", BOOL, "icon"]}
BOOL - can be either true or false (1 or 0)
0 == open the script in background
1 == open the script in a new terminal

wine_apps: windows applications installed via wine
{wine_apps => ["label", "icon"]}

=cut

# NOTE:
#    * Keys and values are case sensitive. Keep all keys lowercase.
#    * ICON can be a either a direct path to a icon or a valid icon name
#    * By default, category names are case insensitive. (e.g.: X-XFCE == x_xfce)

require '/home/cuma/.config/obmenu-generator/config.pl';

our $SCHEMA = [
#             COMMAND                 	LABEL          		ICON
   {item => ['thunar',      		'Thunar','thunar']},
   {item => ['spacefm -f',      	'Search Files','spacefm']},
   {item => ['lxterminal',   	 	'Terminal','lxterminal']},
   {item => ['nitrogen',   	 	'Nitrogen','nitrogen']},
   {sep => undef},

    #          NAME            LABEL                ICON
    {cat => ['utility',     'Accessories', 'applications-utilities']},
    {cat => ['development', 'Development', 'applications-development']},
	{begin_cat => ['Drivers and Support',  '/usr/share/icons/Faenza/apps/48/dconf-editor.png']},
		{item => ['lxterminal -e sudo ~/.config/executables/updatedriver.sh','Detect and install graphics drivers','lxterminal']},
		{item => ['lxterminal -e sudo ~/.config/executables/multimedia.sh','Install full multimedia support','lxterminal']},
		{item => ['lxterminal -e sudo ~/.config/executables/aur.sh','Install full Arch User Repository support','lxterminal']},
		{item => ['lxterminal -e sudo ~/.config/executables/printing.sh','Install full printing support','lxterminal']},
		{item => ['lxterminal -e sudo ~/.config/executables/install-octopi.sh','Install graphical software manager','lxterminal']},
		{item => ['lxterminal -e sudo ~/.config/executables/install-msm.sh','Install Manjaro Settings Manager','lxterminal']},
	{end_cat   => undef},
    {cat => ['education',   'Education',   'applications-science']},
    {cat => ['game',        'Games',       'applications-games']},
    {cat => ['graphics',    'Graphics',    'applications-graphics']},
    {cat => ['audiovideo',  'Multimedia',  'applications-multimedia']},
    {cat => ['network',     'Network',     'applications-internet']},
    {cat => ['office',      'Office',      'applications-office']},
    {cat => ['settings',    'Settings',    'applications-accessories']},

## Custom "Advanced Menu"

   {begin_cat => ['Advanced Settings',  'gnome-settings']},
   {begin_cat => ['Desktop and Login',  '/usr/share/icons/Faenza/apps/48/dconf-editor.png']},
   {item => ['geany -m ~/.conkyrc','Conky RC','geany']},
   {item => ['geany -m ~/.config/tint2/tint2rc','Tint2 Panel','geany']},
   {item => ['gksu geany /etc/slim.conf','Slim Configuration','geany']},
   {item => ['geany -m ~/.xinitrc','.xinitrc','geany']},
   {item => ['geany -m ~/.xprofile','.xprofile','geany']},
   {end_cat   => undef},
   {begin_cat => ['Obmenu-Generator', '/usr/share/icons/Faenza/apps/48/menu-editor.png']},
		{item => ['geany -m ~/.config/obmenu-generator/schema.pl','Pipe Menu Schema','geany']},
		{item => ['geany -m ~/.config/obmenu-generator/config.pl','Pipe Menu Config','geany']},
		{item => ['obmenu-generator -d','Refresh Icon Set','/usr/share/icons/Faenza/apps/48/application-default-icon.png']},
   {end_cat   => undef},
   {begin_cat => ['Openbox',  'openbox']},
		{item => ['openbox --reconfigure','Reconfigure Openbox','openbox']},
		{item => ['geany -m ~/.config/openbox/autostart','Openbox Autostart','geany']},
		{item => ['geany -m ~/.config/openbox/rc.xml','Openbox RC','geany']},
		{item => ['geany -m ~/.config/openbox/menu.xml','Openbox Menu','geany']},
		{item => ['gksu geany /etc/oblogout.conf','Openbox Logout','geany']},
   {end_cat   => undef},
   {begin_cat => ['Pacman / Servers', '/usr/share/icons/Faenza/apps/48/package-manager-icon.png']},
		{item => ['lxterminal -e sudo ~/.config/executables/change-repo.sh','Switch stable, testing and unstable repos','lxterminal']},
		{item => ['gksu geany /etc/pacman.conf','Pacman Config','geany']},
		{item => ['gksu geany /etc/pacman.d/mirrorlist','Pacman Mirrorlist','geany']},
   {end_cat   => undef},
   {end_cat   => undef},

## Back to standard pipe-menu

   {cat => ['system',      'System',      'applications-system']},
   {sep => undef},


## Use Oblogout script instead of simple exit command

   {item => ['xlock -mode blank', 'Lock Screen', 'lock']},
   {item => ['oblogout',        'Logout...',      'exit']},

    #{cat => ['qt',          'QT Applications',    'qtlogo']},
    #{cat => ['gtk',         'GTK Applications',   'gnome-applications']},
    #{cat => ['x_xfce',      'XFCE Applications',  'applications-other']},
    #{cat => ['gnome',       'GNOME Applications', 'gnome-applications']},
    #{cat => ['consoleonly', 'CLI Applications',   'applications-utilities']},

    #                  LABEL             ICON
    #{wine_apps => ['Wine apps', 'applications-other']},

]

our $SCHEMA = [
#             COMMAND                 	LABEL          		ICON
   {item => ['thunar',      		'Thunar','thunar']},
   {item => ['spacefm -f',      	'Search Files','spacefm']},
   {item => ['lxterminal',   	 	'Terminal','lxterminal']},
   {item => ['nitrogen',   	 	'Nitrogen','nitrogen']},
   {sep => undef},

    #          NAME            LABEL                ICON
    {cat => ['utility',     'Accessories', 'applications-utilities']},
    {cat => ['development', 'Development', 'applications-development']},
	{begin_cat => ['Drivers and Support',  '/usr/share/icons/Faenza/apps/48/dconf-editor.png']},
		{item => ['lxterminal -e sudo ~/.config/executables/updatedriver.sh','Detect and install graphics drivers','lxterminal']},
		{item => ['lxterminal -e sudo ~/.config/executables/multimedia.sh','Install full multimedia support','lxterminal']},
		{item => ['lxterminal -e sudo ~/.config/executables/aur.sh','Install full Arch User Repository support','lxterminal']},
		{item => ['lxterminal -e sudo ~/.config/executables/printing.sh','Install full printing support','lxterminal']},
		{item => ['lxterminal -e sudo ~/.config/executables/install-octopi.sh','Install graphical software manager','lxterminal']},
		{item => ['lxterminal -e sudo ~/.config/executables/install-msm.sh','Install Manjaro Settings Manager','lxterminal']},
	{end_cat   => undef},
    {cat => ['education',   'Education',   'applications-science']},
    {cat => ['game',        'Games',       'applications-games']},
    {cat => ['graphics',    'Graphics',    'applications-graphics']},
    {cat => ['audiovideo',  'Multimedia',  'applications-multimedia']},
    {cat => ['network',     'Network',     'applications-internet']},
    {cat => ['office',      'Office',      'applications-office']},
    {cat => ['settings',    'Settings',    'applications-accessories']},

## Custom "Advanced Menu"

   {begin_cat => ['Advanced Settings',  'gnome-settings']},
   {begin_cat => ['Desktop and Login',  '/usr/share/icons/Faenza/apps/48/dconf-editor.png']},
   {item => ['geany -m ~/.conkyrc','Conky RC','geany']},
   {item => ['geany -m ~/.config/tint2/tint2rc','Tint2 Panel','geany']},
   {item => ['gksu geany /etc/slim.conf','Slim Configuration','geany']},
   {item => ['geany -m ~/.xinitrc','.xinitrc','geany']},
   {item => ['geany -m ~/.xprofile','.xprofile','geany']},
   {end_cat   => undef},
   {begin_cat => ['Obmenu-Generator', '/usr/share/icons/Faenza/apps/48/menu-editor.png']},
		{item => ['geany -m ~/.config/obmenu-generator/schema.pl','Pipe Menu Schema','geany']},
		{item => ['geany -m ~/.config/obmenu-generator/config.pl','Pipe Menu Config','geany']},
		{item => ['obmenu-generator -d','Refresh Icon Set','/usr/share/icons/Faenza/apps/48/application-default-icon.png']},
   {end_cat   => undef},
   {begin_cat => ['Openbox',  'openbox']},
		{item => ['openbox --reconfigure','Reconfigure Openbox','openbox']},
		{item => ['geany -m ~/.config/openbox/autostart','Openbox Autostart','geany']},
		{item => ['geany -m ~/.config/openbox/rc.xml','Openbox RC','geany']},
		{item => ['geany -m ~/.config/openbox/menu.xml','Openbox Menu','geany']},
		{item => ['gksu geany /etc/oblogout.conf','Openbox Logout','geany']},
   {end_cat   => undef},
   {begin_cat => ['Pacman / Servers', '/usr/share/icons/Faenza/apps/48/package-manager-icon.png']},
		{item => ['lxterminal -e sudo ~/.config/executables/change-repo.sh','Switch stable, testing and unstable repos','lxterminal']},
		{item => ['gksu geany /etc/pacman.conf','Pacman Config','geany']},
		{item => ['gksu geany /etc/pacman.d/mirrorlist','Pacman Mirrorlist','geany']},
   {end_cat   => undef},
   {end_cat   => undef},

## Back to standard pipe-menu

   {cat => ['system',      'System',      'applications-system']},
   {sep => undef},


## Use Oblogout script instead of simple exit command

   {item => ['xlock -mode blank', 'Lock Screen', 'lock']},
   {item => ['oblogout',        'Logout...',      'exit']},

    #{cat => ['qt',          'QT Applications',    'qtlogo']},
    #{cat => ['gtk',         'GTK Applications',   'gnome-applications']},
    #{cat => ['x_xfce',      'XFCE Applications',  'applications-other']},
    #{cat => ['gnome',       'GNOME Applications', 'gnome-applications']},
    #{cat => ['consoleonly', 'CLI Applications',   'applications-utilities']},

    #                  LABEL             ICON
    #{wine_apps => ['Wine apps', 'applications-other']},

]
   {cat => ['system',      'System',      'applications-system']},
   {sep => undef},


## Use Oblogout script instead of simple exit command

   {item => ['xlock -mode blank', 'Lock Screen', 'lock']},
   {item => ['oblogout',        'Logout...',      'exit']},

    #{cat => ['qt',          'QT Applications',    'qtlogo']},
    #{cat => ['gtk',         'GTK Applications',   'gnome-applications']},
    #{cat => ['x_xfce',      'XFCE Applications',  'applications-other']},
    #{cat => ['gnome',       'GNOME Applications', 'gnome-applications']},
    #{cat => ['consoleonly', 'CLI Applications',   'applications-utilities']},

    #                  LABEL             ICON
    #{wine_apps => ['Wine apps', 'applications-other']},

]
   {cat => ['system',      'System',      'applications-system']},
   {sep => undef},


## Use Oblogout script instead of simple exit command

   {item => ['xlock -mode blank', 'Lock Screen', 'lock']},
   {item => ['oblogout',        'Logout...',      'exit']},

    #{cat => ['qt',          'QT Applications',    'qtlogo']},
    #{cat => ['gtk',         'GTK Applications',   'gnome-applications']},
    #{cat => ['x_xfce',      'XFCE Applications',  'applications-other']},
    #{cat => ['gnome',       'GNOME Applications', 'gnome-applications']},
    #{cat => ['consoleonly', 'CLI Applications',   'applications-utilities']},

    #                  LABEL             ICON
    #{wine_apps => ['Wine apps', 'applications-other']},

]

Türkçeye göre düzenlenmiş schema.pl dosya içerigi:
Not: require satırında yer alan kullanıcı adını kendi kullanıcı adınızla degişmeyi unutmayın.

##!/usr/bin/perl
##
## SCHEMA supports the following keys: item, cat, begin_cat, end_cat,
##                                     exit, raw, sep, obgenmenu
##
## Modified by Carl Duff.

=for comment

item: add an item into the menu
{item => ["command", "label", "icon"]}

cat: add a category into the menu
{cat => ["name", "label", "icon"]}

begin_cat: begin of a category
{begin_cat => ["name", "icon"]}

end_cat: end of a category
{end_cat => undef}

sep: menu line separator
{sep => undef} or {sep => "label"}

exit: default "Exit" action
{exit => ["label", "icon"]}

raw: any valid Openbox XML string
{raw => q(xml string)},

obgenmenu: category provided by obmenu-generator
{obgenmenu => "label"}

scripts: executable scripts from a directory
{scripts => ["/my/dir", BOOL, "icon"]}
BOOL - can be either true or false (1 or 0)
0 == open the script in background
1 == open the script in a new terminal

wine_apps: windows applications installed via wine
{wine_apps => ["label", "icon"]}

=cut

# NOTE:
#    * Keys and values are case sensitive. Keep all keys lowercase.
#    * ICON can be a either a direct path to a icon or a valid icon name
#    * By default, category names are case insensitive. (e.g.: X-XFCE == x_xfce)

require '/home/cuma/.config/obmenu-generator/config.pl';

our $SCHEMA = [
#             COMMAND                 	LABEL          		ICON
   {item => ['thunar',      		'Thunar','thunar']},
   {item => ['spacefm -f',      	'Dosya Arama','spacefm']},
   {item => ['lxterminal',   	 	'Terminal','lxterminal']},
   {item => ['nitrogen',   	 	'Nitrogen','nitrogen']},
   {sep => undef},

    #          NAME            LABEL                ICON
    {cat => ['utility',     'Aksesuarlar', 'applications-utilities']},
    {cat => ['development', 'Geliştirme', 'applications-development']},
	{begin_cat => ['Sürücü Destegi',  '/usr/share/icons/Faenza/apps/48/dconf-editor.png']},
		{item => ['lxterminal -e sudo ~/.config/executables/updatedriver.sh','Grafik sürücülerini tespit edin ve yükleyin','lxterminal']},
		{item => ['lxterminal -e sudo ~/.config/executables/multimedia.sh','Tam bir multimedya desteği yükleme','lxterminal']},
		{item => ['lxterminal -e sudo ~/.config/executables/aur.sh','Arch Kullanıcı Deposu desteğini yükleyin','lxterminal']},
		{item => ['lxterminal -e sudo ~/.config/executables/printing.sh','Yazıcı sürücülerini yükleyin','lxterminal']},
		{item => ['lxterminal -e sudo ~/.config/executables/install-octopi.sh','Grafiksel paket yöneticisini yükleyin','lxterminal']},
		{item => ['lxterminal -e sudo ~/.config/executables/install-msm.sh','Manjaro ayarlar yöneticisini yükleyin','lxterminal']},
	{end_cat   => undef},
    {cat => ['education',   'Education',   'applications-science']},
    {cat => ['game',        'Games',       'applications-games']},
    {cat => ['graphics',    'Grafik',    'applications-graphics']},
    {cat => ['audiovideo',  'Multimedya',  'applications-multimedia']},
    {cat => ['network',     'Ağ-Network',     'applications-internet']},
    {cat => ['office',      'Office',      'applications-office']},
    {cat => ['settings',    'Ayarlar',    'applications-accessories']},

## Custom "Advanced Menu"

   {begin_cat => ['Gelişmiş Ayarlar',  'gnome-settings']},
   {begin_cat => ['Desktop and Login',  '/usr/share/icons/Faenza/apps/48/dconf-editor.png']},
   {item => ['geany -m ~/.conkyrc','Conky RC','geany']},
   {item => ['geany -m ~/.config/tint2/tint2rc','Tint2 Panel','geany']},
   {item => ['gksu geany /etc/slim.conf','Slim Configuration','geany']},
   {item => ['geany -m ~/.xinitrc','.xinitrc','geany']},
   {item => ['geany -m ~/.xprofile','.xprofile','geany']},
   {end_cat   => undef},
   {begin_cat => ['Obmenu-Generator', '/usr/share/icons/Faenza/apps/48/menu-editor.png']},
		{item => ['geany -m ~/.config/obmenu-generator/schema.pl','Pipe Menu Schema','geany']},
		{item => ['geany -m ~/.config/obmenu-generator/config.pl','Pipe Menu Config','geany']},
		{item => ['obmenu-generator -d','Refresh Icon Set','/usr/share/icons/Faenza/apps/48/application-default-icon.png']},
   {end_cat   => undef},
   {begin_cat => ['Openbox',  'openbox']},
		{item => ['openbox --reconfigure','Reconfigure Openbox','openbox']},
		{item => ['geany -m ~/.config/openbox/autostart','Openbox Autostart','geany']},
		{item => ['geany -m ~/.config/openbox/rc.xml','Openbox RC','geany']},
		{item => ['geany -m ~/.config/openbox/menu.xml','Openbox Menu','geany']},
		{item => ['gksu geany /etc/oblogout.conf','Openbox Logout','geany']},
   {end_cat   => undef},
   {begin_cat => ['Pacman / Servers', '/usr/share/icons/Faenza/apps/48/package-manager-icon.png']},
		{item => ['lxterminal -e sudo ~/.config/executables/change-repo.sh','Switch stable, testing and unstable repos','lxterminal']},
		{item => ['gksu geany /etc/pacman.conf','Pacman Config','geany']},
		{item => ['gksu geany /etc/pacman.d/mirrorlist','Pacman Mirrorlist','geany']},
   {end_cat   => undef},
   {end_cat   => undef},

## Back to standard pipe-menu

   {cat => ['system',      'System',      'applications-system']},
   {sep => undef},


## Use Oblogout script instead of simple exit command

   {item => ['xlock -mode blank', 'Ekranı kilitle', 'lock']},
   {item => ['oblogout',        'Çıkış...',      'exit']},

    #{cat => ['qt',          'QT Applications',    'qtlogo']},
    #{cat => ['gtk',         'GTK Applications',   'gnome-applications']},
    #{cat => ['x_xfce',      'XFCE Applications',  'applications-other']},
    #{cat => ['gnome',       'GNOME Applications', 'gnome-applications']},
    #{cat => ['consoleonly', 'CLI Applications',   'applications-utilities']},

    #                  LABEL             ICON
    #{wine_apps => ['Wine apps', 'applications-other']},

]

Öntanımlı sağ tıklama menüsü ekran görüntüsü:

Türkçe düzenledikten sonra sağ tıklama menüsü:

 
Gönderildi : 15/12/2013 12:11 pm
Paylaş:
Translate »