gnome-layout-switcher issueshttps://gitlab.manjaro.org/Chrysostomus/gnome-layout-switcher/-/issues2022-04-20T23:47:14Zhttps://gitlab.manjaro.org/Chrysostomus/gnome-layout-switcher/-/issues/1test if local or package installed for resources2022-04-20T23:47:14Zpatricktest if local or package installed for resourcesIs best to test if we use app from git :
- contributor can run without install package
- contributor can modify/test "local" pictures (or other resources)
```python
from pathlib import Path
# in create btn
resDirectory = Pa...Is best to test if we use app from git :
- contributor can run without install package
- contributor can modify/test "local" pictures (or other resources)
```python
from pathlib import Path
# in create btn
resDirectory = Path('../data').resolve() # only if we use git, path exists
if not resDirectory.exists():
resDirectory = '/usr/share/gls' # use installed dir by pacman
#print('img:', f"{resDirectory}/pictures/{layout['id']}review.png")
preview_img = Gtk.Image()
preview_img.set_from_file(f"{resDirectory}/pictures/{layout['id']}preview.png")
```
best is to create a self.resDirectory in init() : **only one test** and after we use attr self.resDirectory in createbtn()https://gitlab.manjaro.org/Chrysostomus/gnome-layout-switcher/-/issues/2change preview opacity on mouse hover2019-07-08T18:44:40Zpatrickchange preview opacity on mouse hoverin create_layout_btn() add 2 events
```python
event_img.connect("enter-notify-event",self.on_over_img, True) # mouse over box
event_img.connect("leave-notify-event",self.on_over_img, False) # mouse out box
```
```
def on_...in create_layout_btn() add 2 events
```python
event_img.connect("enter-notify-event",self.on_over_img, True) # mouse over box
event_img.connect("leave-notify-event",self.on_over_img, False) # mouse out box
```
```
def on_over_img(self, box, event, isOverImage):
"""on mouse over / out : change opacity"""
if box.btn.get_active():
return
if isOverImage:
box.btn.image.set_opacity(Opacity.MIDDLE)
else:
box.btn.image.set_opacity(Opacity.LOW)
```
for a code more readable/easy to change, change all values 1, 0.7 and 0.45 by constants
```
class Opacity:
TOP = 1
MIDDLE = 0.70
LOW = 0.45
def on_button_toggled(self, button, name):
state = Opacity.LOW
if button.get_active():
state = Opacity.TOP
...
```https://gitlab.manjaro.org/Chrysostomus/gnome-layout-switcher/-/issues/3Change preview color based on the gtk theme2019-08-05T12:20:30ZMatti HyttinenChange preview color based on the gtk themeCurrently the layout previews are only shown in maia green. This is visible on all gtk themes, but does not look good on many of them. It would be good to set the layout color based on the selected gtk theme. Maybe use the gtk highlight ...Currently the layout previews are only shown in maia green. This is visible on all gtk themes, but does not look good on many of them. It would be good to set the layout color based on the selected gtk theme. Maybe use the gtk highlight color for the selected layout and black for others?Matti HyttinenMatti Hyttinenhttps://gitlab.manjaro.org/Chrysostomus/gnome-layout-switcher/-/issues/4Separate backend and front end2022-04-20T23:50:47ZMatti HyttinenSeparate backend and front endAs per suggestion in https://archived.forum.manjaro.org/t/gnome-layout-switcher/92523/25As per suggestion in https://archived.forum.manjaro.org/t/gnome-layout-switcher/92523/25https://gitlab.manjaro.org/Chrysostomus/gnome-layout-switcher/-/issues/5Add tooltips2022-04-21T00:00:55ZMatti HyttinenAdd tooltipsWe should add tooltips that explain different actions and commands that will be run if you select them.We should add tooltips that explain different actions and commands that will be run if you select them.https://gitlab.manjaro.org/Chrysostomus/gnome-layout-switcher/-/issues/6Install the necessary extensions if not present2020-02-08T21:53:35ZMatti HyttinenInstall the necessary extensions if not presentInstall from repos if on Manjaro, download from gnome shell extensions page if not running on manjaro.Install from repos if on Manjaro, download from gnome shell extensions page if not running on manjaro.https://gitlab.manjaro.org/Chrysostomus/gnome-layout-switcher/-/issues/7Make the package distro agnostic2021-08-13T16:04:23ZMatti HyttinenMake the package distro agnosticCheck if running on manjaro and if not, use distro agnostic options.Check if running on manjaro and if not, use distro agnostic options.https://gitlab.manjaro.org/Chrysostomus/gnome-layout-switcher/-/issues/8Toggles change even if the action was aborted2020-10-24T10:30:23ZMatti HyttinenToggles change even if the action was abortedIf user aborts toggle wayland action or toggle branding action, the toggles should switch back to their true state.If user aborts toggle wayland action or toggle branding action, the toggles should switch back to their true state.Matti HyttinenMatti Hyttinenhttps://gitlab.manjaro.org/Chrysostomus/gnome-layout-switcher/-/issues/9Add desktop file and icons to the app.2020-01-06T20:14:58ZMatti HyttinenAdd desktop file and icons to the app.To do. We also need to design the icon for this.To do. We also need to design the icon for this.https://gitlab.manjaro.org/Chrysostomus/gnome-layout-switcher/-/issues/10detect if we running gnome2022-10-28T20:55:22ZVitor Lopesdetect if we running gnomeIf we are not running gnome kill the application, add a switch to bypass this in case we are developing in a non-gnome environment.
```
--skip-de-detection
```If we are not running gnome kill the application, add a switch to bypass this in case we are developing in a non-gnome environment.
```
--skip-de-detection
```https://gitlab.manjaro.org/Chrysostomus/gnome-layout-switcher/-/issues/11bug line 26 to 36 UI.py2020-10-25T19:08:58ZVitor Lopesbug line 26 to 36 UI.py```
Traceback (most recent call last):
File "/home/vlopes/git/gnome-layout-switcher/UI.py", line 241, in on_color_chosen
Backend.set_highlight_color(col)
File "/home/vlopes/git/gnome-layout-switcher/Backend.py", line 87, in set_h...```
Traceback (most recent call last):
File "/home/vlopes/git/gnome-layout-switcher/UI.py", line 241, in on_color_chosen
Backend.set_highlight_color(col)
File "/home/vlopes/git/gnome-layout-switcher/Backend.py", line 87, in set_highlight_color
shutil.copyfile('/usr/share/gtk-3.0/gtk.css', get_user_gtk_css())
File "/usr/lib/python3.7/shutil.py", line 120, in copyfile
with open(src, 'rb') as fsrc:
FileNotFoundError: [Errno 2] No such file or directory: '/usr/share/gtk-3.0/gtk.css'
```
FIX: check if file exists before copying, add a try block with an exception FileNotFoundError, level easy.
This one is easy will give it to you as a learning opportunity @Chrysostomus, if you need help let me know.Matti HyttinenMatti Hyttinenhttps://gitlab.manjaro.org/Chrysostomus/gnome-layout-switcher/-/issues/12TMP files rights problem (with several users)2019-12-10T22:08:28ZJérôme HERBINETTMP files rights problem (with several users)Hi,
When you run gnome-layout-switcher, svg files are created in /tmp. These files belong to the active user from whom gnome-layout-switcher was launched. If you then reconnect to another user and launch gnome-layout-switcher again, the ...Hi,
When you run gnome-layout-switcher, svg files are created in /tmp. These files belong to the active user from whom gnome-layout-switcher was launched. If you then reconnect to another user and launch gnome-layout-switcher again, the user cannot load correctly. Here is the error message obtained from the terminal:
PermissionError:[Errno 13] Permission not granted:' /tmp/manjaropreview.svg
This message appears because temporary files are those created with the rights of the previous user (which seems to be a problem for gnome-layout-switcher to launch correctly).
If I do a chown currentuser:currentuser on all svg files or delete them, it seems to solve the problem.
Thank you in advance for the correction, and thank you especially for all the work already done! :-)
Jeromehttps://gitlab.manjaro.org/Chrysostomus/gnome-layout-switcher/-/issues/13Change default layout and remember the layout in use2019-12-10T22:09:30ZStefano CapitaniChange default layout and remember the layout in useg-l-s start always with manjaro layout selected and this is fine when we run the first time ( since we assume the g-l-s is installed with a default manjaro gnome tweak ). The problem is when user already select another layout: when you r...g-l-s start always with manjaro layout selected and this is fine when we run the first time ( since we assume the g-l-s is installed with a default manjaro gnome tweak ). The problem is when user already select another layout: when you re run g-l-s the layout choice is ever manjaro and not the layout selected by the user. I have think to create a conf file to store this choice but i don't fine where the layout is defined:
`self.layout = 'manjaro'`
this seem not change if i alter the layout to gnome or other..
Why?https://gitlab.manjaro.org/Chrysostomus/gnome-layout-switcher/-/issues/14Ensure switch toiggle the right choice2019-12-27T17:47:08ZStefano CapitaniEnsure switch toiggle the right choiceIn this days i have tried to strip down this issue: if an user example want debranding and then interrupt the pamac remove; the gnome-layout show the trigged as off also if the branding is still present (https://gitlab.manjaro.org/Chryso...In this days i have tried to strip down this issue: if an user example want debranding and then interrupt the pamac remove; the gnome-layout show the trigged as off also if the branding is still present (https://gitlab.manjaro.org/Chrysostomus/gnome-layout-switcher/blob/hello/bin/layoutswitcherlib/layoutsbox.py#L504)
i have tried to do another cycle of if statement with a `pacman -Qi` argument but not work because i can't see the state ( 0 or 1 ) of the pacman result. Is there another way to ensure this buttons ? This is not only the trigger whit work in this wrong way..https://gitlab.manjaro.org/Chrysostomus/gnome-layout-switcher/-/issues/15Applied preview image disappears after changing active layout2020-01-06T23:16:14ZMatti HyttinenApplied preview image disappears after changing active layoutThe issue is present in the dev branch. After an layout is applied and active layout is changed, the preview image of the applied layout disappears. The image returns after that layout is selected again.
There is no error about file not...The issue is present in the dev branch. After an layout is applied and active layout is changed, the preview image of the applied layout disappears. The image returns after that layout is selected again.
There is no error about file not being found, or any other error for that matter. It seems that when the app should set the button image to nonselected preview image, it instead sets it to no image at all.https://gitlab.manjaro.org/Chrysostomus/gnome-layout-switcher/-/issues/16Manjaro preview has wrong image on startup2020-10-03T19:58:42ZMatti HyttinenManjaro preview has wrong image on startupWhen gls is started, manjaro layout preview image is replaced with the same image as the currently selected layout. Image returns to normal when clicked. ![Kuvakaappaus_-_2020-02-08_23-20-18](/uploads/a210c4545f23fab66e0b21262a980fe2/Kuv...When gls is started, manjaro layout preview image is replaced with the same image as the currently selected layout. Image returns to normal when clicked. ![Kuvakaappaus_-_2020-02-08_23-20-18](/uploads/a210c4545f23fab66e0b21262a980fe2/Kuvakaappaus_-_2020-02-08_23-20-18.png)
@papajoke do you have time to take a look at this? I have tried to search through the code, but I have trouble understanding where the manjaro preview image is set for the first time.https://gitlab.manjaro.org/Chrysostomus/gnome-layout-switcher/-/issues/17Manjaro preview image has wrong color on startup2022-04-20T23:59:31ZMatti HyttinenManjaro preview image has wrong color on startup![Screenshot_from_2020-10-03_23-00-16](/uploads/b18d1db1a53fbba85f1bbcdfa7fbcc2d/Screenshot_from_2020-10-03_23-00-16.png)
On application start, the Manjaro icon is not green if that is the active layout. If some other layout is active, ...![Screenshot_from_2020-10-03_23-00-16](/uploads/b18d1db1a53fbba85f1bbcdfa7fbcc2d/Screenshot_from_2020-10-03_23-00-16.png)
On application start, the Manjaro icon is not green if that is the active layout. If some other layout is active, they are properly highlighted with the right color. I tried fixing it about an year ago, but it resulted in no images shown at all before they are clicked.
@papajoke could you perhaps help with this issue?https://gitlab.manjaro.org/Chrysostomus/gnome-layout-switcher/-/issues/18Hardcoded icon path & file type in launcher file2022-04-20T23:55:19ZVincent BermelHardcoded icon path & file type in launcher fileHi, in your [launcher file](https://gitlab.manjaro.org/Chrysostomus/gnome-layout-switcher/-/blob/e45b0f677f5243cc317765829bb18a6913391b95/data/desktop/gnome-layouts.desktop) you hardcode the icon path and file type.
Is there a special re...Hi, in your [launcher file](https://gitlab.manjaro.org/Chrysostomus/gnome-layout-switcher/-/blob/e45b0f677f5243cc317765829bb18a6913391b95/data/desktop/gnome-layouts.desktop) you hardcode the icon path and file type.
Is there a special reason for this. Prior to the last revision this wasn't the case.
Since the icon already is installed to the hicolor theme, a location compliant with [freedesktop.org standards](https://specifications.freedesktop.org/icon-theme-spec/icon-theme-spec-latest.html) you don't need to specify the full icon path (neither the file type extension) in the launcher.
The icon will be found anyway.
This facilitates icon theming and the use of differently sized icons.
Cf. this [example `.desktop` launcher](https://specifications.freedesktop.org/desktop-entry-spec/desktop-entry-spec-latest.html#example) presented in the freedesktop.org documentation.https://gitlab.manjaro.org/Chrysostomus/gnome-layout-switcher/-/issues/19Can we run the script on ubuntu 18.04?2021-08-13T16:04:23ZMohit Sai AravindCan we run the script on ubuntu 18.04?Hello sir, is it possible to run this app in ubuntu 18.04?If so how can i run it?Hello sir, is it possible to run this app in ubuntu 18.04?If so how can i run it?https://gitlab.manjaro.org/Chrysostomus/gnome-layout-switcher/-/issues/20Manjaro preview image has wrong color when changing theme2022-04-20T23:45:41ZOğuz Kağan ERENManjaro preview image has wrong color when changing themeWhile layouts switcher running, change the night theme to white theme, then images color doesn't change.
![Screenshot_from_2021-08-08_14-57-03](/uploads/912e9e3ca522dc50bc0365ce006d043c/Screenshot_from_2021-08-08_14-57-03.png)While layouts switcher running, change the night theme to white theme, then images color doesn't change.
![Screenshot_from_2021-08-08_14-57-03](/uploads/912e9e3ca522dc50bc0365ce006d043c/Screenshot_from_2021-08-08_14-57-03.png)https://gitlab.manjaro.org/Chrysostomus/gnome-layout-switcher/-/issues/21Switching to another layout broken after Manjaro Stable update 2021-07-282022-04-20T23:55:50ZsiorenaiSwitching to another layout broken after Manjaro Stable update 2021-07-28In order to switch to another keyboard layout, as I have it configured in Gnome Tweaks (using "shift+alt"), I have to enter the keyboard combination twice instead of once, as it used to be.
Example of how my system responds to the "shif...In order to switch to another keyboard layout, as I have it configured in Gnome Tweaks (using "shift+alt"), I have to enter the keyboard combination twice instead of once, as it used to be.
Example of how my system responds to the "shift+alt" combination:
english layout -> shift+alt -> ελληνικά -> shift+alt -> english layout -> shift+alt -> english layout -> shift+alt -> ελληνικά
This issue was not present with gnome-layout-switcher 0.8.17-1 and appeared after updating to gnome-layout-switcher 0.8.21-1 and it persists in gnome-layout-switcher 0.8.22-2.
Desktop: GNOME 40.3.0
Kernel: MANJARO 5.10.59-1 (LTS)
EDIT: Confirmed it only happens on Wayland. On Xorg it works correctly.https://gitlab.manjaro.org/Chrysostomus/gnome-layout-switcher/-/issues/22Layout changes by itself2022-03-10T13:05:02ZVincent EmonetLayout changes by itselfHi, I installed Manjaro about 1 week ago with Gnome desktop (I have multiple years of experience with Ubuntu+Gnome)
But the layouts keeps changing by itself: I want the regular Gnome layout with the date in the middle, but Manjaro rando...Hi, I installed Manjaro about 1 week ago with Gnome desktop (I have multiple years of experience with Ubuntu+Gnome)
But the layouts keeps changing by itself: I want the regular Gnome layout with the date in the middle, but Manjaro randomly changes it to the Manjaro tiling which puts the date on the right
I did not set any shortcuts to do this action (I hope Manjaro did not set some shortcuts for this by default! I noticed a lot of issues with some shortcuts definition being randomly reset in Manjaro Gnome, making it really painful to define simple shortcuts)
Do you have any idea how this could be fixed? Is there a weird default shortcuts that is doing it?
I am considering to just uninstall the `gnome-layout-switcher` as I don't expect to change my layout
More details about my setup:
* Manjaro 21.2
* GNOME Shell 41.4https://gitlab.manjaro.org/Chrysostomus/gnome-layout-switcher/-/issues/23[Feature] CLI2022-11-05T16:44:16ZOğuz Kağan EREN[Feature] CLIhttps://github.com/oguzkaganeren/gnome-layout-switcher-clone/pull/1/files
I am not sure if it fits your project, can be added like that. Otherwise, I am going to create a different package for only CLI. I am going to use it for Manjaro ...https://github.com/oguzkaganeren/gnome-layout-switcher-clone/pull/1/files
I am not sure if it fits your project, can be added like that. Otherwise, I am going to create a different package for only CLI. I am going to use it for Manjaro Starter.Matti HyttinenMatti Hyttinenhttps://gitlab.manjaro.org/Chrysostomus/gnome-layout-switcher/-/issues/24[BUG] Initial layout selection is wrong2022-12-17T19:52:47ZOğuz Kağan EREN[BUG] Initial layout selection is wrongWhen I select any layout and then reopen the gnome layout switcher, it shows Traditional as selected. Also, .config/gnome-layout-switcher.conf is the same(modern) each time I check. I don't know, may it happened only on my side.When I select any layout and then reopen the gnome layout switcher, it shows Traditional as selected. Also, .config/gnome-layout-switcher.conf is the same(modern) each time I check. I don't know, may it happened only on my side.https://gitlab.manjaro.org/Chrysostomus/gnome-layout-switcher/-/issues/25Conf file does not change when apply with cli2022-12-18T18:15:02ZOğuz Kağan ERENConf file does not change when apply with cliIt works on UI but not work with CLI. I will check it.It works on UI but not work with CLI. I will check it.Mark WagieMark Wagiehttps://gitlab.manjaro.org/Chrysostomus/gnome-layout-switcher/-/issues/26Can't install on Arch from source?2023-05-13T19:33:12ZGood FellowCan't install on Arch from source?Hello, I have tried to install this from source on my Arch system with `python setup.py build` and then `sudo python setup.py install` unfortunately it had no effect even though I had no error messages. Am I lacking some packages?Hello, I have tried to install this from source on my Arch system with `python setup.py build` and then `sudo python setup.py install` unfortunately it had no effect even though I had no error messages. Am I lacking some packages?https://gitlab.manjaro.org/Chrysostomus/gnome-layout-switcher/-/issues/27[MR 19] Preview image not displayed2023-06-15T18:41:15ZMark Wagie[MR 19] Preview image not displayedSee !19
![image](/uploads/8a8aafcf847e702896e75c0683fcf7b0/image.png)See !19
![image](/uploads/8a8aafcf847e702896e75c0683fcf7b0/image.png)Mark WagieMark Wagiehttps://gitlab.manjaro.org/Chrysostomus/gnome-layout-switcher/-/issues/28Desktop icons don't work2023-06-27T09:04:07ZD1Ck3nDesktop icons don't workIcons does not work
Good day!
I'm running Manjaro gnome with traditional layout and i cant use any Desktop icon. if i try to open any icon, like home folder, My VSCode opens. i also tried to add a shortcut for Steam but nothing happen...Icons does not work
Good day!
I'm running Manjaro gnome with traditional layout and i cant use any Desktop icon. if i try to open any icon, like home folder, My VSCode opens. i also tried to add a shortcut for Steam but nothing happens when i double click on that.
is that a bug?