This file contains 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
# Default config for sway | |
# | |
# Copy this to ~/.config/sway/config and edit it to your liking. | |
# | |
# Read `man 5 sway` for a complete reference. | |
### Variables | |
# | |
# Logo key. Use Mod1 for Alt. | |
set $mod Mod4 |
This file contains 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
00:00:00.000 [INFO] [sway/main.c:343] Sway version 1.7 | |
00:00:00.000 [INFO] [sway/main.c:344] wlroots version 0.15.1 | |
00:00:00.003 [INFO] [sway/main.c:120] Linux ArchStrix 6.0.10-native_amd-xanmod1-1 #1 SMP PREEMPT_DYNAMIC Tue, 29 Nov 2022 00:56:17 +0000 x86_64 GNU/Linux | |
00:00:00.003 [INFO] [sway/main.c:136] Contents of /etc/lsb-release: | |
00:00:00.003 [INFO] [sway/main.c:120] DISTRIB_ID="Arch" | |
00:00:00.003 [INFO] [sway/main.c:120] DISTRIB_RELEASE="rolling" | |
00:00:00.003 [INFO] [sway/main.c:120] DISTRIB_DESCRIPTION="Arch Linux" | |
00:00:00.003 [INFO] [sway/main.c:136] Contents of /etc/os-release: | |
00:00:00.003 [INFO] [sway/main.c:120] NAME="Arch Linux" | |
00:00:00.003 [INFO] [sway/main.c:120] PRETTY_NAME="Arch Linux" |
This file contains 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 python3 | |
from i3ipc import Connection | |
mark = "swapTarget" | |
con = Connection() | |
try: | |
# Swap marked target with focus, unmark | |
swapTarget = con.get_tree().find_marked(mark)[0] | |
con.command("swap container with mark %s" % mark) |
This file contains 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 | |
explicitPkgs="$(pacman -Qeq)" | |
# Create list of all dependencies, whether explicitly installed or not | |
allDeps="" | |
for pkg in $explicitPkgs; do | |
allDeps+=" $(pactree -u $pkg | awk 'NR>1')" | |
done | |
depsList="$(echo $allDeps | tr ' ' '\n' | sort | uniq)" |
This file contains 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
[stepper_x] | |
step_pin: PB13 | |
dir_pin: !PB12 | |
enable_pin: !PB14 | |
microsteps: 64 | |
rotation_distance: 40 | |
endstop_pin: ^PC0 | |
position_endstop: 0 | |
position_max: 162 | |
homing_speed: 50 |
This file contains 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
[stepper_a] | |
step_pin: PE3 | |
dir_pin: PE2 | |
enable_pin: !PE4 | |
endstop_pin: PA15 | |
microsteps: 16 | |
rotation_distance: 40 | |
homing_speed: 20 | |
homing_retract_dist: 5 | |
homing_retract_speed: 10 |
This file contains 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
[stepper_x] | |
step_pin: PB13 | |
dir_pin: !PB12 | |
enable_pin: !PB14 | |
step_distance: .0125 | |
endstop_pin: ^PC0 | |
position_endstop: 0 | |
position_max: 160 | |
homing_speed: 50 |
This file contains 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
//CSK 3/17/2013 Libraries new location | |
//https://github.com/FastLED/FastLED | |
//https://github.com/FastLED/FastLED/wiki/Overview | |
#include "FastLED.h" | |
// Constants | |
#define COLOR_ORDER GRB | |
#define MAX_BRIGHTNESS 200 // MAX is actually 255, set to 200 to reduce draw and thermal output | |
#define NUM_LEDS 150 |