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 bash | |
# Get the command from arguments | |
arg_str="$*" | |
$arg_str & | |
pid="$!" | |
# Wait for the window to open and grab its window ID | |
winid='' | |
while : ; do |
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
[profile] | |
layer_height = 0.16 | |
wall_thickness = 1.2 | |
retraction_enable = True | |
solid_layer_thickness = 1.2 | |
fill_density = 10 | |
nozzle_size = 0.4 | |
print_speed = 50 | |
print_temperature = 200 | |
print_temperature2 = 0 |
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 | |
# You can call this script like this: | |
# $./volume.sh up | |
# $./volume.sh down | |
# $./volume.sh mute | |
function get_volume { | |
amixer get Master | grep '%' | head -n 1 | cut -d '[' -f 2 | cut -d '%' -f 1 | |
} |