diff --git a/.dotstate-profiles.toml b/.dotstate-profiles.toml index 02fe076..1eba525 100644 --- a/.dotstate-profiles.toml +++ b/.dotstate-profiles.toml @@ -7,6 +7,8 @@ synced_files = [] name = "default" synced_files = [ ".config/ghostty", + ".config/lazydocker", + ".config/lazygit", ".config/nano", ".config/nvim", ".config/starship.toml", diff --git a/default/.config/lazydocker/config.yml b/default/.config/lazydocker/config.yml new file mode 100644 index 0000000..d3d2538 --- /dev/null +++ b/default/.config/lazydocker/config.yml @@ -0,0 +1,69 @@ +gui: + scrollHeight: 5 + border: "rounded" + theme: + activeBorderColor: + - cyan + - bold + inactiveBorderColor: + - black + selectedLineBgColor: + - black + optionsTextColor: + - cyan + returnImmediately: false + wrapMainPanel: true + sidePanelWidth: 0.333 + showBottomLine: true + expandFocusedSidePanel: false + screenMode: "normal" + containerStatusHealthStyle: "short" + +logs: + timestamps: true + since: "60m" + tail: "200" + +commandTemplates: + dockerCompose: docker compose + restartService: "{{ .DockerCompose }} restart {{ .Service.Name }}" + up: "{{ .DockerCompose }} up -d" + down: "{{ .DockerCompose }} down" + downWithVolumes: "{{ .DockerCompose }} down --volumes" + upService: "{{ .DockerCompose }} up -d {{ .Service.Name }}" + startService: "{{ .DockerCompose }} start {{ .Service.Name }}" + stopService: "{{ .DockerCompose }} stop {{ .Service.Name }}" + serviceLogs: "{{ .DockerCompose }} logs --since=60m --follow {{ .Service.Name }}" + viewServiceLogs: "{{ .DockerCompose }} logs --follow {{ .Service.Name }}" + rebuildService: "{{ .DockerCompose }} up -d --build {{ .Service.Name }}" + recreateService: "{{ .DockerCompose }} up -d --force-recreate {{ .Service.Name }}" + allLogs: "{{ .DockerCompose }} logs --tail=300 --follow" + viewAlLogs: "{{ .DockerCompose }} logs" + dockerComposeConfig: "{{ .DockerCompose }} config" + checkDockerComposeConfig: "{{ .DockerCompose }} config --quiet" + serviceTop: "{{ .DockerCompose }} top {{ .Service.Name }}" + +customCommands: + containers: + - name: bash + attach: true + command: "docker exec -it {{ .Container.ID }} bash" + serviceNames: [] + - name: logs (100) + attach: false + command: "docker logs --tail 100 {{ .Container.ID }}" + serviceNames: [] + services: + - name: restart all + attach: false + command: "{{ .DockerCompose }} restart" + serviceNames: [] + +stats: + graphs: + - caption: CPU (%) + statPath: DerivedStats.CPUPercentage + color: blue + - caption: Memory (%) + statPath: DerivedStats.MemoryPercentage + color: green diff --git a/default/.config/lazygit/config.yml b/default/.config/lazygit/config.yml new file mode 100644 index 0000000..842e3bf --- /dev/null +++ b/default/.config/lazygit/config.yml @@ -0,0 +1,325 @@ +gui: + scrollHeight: 2 + scrollPastBottom: true + scrollOffMargin: 2 + scrollOffBehavior: margin + tabWidth: 4 + mouseEvents: true + sidePanelWidth: 0.3333 + expandFocusedSidePanel: false + mainPanelSplitMode: flexible + enlargedSideViewLocation: left + wrapLinesInStagingView: true + useHunkModeInStagingView: true + language: auto + timeFormat: "02 Jan 06" + shortTimeFormat: "3:04PM" + nerdFontsVersion: "3" + showFileIcons: true + showBranchCommitHash: false + showDivergenceFromBaseBranch: none + showCommandLog: true + showBottomLine: true + showPanelJumps: true + showFileTree: true + showRootItemInFileTree: true + fileTreeSortOrder: mixed + fileTreeSortCaseSensitive: true + showNumstatInFilesView: false + showRandomTip: true + filterMode: substring + border: rounded + screenMode: normal + animateExplosion: true + portraitMode: auto + skipAmendWarning: false + skipDiscardChangeWarning: false + skipStashWarning: false + skipNoStagedFilesWarning: false + skipRewordInEditorWarning: false + skipSwitchWorktreeOnCheckoutWarning: false + switchToFilesAfterStashPop: true + switchToFilesAfterStashApply: true + switchTabsWithPanelJumpKeys: false + commitLength: + show: true + sidePanels: + - [status] + - [files, worktrees, submodules] + - [branches, remotes, tags] + - [commits, reflog] + - [stash] + theme: + activeBorderColor: + - "#3fb950" + - bold + inactiveBorderColor: + - "#8b949e" + searchingActiveBorderColor: + - "#39d2c0" + - bold + optionsTextColor: + - "#58a6ff" + selectedLineBgColor: + - "#1c2128" + inactiveViewSelectedLineBgColor: + - "#21262d" + cherryPickedCommitFgColor: + - "#58a6ff" + cherryPickedCommitBgColor: + - "#161b22" + markedBaseCommitFgColor: + - "#bc8cff" + markedBaseCommitBgColor: + - "#d29922" + unstagedChangesColor: + - "#f85149" + defaultFgColor: + - "#c9d1d9" + authorColors: + "*": "#58a6ff" + branchColorPatterns: {} + customIcons: + filenames: {} + extensions: {} + spinner: + frames: ["|", "/", "-", "\\"] + rate: 50 + statusPanelView: dashboard + +git: + pagers: [] + commit: + signOff: false + autoWrapCommitMessage: true + autoWrapWidth: 72 + merging: + manualCommit: false + args: "" + squashMergeMessage: "Squash merge {{selectedRef}} into {{currentBranch}}" + mainBranches: [master, main] + skipHookPrefix: WIP + autoFetch: true + autoRefresh: true + autoDetectExternalChanges: true + autoForwardBranches: onlyMainBranches + fetchAll: true + autoStageResolvedConflicts: true + branchLogCmd: "git log --graph --color=always --abbrev-commit --decorate --date=relative --pretty=medium {{branchName}} --" + allBranchesLogCmds: + - "git log --graph --all --color=always --abbrev-commit --decorate --date=relative --pretty=medium" + ignoreWhitespaceInDiffView: false + diffContextSize: 3 + renameSimilarityThreshold: 50 + overrideGpg: false + disableForcePushing: false + commitPrefix: [] + commitPrefixes: {} + branchPrefix: "" + parseEmoji: false + log: + order: topo-order + showGraph: always + showWholeGraph: false + localBranchSortOrder: date + remoteBranchSortOrder: date + truncateCopiedCommitHashesTo: 12 + +worktree: + defaultPath: "" + +update: + method: prompt + days: 14 + +refresher: + refreshInterval: 10 + fetchInterval: 60 + externalChangeCheckInterval: 2 + +confirmOnQuit: false +quitOnTopLevelReturn: false + +os: + edit: "" + editAtLine: "" + editAtLineAndWait: "" + editInTerminal: false + openDirInEditor: "" + editPreset: "nano" + open: "" + openLink: "" + copyToClipboardCmd: "" + readFromClipboardCmd: "" + shellFunctionsFile: "" + +disableStartupPopups: false +customCommands: [] +services: {} +notARepository: prompt +promptToReturnFromSubprocess: true + +keybinding: + universal: + quit: [q, ] + suspendApp: + return: + quitWithoutChangingDirectory: Q + togglePanel: + prevItem: [, k] + nextItem: [, j] + prevPage: "," + nextPage: "." + scrollLeft: H + scrollRight: L + gotoTop: [<, ] + gotoBottom: [">", ] + toggleRangeSelect: v + rangeSelectDown: + rangeSelectUp: + prevBlock: [, h, ] + nextBlock: [, l, ] + jumpToBlock: ["1", "2", "3", "4", "5"] + focusMainView: "0" + nextMatch: "n" + prevMatch: "N" + startSearch: / + moveWordLeft: + moveWordRight: + backspaceWord: + forwardDeleteWord: + optionMenu: "?" + select: + goInto: + confirm: + confirmMenu: + confirmSuggestion: + confirmInEditor: [, ] + remove: d + new: "n" + newWorktree: w + edit: e + openFile: o + scrollUpMain: [, K, ] + scrollDownMain: [, J, ] + executeShellCommand: ":" + createRebaseOptionsMenu: m + pushFiles: P + pullFiles: p + refresh: R + createPatchOptionsMenu: + nextTab: "]" + prevTab: "[" + nextScreenMode: + + prevScreenMode: _ + cyclePagers: "|" + cyclePagersReverse: "\\" + undo: z + redo: Z + filteringMenu: + diffingMenu: [W, ] + copyToClipboard: + openRecentRepos: + submitEditorText: + extrasMenu: "@" + toggleWhitespaceInDiffView: + increaseContextInDiffView: "}" + decreaseContextInDiffView: "{" + increaseRenameSimilarityThreshold: ")" + decreaseRenameSimilarityThreshold: "(" + openDiffTool: + editConfig: + status: + checkForUpdate: u + recentRepos: + allBranchesLogGraph: a + allBranchesLogGraphReverse: A + files: + commitChanges: c + commitChangesWithoutHook: w + amendLastCommit: A + commitChangesWithEditor: C + findBaseCommitForFixup: + confirmDiscard: x + ignoreFile: i + refreshFiles: r + stashAllChanges: s + viewStashOptions: S + toggleStagedAll: a + viewResetOptions: D + fetch: f + toggleTreeView: "`" + openMergeOptions: M + openStatusFilter: + copyFileInfoToClipboard: "y" + collapseAll: "-" + expandAll: "=" + branches: + createPullRequest: o + viewPullRequestOptions: O + openPullRequestInBrowser: G + copyPullRequestURL: + checkoutBranchByName: c + forceCheckoutBranch: F + checkoutPreviousBranch: "-" + rebaseBranch: r + renameBranch: R + mergeIntoCurrentBranch: M + moveCommitsToNewBranch: "N" + viewGitFlowOptions: i + fastForward: f + createTag: T + pushTag: P + setUpstream: u + fetchRemote: f + addForkRemote: F + sortOrder: s + commits: + squashDown: s + renameCommit: r + renameCommitWithEditor: R + viewResetOptions: g + markCommitAsFixup: f + setFixupMessage: c + createFixupCommit: F + squashAboveCommits: S + moveDownCommit: [, ] + moveUpCommit: [, ] + amendToCommit: A + resetCommitAuthor: a + pickCommit: p + revertCommit: t + cherryPickCopy: C + pasteCommits: V + markCommitAsBaseForRebase: B + tagCommit: T + checkoutCommit: + resetCherryPick: + copyCommitAttributeToClipboard: "y" + openLogMenu: + openInBrowser: o + openPullRequestInBrowser: G + viewBisectOptions: b + startInteractiveRebase: i + selectCommitsOfCurrentBranch: "*" + amendAttribute: + resetAuthor: a + setAuthor: A + addCoAuthor: c + stash: + popStash: g + renameStash: r + commitFiles: + checkoutCommitFile: c + main: + prevHunk: [, h] + nextHunk: [, l] + toggleSelectHunk: a + pickBothHunks: b + editSelectHunk: E + submodules: + init: i + update: u + bulkMenu: b + commitMessage: + commitMenu: