Skip to content

Instantly share code, notes, and snippets.

View qrxnz's full-sized avatar
馃惐
check skills & determination

Karol Skoczyk qrxnz

馃惐
check skills & determination
View GitHub Profile
@qrxnz
qrxnz / tmux.conf
Created September 24, 2025 13:04 — forked from RatoX/tmux.conf
Integrate TMUX with Google Calendar using gcalcli
# First you need to install gcalcli please go to https://github.com/insanum/gcalcli
wg_next_event="#(gcalcli --military --nostarted agenda --nocolor | cut -d ' ' -f 2- | head -2 | tail -1 | cut -c1-40)"
set -g status-right "#[fg=colour15,bg=colour237,bold]馃搮 $wg_next_event"
@qrxnz
qrxnz / a_help-osx-borked-my-nix.md
Created August 8, 2025 19:21 — forked from meeech/a_help-osx-borked-my-nix.md
Some steps to (hopefully) help you fix your Nix install on OS X after an upgrade.

Apple Borked my Nix!

Ok, so you've had nix (home-manager) working fine. Then Apple tells you it's time to update.

Ok. Reboot. Oops. It has now broken your Nix setup. Here's some stuff to work through. YMMV.

Note: This is what worked for me, who was just using nix + home-manager. The upgrade that I last did that caused all these issues was 12.3.X > 12.4

Useful Links

@qrxnz
qrxnz / nix-macos.md
Created August 8, 2025 18:59 — forked from ykomatsu/nix-macos.md
Installing Nix on macOS in single-user mode
# Syntax
nix run github:<owner>/<repo>/<revision>#<executable>
# Examples
## Specific commit ID
nix run github:DeterminateSystems/riff/a71a8b5ddf680df5db8cc17fa7fddd393ee39ffe
## Tag
@qrxnz
qrxnz / hyprland-monitor-toggle.sh
Created October 2, 2024 21:00
A hyprland script for a laptop-external-monitor setup, toggling between which is in use
#! /usr/bin/env sh
# A hyprland script for a laptop-external-monitor setup, toggling between which is in use
# Launch at startup to make hyprland disable the internal monitor if an external monitor is detected and enabled
# Additionally it's called with a keybind to switch between a laptop monitor and an external display
# Ideally the conditional monitor behaviour was instead done directly in hyprland.conf, but I'm not sure whether that's possible
#
# Relevant info:
# - hyprctl monitors: identifies currently enabled monitors