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
| #!/usr/bin/env bash | |
| set -euo pipefail | |
| # chmod +x make-dotdesktop-for-nixpkgs.sh | |
| STORE_DIR="/nix/store" | |
| DESKTOP_DIR="$HOME/.local/share/applications" | |
| ICON_DIR="$HOME/.local/share/icons" | |
| LOG_FILE="$HOME/nix-desktopify.log" |
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
| #!/usr/bin/env bash | |
| set -euo pipefail | |
| # chmod +x make-global-symlinks-nixpkgs.sh | |
| STORE_DIR="/nix/store" | |
| TARGET_DIR="/usr/bin" | |
| LOG_FILE="$HOME/nix-global-symlinks.log" | |
| LOG_PREFIX="\e[1;32m[LINK]\e[0m" | |
| SKIP_PREFIX="\e[1;33m[SKIP]\e[0m" |
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
| #!/usr/bin/env bash | |
| # Emergency Display Manager Recovery Script | |
| set -euo pipefail | |
| ### EMERGENCY RECOVERY ### | |
| emergency_recovery() { | |
| echo "🚨 EMERGENCY RECOVERY MODE" | |
| echo "This will attempt to restore a working display manager" | |
| # Stop all display manager services |
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
| #!/usr/bin/env bash | |
| set -euo pipefail | |
| # 🧾 Config | |
| DEFAULT_NIX_FILE="$HOME/.default-nix-shell.nix" | |
| SHELL_WRAPPER_FLAG="IN_NIX_SHELL" | |
| BASHRC="$HOME/.bashrc" | |
| ZSHRC="$HOME/.zshrc" | |
| # 📦 Step 1: Install Nix if missing |
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 | |
| # /usr/local/bin/set-brightness-menu.sh | |
| set -euo pipefail | |
| # 🧪 Check for brightnessctl | |
| if ! command -v brightnessctl &>/dev/null; then | |
| echo "🔧 brightnessctl not found. Attempting to install..." | |
| if command -v pacman &>/dev/null; then |
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
| #!/usr/bin/env bash | |
| set -euo pipefail | |
| # 🧰 Configuration | |
| ARCH="$(uname -m)" | |
| SWIFTLY_URL="https://download.swift.org/swiftly/linux/swiftly-${ARCH}.tar.gz" | |
| SWIFTLY_TAR="swiftly-${ARCH}.tar.gz" | |
| SWIFTLY_DIR="${SWIFTLY_HOME_DIR:-$HOME/.local/share/swiftly}" | |
| # 📥 Download the Swiftly archive |
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
| # nimble install jester | |
| # nimble install sqlite3_abi | |
| import jester | |
| import sqlite3_abi | |
| import strutils | |
| import os | |
| import locks | |
| import logging |
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
| # nimble install jester | |
| # nimble install sqlite3_abi | |
| import jester | |
| import sqlite3_abi | |
| import strutils | |
| import os | |
| import locks | |
| import logging |
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
| import raylib as rl | |
| import strformat | |
| # Configuration constants | |
| const | |
| ScreenWidth = 1280 | |
| ScreenHeight = 720 | |
| ToggleKey = rl.KeyboardKey.F1 | |
| # Panel type definition |
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
| type | |
| Person* = object | |
| name*: string | |
| # Getter and setter procedures | |
| proc getName*(p: Person): string = | |
| ## Getter for person's name | |
| p.name | |
| proc setName*(p: var Person, value: string): bool = |