Skip to content

Instantly share code, notes, and snippets.

View alextorma's full-sized avatar
😺

Torma alextorma

😺
  • New York
  • 04:14 - 4h behind
View GitHub Profile
@alextorma
alextorma / git.sh
Created March 24, 2025 04:16
Git (lazy) Wrapper
#! /usr/bin/env bash
git() {
local git_cmd="/usr/bin/git"
local clean_args=()
# Loop through all arguments
for arg in "$@"; do
if [[ "$arg" == "lazy" ]]; then
git_cmd="lazygit"
@alextorma
alextorma / MacOptionSymbols.json
Created March 6, 2025 19:31
Mac Option+Key => Symbol Mapping
{
"macOptionSymbolMap": {
"Backquote": {
"unshifted": { "symbol": "Dead", "key": "`" },
"shifted": { "symbol": "`", "key": "~" }
},
"Digit1": {
"unshifted": { "symbol": "¡", "key": "1" },
"shifted": { "symbol": "", "key": "!" }
},
@alextorma
alextorma / zellij_zsh_session_name_completion.patch
Created February 11, 2025 21:13
Zellij ZSH Tab Completion Session Name Patch
--- comp.zsh 2025-02-10 22:36:57
+++ session_completion.zsh 2025-02-11 16:11:57
@@ -2,6 +2,17 @@
autoload -U is-at-least
+_zellij_sessions() {
+ local line sessions desc; sessions=("${(@f)$(zellij ls -n)}")
+ local -a session_names_with_desc
+ for line in "${sessions[@]}"; do
@alextorma
alextorma / LockScreenUi.patch
Last active December 25, 2024 03:48
KDE Plasma 6 24-hr Clock on Lockscreen
--- /usr/share/plasma/look-and-feel/org.kde.breeze.desktop/contents/lockscreen/LockScreenUi.qml.original 2024-08-27 03:48:33.088548792 -0400
+++ /usr/share/plasma/look-and-feel/org.kde.breeze.desktop/contents/lockscreen/LockScreenUi.qml 2024-08-27 10:50:45.599963229 -0400
@@ -224,6 +224,13 @@
anchors.horizontalCenter: parent.horizontalCenter
y: (mainBlock.userList.y + mainStack.y)/2 - height/2
Layout.alignment: Qt.AlignBaseline
+ Component.onCompleted: {
+ function updateClockString() {
+ clock.children[0].text = Qt.formatTime(clock.data[0].data["Local"]["DateTime"], 'hh:mm:ss');
+ }