this post was submitted on 23 Mar 2024
227 points (96.7% liked)

Linux

48397 readers
1098 users here now

From Wikipedia, the free encyclopedia

Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).

Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word "Linux" in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.

Rules

Related Communities

Community icon by Alpár-Etele Méder, licensed under CC BY 3.0

founded 5 years ago
MODERATORS
 

I've been on Wayland for the past two years exclusively (Nvidia).

I thought it was okay for the most part but then I had to switch to an X session recently. The experience felt about the same. Out of curiosity, I played a couple of games and realized they worked much better. Steam doesn't go nuts either.

Made me think maybe people aren't actually adopting it that aggressively despite the constant coverage in the community. And that maybe I should just go back.

you are viewing a single comment's thread
view the rest of the comments
[–] beerclue@lemmy.world 2 points 8 months ago (1 children)

I've been using Hyprland for about 2 years. I did have some issues with screen sharing (teams, discord) and some steam games (non native, with proton) need some extra launch parameters, but they all work now. Over time I was able to fix all the little issues. For me Hyprland is a daily driver, but I like to tinker. I can see how this is not for everyone.

[–] k2helix@lemmy.world 1 points 8 months ago (1 children)

May I ask how you solved the screen sharing problems? Also do you use keybinds for apps such as discord? When I tried Hyprland none of them were working.

[–] beerclue@lemmy.world 2 points 7 months ago

Hey, sorry for the late reply.

I remember installing xdg-desktop-portal-hyprland instead of xdg-desktop-portal, and in my hyprland config I have:

exec-once = dbus-update-activation-environment --systemd WAYLAND_DISPLAY XDG_CURRENT_DESKTOP
exec-once = systemctl --user import-environment WAYLAND_DISPLAY XDG_CURRENT_DESKTOP

I can't remember everything I tried... I didn't keep track. I've been using this setup for close to 3 years now...

I know that for Ferdium I used the extra params --ozone-platform=wayland --enable-features=UseOzonePlatform, but I think it doesn't need them anymore (I use it for Teams and other chat apps with screensharing).

For Discord I use Webcord, which works just fine, also with screen sharing, I didn't have to do anything.

When it comes to key bindings, here's my working setup:

# binds
$mainMod  = SUPER
$lock     = playerctl --player=mpd,firefox,mpv -a pause ; ~/.config/hypr/scripts/swaylock

bind = $mainMod,       Q, killactive,
bind = $mainMod SHIFT, Q, exit,
bind = $mainMod,       X, exec, $lock # lock

bind = $mainMod,       RETURN, exec, alacritty
bind = $mainMod SHIFT, RETURN, exec, alacritty -t scratchpad --class scratchpad
bind = $mainMod,       E,      exec, nemo
bind = $mainMod,       W,      exec, firefox
bind = $mainMod,       R,      exec, rofi -show drun --allow-images
bind = $mainMod SHIFT, E,      exec, wofi-emoji
bind = $mainMod,       P,      pseudo, # dwindle

bind = $mainMod SHIFT, Space, togglefloating,
bind = $mainMod,       F,     fullscreen, 1 # maximize window
bind = $mainMod SHIFT, F,     fullscreen, 0 # fullscreen

bind = $mainMod,       S, exec, grim -g "$(slurp)" - | wl-copy      # screenshot selection to clipboard
bind = $mainMod SHIFT, S, exec, grim -g "$(slurp)" - | swappy -f -  # screenshot selection and open in swappy
bind = $mainMod SHIFT, R, exec, wf-recorder -a -g "$(slurp)" -f "${HOME}/$(date +%Y-%m-%d_%H-%m-%s).mkv" -c h264_vaapi -d /dev/dri/renderD128 &>/dev/null           # screenrecord

bind  = ,XF86AudioMute,         exec, pactl set-sink-mute @DEFAULT_SINK@ toggle
binde = ,XF86AudioLowerVolume,  exec, pactl set-sink-volume @DEFAULT_SINK@ -2%
binde = ,XF86AudioRaiseVolume,  exec, pactl set-sink-volume @DEFAULT_SINK@ +2%
bind  = ,XF86AudioMicMute,      exec, pactl set-source-mute @DEFAULT_SOURCE@ toggle
binde = ,XF86MonBrightnessUp,   exec, light -A 5
binde = ,XF86MonBrightnessDown, exec, light -U 5

# resize windows
binde = $mainMod, left,  resizeactive, -40 0
binde = $mainMod, right, resizeactive, 40 0
binde = $mainMod, up,    resizeactive, 0 -40
binde = $mainMod, down,  resizeactive, 0 40

# move focus
bind = $mainMod, h, movefocus, l
bind = $mainMod, l, movefocus, r
bind = $mainMod, k, movefocus, u
bind = $mainMod, j, movefocus, d

# move windows
bind = $mainMod SHIFT, h, movewindow, l
bind = $mainMod SHIFT, l, movewindow, r
bind = $mainMod SHIFT, k, movewindow, u
bind = $mainMod SHIFT, j, movewindow, d

# switch workspaces
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 windows to workspace without switching (silent)
bind = $mainMod SHIFT, 1, movetoworkspacesilent,  1
bind = $mainMod SHIFT, 2, movetoworkspacesilent,  2
bind = $mainMod SHIFT, 3, movetoworkspacesilent,  3
bind = $mainMod SHIFT, 4, movetoworkspacesilent,  4
bind = $mainMod SHIFT, 5, movetoworkspacesilent,  5
bind = $mainMod SHIFT, 6, movetoworkspacesilent,  6
bind = $mainMod SHIFT, 7, movetoworkspacesilent,  7
bind = $mainMod SHIFT, 8, movetoworkspacesilent,  8
bind = $mainMod SHIFT, 9, movetoworkspacesilent,  9
bind = $mainMod SHIFT, 0, movetoworkspacesilent, 10

# move/resize windows with LMB/RMB
bindm = $mainMod, mouse:272, movewindow
bindm = $mainMod, mouse:273, resizewindow

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

# switch workspace with mouse back/fw buttons
bind = $mainMod, mouse:276, workspace, m+1
bind = $mainMod, mouse:275, workspace, m-1

bind = $mainMod SHIFT,up,focusmonitor,u
bind = $mainMod SHIFT,down,focusmonitor,d

binde = $mainMod, TAB, workspace, previous