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 | |
set -e | |
if [ "$1" = "inside-nix-shell" ]; then | |
echo "Clearing clangd cache." | |
rm -f "compile_commands.json" | |
rm -rf ".clangd" | |
LIBEAR32="$(nix-build "<nixpkgs>" -A bear --argstr system i686-linux)/lib/bear/libear.so" | |
LIBEAR64="$(nix-build "<nixpkgs>" -A bear --argstr system x86_64-linux)/lib/bear/libear.so" |
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
diff --git a/bsnes/target-bsnes/settings/input.cpp b/bsnes/target-bsnes/settings/input.cpp | |
index 13b04b7a..fd76ac78 100644 | |
--- a/bsnes/target-bsnes/settings/input.cpp | |
+++ b/bsnes/target-bsnes/settings/input.cpp | |
@@ -68,12 +68,11 @@ auto InputSettings::updateControls() -> void { | |
assignMouse3.setVisible(false); | |
if(activeMapping) { | |
- auto& input = activeDevice().mappings[batched.left().offset()]; | |
- if(input.isDigital()) { |
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 nix | |
#! nix shell nixpkgs#imagemagick nixpkgs#python3Packages.brother-ql nixpkgs#swayimg --command bash | |
PREVIEW=0 | |
TEXTSIZE=85 | |
while [[ $# -gt 0 ]]; do | |
case "$1" in | |
-p|--preview) | |
PREVIEW=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
#!/bin/bash | |
set -euo pipefail | |
XWAYLAND_DISPLAY=:69 | |
WAYLAND_OUTPUT="$1" | |
shift | |
GEOMETRY="$1" | |
shift | |
APP_COMMAND="$@" | |
echo "Starting XWayland on display '$XWAYLAND_DISPLAY' for output '$WAYLAND_OUTPUT' with geometry '$GEOMETRY'..." | |
Xwayland "$XWAYLAND_DISPLAY" -fullscreen -geometry "$GEOMETRY" -output "$WAYLAND_OUTPUT" & |
OlderNewer