Files
linux-provisioning/config/cosmic/custom-shortcuts.ron
Julian Prester 2ca9a2bdef Fix script file permissions (644 → 755 for executables)
All shell scripts and config files should be executable (755)
for direct invocation. No content changes.
2026-06-07 14:34:51 +10:00

89 lines
2.5 KiB
Plaintext
Executable File

// =============================================================================
// COSMIC Desktop — Custom Shortcuts (RON format)
// File location: ~/.config/cosmic/com.system76.CosmicSettings.Shortcuts/v1/custom
// This is the keybinding config from the Pop!_OS machine.
// =============================================================================
// COSMIC is System76's Rust-based desktop environment (not shipped on Fedora).
// This file is FOR REFERENCE only — translate to your target DE:
//
// GNOME: Use gsettings (see stage 09-desktop.sh)
// KDE: Use kwriteconfig5 or System Settings
// Sway/Hypr: Use sway config or hyprland.conf
// swhkd: Use ~/.config/swhkd/swhkdrc
//
// The hotkey scripts (google.sh, scholar.sh, etc.) work on any DE/WM that
// supports Wayland. They use wl-clipboard, wofi, and xdg-open.
// =============================================================================
{
// ---- Text selection searches ----
// Select text anywhere, press shortcut → action with selected text
(
modifiers: [ Ctrl, Alt ],
key: "e",
description: Some("Emoji"),
): Spawn("/home/julian/Development/hotkeys/emoji.sh"),
(
modifiers: [ Ctrl, Alt ],
key: "o",
description: Some("PDF"),
): Spawn("/home/julian/Development/hotkeys/pdf.sh"),
(
modifiers: [ Ctrl, Alt ],
key: "a",
description: Some("Hotstrings"),
): Spawn("/home/julian/Development/hotkeys/hotstrings.sh"),
(
modifiers: [ Ctrl, Alt ],
key: "d",
description: Some("Dictionary"),
): Spawn("/home/julian/Development/hotkeys/dictionary.sh"),
(
modifiers: [ Ctrl, Alt ],
key: "g",
description: Some("Google"),
): Spawn("/home/julian/Development/hotkeys/google.sh"),
(
modifiers: [ Ctrl, Alt ],
key: "s",
description: Some("Scholar"),
): Spawn("/home/julian/Development/hotkeys/scholar.sh"),
// ---- Window management ----
(
modifiers: [ Super ],
key: "n",
): Minimize,
(
modifiers: [ Super ],
key: "Escape",
): Close,
(
modifiers: [ Super, Shift ],
key: "Escape",
): Disable,
(
modifiers: [ Super ],
key: "q",
): Disable,
// ---- System actions ----
(
modifiers: [ Super ],
key: "l",
): System(LockScreen),
(
modifiers: [ Super, Shift ],
key: "l",
): System(LogOut),
}