mirror of
https://github.com/outbackdingo/hyprcosmic.git
synced 2026-08-25 14:53:21 +00:00
Keeping the imported theme in its own file, sourced from cosmic.conf, is what stops a re-import from clobbering the keybindings. But a sourced file only does anything if something sources it, and until now `import-theme --out` reported "Wrote ..." whether or not anything did -- which looks like success while the desktop stays exactly as it was. It now checks the sibling cosmic.conf and prints the line to add when the file is unreachable. The match is by filename and deliberately loose: it is looking for evidence the user already knows about the file, not parsing the config. The shipped template carries that `source` line commented out rather than live, because `source` naming a file that does not exist is a hard error, and a fresh checkout has no theme.conf yet. Copying the template and running `apply` has to work before any theme is imported.
43 lines
2.0 KiB
Plaintext
43 lines
2.0 KiB
Plaintext
# HyprCosmic configuration, in Hyprland's idiom.
|
|
#
|
|
# Compiled into COSMIC's config tree by `cosmic-conf apply`. The file wins:
|
|
# every key here overwrites whatever COSMIC's own settings UI last stored, so
|
|
# edit this rather than the GUI for anything it covers.
|
|
|
|
# --- Theme --------------------------------------------------------------
|
|
#
|
|
# `cosmic-conf import-theme <theme>/hypr.theme --out ~/.config/hyprcosmic/theme.conf`
|
|
# turns a HyDE theme into conf keys. Sourcing it rather than pasting it in
|
|
# keeps the two apart: re-importing overwrites theme.conf and cannot touch the
|
|
# keybindings below, and anything you want to override can simply be repeated
|
|
# later in this file, since the last assignment to a key wins.
|
|
#
|
|
# Commented out because a `source` pointing at a file that does not exist is a
|
|
# hard error, and no theme is imported yet. Uncomment it once you have run the
|
|
# command above -- import-theme will remind you.
|
|
#
|
|
# source = ~/.config/hyprcosmic/theme.conf
|
|
|
|
$mainMod = SUPER
|
|
|
|
# --- Launcher -----------------------------------------------------------
|
|
#
|
|
# The hyprcosmic profile does not start cosmic-launcher or cosmic-app-library,
|
|
# which leaves COSMIC's stock Super, Super+/ and Super+A bindings pointing at
|
|
# nothing. These take them over with rofi. Written to the Shortcuts `custom`
|
|
# key, which cosmic-comp merges over `defaults`, so the system file is not
|
|
# touched and reverting is a matter of deleting these lines and re-applying.
|
|
|
|
# Bare Super, exactly where stock COSMIC puts its launcher.
|
|
bind = $mainMod, , exec, rofi -show drun
|
|
bind = $mainMod, slash, exec, rofi -show drun
|
|
bind = $mainMod, A, exec, rofi -show drun
|
|
|
|
# Was System(WorkspaceOverview); cosmic-workspaces is not running either.
|
|
# rofi's window mode is the nearest thing that still shows every open window.
|
|
bind = $mainMod, W, exec, rofi -show window
|
|
|
|
# Terminal, in the Hyprland idiom. Super+T also still works — cosmic-comp
|
|
# handles System(Terminal) itself, so that binding never went dead.
|
|
bind = $mainMod, Return, exec, cosmic-term
|