This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| fetch_tmux_sessions() { | |
| # list session ids and names, each on a new line, ordered by session_id | |
| tmux list-sessions -F "#{session_id} #{session_name}" | sort -n | |
| } | |
| # read tmux sessions into an array | |
| mapfile -t SESSIONS < <(fetch_tmux_sessions) | |
| declare -A KEY_SESSION_ID_MAP |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # include https://github.com/NixOS/nixpkgs/pull/439751 | |
| # include https://github.com/nix-community/home-manager/pull/7757 | |
| { | |
| config, | |
| pkgs, | |
| lib, | |
| ... | |
| }: | |
| let | |
| version = "26.20.1"; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { pkgs, lib, ... }: | |
| let | |
| patched-dwm = pkgs.dwm.overrideAttrs { | |
| src = pkgs.fetchFromGitHub { | |
| owner = "kesor"; | |
| repo = "dwm"; | |
| rev = "c4609547ecb9d8330d56e903690532fd43a001f7"; | |
| sha256 = "sha256-iY+v36I4l+wX8N940S2T/wxlwKxWeGtrO1t1CheltG4="; | |
| }; | |
| prePatch = '' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| description = "Home Manager configuration"; | |
| inputs = { | |
| # nixpkgsUnstable.url = "github:nixos/nixpkgs/nixos-unstable"; | |
| nixpkgs.url = "github:nixos/nixpkgs/release-24.11"; | |
| systems.url = "github:nix-systems/default"; | |
| catppuccin.url = "github:catppuccin/nix"; | |
| ghostty.url = "github:ghostty-org/ghostty"; | |
| homeManager = { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # CHANGE THIS | |
| ACTUAL_EZA=/usr/local/bin/_eza | |
| display_time="modified" | |
| sort_time="" | |
| args=() | |
| while [ "$#" -gt 0 ]; do |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { lib, pkgs, ... }: | |
| let | |
| # Function to wrap a package with custom environment variables | |
| makeWrappedPackage = pkg: envVars: pkgs.symlinkJoin { | |
| name = "env-wrap-${pkg.pname or pkg.name}"; | |
| paths = [ pkg ]; # Symlink all files form the original | |
| buildInputs = [ pkgs.makeWrapper ]; | |
| postBuild = '' | |
| for exe in ${lib.getExe pkg}; do |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { lib, pkgs, ... }: | |
| let | |
| # Function to wrap a package with custom environment variables | |
| makeWrappedPackage = pkg: envVars: pkgs.stdenv.mkDerivation { | |
| name = "env-wrap-${pkg.name}"; | |
| nativeBuildInputs = [ pkgs.makeWrapper ]; | |
| buildCommand = '' | |
| mkdir -p $out/bin | |
| for exe in ${lib.getExe pkg}; do |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Window Navigation | |
| Mod j / k : Focus next / prev window | |
| Mod Enter : Move to master | |
| Mod Tab : Prev tag | |
| # Window Management | |
| Mod h / l : Shrink / Grow master | |
| Mod Shift c : Close window | |
| Mod Shift Space : Toggle float | |
| Mod Shift f : Fullscreen |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/sh | |
| name=$1 | |
| case "$name" in | |
| speedcrunch) | |
| win_ids=$(xdotool search --classname "SpeedCrunch") | |
| visible_win="" | |
| hidden_win="" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| int bit_array[25]; // For storing the data bit. bit_array[0] = data bit 1 (LSB), bit_array[23] = data bit 24 (MSB). | |
| unsigned long time_now; // For storing the time when the clock signal is changed from HIGH to LOW (falling edge trigger of data output). | |
| int CLOCK_PIN = 2; | |
| int DATA_PIN = 3; | |
| void setup() { | |
| Serial.begin(115200); | |
| pinMode(CLOCK_PIN, INPUT); |
NewerOlder