Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Theming Issues and Cursor too big in terminal #29

Open
ghost opened this issue Mar 27, 2023 · 37 comments
Open

Theming Issues and Cursor too big in terminal #29

ghost opened this issue Mar 27, 2023 · 37 comments
Labels
enhancement New feature or request

Comments

@ghost
Copy link

ghost commented Mar 27, 2023

Hey there i came from the discourse, i am using miriway alongside lxqt, and using qterminal v1.2.0, the cursor size is abnormally big inside the terminal but outside its normal how do i fix that, and is theming of qt and gtk apps a expected feature, i mean in sway one can theme qt and gtk apps, i will look this and maybe even help implement theming

@ghost
Copy link
Author

ghost commented Mar 27, 2023

The problem here is that on my system, the configuration files doesnt exist in both under /etc/xdg/ and ~/.config/ .

@AlanGriffiths
Copy link
Contributor

I've not looked into theming as yet, so help is welcome.

I'm not sure which configuration files you're referring to. Are they specific to LXQT components?

AIUI the cursor is typically loaded from by way of /usr/share/icons/default/index.theme

This can be overridden by setting XCURSOR_THEME, and that can be added to a miral-shell.config. E.g.

app-env-amend=XCURSOR_THEME=DMZ-White

@AlanGriffiths
Copy link
Contributor

I can confirm that I also see this with qterminal. I also see it running qterminal on GNOME desktop, so this seems to be a Qt theming issue.

@AlanGriffiths AlanGriffiths added the enhancement New feature or request label Mar 27, 2023
@ghost
Copy link
Author

ghost commented Mar 27, 2023

The issue regarding configuration files was for the miriway one, i cant find the config files of miriway at specified locations

@AlanGriffiths
Copy link
Contributor

The miriway configuration files can be found according to

https://specifications.freedesktop.org/basedir-spec/basedir-spec-latest.html

$XDG_CONFIG_HOME defines the base directory relative to which user-specific configuration files should be stored. If $XDG_CONFIG_HOME is either not set or empty, a default equal to $HOME/.config should be used.
...
$XDG_CONFIG_DIRS defines the preference-ordered set of base directories to search for configuration files in addition to the $XDG_CONFIG_HOME base directory. The directories in $XDG_CONFIG_DIRS should be seperated with a colon ':'.

If $XDG_CONFIG_DIRS is either not set or empty, a value equal to /etc/xdg should be used.

The miriway launcher script prepends /etc/xdg/xdg-miriway to XDG_CONFIG_DIRS so that system defaults can be provided. (And a default miriway-shell.config is installed there)

@ghost
Copy link
Author

ghost commented Mar 27, 2023

ok, got it, regarding theming for gtk we can try to implement xsettingsd and for qt kvantum can be done, ubuntu sway remix has achieved theming of both gtk and qt apps using nwg and kvantum in sway

@AlanGriffiths
Copy link
Contributor

Sounds like you're way ahead of me on theming apps. I would be very happy with some help in that area.

@ghost
Copy link
Author

ghost commented Mar 28, 2023

Hey there ya i am bit seriously into theming, regarding miriway its a wannabe desktop environment, but currently all i see when logging into miriway is actually the miral-app window, currently it lacks panel, launcher and also windows dont have option to minimize and maximixe, with that using miriway alongside lubuntu (lxqt) makes the touchpad touch irresponsive , i have to use touchpad right click to actually use the miriway session, basically we can borrow a lot of code from sway etc. to make it more workable like for screenlock,wallpaper etc. 😃

@AlanGriffiths
Copy link
Contributor

Yes, there are some (commented out) examples of this in the default configuration.

And some scripts for configuring example setups in the example-configs subdirectory.

(See the README.md file)

@ghost
Copy link
Author

ghost commented Mar 29, 2023

Where is this XDG_CONFIG_DIRS located ??, i stiill couldnt find miriway config files , would test adding lxqt theming components and if successful will create a pull request ??

@AlanGriffiths
Copy link
Contributor

Where is this XDG_CONFIG_DIRS located ??, i stiill couldnt find miriway config files , would test adding lxqt theming components and if successful will create a pull request ??

XDG_CONFIG_DIRS is an environment variable.

The miriway launcher script prepends /etc/xdg/xdg-miriway to XDG_CONFIG_DIRS so that system defaults can be provided. (And a default miriway-shell.config is installed there)

The way to test things is to create your miriway-shell.config in ~/.config (as described in README.md, and done by the scripts in the example-configs subdirectory.

@ghost
Copy link
Author

ghost commented Mar 29, 2023

Now everything is clear but for some unknown reason, miriways wont appear in the login session and will open a blank black empty screen, i now understand that miriway stores its files under /usr/local/share/wayland-sessions , /usr.local/etc/xdg and /usr/local/bin, while the sessions that have to appear in the login session are in /usr/share/wayland-sessions, this was not a problem earlier started today itself, i did multiple reinstallations of miriway but it wont work or even appear in the login screen, i will try installing miriway under usr if possible

@AlanGriffiths
Copy link
Contributor

i now understand that miriway stores its files under /usr/local/share/wayland-sessions , /usr.local/etc/xdg

Oh. I hadn't noticed that. That comes from 1363ae0. I will investigate when I have time

@ghost
Copy link
Author

ghost commented Mar 29, 2023

i now understand that miriway stores its files under /usr/local/share/wayland-sessions , /usr.local/etc/xdg

Oh. I hadn't noticed that. That comes from 1363ae0. I will investigate when I have time

How do i contribute miriway uninstaller script for miriway, this will be the first contribution, can you help me out by explaining how do i add the uninstaller bash script using pull requests, this script removes everything related to miriway under /usr/local in a single command thus making it easy to uninstall miriway (sudo bash miriway-uninstaller.bash)

Edit :- I have created the pull request

@ghost
Copy link
Author

ghost commented Mar 30, 2023

i now understand that miriway stores its files under /usr/local/share/wayland-sessions , /usr.local/etc/xdg

Oh. I hadn't noticed that. That comes from 1363ae0. I will investigate when I have time

For some obvious reason my touchpad click wont work, i tried to enable touchpad click using gsettings command line option but it still wont work am using libinput atop lubuntu 22.04, any suggestions or solutions ??

@AlanGriffiths
Copy link
Contributor

For some obvious reason my touchpad click wont work, i tried to enable touchpad click using gsettings command line option but it still wont work am using libinput atop lubuntu 22.04, any suggestions or solutions ??

I'm not entirely sure I've understood your problem, but this sounds like a problem with libinput which Mir uses for input devices. Does this describe what you are experiencing?

https://wayland.freedesktop.org/libinput/doc/latest/touchpads.html#clickpads

@ghost
Copy link
Author

ghost commented Mar 30, 2023

For some obvious reason my touchpad click wont work, i tried to enable touchpad click using gsettings command line option but it still wont work am using libinput atop lubuntu 22.04, any suggestions or solutions ??

I'm not entirely sure I've understood your problem, but this sounds like a problem with libinput which Mir uses for input devices. Does this describe what you are experiencing?

https://wayland.freedesktop.org/libinput/doc/latest/touchpads.html#clickpads

From the above i can only relate that my touchpad is a clickpad with two physical buttons (left/right), the problem is that i have to select everything with the two keys as the middle portion of the touchpad (above the two keys) wont work on wayland though works on xorg..

@ghost
Copy link
Author

ghost commented Mar 30, 2023

Hey @AlanGriffiths , is there anyway that this could be enabled in miriway ??
This issue staes that touchpad tap to click can only be enabled through configuration in the config file etc.
--> swaywm/sway#365

input 2:7:SynPS/2_Synaptics_TouchPad {
tap enabled
natural_scroll enabled
}

@AlanGriffiths
Copy link
Contributor

enabled in miriway

This is something that would need to be addressed by Mir (and then Miriway would get it for free).

Here's a project that might be of use to you as a workaround: https://gitlab.com/warningnonpotablewater/libinput-config

@ghost
Copy link
Author

ghost commented Mar 30, 2023

Thanks will try the workaround..

@ghost
Copy link
Author

ghost commented Mar 31, 2023

enabled in miriway

This is something that would need to be addressed by Mir (and then Miriway would get it for free).

Here's a project that might be of use to you as a workaround: https://gitlab.com/warningnonpotablewater/libinput-config

Sadly using the workaround makes the miriway session unusable, i mean after configuring i cant enter the miriway session, it always comes back to the login manager instead of logging in to miriway session.
As per instruction i created a libinput.conf under /etc and followed build instruction, it gets installed but makes miriway session unusable, uninstalling it fixes the issue

@ghost
Copy link
Author

ghost commented Mar 31, 2023

hey there @AlanGriffiths is there any way i could integrate swaylock, swayidle , lightdm etc. because without them miriway looks quite bare-bones and useless, i tried using swaylock and sway idle etc. in the .config but they wont work, i am also looking a way by which launcher, panel or other apps with option to logout/Quit emulate ctrl+shift+backspace, as this will make it more feature complete and much better integrated with miriway

@AlanGriffiths
Copy link
Contributor

I know of no reason Miriway wouldn't work with lightdm, but I haven't tried it. (It works with GDM and SSDM). What problem do you see?

You have to find out what goes wrong with swaylock & swayidle, then set things up so they work.

Sending SIGTERM to miriway-shell ought to close it: killall miriway-shell

@ghost
Copy link
Author

ghost commented Apr 1, 2023

I know of no reason Miriway wouldn't work with lightdm, but I haven't tried it. (It works with GDM and SSDM). What problem do you see?

You have to find out what goes wrong with swaylock & swayidle, then set things up so they work.

Sending SIGTERM to miriway-shell ought to close it: killall miriway-shell

The problem with lightdm was on my part, sorry for that, is there anyway with which i can start miriway with the following script, the script is intended to improve theming for both qt5ct and gtk, will open a pull request if we can somehow make it work

@ghost
Copy link
Author

ghost commented Apr 1, 2023

@AlanGriffiths the workaround for touchpad or libinput config even after multiple try and config i have concluded that it breaks Mir as a whole since not only miriway but also mir shell wont work if choosing them through sddm during login, they never allow login if the workaround is initialized, trying to log in wiill bring back one to the sddm screen after a blank black screen, is there any way we can find the reason behind this ?? Is there something module or tweaks needed by Mir to work with the workaround,uninstalling the workaround and its configs fixes the problem but using Miriway with a Paralyzed Touchpad is Frustrating/Sad/Pathetic since i have to use my touch-pad buttons, which will surely get damaged in the long run if this thing continues but the fun fact is a external connected mouse works fine but i dont have space for plugs for a extra mouse..

@AlanGriffiths
Copy link
Contributor

I have no idea what problem is occurring. Have you looked at the logs?

@ghost
Copy link
Author

ghost commented Apr 1, 2023

I have no idea what problem is occurring. Have you looked at the logs?

Where are these logs located ??, finding them, i have removed the workaround since it breaks miriway completely but will add again to test and catch the logs..

@AlanGriffiths
Copy link
Contributor

I'd start with /var/log/syslog

@ghost
Copy link
Author

ghost commented Apr 1, 2023

Ok onto it, my preliminary investigation suggests its due to configuring meson to make the workaround work with Snap Packages

@ghost
Copy link
Author

ghost commented Apr 6, 2023

@AlanGriffiths Is there anyway with which i can force Miriway to center windows by default, lots of application in miriway goes under the screen, can you tell me a way with which i can force miriway to center app windows by default

@AlanGriffiths
Copy link
Contributor

@AlanGriffiths Is there anyway with which i can force Miriway to center windows by default, lots of application in miriway goes under the screen, can you tell me a way with which i can force miriway to center app windows by default

Miriway uses Mir's MinimalWindowManager which centres new windows on the active output. So I don't understand what you want to change.

@ghost
Copy link
Author

ghost commented Apr 6, 2023

The problem is as i said a lot of windows when opened goes under the screen i mean appear half, i was wondering any way with which i could get them fixed on the screen in a center position

@AlanGriffiths
Copy link
Contributor

I can only imagine the app you are having problems with creates the window at one size and, before it is mapped, resizes to a larger size. Not something I've noticed being a problem.

@ghost
Copy link
Author

ghost commented Apr 6, 2023

I can only imagine the app you are having problems with creates the window at one size and, before it is mapped, resizes to a larger size. Not something I've noticed being a problem.

ok then this isnt a problem either, something specific to my use-case, well atleast this issue shouldnt be specific to my setup , swaybg wont work in miriway , i mean i cant change the wallpaper with swaybg once i am in the miriway session, it always spits error and wont work any idea on this i am still unable to get miriway work with sway-lock and idle these both are some must required things for DE although i am still working on it but help will be grateful

@AlanGriffiths
Copy link
Contributor

swaybg wont work in miriway , i mean i cant change the wallpaper with swaybg once i am in the miriway session, it always spits error and wont work

Obviously swaybg is working with Miriway. The problem you are encountering is that Miriway is selective in which Wayland extensions it allows to apps. Some are reserved for "shell components" that are started by Miriway.

There are several options:

  1. you can simply enable all extensions for all apps:
    add-wayland-extensions=all

  2. you can add the specific extension for all apps:
    add-wayland-extensions=zwlr_layer_shell_v1

  3. You can add code to Miriway to enable the reserved extensions for some apps it doesn't start itself.

i am still unable to get miriway work with sway-lock and idle these both are some must required things for DE although i am still working on it but help will be grateful

I don't know why these are not working, I've not tried them. You have to look at any errors logged to see what the problem is. Then, if possible, fix it.

@ghost
Copy link
Author

ghost commented Apr 17, 2023

swaybg wont work in miriway , i mean i cant change the wallpaper with swaybg once i am in the miriway session, it always spits error and wont work

Obviously swaybg is working with Miriway. The problem you are encountering is that Miriway is selective in which Wayland extensions it allows to apps. Some are reserved for "shell components" that are started by Miriway.

There are several options:

1. you can simply enable all extensions for all apps:
   `add-wayland-extensions=all`

2. you can add the specific extension for all apps:
   `add-wayland-extensions=zwlr_layer_shell_v1`

3. You can add code to Miriway to enable the reserved extensions for some apps it doesn't start itself.

i am still unable to get miriway work with sway-lock and idle these both are some must required things for DE although i am still working on it but help will be grateful

I don't know why these are not working, I've not tried them. You have to look at any errors logged to see what the problem is. Then, if possible, fix it.

@AlanGriffiths The enabling of all extensions does the work for swaybg although the terminal with the swaybg command must be kept open to make it work more like a specific issue to swaybg, in this long week i have been learning to write and create a new gsetting schema for DEs not much of a complex thing but i will soon try to bring that here.

@AlanGriffiths
Copy link
Contributor

the terminal with the swaybg command must be kept open to make it work more like a specific issue to swaybg

This is not a swaybg issue. You need to disown the process before closing the terminal. Assuming you're using bash this would be something like:

swaybg -i /usr/share/backgrounds/warty-final-ubuntu.png & disown

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant