Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Desktop Environments
  • Search

gui-wm/hyprland: window customizing

Problems with GUI applications? Questions about X, KDE, Gnome, Fluxbox, etc.? Come on in. NOTE: For multimedia, go up one forum
Post Reply
Advanced search
31 posts
  • 1
  • 2
  • Next
Author
Message
CaptainBlood
Advocate
Advocate
User avatar
Posts: 4237
Joined: Sun Jan 24, 2010 9:38 am

gui-wm/hyprland: window customizing

  • Quote

Post by CaptainBlood » Thu Feb 02, 2023 8:46 am

No window resizing here.

Any idea how to get the feature working?

Thks 4 ur attention, interest & support.
Last edited by CaptainBlood on Thu Feb 02, 2023 6:23 pm, edited 2 times in total.
USE="-* ..." in /etc/portage/make.conf here, i.e. a countermeasure to portage implicit braces, belt & diaper paradigm
LT: "I've been doing a passable imitation of the Fontana di Trevi, except my medium is mucus. Sooo much mucus. "
Top
CaptainBlood
Advocate
Advocate
User avatar
Posts: 4237
Joined: Sun Jan 24, 2010 9:38 am

  • Quote

Post by CaptainBlood » Thu Feb 02, 2023 10:02 am

config extracted from /usr/share/doc/hyprland-9999-r2/hyprland.conf.lzma

Super + Right Mouse Button actually works fine.

Currently working out how to achieve with keyboard only.
Any idea?

Thks 4 ur attention, interest & support.
USE="-* ..." in /etc/portage/make.conf here, i.e. a countermeasure to portage implicit braces, belt & diaper paradigm
LT: "I've been doing a passable imitation of the Fontana di Trevi, except my medium is mucus. Sooo much mucus. "
Top
CooSee
Veteran
Veteran
User avatar
Posts: 1617
Joined: Sat Nov 20, 2004 10:38 pm
Location: right here !

  • Quote

Post by CooSee » Thu Feb 02, 2023 3:26 pm

Currently working out how to achieve with keyboard only.
Any idea?

Code: Select all

If you want keybind submaps, for example if you press ALT+R, you can enter a “resize” mode, resize with arrow keys, and leave with escape, do it like this:

bind=ALT,R,submap,resize # will switch to a submap called resize

submap=resize # will start a submap called "resize"

binde=,right,resizeactive,10 0
binde=,left,resizeactive,-10 0
binde=,up,resizeactive,0 -10
binde=,down,resizeactive,0 10

bind=,escape,submap,reset # use reset to go back to the global submap

submap=reset # will reset the submap, meaning end the current one and return to the global one.

# keybinds further down will be global again...

IMPORTANT: do not forget a keybind to reset the keymap while inside it! (In this case, escape)

If you get stuck inside a keymap, you can use hyprctl dispatch submap reset to go back. If you do not have a terminal open, tough luck buddy. I warned you.
from https://wiki.hyprland.org/Configuring/Advanced-config/

if i understand it correctly - first you activate resize mode e.g. press ALT+R and resize with arrow keys, up, down, left, right etc.

but, first you need to add specific behaviours in the config.

i hope this helps.

8)
" Die Realität ist eine Illusion, die durch Mangel an ehrlicher Kommunikation entsteht "
---
" Der Mensch ist von Natur aus neugierig, was am Ende übrig bleibt ist die Gier "
Top
CaptainBlood
Advocate
Advocate
User avatar
Posts: 4237
Joined: Sun Jan 24, 2010 9:38 am

  • Quote

Post by CaptainBlood » Thu Feb 02, 2023 6:22 pm

CooSee,
Nice tip, working fine here.

Current issue here is that window isn't centered when switched to floating, e.g. Ctrl+V from above config.
Any idea?

Thks 4 ur attention, interest & support.
USE="-* ..." in /etc/portage/make.conf here, i.e. a countermeasure to portage implicit braces, belt & diaper paradigm
LT: "I've been doing a passable imitation of the Fontana di Trevi, except my medium is mucus. Sooo much mucus. "
Top
CooSee
Veteran
Veteran
User avatar
Posts: 1617
Joined: Sat Nov 20, 2004 10:38 pm
Location: right here !

  • Quote

Post by CooSee » Thu Feb 02, 2023 6:40 pm

window isn't centered when switched to floating
https://wiki.hyprland.org/Configuring/Window-Rules/

look for center in rules.

the config only follows the rules if it's specified in your settings - this can be global or changed behaviour for some apps.

you can also search on github, e.g. hyprland dotfiles, to get some inspirations <<< use it only as comparison.

here's a snippet from https://github.com/MalariaKills/MOS_Dotfiles.git

Code: Select all

#Window Rules

windowrule = workspace 2,^(firefox)$
windowrule = workspace 3,^(Emacs)$
windowrule = workspace 4,^(Spotify)$
windowrule = workspace 5,^(discord)$
windowrule = tile,^(Spotify)$
windowrule = float, ^(pavucontrol)$
windowrule = center, ^(pavucontrol)$
windowrule = size 800 500, ^(pavucontrol)$
windowrulev2 = float,class:^(Steam)$,title:^(Friends List)(.*)$
windowrulev2 = size 391 1225,class:^(Steam)$,title:^(Friends List)$
windowrule = idleinhibit focus,^(steam_app)(.*)$
8)
" Die Realität ist eine Illusion, die durch Mangel an ehrlicher Kommunikation entsteht "
---
" Der Mensch ist von Natur aus neugierig, was am Ende übrig bleibt ist die Gier "
Top
CaptainBlood
Advocate
Advocate
User avatar
Posts: 4237
Joined: Sun Jan 24, 2010 9:38 am

  • Quote

Post by CaptainBlood » Thu Feb 02, 2023 7:31 pm

Cosee,
Nice link.

Unfortunately,

Code: Select all

windowrule = center
pragma seems app dedicated as your example shows.

It failed when replacing app name with ^(.*l)$ here.

Maybe someone has better results?

Thks 4 ur attention, interest & support.
USE="-* ..." in /etc/portage/make.conf here, i.e. a countermeasure to portage implicit braces, belt & diaper paradigm
LT: "I've been doing a passable imitation of the Fontana di Trevi, except my medium is mucus. Sooo much mucus. "
Top
CooSee
Veteran
Veteran
User avatar
Posts: 1617
Joined: Sat Nov 20, 2004 10:38 pm
Location: right here !

  • Quote

Post by CooSee » Thu Feb 02, 2023 9:10 pm

my apologies :cry:

i don't use hyprland - just trying to help :!:

i'll stick to sway/waybar, because it works perfect for me - there are so many config options etc. - i'll take some time to understand.

Code: Select all

# Float Necessary Windows
windowrule=float,Rofi
windowrule=float,pavucontrol
windowrulev2 = float,class:^()$,title:^(Picture in picture)$
windowrulev2 = float,class:^(brave)$,title:^(Save File)$
windowrulev2 = float,class:^(brave)$,title:^(Open File)$
windowrulev2 = float,class:^(LibreWolf)$,title:^(Picture-in-Picture)$
windowrulev2 = float,class:^(blueman-manager)$
windowrulev2 = float,class:^(org.twosheds.iwgtk)$
windowrulev2 = float,class:^(blueberry.py)$
windowrulev2 = float,class:^(xdg-desktop-portal-gtk)$
windowrulev2 = float,class:^(geeqie)$
the v2 option is more flexible.

i hope you'll find your perfect options - the wiki also has some examples https://wiki.hyprland.org/Configuring/E ... gurations/

edit:

in many other hypr configs i don't see specified center at all - this is really confusing.

8)
" Die Realität ist eine Illusion, die durch Mangel an ehrlicher Kommunikation entsteht "
---
" Der Mensch ist von Natur aus neugierig, was am Ende übrig bleibt ist die Gier "
Top
CaptainBlood
Advocate
Advocate
User avatar
Posts: 4237
Joined: Sun Jan 24, 2010 9:38 am

  • Quote

Post by CaptainBlood » Thu Feb 02, 2023 9:43 pm

Oops my bad 2...
My config file was already on windowrulev2... :oops:

Even trying to center with hardcoded window class, e.g. firefox-bin currently fails here
EDIT:

Code: Select all

windowrulev2 = center,classe:^(firefox-bin)$,floating:1
Thks 4 ur attention, interest & support.
Last edited by CaptainBlood on Thu Feb 02, 2023 9:53 pm, edited 1 time in total.
USE="-* ..." in /etc/portage/make.conf here, i.e. a countermeasure to portage implicit braces, belt & diaper paradigm
LT: "I've been doing a passable imitation of the Fontana di Trevi, except my medium is mucus. Sooo much mucus. "
Top
CooSee
Veteran
Veteran
User avatar
Posts: 1617
Joined: Sat Nov 20, 2004 10:38 pm
Location: right here !

  • Quote

Post by CooSee » Thu Feb 02, 2023 9:49 pm

do you use multiple monitors?

if i understand you correctly, e.g. if you switch from fullscreen to float, the window doesn't stay at the center on your workspace?

please wgetpaste your current hypr config.

8)
" Die Realität ist eine Illusion, die durch Mangel an ehrlicher Kommunikation entsteht "
---
" Der Mensch ist von Natur aus neugierig, was am Ende übrig bleibt ist die Gier "
Top
CaptainBlood
Advocate
Advocate
User avatar
Posts: 4237
Joined: Sun Jan 24, 2010 9:38 am

  • Quote

Post by CaptainBlood » Thu Feb 02, 2023 10:07 pm

Single monitor here.
default SUPER+V switches currently selected tile to floating in a so de centered position that some part of the window isn't visible.

config
EDIT:

Code: Select all

# This is an example Hyprland config file.
#
# Refer to the wiki for more information.

#
# Please note not all available settings / options are set here.
# For a full list, see the wiki
#

# See https://wiki.hyprland.org/Configuring/Monitors/
monitor=,preferred,auto,auto


# See https://wiki.hyprland.org/Configuring/Keywords/ for more

# Execute your favorite apps at launch
# exec-once = waybar & hyprpaper & firefox
exec-once = dunst

# Source a file (multi-file configs)
# source = ~/.config/hypr/myColors.conf

# For all categories, see https://wiki.hyprland.org/Configuring/Variables/
input {
    kb_layout = fr
    kb_variant =
    kb_model =
    kb_options =
    kb_rules =

    follow_mouse = 1

    touchpad {
        natural_scroll = no
    }

    sensitivity = 0 # -1.0 - 1.0, 0 means no modification.
}

general {
    # See https://wiki.hyprland.org/Configuring/Variables/ for more

    gaps_in = 5
    gaps_out = 20
    border_size = 5
    col.active_border = rgba(33ccffee) rgba(00ff99ee) 45deg
    col.inactive_border = rgba(595959aa)

    layout = dwindle
}

decoration {
    # See https://wiki.hyprland.org/Configuring/Variables/ for more

    rounding = 10
    blur = yes
    blur_size = 3
    blur_passes = 1
    blur_new_optimizations = on

    drop_shadow = yes
    shadow_range = 4
    shadow_render_power = 3
    col.shadow = rgba(1a1a1aee)
}

animations {
    enabled = no

    # Some default animations, see https://wiki.hyprland.org/Configuring/Animations/ for more

    bezier = myBezier, 0.05, 0.9, 0.1, 1.05

    animation = windows, 1, 7, myBezier
    animation = windowsOut, 1, 7, default, popin 80%
    animation = border, 1, 10, default
    animation = fade, 1, 7, default
    animation = workspaces, 1, 6, default
}

dwindle {
    # See https://wiki.hyprland.org/Configuring/Dwindle-Layout/ for more
    pseudotile = yes # master switch for pseudotiling. Enabling is bound to mainMod + P in the keybinds section below
    preserve_split = yes # you probably want this
}

master {
    # See https://wiki.hyprland.org/Configuring/Master-Layout/ for more
    new_is_master = true
}

gestures {
    # See https://wiki.hyprland.org/Configuring/Variables/ for more
    workspace_swipe = off
}

# Example per-device config
# See https://wiki.hyprland.org/Configuring/Keywords/#executing for more
device:epic mouse V1 {
    sensitivity = -0.5
}

# Example windowrule v1
# windowrule = float, ^(kitty)$
# Example windowrule v2
# windowrulev2 = float,class:^(kitty)$,title:^(kitty)$
# See https://wiki.hyprland.org/Configuring/Window-Rules/ for more


# See https://wiki.hyprland.org/Configuring/Keywords/ for more
$mainMod = SUPER

# Example binds, see https://wiki.hyprland.org/Configuring/Binds/ for more
bind = $mainMod, return, exec, foot
bind = $mainMod, K, killactive, 
bind = $mainMod, E, exit, 
bind = $mainMod, F, exec, pcmanfm
bind = $mainMod, V, togglefloating, 
bind = $mainMod, X, exec, wofi --show drun
bind = $mainMod, P, pseudo, # dwindle
bind = $mainMod, J, togglesplit, # dwindle

# Move focus with mainMod + arrow keys
bind = $mainMod, left, movefocus, l
bind = $mainMod, right, movefocus, r
bind = $mainMod, up, movefocus, u
bind = $mainMod, down, movefocus, d

# Switch workspaces with mainMod + [0-9]
bind = $mainMod, 1, workspace, 1
bind = $mainMod, 2, workspace, 2
bind = $mainMod, 3, workspace, 3
bind = $mainMod, 4, workspace, 4
bind = $mainMod, 5, workspace, 5
bind = $mainMod, 6, workspace, 6
bind = $mainMod, 7, workspace, 7
bind = $mainMod, 8, workspace, 8
bind = $mainMod, 9, workspace, 9
bind = $mainMod, 0, workspace, 10

# Move active window to a workspace with mainMod + SHIFT + [0-9]
bind = $mainMod SHIFT, 1, movetoworkspace, 1
bind = $mainMod SHIFT, 2, movetoworkspace, 2
bind = $mainMod SHIFT, 3, movetoworkspace, 3
bind = $mainMod SHIFT, 4, movetoworkspace, 4
bind = $mainMod SHIFT, 5, movetoworkspace, 5
bind = $mainMod SHIFT, 6, movetoworkspace, 6
bind = $mainMod SHIFT, 7, movetoworkspace, 7
bind = $mainMod SHIFT, 8, movetoworkspace, 8
bind = $mainMod SHIFT, 9, movetoworkspace, 9
bind = $mainMod SHIFT, 0, movetoworkspace, 10

# Scroll through existing workspaces with mainMod + scroll
bind = $mainMod, mouse_down, workspace, e+1
bind = $mainMod, mouse_up, workspace, e-1

# Move/resize windows with mainMod + LMB/RMB and dragging
bindm = $mainMod, mouse:272, movewindow
bindm = $mainMod, mouse:273, resizewindow

# will switch to a submap called resize
bind=ALT,R,submap,resize

# will start a submap called "resize"
submap=resize

# sets repeatable binds for resizing the active window
binde=,right,resizeactive,10 0
binde=SHIFT,right,resizeactive,10 0
binde=,left,resizeactive,-10 0
binde=SHIFT,left,resizeactive,-10 0
binde=,up,resizeactive,0 -10
binde=SHIFT,up,resizeactive,0 -10
binde=,down,resizeactive,0 10
binde=SHIFT,down,resizeactive,0 10

# use reset to go back to the global submap
bind=,escape,submap,reset 

# will reset the submap, meaning end the current one and return to the global one
submap=reset

windowrulev2 = center,classe:^(firefox-bin)$,floating:1
Thks 4 ur attention, interest & support.
Last edited by CaptainBlood on Thu Feb 02, 2023 11:18 pm, edited 1 time in total.
USE="-* ..." in /etc/portage/make.conf here, i.e. a countermeasure to portage implicit braces, belt & diaper paradigm
LT: "I've been doing a passable imitation of the Fontana di Trevi, except my medium is mucus. Sooo much mucus. "
Top
CooSee
Veteran
Veteran
User avatar
Posts: 1617
Joined: Sat Nov 20, 2004 10:38 pm
Location: right here !

  • Quote

Post by CooSee » Thu Feb 02, 2023 10:31 pm

i assume it's just a typo.

Code: Select all

windowrulev2 = center,classe:^(firefox-bin)$,flo
monitor=,preferred,auto,auto >>> for pluggin in random monitors
what if, you specify your monitor res. instead of auto?

and please try this:

Code: Select all

windowrulev2 = float,class:^(firefox)$,title:^(firefox)$
or

Code: Select all

windowrule=float,firefox
windowrule=center,firefox
fingers crossed 8)

edit:

it seems, that the behaviour is changing >> sometimes or with some apps which are not fully wayland compatible << if using hyprland with xwayland enabled :!:
" Die Realität ist eine Illusion, die durch Mangel an ehrlicher Kommunikation entsteht "
---
" Der Mensch ist von Natur aus neugierig, was am Ende übrig bleibt ist die Gier "
Top
CaptainBlood
Advocate
Advocate
User avatar
Posts: 4237
Joined: Sun Jan 24, 2010 9:38 am

  • Quote

Post by CaptainBlood » Fri Feb 03, 2023 12:05 am

tried monitor, windorule & windowrulev2.
All failed.

My first goal with wayland#sway is memory print. :roll:

Maybe I should turn back to sway, which I practiced a while ago.
Using default keybinding was a bit hard for my poor memory.... 8O

Thks 4 ur attention. interest & support.
USE="-* ..." in /etc/portage/make.conf here, i.e. a countermeasure to portage implicit braces, belt & diaper paradigm
LT: "I've been doing a passable imitation of the Fontana di Trevi, except my medium is mucus. Sooo much mucus. "
Top
CaptainBlood
Advocate
Advocate
User avatar
Posts: 4237
Joined: Sun Jan 24, 2010 9:38 am

  • Quote

Post by CaptainBlood » Fri Feb 03, 2023 12:10 am

Code: Select all

GDK_BACKEND=wayland Hyprland
didn't help.

Thks 4 ur attention, interest & support.
USE="-* ..." in /etc/portage/make.conf here, i.e. a countermeasure to portage implicit braces, belt & diaper paradigm
LT: "I've been doing a passable imitation of the Fontana di Trevi, except my medium is mucus. Sooo much mucus. "
Top
CooSee
Veteran
Veteran
User avatar
Posts: 1617
Joined: Sat Nov 20, 2004 10:38 pm
Location: right here !

  • Quote

Post by CooSee » Fri Feb 03, 2023 1:31 am

are you using openrc or systemd?

maybe some additional options are missing, e.g. systemd

Code: Select all

exec-once=dbus-update-activation-environment --systemd WAYLAND_DISPLAY XDG_CURRENT_DESKTOP
exec-once=systemctl --user import-environment WAYLAND_DISPLAY XDG_CURRENT_DESKTOP
if openrc edit /usr/share/wayland-sessions/hyprland.desktop and add

Code: Select all

Exec=dbus-run-session Hyprland
look at his dotfiles - https://github.com/MathisP75/hypr-aurora and https://github.com/MathisP75/hyppuccin

a snippet:

Code: Select all

windowrule = float, ^(pavucontrol)$
windowrule = maxsize 600 800, ^(pavucontrol)$
windowrule = center, ^(pavucontrol)$
have you emerged it with X use flag? and which version?

it could be a bug in specific version - wlroots is the culprit most of the time.

there are some available - i prefer *-9999 version 8O

Code: Select all

eix hypr
* gui-apps/hyprland-addons [2]
     Available versions:  [m]~0_pre20221018 [m]**9999*l {+grimblast +shellevents}
     Homepage:            https://github.com/hyprwm/contrib/
     Description:         Community scripts and utilities for Hypr projects

* gui-apps/hyprpaper [2]
     Available versions:  [m]~0_pre20221128 [m]**9999*l
     Homepage:            https://github.com/hyprwm/Hyprpaper
     Description:         blazing fast wayland wallpaper utility with IPC controls.

* gui-libs/xdg-desktop-portal-hyprland [2]
     Available versions:  [m]**9999*l {elogind systemd}
     Homepage:            https://github.com/hyprwm/xdg-desktop-portal-hyprland
     Description:         xdg-desktop-portal backend for hyprland

* gui-wm/hyprland
     Available versions:  [m]~0.16.0[2] [m]~0.17.0[2] [m]~0.19.2[2] [m]~0.21.0-r1[1] [m]**9999*l[2] {X grimblast shellevents system-wlroots systemd}
     Homepage:            https://github.com/hyprwm/Hyprland
     Description:         Dynamic tiling Wayland compositor that doesn't sacrifice on its looks.

[1] "guru" /var/db/repos/guru
[2] "wayland-desktop" /var/db/repos/wayland-desktop
i'll will try with a merge of hyprland tomorrow, because it's late here (02:45 am) - going to bed now :)

8)

edit:

- just tried hyperland-9999 with already emerged wlroots-9999 - changed nothing at first start

- my 2 monitors were correctly detected - changed some mode+apps keys

- started sakura via mod+key and it's correctly centered without any other kind of modification!

it seems to be a bug with the version you're using.
Last edited by CooSee on Fri Feb 03, 2023 12:30 pm, edited 1 time in total.
" Die Realität ist eine Illusion, die durch Mangel an ehrlicher Kommunikation entsteht "
---
" Der Mensch ist von Natur aus neugierig, was am Ende übrig bleibt ist die Gier "
Top
CaptainBlood
Advocate
Advocate
User avatar
Posts: 4237
Joined: Sun Jan 24, 2010 9:38 am

  • Quote

Post by CaptainBlood » Fri Feb 03, 2023 12:21 pm

openrc here.
Beware hyprland likely doesn't use system wlroots IIRC.
hyprland started from command line here.

Code: Select all

eixi hyprland
[I] gui-wm/hyprland
     Available versions:  ~0.16.0[3] ~0.17.0[3] ~0.19.2_beta[2] ~0.19.2[3] ~0.20.1_beta[2] ~0.21.0-r1[1] (**)9999*l[3] (**)9999-r2*l[2] {X greetd-fix grimblast shellevents system-wlroots systemd vulkan +x11-backend VIDEO_CARDS="nvidia"}
     Installed versions:  9999-r2*l[2](16:17:32 02/02/2023)(X x11-backend -greetd-fix -vulkan VIDEO_CARDS="-nvidia")
     Homepage:            https://github.com/hyprwm/Hyprland
     Description:         A dymanic tiling Wayland compositor that doesn't sacrifice on its looks.

[1] "guru" /var/db/repos/guru
[2] "thegreatmcpain" /var/db/repos/thegreatmcpain
[3] "wayland-desktop" /var/db/repos/wayland-desktop
wayland-desktop fails to build here.
thegreatmcpain's ebuild may be missing something.

Thks 4 ur attention, interest & support.
USE="-* ..." in /etc/portage/make.conf here, i.e. a countermeasure to portage implicit braces, belt & diaper paradigm
LT: "I've been doing a passable imitation of the Fontana di Trevi, except my medium is mucus. Sooo much mucus. "
Top
CaptainBlood
Advocate
Advocate
User avatar
Posts: 4237
Joined: Sun Jan 24, 2010 9:38 am

  • Quote

Post by CaptainBlood » Fri Feb 03, 2023 12:27 pm

Code: Select all

efil hyprland
 * Searching for hyprland ...
 * Contents of gui-wm/hyprland-9999-r2:
/usr
/usr/bin
/usr/bin/Hyprland
/usr/bin/hyprctl
/usr/lib64
/usr/lib64/libwlroots.so.12032
/usr/share
/usr/share/doc
/usr/share/doc/hyprland-9999-r2
/usr/share/doc/hyprland-9999-r2/hyprland.conf.lzma
/usr/share/hyprland
/usr/share/hyprland/header.svg
/usr/share/hyprland/hyprland.png
/usr/share/hyprland/meson.build
/usr/share/hyprland/wall_2K.png
/usr/share/hyprland/wall_4K.png
/usr/share/hyprland/wall_8K.png
/usr/share/wayland-sessions
/usr/share/wayland-sessions/hyprland.desktop
Thks 4 ur attention, interest & support.
USE="-* ..." in /etc/portage/make.conf here, i.e. a countermeasure to portage implicit braces, belt & diaper paradigm
LT: "I've been doing a passable imitation of the Fontana di Trevi, except my medium is mucus. Sooo much mucus. "
Top
CooSee
Veteran
Veteran
User avatar
Posts: 1617
Joined: Sat Nov 20, 2004 10:38 pm
Location: right here !

  • Quote

Post by CooSee » Fri Feb 03, 2023 12:38 pm

just edited my last post from yesterday.

i tried hyprland-9999 from wayland-desktop and it's using already merged wlroots-9999.

no problems with centering - no config modifications was made.

Code: Select all

[Desktop Entry]
Name=Hyprland
Comment=An intelligent dynamic tiling Wayland compositor
Exec=dbus-run-session Hyprland
Type=Application
i also use openrc - added dbus-run-session in /usr/share//wayland-sessions/hyprland.desktop

i use tinydm+autologin

Code: Select all

eix -I hyprland
[I] gui-apps/hyprland-addons [2]
     Available versions:  [m](~)0_pre20221018 (**)9999*l{xpak} {+grimblast +shellevents}
     Installed versions:  9999*l{xpak}(09:44:05 03.02.2023)(grimblast shellevents)
     Homepage:            https://github.com/hyprwm/contrib/
     Description:         Community scripts and utilities for Hypr projects

[I] gui-wm/hyprland
     Available versions:  [m](~)0.16.0[2] [m](~)0.17.0[2] [m](~)0.19.2[2] [m]~0.21.0-r1[1] (**)9999*l{xpak}[2] {X grimblast shellevents system-wlroots systemd}
     Installed versions:  9999*l{xpak}[2](09:43:55 03.02.2023)(system-wlroots -X)
     Homepage:            https://github.com/hyprwm/Hyprland
     Description:         Dynamic tiling Wayland compositor that doesn't sacrifice on its looks.

[1] "guru" /var/db/repos/guru
[2] "wayland-desktop" /var/db/repos/wayland-desktop

8)
" Die Realität ist eine Illusion, die durch Mangel an ehrlicher Kommunikation entsteht "
---
" Der Mensch ist von Natur aus neugierig, was am Ende übrig bleibt ist die Gier "
Top
CaptainBlood
Advocate
Advocate
User avatar
Posts: 4237
Joined: Sun Jan 24, 2010 9:38 am

  • Quote

Post by CaptainBlood » Fri Feb 03, 2023 1:31 pm

gui-wm/hyprland::wayland-desktop throiws:

Code: Select all

Build dir: /var/tmp/portage/gui-wm/hyprland-9999/work/hyprland-9999-build
Build type: native build

meson.build:1:0: ERROR: Program or command 'jq' not found or not executable

A full log can be found at /var/tmp/portage/gui-wm/hyprland-9999/work/hyprland-9999-build/meson-logs/meson-log.txt
Likely unconstrained app-misc/jq missing here.

Thks 4 ur attention, interest & support.
USE="-* ..." in /etc/portage/make.conf here, i.e. a countermeasure to portage implicit braces, belt & diaper paradigm
LT: "I've been doing a passable imitation of the Fontana di Trevi, except my medium is mucus. Sooo much mucus. "
Top
CooSee
Veteran
Veteran
User avatar
Posts: 1617
Joined: Sat Nov 20, 2004 10:38 pm
Location: right here !

  • Quote

Post by CooSee » Fri Feb 03, 2023 1:48 pm

yes, i have it installed.

here's my list of all installed ebuilds https://bpa.st/J2ZXE for comparison.

using Sway/Waybar only system with xwayland disabled - no other gui's are installed.

8)
" Die Realität ist eine Illusion, die durch Mangel an ehrlicher Kommunikation entsteht "
---
" Der Mensch ist von Natur aus neugierig, was am Ende übrig bleibt ist die Gier "
Top
CaptainBlood
Advocate
Advocate
User avatar
Posts: 4237
Joined: Sun Jan 24, 2010 9:38 am

  • Quote

Post by CaptainBlood » Fri Feb 03, 2023 2:53 pm

Just build latest from guru, just to stay away from wlroots live:

Code: Select all

     Installed versions:  0.21.0-r1[1](18:21:21 03/02/2023)(X -grimblast -shellevents -systemd)
It mandatory pulls a few packages others don't:

Code: Select all

     Fri Feb  3 17:54:26 2023 >>> dev-util/vulkan-headers-1.3.231
     Fri Feb  3 17:56:56 2023 >>> dev-util/glslang-1.3.231-r2
     Fri Feb  3 17:57:24 2023 >>> media-libs/vulkan-loader-1.3.231
CooSee wrote:xwayland disabled - no other gui's are installed.
Emacs:29 is currently a bit of headache in this respect because it requires one binary for X GUI and another for wayland GUI.
Pure wayland emacs is currently on no gui terminal here.
Hope this will improve soon.

So for simplicity xwayland is here.

Out of curiosity, how do you do file browsing....

Thks 4 ur attention, interest & support.
Last edited by CaptainBlood on Fri Feb 03, 2023 3:45 pm, edited 1 time in total.
USE="-* ..." in /etc/portage/make.conf here, i.e. a countermeasure to portage implicit braces, belt & diaper paradigm
LT: "I've been doing a passable imitation of the Fontana di Trevi, except my medium is mucus. Sooo much mucus. "
Top
CooSee
Veteran
Veteran
User avatar
Posts: 1617
Joined: Sat Nov 20, 2004 10:38 pm
Location: right here !

  • Quote

Post by CooSee » Fri Feb 03, 2023 3:08 pm

Out of curiosity, how do you do file browsing....
there's no spoon ... i mean i don't need a gui file manager - using, always loved, app-misc/mc (Midnight Commander) - with x11-terms/sakura.

8) :lol:
" Die Realität ist eine Illusion, die durch Mangel an ehrlicher Kommunikation entsteht "
---
" Der Mensch ist von Natur aus neugierig, was am Ende übrig bleibt ist die Gier "
Top
CaptainBlood
Advocate
Advocate
User avatar
Posts: 4237
Joined: Sun Jan 24, 2010 9:38 am

  • Quote

Post by CaptainBlood » Fri Feb 03, 2023 3:17 pm

CooSee wrote:it seems, that the behaviour is changing >> sometimes or with some apps which are not fully wayland compatible << if using hyprland with xwayland enabled :!:
Indeed firefox-bin ends up in fullscreen :roll: on xwayland whereas GDK_BACKEND=wayland brings expected tiled behavior.

EDIT: Although it worked once, that seems an oddity. :oops:

Thks 4 ur attention, interest & support
Last edited by CaptainBlood on Fri Feb 03, 2023 3:35 pm, edited 1 time in total.
USE="-* ..." in /etc/portage/make.conf here, i.e. a countermeasure to portage implicit braces, belt & diaper paradigm
LT: "I've been doing a passable imitation of the Fontana di Trevi, except my medium is mucus. Sooo much mucus. "
Top
CaptainBlood
Advocate
Advocate
User avatar
Posts: 4237
Joined: Sun Jan 24, 2010 9:38 am

  • Quote

Post by CaptainBlood » Fri Feb 03, 2023 3:26 pm

CooSee wrote:x11-terms/sakura
xwayland free :roll: ?
Thks 4 ur attention, interest & support.
USE="-* ..." in /etc/portage/make.conf here, i.e. a countermeasure to portage implicit braces, belt & diaper paradigm
LT: "I've been doing a passable imitation of the Fontana di Trevi, except my medium is mucus. Sooo much mucus. "
Top
CooSee
Veteran
Veteran
User avatar
Posts: 1617
Joined: Sat Nov 20, 2004 10:38 pm
Location: right here !

  • Quote

Post by CooSee » Fri Feb 03, 2023 3:46 pm

yes, x11-terms/sakura works just fine - it's wayland compatible https://github.com/swaywm/sway/wiki/Use ... s-for-sway

i don't like terminal emulators with no TAB support.

snippet from my .config/sway

Code: Select all

# Config for sway
#
# Read `man 5 sway` for a complete reference.
# styles - set the folder for your theme definition file

set $theme $HOME/.config/sway/themes/SeaOwlGtkTheme

# theme variables
include $theme/definitions

# user config directory
include $HOME/.config/sway/config.d/*

# only enable this if every app you use is compatible with wayland
xwayland disable
8)
" Die Realität ist eine Illusion, die durch Mangel an ehrlicher Kommunikation entsteht "
---
" Der Mensch ist von Natur aus neugierig, was am Ende übrig bleibt ist die Gier "
Top
Anon-E-moose
Watchman
Watchman
User avatar
Posts: 6566
Joined: Fri May 23, 2008 7:31 pm
Location: Dallas area

  • Quote

Post by Anon-E-moose » Mon Feb 06, 2023 12:38 am

If you don't apps to "full screen", then declare it as a floating window.

Code: Select all

windowrule = float, firefox
...
windowrule=workspace 10 silent, jamesdsp
windowrule=float, jamesdsp
windowrule=size 1600 950, jamesdsp
windowrule=move 1120 10, jamesdsp
The first sections, just tells hyprland to make firefox a floating window, that only takes part of workspace.

The second set, tells jamesdsp to start on workspace 10, be a floating window, use the size I say (only works on floaties) and move it to the x/y coordinates.

I start deadbeef (music player) the same way and have it on the bottom of the workspace.

The only thing I don't like is won't let me set a global "make all windows floats".
UM780 xtx, 6.18 zen kernel, gcc 15, openrc, wayland
minixforum m1-s1 max -- same software as above but used for ai learning


Zealots are gonna be zealots, just like haters are gonna be haters
Top
Post Reply

31 posts
  • 1
  • 2
  • Next

Return to “Desktop Environments”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic