Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 21 additions & 2 deletions dotfiles/.config/hypr/conf/autostart.lua
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,12 @@ hl.on("hyprland.start", function ()
-- Start polkit daemon
hl.exec_cmd("/usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1")

-- Ubuntu ships hyprpolkitagent instead (via packages-ubuntu), but its
-- unit is WantedBy=graphical-session.target, which Hyprland never
-- activates, so it has to be started explicitly. No-op on distros
-- where the unit doesn't exist.
hl.exec_cmd("systemctl --user start hyprpolkitagent.service 2>/dev/null || true")

-- Restore wallpaper (skip for quickshell — handled inside ml4w-autostart)
if wallpaper_app ~= "quickshell" then
hl.exec_cmd("~/.config/ml4w/scripts/ml4w-wallpaper-app --restore")
Expand All @@ -42,8 +48,21 @@ hl.on("hyprland.start", function ()
-- Load GTK settings
hl.exec_cmd("~/.config/hypr/scripts/gtk.sh")

-- Start swaync
hl.exec_cmd("swaync")
-- Start swaync -- except on Ubuntu, where it's deliberately left to
-- D-Bus activation instead (org.erikreider.swaync.cc). Confirmed
-- live there: an explicit exec-once here raced with D-Bus activation
-- itself (e.g. from waybar's own swaync-client notification-count
-- module firing around the same time) and lost with "An instance of
-- SwayNotificationCenter is already running!". That's tied to
-- Ubuntu's swaync.service packaging specifically
-- (WantedBy=graphical-session.target, unmasked so D-Bus activation
-- self-heals it) -- other distros' swaync packaging isn't known to
-- have that same setup, so keep the direct launch there. Checking
-- /etc/os-release's ID rather than /etc/debian_version, which also
-- matches Mint/Pop!_OS/other Debian derivatives that don't have this
-- Ubuntu-specific packaging and would otherwise never get swaync
-- started at all.
hl.exec_cmd("grep -q '^ID=ubuntu' /etc/os-release 2>/dev/null || swaync")

-- Start hypridle
hl.exec_cmd("hypridle")
Expand Down
4 changes: 4 additions & 0 deletions dotfiles/.config/matugen/config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,10 @@ input_path = '~/.config/matugen/templates/hyprland-colors.lua'
output_path = '~/.config/hypr/colors.lua'
post_hook = 'hyprctl reload'

[templates.hyprtoolkit]
input_path = '~/.config/matugen/templates/hyprtoolkit-colors.conf'
output_path = '~/.config/hypr/hyprtoolkit.conf'

[templates.waybar]
input_path = '~/.config/matugen/templates/colors.css'
output_path = '~/.config/waybar/colors.css'
Expand Down
15 changes: 15 additions & 0 deletions dotfiles/.config/matugen/templates/hyprtoolkit-colors.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
background = 0xff{{colors.surface_dim.default.hex_stripped}}
base = 0xff{{colors.surface_container.default.hex_stripped}}
text = 0xff{{colors.on_surface.default.hex_stripped}}
alternate_base = 0xff{{colors.surface_container_high.default.hex_stripped}}
bright_text = 0xff{{colors.inverse_on_surface.default.hex_stripped}}
link_text = 0xff{{colors.tertiary.default.hex_stripped}}
accent = 0xff{{colors.primary.default.hex_stripped}}
accent_secondary = 0xff{{colors.secondary.default.hex_stripped}}

# Static (not wallpaper-derived) -- libadwaita's own corner-radius
# convention: 12px for windows/cards, 9px for controls like buttons.
rounding_large = 12
rounding_small = 9
font_family = Ubuntu Sans

28 changes: 28 additions & 0 deletions setup/dependencies/packages-ubuntu
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
hyprland
hyprland-guiutils
hyprpolkitagent
hyprsunset
nwg-displays
sway-notification-center
fonts-font-awesome
tesseract-ocr
tesseract-ocr-eng
libsecret-1-0
libnotify-bin
network-manager-gnome
nm-connection-editor
power-profiles-daemon
gnome-themes-extra
gnome-themes-extra-data
gnome-themes-ubuntu
gvfs-backends
qml6-module-qt5compat-graphicaleffects
qml6-module-qt-labs-folderlistmodel
qml6-module-qtquick-effects
qml6-module-qtquick-shapes
qml6-module-qtquick-controls
qml6-module-qtquick-layouts
libgirepository-2.0-dev
lua5.4
imagemagick
pipx
Loading