Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[wayland] wayfire and other compositors
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

Goto page Previous  1, 2, 3, 4, 5, 6, 7  Next  
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
The Main Man
Veteran
Veteran


Joined: 27 Nov 2014
Posts: 1171
Location: /run/user/1000

PostPosted: Wed Aug 04, 2021 2:59 pm    Post subject: Re: foot server Reply with quote

forrestfunk81 wrote:

Do you have the custom-jdk USE flag enabled? Only then Android Studio uses your system JVM. Also when using the system JVM you get multiple warnings about possible graphic errors etc. On my machine it always crashed with custom-jdk, no problems after switching to bundled JVM.


No, it was never enabled.
Meanwhile I switched to flatpak version, because it's regularly updated.
Still, I have to use that export line, otherwise I have issues, I don't mind it, it works, doesn't hurt.
Back to top
View user's profile Send private message
Zucca
Moderator
Moderator


Joined: 14 Jun 2007
Posts: 3686
Location: Rasi, Finland

PostPosted: Fri Sep 10, 2021 10:08 am    Post subject: Battery monitor. Reply with quote

Aye!

Laptops.
Do people use wayfire on laptop? I'm looking for a battery status thingy that would sit on the "status bar". Any tips where to begin searching or building such?
_________________
..: Zucca :..

My gentoo installs:
init=/sbin/openrc-init
-systemd -logind -elogind seatd

Quote:
I am NaN! I am a man!
Back to top
View user's profile Send private message
Anon-E-moose
Watchman
Watchman


Joined: 23 May 2008
Posts: 6145
Location: Dallas area

PostPosted: Fri Sep 10, 2021 10:43 am    Post subject: Re: Battery monitor. Reply with quote

Zucca wrote:
Aye!

Laptops.
Do people use wayfire on laptop? I'm looking for a battery status thingy that would sit on the "status bar". Any tips where to begin searching or building such?


Waybar has a battery spot, not sure about other panels.

This is what I have set up for my acer laptop, put this with a widget that will display the data for a build it yourself solution.
Code:
alias bat="cat /proc/acpi/battery/BAT1/state"
alias batp='perl -E "print sprintf(\"%.2f%%\n\", `cat /sys/class/power_supply/BAT1/charge_now`/`cat /sys/class/power_supply/BAT1/charge_full`)"'


Where the stuff is in /proc or /sys would depend on your laptop as they're all different in where they put stuff.
_________________
PRIME x570-pro, 3700x, 6.1 zen kernel
gcc 13, profile 17.0 (custom bare multilib), openrc, wayland
Back to top
View user's profile Send private message
Zucca
Moderator
Moderator


Joined: 14 Jun 2007
Posts: 3686
Location: Rasi, Finland

PostPosted: Fri Sep 10, 2021 4:25 pm    Post subject: Reply with quote

Thanks!

Looks like wf-panel already has battery function, but apparently it's not recognizing the battery of this laptop.
I've create an alias which displays the bat% on cli.

I'll put my rtfm glasses on now and seek information about wf-panel.
_________________
..: Zucca :..

My gentoo installs:
init=/sbin/openrc-init
-systemd -logind -elogind seatd

Quote:
I am NaN! I am a man!
Back to top
View user's profile Send private message
Anon-E-moose
Watchman
Watchman


Joined: 23 May 2008
Posts: 6145
Location: Dallas area

PostPosted: Fri Sep 10, 2021 5:33 pm    Post subject: Reply with quote

Looks like it depends on sys-power/upower.

Edit to add: I opened an issue at the git, letting them know they should have a dependency on upower when battery is chosen.
_________________
PRIME x570-pro, 3700x, 6.1 zen kernel
gcc 13, profile 17.0 (custom bare multilib), openrc, wayland
Back to top
View user's profile Send private message
Zucca
Moderator
Moderator


Joined: 14 Jun 2007
Posts: 3686
Location: Rasi, Finland

PostPosted: Fri Sep 10, 2021 7:39 pm    Post subject: Reply with quote

Anon-E-moose wrote:
Looks like it depends on sys-power/upower.

Edit to add: I opened an issue at the git, letting them know they should have a dependency on upower when battery is chosen.

Thanks and thanks. :)
_________________
..: Zucca :..

My gentoo installs:
init=/sbin/openrc-init
-systemd -logind -elogind seatd

Quote:
I am NaN! I am a man!
Back to top
View user's profile Send private message
Zucca
Moderator
Moderator


Joined: 14 Jun 2007
Posts: 3686
Location: Rasi, Finland

PostPosted: Fri Sep 10, 2021 8:54 pm    Post subject: Reply with quote

I think I'm gonna give the waybar a try. The "default" wf-panel of wf-shell is a little too stiff to customization.

Since you, Moose, already introduced me to foot, I think waybar can't be bad either. ;)
_________________
..: Zucca :..

My gentoo installs:
init=/sbin/openrc-init
-systemd -logind -elogind seatd

Quote:
I am NaN! I am a man!
Back to top
View user's profile Send private message
Anon-E-moose
Watchman
Watchman


Joined: 23 May 2008
Posts: 6145
Location: Dallas area

PostPosted: Fri Sep 10, 2021 10:07 pm    Post subject: Reply with quote

The only thing I really liked about wf-shell was the built-in menu.

Waybar doesn't have a menu, though they've discussed it.
So I use fuzzel as a menu, triggered off a key combo in wayfire. It's similar to dmenu run.

But wayfire allows me to make an empty button and attach code to it, I have cpu temp and load, radeon temp/fan, memory, entropy and network on perioodic timers to update. (I prefer text to icons, even though it takes a little more room)

Actually I have 2 bars, the top one is for system data and the bottom one is taskbar, clock/date and another button for music info.
All relatively easy to set up.
_________________
PRIME x570-pro, 3700x, 6.1 zen kernel
gcc 13, profile 17.0 (custom bare multilib), openrc, wayland
Back to top
View user's profile Send private message
Naib
Watchman
Watchman


Joined: 21 May 2004
Posts: 6065
Location: Removed by Neddy

PostPosted: Fri Sep 10, 2021 10:21 pm    Post subject: Reply with quote

Anon-E-moose wrote:
The only thing I really liked about wf-shell was the built-in menu.
and that's one of the reasons I am still on it. if waybar can incorporate/accept some menu-like system then wf-shell goes and wf also might go :)
_________________
Quote:
Removed by Chiitoo
Back to top
View user's profile Send private message
The Main Man
Veteran
Veteran


Joined: 27 Nov 2014
Posts: 1171
Location: /run/user/1000

PostPosted: Sat Sep 11, 2021 12:01 am    Post subject: Reply with quote

I would love for Waybar to have custom thresholds , meaning for custom modules where the output is some numeric value, to change the background color to red or yellow or some other color defined in style.css, depending on the set threshold, functionality is already there for some built-in modules like cpu , memory etc.
Back to top
View user's profile Send private message
Anon-E-moose
Watchman
Watchman


Joined: 23 May 2008
Posts: 6145
Location: Dallas area

PostPosted: Sat Sep 11, 2021 11:51 am    Post subject: Reply with quote

The Main Man wrote:
I would love for Waybar to have custom thresholds , meaning for custom modules where the output is some numeric value, to change the background color to red or yellow or some other color defined in style.css, depending on the set threshold, functionality is already there for some built-in modules like cpu , memory etc.


Was looking around as I had wondered about this earlier and ran across https://github.com/Bonnee/dotfiles/tree/master/.config/waybar

Portion from styles.css
Code:
#custom-fan {
  border-bottom: 2px solid transparent;
  padding: 0 5px;
  margin: 0 5px;
}

#custom-fan.low {
  color: @color2;
}

#custom-fan.medium {
  color: @color3;
}

#custom-fan.high {
  color: @color1;
}


and from scripts/fan
Code:
#!/usr/bin/env bash

rpm="$(grep speed /proc/acpi/ibm/fan | awk '{print $2}')"

if [ "$rpm" -ne 0 ]; then
  class="low"
  (( $(echo "${rpm}>3490"|bc -l) )) && class="medium"
  (( $(echo "${rpm}>3990"|bc -l) )) && class="high"

  echo ""
  echo "$rpm RPM"
  echo "$class"
fi


and from 13/config
Code:
    "custom/fan": {
      "format": "{}",
      "interval": 10,
      "exec": "$HOME/.config/waybar/scripts/fan"
    },

_________________
PRIME x570-pro, 3700x, 6.1 zen kernel
gcc 13, profile 17.0 (custom bare multilib), openrc, wayland
Back to top
View user's profile Send private message
The Main Man
Veteran
Veteran


Joined: 27 Nov 2014
Posts: 1171
Location: /run/user/1000

PostPosted: Sat Sep 11, 2021 12:26 pm    Post subject: Reply with quote

Got it, thanks, but doesn't work in my case, maybe I'm missing something but this should work, simplified for testing purposes.

styles.css
Code:
#custom-test {
    background-color: #2F4F4F;
}

#custom-test.high {
    background-color: #FFFFFF;
}


scripts/test
Code:
#! /bin/bash

echo "15"
echo "high"


"echo high" should change the background color, but it doesn't, I thought maybe it doesn't work with background-color, but it's the same with color, the output is just 15
Back to top
View user's profile Send private message
The Main Man
Veteran
Veteran


Joined: 27 Nov 2014
Posts: 1171
Location: /run/user/1000

PostPosted: Sat Sep 11, 2021 2:34 pm    Post subject: Reply with quote

Got it eventually, it needed another "echo high" , first echo is text, second is tooltip and third is the class.

@Anon-E-moose, thx again!
Back to top
View user's profile Send private message
Anon-E-moose
Watchman
Watchman


Joined: 23 May 2008
Posts: 6145
Location: Dallas area

PostPosted: Sat Sep 11, 2021 3:12 pm    Post subject: Reply with quote

Sweet


Naib, as far as menus have you tried fuzzel or bemenu or one of the other menu/app launchers?
I am looking at some old perl packages that output menu data using xdg spots, so that fills in a menu, now I need to find how to display it.
_________________
PRIME x570-pro, 3700x, 6.1 zen kernel
gcc 13, profile 17.0 (custom bare multilib), openrc, wayland
Back to top
View user's profile Send private message
Zucca
Moderator
Moderator


Joined: 14 Jun 2007
Posts: 3686
Location: Rasi, Finland

PostPosted: Sun Sep 12, 2021 9:39 am    Post subject: Reply with quote

Naib wrote:
Anon-E-moose wrote:
The only thing I really liked about wf-shell was the built-in menu.
and that's one of the reasons I am still on it. if waybar can incorporate/accept some menu-like system then wf-shell goes and wf also might go :)
There is at least one project which places freedesktop-like menu on tray. Unfortunately it's X11 based program (written in perl, I think). I think it was menutray..?

Anyway. I prefer to use launchers. freedesktop menu just fills up with crud from programs that are only dependencies of an another program you installed.
For example I have FontForge there from some depency. Guess how many time I've launched it?
_________________
..: Zucca :..

My gentoo installs:
init=/sbin/openrc-init
-systemd -logind -elogind seatd

Quote:
I am NaN! I am a man!
Back to top
View user's profile Send private message
spica
Guru
Guru


Joined: 04 Jun 2021
Posts: 329

PostPosted: Sun Sep 12, 2021 10:10 am    Post subject: Reply with quote

Hi all,
Does anyone know how to automatically remember keyboard layout per window? Something similar to x11-misc/kbdd, unfortunately, it does not work in Wayland.
Thanks.
Back to top
View user's profile Send private message
Anon-E-moose
Watchman
Watchman


Joined: 23 May 2008
Posts: 6145
Location: Dallas area

PostPosted: Sun Sep 12, 2021 10:30 am    Post subject: Reply with quote

spica wrote:
Hi all,
Does anyone know how to automatically remember keyboard layout per window? Something similar to x11-misc/kbdd, unfortunately, it does not work in Wayland.
Thanks.


https://github.com/artemsen/swaykbdd in the guru overlay
_________________
PRIME x570-pro, 3700x, 6.1 zen kernel
gcc 13, profile 17.0 (custom bare multilib), openrc, wayland
Back to top
View user's profile Send private message
Anon-E-moose
Watchman
Watchman


Joined: 23 May 2008
Posts: 6145
Location: Dallas area

PostPosted: Sun Sep 12, 2021 10:40 am    Post subject: Reply with quote

Zucca wrote:
Naib wrote:
Anon-E-moose wrote:
The only thing I really liked about wf-shell was the built-in menu.
and that's one of the reasons I am still on it. if waybar can incorporate/accept some menu-like system then wf-shell goes and wf also might go :)
There is at least one project which places freedesktop-like menu on tray. Unfortunately it's X11 based program (written in perl, I think). I think it was menutray..?

Anyway. I prefer to use launchers. freedesktop menu just fills up with crud from programs that are only dependencies of an another program you installed.
For example I have FontForge there from some depency. Guess how many time I've launched it?


That's why I like fuzzel (app launcher by foot dev) it grabs all the desktop files (easy to make for almost anything) and puts them in a window.
It keeps track of times something is opened and adjusts the menu accordingly.
It is keyboard only (no mouse/touch) but works well, first letter typed starts narrowing down menu items to those that contain the typed input.
I have it set to trigger off on <window meta><f> (wayfire) and "esc" or a selection makes it go away

There's also lavalauncher which gives a panel like box with icons in it, it does not use desktop files or search for executables.
You create a launcher (similar to tint2) that triggers off some program, just attach an icon to it and it's good to go.
I've looked at it, but not used it (no real need for it yet)
_________________
PRIME x570-pro, 3700x, 6.1 zen kernel
gcc 13, profile 17.0 (custom bare multilib), openrc, wayland
Back to top
View user's profile Send private message
spica
Guru
Guru


Joined: 04 Jun 2021
Posts: 329

PostPosted: Sun Sep 12, 2021 11:59 am    Post subject: Reply with quote

Anon-E-moose wrote:
https://github.com/artemsen/swaykbdd in the guru overlay
Yeah, that was the first thing I looked at.
It will never work with Wayfire, unfortunately, it relies on Sway IPC mechanism which is absent in Wayfire.
I checked swaykbdd source code, it does nothing with xkbcommon, it can't be used even as an example :(
Back to top
View user's profile Send private message
Anon-E-moose
Watchman
Watchman


Joined: 23 May 2008
Posts: 6145
Location: Dallas area

PostPosted: Sun Sep 12, 2021 12:38 pm    Post subject: Reply with quote

spica wrote:
Anon-E-moose wrote:
https://github.com/artemsen/swaykbdd in the guru overlay
Yeah, that was the first thing I looked at.
It will never work with Wayfire, unfortunately, it relies on Sway IPC mechanism which is absent in Wayfire.
I checked swaykbdd source code, it does nothing with xkbcommon, it can't be used even as an example :(


You didn't mention which compositor.

Yeah, wayfire doesn't have an IPC mechanism, though they've talked about it.
Not even sure if wayfire looks at each window the same as sway does, so not sure about "kbdd" per window.
_________________
PRIME x570-pro, 3700x, 6.1 zen kernel
gcc 13, profile 17.0 (custom bare multilib), openrc, wayland
Back to top
View user's profile Send private message
Naib
Watchman
Watchman


Joined: 21 May 2004
Posts: 6065
Location: Removed by Neddy

PostPosted: Sun Sep 12, 2021 12:58 pm    Post subject: Reply with quote

There is also Vivarium, this looks interesting ( https://github.com/inclement/vivarium )
_________________
Quote:
Removed by Chiitoo
Back to top
View user's profile Send private message
The Main Man
Veteran
Veteran


Joined: 27 Nov 2014
Posts: 1171
Location: /run/user/1000

PostPosted: Sun Sep 12, 2021 2:27 pm    Post subject: Reply with quote

Anon-E-moose wrote:

That's why I like fuzzel (app launcher by foot dev) it grabs all the desktop files (easy to make for almost anything) and puts them in a window.
It keeps track of times something is opened and adjusts the menu accordingly.
It is keyboard only (no mouse/touch) but works well, first letter typed starts narrowing down menu items to those that contain the typed input.
I have it set to trigger off on <window meta><f> (wayfire) and "esc" or a selection makes it go away


Nice one, thanks for this info, I like it, will replace Wofi with this one.
Back to top
View user's profile Send private message
Anon-E-moose
Watchman
Watchman


Joined: 23 May 2008
Posts: 6145
Location: Dallas area

PostPosted: Sun Sep 12, 2021 2:45 pm    Post subject: Reply with quote

Code:
fuzzel -f Dejavu:size=18 -T foot -b 3385ffff -t e6e6e6ff -m dc322fff -s 073642ff -r 4 -l 30


Nice, blue background, white letters, w/icons and no border 30 lines long

https://ibb.co/GRCB9sc -- screenshot :)
_________________
PRIME x570-pro, 3700x, 6.1 zen kernel
gcc 13, profile 17.0 (custom bare multilib), openrc, wayland
Back to top
View user's profile Send private message
The Main Man
Veteran
Veteran


Joined: 27 Nov 2014
Posts: 1171
Location: /run/user/1000

PostPosted: Sun Sep 12, 2021 2:49 pm    Post subject: Reply with quote

I'm liking it like this :)

Code:
fuzzel -b 000000ff -i Papirus-Dark -w 80 -l 40
Back to top
View user's profile Send private message
Anon-E-moose
Watchman
Watchman


Joined: 23 May 2008
Posts: 6145
Location: Dallas area

PostPosted: Sun Sep 12, 2021 3:37 pm    Post subject: Reply with quote

Hadn't looked at the Papirus icons before ... Nice
_________________
PRIME x570-pro, 3700x, 6.1 zen kernel
gcc 13, profile 17.0 (custom bare multilib), openrc, wayland
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Goto page Previous  1, 2, 3, 4, 5, 6, 7  Next
Page 4 of 7

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum