50 lines
2.0 KiB
Lua
50 lines
2.0 KiB
Lua
-- HyprFlux — https://github.com/ahmad9059/HyprFlux
|
|
-- Commands and Apps to be executed at launch
|
|
-- Ported from UserConfigs/Startup_Apps.conf
|
|
-- See https://wiki.hypr.land/Configuring/Basics/Autostart/
|
|
|
|
local scriptsDir = os.getenv("HOME") .. "/.config/hypr/scripts"
|
|
|
|
hl.on("hyprland.start", function()
|
|
-- wallpaper stuff
|
|
hl.exec_cmd("awww-daemon --format xrgb")
|
|
-- hl.exec_cmd("mpvpaper '*' -o \"load-scripts=no no-audio --loop\" $livewallpaper")
|
|
|
|
-- Startup
|
|
hl.exec_cmd("dbus-update-activation-environment --systemd WAYLAND_DISPLAY XDG_CURRENT_DESKTOP")
|
|
hl.exec_cmd("systemctl --user import-environment WAYLAND_DISPLAY XDG_CURRENT_DESKTOP")
|
|
|
|
-- Polkit (Polkit Gnome / KDE)
|
|
hl.exec_cmd(scriptsDir .. "/Polkit.sh")
|
|
|
|
-- startup apps
|
|
hl.exec_cmd("nm-applet --indicator")
|
|
hl.exec_cmd("swaync")
|
|
-- hl.exec_cmd("ags")
|
|
-- hl.exec_cmd("blueman-applet")
|
|
-- hl.exec_cmd("rog-control-center")
|
|
hl.exec_cmd("waybar")
|
|
hl.exec_cmd("qs") -- quickshell AGS Desktop Overview alternative
|
|
|
|
-- clipboard manager
|
|
hl.exec_cmd("wl-paste --type text --watch cliphist store")
|
|
hl.exec_cmd("wl-paste --type image --watch cliphist store")
|
|
|
|
-- Starting hypridle to start hyprlock
|
|
hl.exec_cmd("hypridle")
|
|
|
|
hl.dispatch(hl.dsp.focus({ workspace = 3 }))
|
|
|
|
-- NOTE: the trailing "&&" here is a stray leftover from the original .conf (dangling, does nothing) — ported as-is
|
|
hl.exec_cmd("/usr/bin/Plexamp.AppImage &&")
|
|
hl.exec_cmd("sleep 3 && vesktop")
|
|
hl.dispatch(hl.dsp.focus({ workspace = 1 }))
|
|
hl.exec_cmd("bitwarden-desktop --ozone-platform-hint=auto --silent")
|
|
|
|
-- Here are a list of features available but disabled by default
|
|
-- hl.exec_cmd("awww-daemon --format xrgb && awww img " .. os.getenv("HOME") .. "/Pictures/wallpapers/mecha-nostalgia.png") -- persistent wallpaper
|
|
|
|
-- xdg-desktop-portal-hyprland (should be auto starting. However, you can force to start)
|
|
-- hl.exec_cmd(scriptsDir .. "/PortalHyprland.sh")
|
|
end)
|