Difference between revisions of "LXQt/fa"

Updating to match new version of source page
(Created page with "==کوانتوم (Kvantum)==")
(Updating to match new version of source page)
Tags: Mobile web edit Mobile edit
 
Line 4: Line 4:
=نگاه کلّی=
=نگاه کلّی=


The '''[https://lxqt-project.org/ LXQt Desktop Environment]''' is a lightweight Qt desktop environment. It will not get in your way. It will not hang or slow down your system. It is focused on being a classic desktop with a modern look and feel.
<div lang="en" dir="ltr" class="mw-content-ltr">
'''LXQt''' is a free and open source lightweight Qt desktop environment that was formed from the merger of the [[Install Desktop Environments#LXDE|LXDE]] and Razor-qt projects. It is focused on being a classic desktop with a modern look and feel. The official website for LXQt can be accessed [https://lxqt-project.org/ here].
</div>




Line 29: Line 31:
اِل‌ایکس‌کیوت برنامهٔ '''lxqt-config''' (تنظیمات اِل‌ایکس‌کیوت) را برای پیکربندی ارائه می‌دهد.
اِل‌ایکس‌کیوت برنامهٔ '''lxqt-config''' (تنظیمات اِل‌ایکس‌کیوت) را برای پیکربندی ارائه می‌دهد.


<div lang="en" dir="ltr" class="mw-content-ltr">
==Global Keyboard Shortcuts==
==Global Keyboard Shortcuts==
Global shortcuts can be configured by the '''lxqt-config-globalkeyshortcuts''' application (LXQt settings -> Global Shortcuts):
Global shortcuts can be configured by the '''lxqt-config-globalkeyshortcuts''' application (LXQt settings -> Global Shortcuts):
     <Screenshot TBD>
     <Screenshot TBD>
{{BoxDanger|warning|Mapping the Super_L/Super_R keys (<Meta> without a second key) can lead to unexpected behaviour and is not recommended!}}
{{BoxDanger|warning|Mapping the Super_L/Super_R keys (<Meta> without a second key) can lead to unexpected behaviour and is not recommended!}}
</div>


<div lang="en" dir="ltr" class="mw-content-ltr">
{{BoxInfo|note|Some window manager (kwin, openbox, etc.) specific shortcuts are not configurable by LXQt (e.g. "Alt+Tab" for the task switcher). Those are configured by the window manager.}}
{{BoxInfo|note|Some window manager (kwin, openbox, etc.) specific shortcuts are not configurable by LXQt (e.g. "Alt+Tab" for the task switcher). Those are configured by the window manager.}}
</div>




قالب‌بندی
قالب‌بندی


<div lang="en" dir="ltr" class="mw-content-ltr">
In can take a few steps to get everything matching on LXQt since it is a collection of things.  There are a few different things that are separately themed:
In can take a few steps to get everything matching on LXQt since it is a collection of things.  There are a few different things that are separately themed:
* GTK2/GTK3
* GTK2/GTK3
Line 44: Line 51:
* Openbox
* Openbox
* LXQt panels
* LXQt panels
</div>




==کوانتوم (Kvantum)==
==کوانتوم (Kvantum)==


<div lang="en" dir="ltr" class="mw-content-ltr">
Using Kvantum is a good way to get a matching qt5 and openbox theme with a modern look
Using Kvantum is a good way to get a matching qt5 and openbox theme with a modern look
</div>




<div lang="en" dir="ltr" class="mw-content-ltr">
To install Kvantum and set a theme that matches your preferences follow the instructions [[Kvantum|here]].
To install Kvantum and set a theme that matches your preferences follow the instructions [[Kvantum|here]].
</div>




<div lang="en" dir="ltr" class="mw-content-ltr">
After saving the settings in Kvantum Manager, open the "LXQt Configuration Center" and select "Appearance".  Set the "Qt Style" on the "Widgets Style" tab to Kvantum.
After saving the settings in Kvantum Manager, open the "LXQt Configuration Center" and select "Appearance".  Set the "Qt Style" on the "Widgets Style" tab to Kvantum.
</div>




<div lang="en" dir="ltr" class="mw-content-ltr">
{{tip|Using a Kvantum theme that has a matching GTK theme will give everything a uniform look}}
{{tip|Using a Kvantum theme that has a matching GTK theme will give everything a uniform look}}
</div>




<div lang="en" dir="ltr" class="mw-content-ltr">
==Window Theming==
==Window Theming==
</div>


<div lang="en" dir="ltr" class="mw-content-ltr">
The window title bars are drawn onto your screen by the window manager you use. The default window manager of LXQt is Openbox.
The window title bars are drawn onto your screen by the window manager you use. The default window manager of LXQt is Openbox.
</div>




<div lang="en" dir="ltr" class="mw-content-ltr">
To configure OpenBox, open the "LXQt Configuration Center" and select "Openbox Settings".  Then select the same theme you choose in Kvantum.
To configure OpenBox, open the "LXQt Configuration Center" and select "Openbox Settings".  Then select the same theme you choose in Kvantum.
</div>




<div lang="en" dir="ltr" class="mw-content-ltr">
==GTK Theming==
==GTK Theming==
</div>


اکنون اِل‌ایکس‌کیوت راهی ساده به منظور تنظیم زمینه‌ها برای برنامه‌های جی‌تی‌کی۲ و جی‌تی‌کی۳ ارائه می‌دهد.
اکنون اِل‌ایکس‌کیوت راهی ساده به منظور تنظیم زمینه‌ها برای برنامه‌های جی‌تی‌کی۲ و جی‌تی‌کی۳ ارائه می‌دهد.




<div lang="en" dir="ltr" class="mw-content-ltr">
Open the "LXQt Configuration Center" and select "Appearance".  On the "Widget Style" there are dropdowns to select the GTK styles.
Open the "LXQt Configuration Center" and select "Appearance".  On the "Widget Style" there are dropdowns to select the GTK styles.
</div>






<div lang="en" dir="ltr" class="mw-content-ltr">
==Panel Theming==
==Panel Theming==
</div>


<div lang="en" dir="ltr" class="mw-content-ltr">
Panel theming is available via the LXQt Configuration Center --> LXQt Appearance --> LXQt Theme
Panel theming is available via the LXQt Configuration Center --> LXQt Appearance --> LXQt Theme
</div>




<div lang="en" dir="ltr" class="mw-content-ltr">
==Change Mouse Cursor==
==Change Mouse Cursor==
</div>


<div lang="en" dir="ltr" class="mw-content-ltr">
Mouse cursor theming is available via the LXQt Configuration Center --> LXQt Appearance --> Cursor.
Mouse cursor theming is available via the LXQt Configuration Center --> LXQt Appearance --> Cursor.
</div>


<div lang="en" dir="ltr" class="mw-content-ltr">
<code>Adwaita</code> is the default mouse cursor theme in LXQt. Other mouse cursor themes can be downloaded. Example of a mouse cursor theme:
<code>Adwaita</code> is the default mouse cursor theme in LXQt. Other mouse cursor themes can be downloaded. Example of a mouse cursor theme:
</div>


  sudo pacman -S xcursor-menda
  <div lang="en" dir="ltr" class="mw-content-ltr">
sudo pacman -S xcursor-menda
</div>




<div lang="en" dir="ltr" class="mw-content-ltr">
==Change Icon Theme==
==Change Icon Theme==
</div>


<div lang="en" dir="ltr" class="mw-content-ltr">
The icon theme can be changed via LXQt Configuration Center --> LXQt Appearance --> Icon Theme
The icon theme can be changed via LXQt Configuration Center --> LXQt Appearance --> Icon Theme
</div>


<div lang="en" dir="ltr" class="mw-content-ltr">
The default icon theme of LXQt is ''oxygen-icons''. It is a relatively large download, but pretty complete.
The default icon theme of LXQt is ''oxygen-icons''. It is a relatively large download, but pretty complete.
</div>




<div lang="en" dir="ltr" class="mw-content-ltr">
==Change Icons of Applications and System Settings==
==Change Icons of Applications and System Settings==
</div>


<div lang="en" dir="ltr" class="mw-content-ltr">
The path of icons is saved in <code>.desktop</code> files. For each application you can find their corresponding <code>.desktop</code> files in one of these two locations:
The path of icons is saved in <code>.desktop</code> files. For each application you can find their corresponding <code>.desktop</code> files in one of these two locations:
</div>


  /usr/share/applications/
  /usr/share/applications/
Line 106: Line 154:
  ~/.local/share/applications/
  ~/.local/share/applications/


<div lang="en" dir="ltr" class="mw-content-ltr">
Note that all folder names beginning with a dot are hidden folders. You need to make them visible by clicking <code>View --> Show Hidden</code> in your PcManFM-Qt File Browser. The <code>~</code> directory is your home folder.
Note that all folder names beginning with a dot are hidden folders. You need to make them visible by clicking <code>View --> Show Hidden</code> in your PcManFM-Qt File Browser. The <code>~</code> directory is your home folder.
</div>




<div lang="en" dir="ltr" class="mw-content-ltr">
Open a <code>.desktop</code> file with a text editor with root privileges and look for the following line:
Open a <code>.desktop</code> file with a text editor with root privileges and look for the following line:
  Icon=
  Icon=
Insert the path to the icon you want to use after the <code>=</code> symbol. A lot of system icons can be found in this location:
Insert the path to the icon you want to use after the <code>=</code> symbol. A lot of system icons can be found in this location:
  /usr/share/icons/
  /usr/share/icons/
</div>




<div lang="en" dir="ltr" class="mw-content-ltr">
===Example:===
===Example:===
If you want to use a flag icon, use this line in the <code>.desktop</code> file:
If you want to use a flag icon, use this line in the <code>.desktop</code> file:
  Icon=/usr/share/icons/gnome/48x48/apps/locale.png
  Icon=/usr/share/icons/gnome/48x48/apps/locale.png
</div>




<div lang="en" dir="ltr" class="mw-content-ltr">
==Create Custom Icon on Panel==
==Create Custom Icon on Panel==
</div>


<div lang="en" dir="ltr" class="mw-content-ltr">
Right click on your panel and choose "Add panel widget". Then add a Quick Launch / Starter widget. A text will appear on your panel.
Right click on your panel and choose "Add panel widget". Then add a Quick Launch / Starter widget. A text will appear on your panel.
</div>


<div lang="en" dir="ltr" class="mw-content-ltr">
You can drag and drop any icon (from your start menu / mainmenu or your custom icon file) there in order to create a Quick Launch / Starter icon in your panel. You can even drop multiple icons / icon files on one Quick Launch / Starter widget.
You can drag and drop any icon (from your start menu / mainmenu or your custom icon file) there in order to create a Quick Launch / Starter icon in your panel. You can even drop multiple icons / icon files on one Quick Launch / Starter widget.
</div>


<div lang="en" dir="ltr" class="mw-content-ltr">
But if you want your custom icon in your panel, you must first create your own <code>.desktop</code> file (please keep reading).
But if you want your custom icon in your panel, you must first create your own <code>.desktop</code> file (please keep reading).
</div>


<div lang="en" dir="ltr" class="mw-content-ltr">
===Example:===
===Example:===
For demonstration purposes, let's create a custom icon, which will shut down our computer when clicked:
For demonstration purposes, let's create a custom icon, which will shut down our computer when clicked:
</div>


<div lang="en" dir="ltr" class="mw-content-ltr">
First, let's create a new file (e.g. in your home directory or any other directory you want): Right click and choose "Create New" --> "Blank File". Name the file <code>ShutDown.desktop</code>. You can choose any name you want, but the <code>.desktop</code> in the end is important.
First, let's create a new file (e.g. in your home directory or any other directory you want): Right click and choose "Create New" --> "Blank File". Name the file <code>ShutDown.desktop</code>. You can choose any name you want, but the <code>.desktop</code> in the end is important.
</div>


<div lang="en" dir="ltr" class="mw-content-ltr">
Next, edit this file with a text editor. It's file content is supposed to look like:
Next, edit this file with a text editor. It's file content is supposed to look like:
</div>


  [Desktop Entry]
  <div lang="en" dir="ltr" class="mw-content-ltr">
[Desktop Entry]
  Type=Application
  Type=Application
  Name=ShutDown
  Name=ShutDown
Line 141: Line 210:
  Exec=poweroff
  Exec=poweroff
  Icon=/usr/share/icons/Menda-Circle/actions/scalable/bottom.svg
  Icon=/usr/share/icons/Menda-Circle/actions/scalable/bottom.svg
</div>


<div lang="en" dir="ltr" class="mw-content-ltr">
* <code>Name=</code> is the name of the icon
* <code>Name=</code> is the name of the icon
* <code>Comment=</code> gets shown when you hover with your mouse cursor over the icon
* <code>Comment=</code> gets shown when you hover with your mouse cursor over the icon
* <code>Exec=</code> defines the terminal command, which is executed when the icon is clicked
* <code>Exec=</code> defines the terminal command, which is executed when the icon is clicked
* <code>Icon=</code> specifies the path to the icon
* <code>Icon=</code> specifies the path to the icon
</div>




<div lang="en" dir="ltr" class="mw-content-ltr">
Finally, you can drag and drop your custom icon file onto a Quick Launch / Starter widget in your panel (as described in the beginning of this chapter) to create your custom panel icon.
Finally, you can drag and drop your custom icon file onto a Quick Launch / Starter widget in your panel (as described in the beginning of this chapter) to create your custom panel icon.
</div>




<div lang="en" dir="ltr" class="mw-content-ltr">
==Create Custom Icon in Start Menu / Mainmenu==
==Create Custom Icon in Start Menu / Mainmenu==
</div>


<div lang="en" dir="ltr" class="mw-content-ltr">
Read the [https://wiki.manjaro.org/index.php?title=LXQt_Theming#Create_Custom_Icon_on_Panel previous chapter] of this Wiki tutorial in order to get familiar with the content of <code>.desktop</code> files.
Read the [https://wiki.manjaro.org/index.php?title=LXQt_Theming#Create_Custom_Icon_on_Panel previous chapter] of this Wiki tutorial in order to get familiar with the content of <code>.desktop</code> files.
</div>


<div lang="en" dir="ltr" class="mw-content-ltr">
Now, a custom <code>.desktop</code> files needs to get created (as root) in this location:
Now, a custom <code>.desktop</code> files needs to get created (as root) in this location:
</div>


  /usr/share/applications/
  <div lang="en" dir="ltr" class="mw-content-ltr">
/usr/share/applications/
</div>


<div lang="en" dir="ltr" class="mw-content-ltr">
Please look at other <code>.desktop</code> files as examples for the <code>.desktop</code> file content: All have a category specified, e.g.
Please look at other <code>.desktop</code> files as examples for the <code>.desktop</code> file content: All have a category specified, e.g.
</div>


  Categories=Qt;KDE;Settings;
  <div lang="en" dir="ltr" class="mw-content-ltr">
Categories=Qt;KDE;Settings;
</div>


<div lang="en" dir="ltr" class="mw-content-ltr">
This setting is important for the Start Menu / Mainmenu category this custom icons appears in. Use it.
This setting is important for the Start Menu / Mainmenu category this custom icons appears in. Use it.
</div>


<div lang="en" dir="ltr" class="mw-content-ltr">
Another important line in the <code>.desktop</code> file is:
Another important line in the <code>.desktop</code> file is:
</div>


  OnlyShowIn=LXQt;
  <div lang="en" dir="ltr" class="mw-content-ltr">
OnlyShowIn=LXQt;
</div>


<div lang="en" dir="ltr" class="mw-content-ltr">
If this is set to another desktop environment, set it to LXQt or delete this line entirely in order to see this custom icon in your Start Menu / Mainmenu.
If this is set to another desktop environment, set it to LXQt or delete this line entirely in order to see this custom icon in your Start Menu / Mainmenu.
</div>




<div lang="en" dir="ltr" class="mw-content-ltr">
==Change Order of Icons on Panel==
==Change Order of Icons on Panel==
</div>


<div lang="en" dir="ltr" class="mw-content-ltr">
You can click the right mouse button on top of a panel element in order to move it. Alternatively, you can move panel elements by holding <code>CTRL+Left Mouse</code> and draging the element. These methods work for all panel elements, except Quick Launch / Starter elements with added icons.
You can click the right mouse button on top of a panel element in order to move it. Alternatively, you can move panel elements by holding <code>CTRL+Left Mouse</code> and draging the element. These methods work for all panel elements, except Quick Launch / Starter elements with added icons.
</div>


<div lang="en" dir="ltr" class="mw-content-ltr">
Quick Launch / Starter elements have "Move Left" and "Move Right" as right click options, which do enable you to freely move it. Just click the "Remove from quicklaunch" in order to remove the icon from the Quick Launch Widget.
Quick Launch / Starter elements have "Move Left" and "Move Right" as right click options, which do enable you to freely move it. Just click the "Remove from quicklaunch" in order to remove the icon from the Quick Launch Widget.
</div>


<div lang="en" dir="ltr" class="mw-content-ltr">
Now, you can move the Quick Launch Widget like all other panel elements. After you have moved the Quick Launch Widget to the desired position on your panel, follow [https://wiki.manjaro.org/index.php?title=LXQt_Theming&action=edit#Create_Custom_Icon_on_Panel this tutorial] to add your icon again.
Now, you can move the Quick Launch Widget like all other panel elements. After you have moved the Quick Launch Widget to the desired position on your panel, follow [https://wiki.manjaro.org/index.php?title=LXQt_Theming&action=edit#Create_Custom_Icon_on_Panel this tutorial] to add your icon again.
</div>




<div lang="en" dir="ltr" class="mw-content-ltr">
==Change Icon of Start Menu / Mainmenu==
==Change Icon of Start Menu / Mainmenu==
</div>


<div lang="en" dir="ltr" class="mw-content-ltr">
This Icon can be changed by opening the following folder with root privileges:  
This Icon can be changed by opening the following folder with root privileges:  
  /usr/share/lxqt/themes/<theme name>/
  /usr/share/lxqt/themes/<theme name>/
Replace <theme name> with the name of the theme you are currently using. The name of your current theme can be found in <code>System Settings&gt;LXQT Configuration Center&gt;LXQtAppearance&gt;LXQt Theme</code>. The Start Menu icon will only get changed for <theme name>. All other themes still use the default icon!
Replace <theme name> with the name of the theme you are currently using. The name of your current theme can be found in <code>System Settings&gt;LXQT Configuration Center&gt;LXQtAppearance&gt;LXQt Theme</code>. The Start Menu icon will only get changed for <theme name>. All other themes still use the default icon!
</div>


<div lang="en" dir="ltr" class="mw-content-ltr">
In this folder, you find a <code>mainmenu.png</code> file. It is the icon of your Start Menu (called "Mainmenu" in LXQt). Replace this file with the icon file you want to use. Rename your icon file to the same name.
In this folder, you find a <code>mainmenu.png</code> file. It is the icon of your Start Menu (called "Mainmenu" in LXQt). Replace this file with the icon file you want to use. Rename your icon file to the same name.
</div>




<div lang="en" dir="ltr" class="mw-content-ltr">
Great icons can be found in this thread: https://forum.manjaro.org/index.php?topic=15613.0
Great icons can be found in this thread: https://forum.manjaro.org/index.php?topic=15613.0
</div>




<div lang="en" dir="ltr" class="mw-content-ltr">
In order to see the changes logout and log in again. If you want to see the changes immediately run the following commands:
In order to see the changes logout and log in again. If you want to see the changes immediately run the following commands:
  killall lxqt-panel
  killall lxqt-panel
  lxqt-panel
  lxqt-panel
</div>




8,560

edits