hm: hypr autostart

This commit is contained in:
2026-10-02 14:57:24 +02:00
parent e024157275
commit 0aad7f9f33
2 changed files with 25 additions and 28 deletions

View File

@@ -1,33 +1,5 @@
{ lib, pkgs, ... }:
#----------------------------------------Autostart----------------------------------------
# hl.on("hyprland.start", function()
# -- plugins
# hl.exec_cmd("hyprpm reload")
#
# -- run kanshi for output placement (also starts up bg and waybar)
# hl.exec_cmd("kanshi")
#
# -- notification manager
# hl.exec_cmd("dunst")
#
# -- start a terminal in the scratchpad
# hl.exec_cmd("kitty --class scratchme -d ~/Documents/diary")
#
# -- run flameshot daemon
# hl.exec_cmd("nohup flameshot")
#
# -- cursor theme
# hl.exec_cmd("hyprctl setcursor Catppuccin-Macchiato-Dark-Cursors 24")
#
# -- opencloud
# hl.exec_cmd("opencloud")
#
# -- openrgb
# hl.exec_cmd("type openrgb &> /dev/null && openrgb --noautoconnect -p aroace.orp > /dev/null")
# end)
#
let
hyprLib = import ../../lib/hypr.nix { inherit lib; };
@@ -78,6 +50,20 @@ in
portalPackage = null;
settings = {
on = [ #TODO: set up exec oncess
(hyprLib.on-signal "hyprland.start" [
# "uwsm app -- /home/djai/AppImages/opencloud.appimage" # TODO: get opencloud
"uwsm app -- openrgb --noautoconnect -p aroace.orp"
"uwsm app -- kitty --class scratchme -d /home/djai/Documents/diary"
# these should be done thru systemd already
# hl.exec_cmd("nohup flameshot")
# hl.exec_cmd("hyprpm reload")
# hl.exec_cmd("kanshi")
# hl.exec_cmd("dunst")
# hl.exec_cmd("hyprctl setcursor Catppuccin-Macchiato-Dark-Cursors 24")
])
];
config = {
general = {
gaps_in = 5;