Arch Linux Hyprland X11 uygulamaları çalışmıyor

mrlinuxpower

Zeptopat
Katılım
13 Kasım 2024
Mesajlar
30
Daha fazla  
Cinsiyet
Erkek
En baştan anlatmam gerekirse, şifre girme doğrulama ekranı geliyor uygulamayı açınca. Burada şifremi giriyorum ama uygulama açılmıyor. Birçok uygulamada denedim, aynı sorun mevcut. Hyprpolkitagent, kdepolkit ve xfcepolkit denedim, config dosyamı ona göre düzenledim ama yine aynı sonucu aldım, çalışmadı. Xwayland indirdim, yine aynı. Belki yardımcı olur diye 'journalctl -xe | grep hyprpolkitagent' çıktısı aşağıda.
Kod:
❯ journalctl -xe | grep hyprpolkitagent
Kas 13 00:04:53 myoffice dbus-broker-launch[657]: Missing 'D-Bus Service' section in service file '/usr/share//dbus-1/services/hyprpolkitagent.service'
Kas 13 00:04:53 myoffice hyprpolkitagent[707]: New PolkitAgentListener  0x5f54b29b0680
Kas 13 00:04:53 myoffice hyprpolkitagent[707]: Adding new listener  PolkitQt1::Agent::Listener(0x5f54b29afc90) for  0x5f54b29b0680
Kas 13 00:04:57 myoffice hyprpolkitagent[707]: Listener adapter polkit_qt_listener_initiate_authentication
Kas 13 00:04:57 myoffice hyprpolkitagent[707]: GSimpleAsyncResult: 0x5f54b29c5290
Kas 13 00:04:57 myoffice hyprpolkitagent[707]: polkit_qt_listener_initiate_authentication callback for  0x5f54b29b0680
Kas 13 00:04:57 myoffice hyprpolkitagent[707]: qrc:/qt/qml/hpa/qml/main.qml:106:17: QML Connections: Implicitly defined onFoo properties in Connections are deprecated. Use this syntax instead: function onFoo(<arguments>) { ... }
Kas 13 00:04:57 myoffice hyprpolkitagent[707]: qrc:/qt/qml/hpa/qml/main.qml:81:17: QML Connections: Implicitly defined onFoo properties in Connections are deprecated. Use this syntax instead: function onFoo(<arguments>) { ... }
Kas 13 00:04:57 myoffice hyprpolkitagent[707]: REQUEST
Kas 13 00:04:59 myoffice hyprpolkitagent[707]: COMPLETED
Kas 13 00:04:59 myoffice hyprpolkitagent[707]: Listener adapter polkit_qt_listener_initiate_authentication_finish
Kas 13 00:04:59 myoffice hyprpolkitagent[707]: polkit_qt_listener_initiate_authentication_finish callback for  0x5f54b29b0680

@Bayram Tempest
 
Hyprland config dosyanın içeriğini kod içerisinde yapıştırır mısın buraya?
Kod:
#
# Please note not all available settings / options are set here.
# For a full list, see the wiki
#

monitor=,preferred,auto,auto

# Slow app launch fix
exec-once = systemctl --user import-environment &
exec-once = hash dbus-update-activation-environment 2>/dev/null &
exec-once = dbus-update-activation-environment --systemd &
#exec-once = xdg-desktop-portal-hyprland &

# ## Idle configuration
#
exec-once = swayidle -w timeout 300 'swaylock -f -c 000000' before-sleep 'swaylock -f -c 000000'

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

# ## Input configuration
#
input {
    #kb_layout = us,ru
    kb_layout = tr
    kb_variant =
    kb_model =
    #kb_options = grp:caps_toggle,grp_led:caps,altwin:swap_alt_win,ctrl:rctrl_ralt
    kb_options =
    kb_rules =

    follow_mouse = 2 # 0|1|2|3
    float_switch_override_focus = 2

    touchpad {
        natural_scroll = no
    }

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

general {
    gaps_in = 3
    gaps_out = 5
    border_size = 3
    col.active_border = rgba(ff5e81ac)
    #col.inactive_border = rgba(66333333)
    col.inactive_border = rgba(595959aa)

    layout = dwindle # master|dwindle

}

decoration {
    active_opacity = 0.98
    inactive_opacity = 1.0
    fullscreen_opacity = 1.0

    rounding = 4
    blur {
        enabled = true
        size = 15
        passes = 2 # more passes = more resource intensive.
        new_optimizations = true
        xray = true
        ignore_opacity = false
    }


}

# Blur for waybar
#blurls = waybar

animations {
    enabled = yes

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

    #bezier = myBezier, 0.05, 0.9, 0.1, 1.05

    bezier = overshot, 0.13, 0.99, 0.29, 1.1
    animation = windows, 1, 4, overshot, slide
    animation = windowsOut, 1, 5, default, popin 80%
    animation = border, 1, 5, default
    animation = fade, 1, 8, default
    animation = workspaces, 1, 6, overshot, slide

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

# See https://wiki.hyprland.org/Configuring/Dwindle-Layout/ for more
dwindle {
    force_split = 0
    special_scale_factor = 0.8
    split_width_multiplier = 1.0
    use_active_for_splits = true
    pseudotile = yes # master switch for pseudotiling. Enabling is bound to mainMod + P in the keybinds section below
    preserve_split = yes
}

# See https://wiki.hyprland.org/Configuring/Master-Layout/ for more
master {
    new_status = master
    special_scale_factor = 0.8
}

misc {
    #disable_autoreload = true
    disable_hyprland_logo = true
    always_follow_on_dnd = true
    layers_hog_keyboard_focus = true
    animate_manual_resizes = false
    enable_swallow = true
    swallow_regex =
    focus_on_activate = true
    vfr = 1
}

gestures {
     workspace_swipe = true
     workspace_swipe_fingers = 4
     workspace_swipe_distance = 250
     workspace_swipe_invert = true
     workspace_swipe_min_speed_to_force = 15
     workspace_swipe_cancel_ratio = 0.5
     workspace_swipe_create_new = false
}

device {
    name = epic-mouse-v1
    sensitivity = -0.5
}

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

#benim tuşlarım
bind = $mainMod, T, exec, tilix
bind = $mainMod, K, killactive,
bind = $mainMod, A, exec, wofi --show drun
bind = $mainMod, Z, exec, flatpak run io.github.zen_browser.zen
bind = $mainMod, F, exec, pcmanfm
bind = $mainMod, B, exec, blueman-manager
bind = $mainMod, V, exec, pavucontrol
bind = $mainMod, F11, fullscreen
bind = $mainMod S, 1, exec, hyprshot -m window
bind = $mainMod S, 2, exec, hyprshot -m region
bind = $mainMod, P, exec, hyprpicker -a


# Example binds, see https://wiki.hyprland.org/Configuring/Binds/ for more
#bind = $mainMod, A, exec, grim -g "$(slurp)" - | swappy -f -
bind = $mainMod SHIFT, M, exit,
#bind = $mainMod, V, togglefloating,
bind = CTRL, SPACE, exec, rofi -show combi -modi window,run,combi -combi-modi window,run
bind = CTRL, SPACE, exec, wofi
#bind = $mainMod, F, fullscreen
bind = $mainMod, Y, pin
#bind = $mainMod, P, pseudo, # dwindle
bind = $mainMod, J, togglesplit, # dwindle

#bind = $mainMod, K, togglegroup,
#bind = $mainMod, Tab, changegroupactive, f

bind = $mainMod SHIFT, G,exec,hyprctl --batch "keyword general:gaps_out 5;keyword general:gaps_in 3"
bind = $mainMod , G,exec,hyprctl --batch "keyword general:gaps_out 0;keyword general:gaps_in 0"

# Volume control

bind=,XF86AudioLowerVolume,exec,pamixer -ud 3 && pamixer --get-volume > /tmp/$HYPRLAND_INSTANCE_SIGNATURE.wob
bind=,XF86AudioRaiseVolume,exec,pamixer -ui 3 && pamixer --get-volume > /tmp/$HYPRLAND_INSTANCE_SIGNATURE.wob
# mute sound
bind=,XF86AudioMute,exec,amixer sset Master toggle | sed -En '/\[on\]/ s/.*\[([0-9]+)%\].*/\1/ p; /\[off\]/ s/.*/0/p' | head -1 > /tmp/$HYPRLAND_INSTANCE_SIGNATURE.wob

# Playback control

bind=,XF86AudioPlay,exec, playerctl play-pause
bind=,XF86AudioNext,exec, playerctl next
bind=,XF86AudioPrev,exec, playerctl previous

# Screen brightness
bind = , XF86MonBrightnessUp, exec, brightnessctl s +5%
bind = , XF86MonBrightnessDown, exec, brightnessctl s 5%-

bind = $mainMod SHIFT, P, exec, gnome-calculator
bind = $mainMod, L, exec, swaylock-fancy -e -K -p 10 -f Hack-Regular
#bind = $mainMod, P, exec, ~/.scripts/dmshot

bind = $mainMod, O, exec, killall -SIGUSR2 waybar

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

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

bind = $mainMod, minus, movetoworkspace,special
bind = $mainMod, equal, togglespecialworkspace

bind = $mainMod SHIFT,left ,movewindow, l
bind = $mainMod SHIFT,right ,movewindow, r
bind = $mainMod SHIFT,up ,movewindow, u
bind = $mainMod SHIFT,down ,movewindow, d

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

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

binds {
     workspace_back_and_forth = 1
     allow_workspace_cycles = 1
}
bind = $mainMod,slash,workspace,previous

bind = $mainMod,R,submap,resize
submap = resize
binde =,right,resizeactive,15 0
binde =,left,resizeactive,-15 0
binde =,up,resizeactive,0 -15
binde =,down,resizeactive,0 15
binde =,l,resizeactive,15 0
binde =,h,resizeactive,-15 0
binde =,k,resizeactive,0 -15
binde =,j,resizeactive,0 15
bind =,escape,submap,reset
submap = reset

bind=CTRL SHIFT, left, resizeactive,-15 0
bind=CTRL SHIFT, right, resizeactive,15 0
bind=CTRL SHIFT, up, resizeactive,0 -15
bind=CTRL SHIFT, down, resizeactive,0 15
bind=CTRL SHIFT, l, resizeactive, 15 0
bind=CTRL SHIFT, h, resizeactive,-15 0
bind=CTRL SHIFT, k, resizeactive, 0 -15
bind=CTRL SHIFT, j, resizeactive, 0 15

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

#exec-once = alacritty
#exec-once = telegram-desktop
#exec-once = armcord
exec-once = swaybg -o \* -i /usr/share/wallpapers/cachyos-wallpapers/purple.jpg -m fill
#------------#
# auto start #
#------------#
exec-once = waybar -c .config/waybar/config-hypr &
exec-once = fcitx5 -d &
exec-once = mako &
exec-once = nm-applet --indicator &
exec-once = bash -c "mkfifo /tmp/$HYPRLAND_INSTANCE_SIGNATURE.wob && tail -f /tmp/$HYPRLAND_INSTANCE_SIGNATURE.wob | wob & disown" &
exec-once = /usr/lib/polkit-kde-authentication-agent-1 &

# 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:^(xdg-desktop-portal-gtk)$
windowrulev2 = float,class:^(xdg-desktop-portal-kde)$
windowrulev2 = float,class:^(xdg-desktop-portal-hyprland)$
#windowrulev2 = float,class:^(org.kde.polkit-kde-authentication-agent-1)$
windowrulev2 = float,class:^(CachyOSHello)$
windowrulev2 = float,class:^(zenity)$
windowrulev2 = float,class:^()$,title:^(Steam - Self Updater)$

# Increase the opacity
windowrule=opacity 0.92,Thunar
windowrule=opacity 0.92,Nautilus
windowrule=opacity 0.96,discord
windowrule=opacity 0.96,armcord
windowrule=opacity 0.96,webcord


#---------------#
# windows rules #
#---------------#
#`hyprctl clients` get class、title...
windowrule=float,title:^(Picture-in-Picture)$
windowrule=size 960 540,title:^(Picture-in-Picture)$
windowrule=move 25%-,title:^(Picture-in-Picture)$
windowrule=float,imv
windowrule=move 25%-,imv
windowrule=size 960 540,imv
windowrule=float,mpv
windowrule=move 25%-,mpv
windowrule=size 960 540,mpv
windowrule=float,danmufloat
windowrule=move 25%-,danmufloat
windowrule=pin,danmufloat
windowrule=rounding 5,danmufloat
windowrule=size 960 540,danmufloat
windowrule=float,termfloat
windowrule=move 25%-,termfloat
windowrule=size 960 540,termfloat
windowrule=rounding 5,termfloat
windowrule=float,nemo
windowrule=move 25%-,nemo
windowrule=size 960 540,nemo
windowrule=opacity 0.95,title:Telegram
windowrule=opacity 0.95,title:QQ
windowrule=opacity 0.95,title:NetEase Cloud Music Gtk4
windowrule=animation slide right,kitty
windowrule=animation slide right,alacritty
windowrule=float,ncmpcpp
windowrule=move 25%-,ncmpcpp
windowrule=size 960 540,ncmpcpp
windowrule=noblur,^(firefox)$
windowrule=noblur,^(waybar)$

#benim diğer kodlarım
exec-once=systemctl --user import-environment WAYLAND_DISPLAY XDG_CURRENT_DESKTOP QT_PRA_PLATFORMTHEME
exec-once = waybar
exec-once = mako

kde-polkit sondaydı ama normalde zaten eklenmiş bende diğerini kaldırdım.

KDE-polkit ile Xfcepolkit çakışıyor diye düşündüğüm için KDE-polkit ile alakalı kodları ve Hyprpolkit ile alakalı kodların başına # koymuştum. Birinde kalmış o, ama düzenledim, tekrar denedim, gene aynı. Bu çakışma olayını Xfce'de denemiştim, polkit olarak onda hata veriyordu. O hata sorunu çözüldü ama gene aynı; şifreyi girince açmadı.
 
Son düzenleme:
Exec-once kısmında xdg desktop portal hyprland olanın # işaretini sil. Polkit kde'yi confige exec-once = /usr/lib/polkit-kde-authentication-agent-1 satırını ekle.

Ayrıca şu satırları da eklemelisin:
Kod:
env = GDK_BACKEND,wayland;x11
env = XDG_SESSION_TYPE,wayland
 
Hocam kahvaltı yapıyorum 10 dakikadan bakacağım teşekkür ederim.

Hocam, dediklerinizi yaptım ama Waybar gitti. Bir de birkaç uygulama çalışmıyor; Tilix, Blueman-Manager, sublime-text falan ama zen browser pcmanfm falan çalışıyor.

Kod:
env = GDK_BACKEND,wayland;x11
env = XDG_SESSION_TYPE,wayland
Bu satırlar nedense bazı uygulamaları bozdu rofi falanda bozulmuştu.
 
Son düzenleme:
Kaldırabilirsiniz o zaman hocam. Aklıma başka öneri gelmiyor ne yazık ki.
 
Son düzenleme:
Açıkçası, sadece Timeshift için lazım. Timeshift'e tam root yetkisi verip ya da şifreyi atlamasını sağlayabilir miyim?


Tamamen sıfır bir hyprland config oluştursam sorun çözülür mü?
Denemeden bilemeyiz eğer o şekilde çözülürse configte sorun varmış demektir. Sen her ihtimale karşı şimdiki configini yedekle.
 
Denemeden bilemeyiz eğer o şekilde çözülürse configte sorun varmış demektir. Sen her ihtimale karşı şimdiki configini yedekle.
Hocam garip şekilde bir açıldı ama sonra tekrar açılmamaya başladı.

Denemeden bilemeyiz eğer o şekilde çözülürse configte sorun varmış demektir. Sen her ihtimale karşı şimdiki configini yedekle.
Şu anda açıyor, mesela ya yeni config dosyası ile alakalı ya da xhost. Denedim, xhost + timeshift yazdım, açtım, açıldı. Ama öyle olsa, neden ilk açtığımda açmadı?

Denemeden bilemeyiz eğer o şekilde çözülürse configte sorun varmış demektir. Sen her ihtimale karşı şimdiki configini yedekle.
config ile ilgili diğer sıkıntı şu bu configi kaydedip yeniden başlatınca eski configi işliyor tekrar.

config ile alakalı değilmiş ben yanlışlıkla yedeği yapmışım sanırım xhost sayesinde çalışıyor xhost tehlikeli diyordu başka bir yerde xhost kullansam sıkıntı olur mu?

@Bayram Tempest hocam, bir çözüm buldum ama ne kadar sağlıklı olduğunu sormak istiyorum. xorg-xauth yazılımını indirdim, xauth generate $DISPLAY . trusted kodu ile sanırım dosyasını oluşturdum ve xauth add $DISPLAY=:1 . $(mcookie) kodu ile display 1'e yetki verdim, sanırım. Ama merak ettiğim şu: Bu, olası bir virüsün sisteme girmesi için kapı aralar mı? Buna çözüm olarak yalnızca X11 uygulamalarını display 1 ile açsam, diğerleri display 0'da kalsa, sorun çözülür mü?
 
Son düzenleme:
config ile alakalı değilmiş ben yanlışlıkla yedeği yapmışım sanırım xhost sayesinde çalışıyor xhost tehlikeli diyordu başka bir yerde xhost kullansam sıkıntı olur mu?
Xhost tehlikeli değil, yanlış bir yapılandırmaya sahipsen hackerların ekranına erişebilmesine kapı aralar ancak yapılandırman doğru ise sorun olmaz.
 
Xhost tehlikeli değil, yanlış bir yapılandırmaya sahipsen hackerların ekranına erişebilmesine kapı aralar ancak yapılandırman doğru ise sorun olmaz.
Hocam, o son xorg-xauth sistemimi bozdu. Çok işlem yaptığım için PC'ye format atıp tekrar kurayım en iyisi. xhost en mantıklısı gibi ama nasıl yapılandırma yapacağımı bilmiyorum. Ayrıca, her açılışta xhost'un açılmasını istiyorum nasıl yaparım?
 
Hyprland configi otomatik başlatma için en güzel seçenek.

Ek olarak:

Virüse kapı aralamak diye bir şey yoktur. Virüs bulaşması kolaylaşmaz. Virüs sisteme girerse işlem yapmasını kolaylaştırır. Yani virüs yemezsen bir sorun oluşmaz.
 
Bu siteyi kullanmak için çerezler gereklidir. Siteyi kullanmaya devam etmek için çerezleri kabul etmelisiniz. Daha Fazlasını Öğren.…