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 | |
wpFiles=() | |
XOUT=$(xrandr | grep -oP '.*(?=\sconnected)') | |
for LINE in $XOUT; do | |
FILE=`zenity --file-selection --file-filter=""*.bmp" "*.gif" "*.jpg" "*.jpeg" "*.png" "*.webp"" --title="Select an image for display $LINE"` | |
case $? in | |
0) | |
wpFile="${FILE}" | |
wpFiles+=("$wpFile");; |
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 | |
# 2018 Hans P. Möller <[email protected]> | |
################################################################################ | |
# This script is a workaround for the lack of support from pcfman-qt | |
# for differenct wallpaper images for each display environment. pcmanfm-qt handle | |
# all the monitors as only one big monitor. This script takes the configuration | |
# from pcfman-qt and replicate it in all the monitors creating a big canvas | |
# and stitching a different image to it. The steps are | |
# 1) Takes the pxfman-qt configuration | |
# 2) Reads information about the images passed as argument to this script. |
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
/* | |
* custom_mix_pitch.c | |
* | |
* Created on: 10 jan 2018 | |
* Author: Carlos Faruolo | |
*/ | |
#include "custom_mix_pitch.h" | |
#include <stdio.h> |
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
/* | |
* custom_mix_pitch_func.h | |
* | |
* Created on: 10 de jan de 2018 | |
* Author: carlosfaruolo | |
*/ | |
// Mix_EffectFunc_t callback that redirects to handler method (handler passed via user_data) | |
// Processing function to be able to change chunk speed/pitch. | |
// AUDIO_FORMAT_TYPE depends on the current audio format (queryable via Mix_QuerySpec) |
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
/* | |
* sound_pitching_example.cpp | |
* | |
* Created on: 27 de dez de 2017 | |
* Author: Carlos Faruolo | |
*/ | |
#include <SDL2/SDL.h> | |
#include <SDL2/SDL_mixer.h> | |
#include <iostream> |