Fix hyprland, monitor management and waybar after lua switch
This commit is contained in:
@@ -67,7 +67,8 @@ hl.bind(mainMod .. " + D", hl.dsp.exec_cmd("rofi -show drun"))
|
||||
hl.bind(mainMod .. " + L", hl.dsp.exec_cmd("hyprlock"))
|
||||
hl.bind(mainMod .. " + V", hl.dsp.exec_cmd("cliphist list | rofi -dmenu | cliphist decode | wl-copy"))
|
||||
hl.bind(mainMod .. " + W", hl.dsp.exec_cmd("thunar"))
|
||||
hl.bind(mainMod .. " + P", hl.dsp.exec_cmd("~/scripts/display-manager.sh"))
|
||||
hl.bind(mainMod .. " + SHIFT + P", hl.dsp.exec_cmd("/home/lucas/.config/hyprdynamicmonitors/scripts/display-manager.sh"))
|
||||
hl.bind(mainMod .. " + P", hl.dsp.exec_cmd("/home/lucas/.config/hyprdynamicmonitors/scripts/display-toggle.sh"))
|
||||
|
||||
-- Gestion des fenêtres
|
||||
hl.bind(mainMod .. " + Q", hl.dsp.window.close())
|
||||
@@ -161,27 +162,5 @@ hl.config({
|
||||
|
||||
-- === DÉMARRAGE AUTOMATIQUE (exec-once) ===
|
||||
hl.on("hyprland.start", function()
|
||||
hl.exec_cmd("/home/lucas/scripts/hdm-config-select.sh")
|
||||
hl.exec_cmd(
|
||||
"bash -c 'while [ $(hyprctl monitors | grep -c \"Monitor\") -lt 2 ]; do sleep 1; done; hyprdynamicmonitors'"
|
||||
)
|
||||
hl.exec_cmd("waybar")
|
||||
hl.exec_cmd("mako")
|
||||
hl.exec_cmd("~/scripts/hypridle-launch")
|
||||
hl.exec_cmd("nm-applet --indicator")
|
||||
hl.exec_cmd("blueman-applet")
|
||||
hl.exec_cmd("kdeconnectd")
|
||||
hl.exec_cmd("xdg-user-dirs-update")
|
||||
hl.exec_cmd("xapp-sn-watcher")
|
||||
hl.exec_cmd("/usr/lib/polkit-kde-authentication-agent-1")
|
||||
hl.exec_cmd("wl-paste --type text --watch cliphist store")
|
||||
hl.exec_cmd("wl-paste --type image --watch cliphist store")
|
||||
hl.exec_cmd("~/.config/hypr/scripts/wallpaper.sh")
|
||||
hl.exec_cmd("gsettings set org.gnome.desktop.interface color-scheme 'prefer-dark'")
|
||||
hl.exec_cmd("gsettings set org.gnome.desktop.interface gtk-theme 'Adwaita-dark'")
|
||||
hl.exec_cmd("dbus-update-activation-environment --systemd WAYLAND_DISPLAY XDG_CURRENT_DESKTOP=Hyprland")
|
||||
hl.exec_cmd("/usr/lib/xdg-desktop-portal-hyprland")
|
||||
-- Les portails avec délai
|
||||
hl.exec_cmd("sleep 1 && /usr/lib/xdg-desktop-portal-gtk")
|
||||
hl.exec_cmd("sleep 2 && /usr/lib/xdg-desktop-portal -r")
|
||||
end)
|
||||
hl.exec_cmd("~/.config/hypr/scripts/autostart.sh")
|
||||
end)
|
||||
|
||||
Reference in New Issue
Block a user