App-MediaPi
view release on metacpan or search on metacpan
script/mediapi view on Meta::CPAN
open my $pigpio, '>', '/dev/pigpio';
my $wnd = Tkx::widget->new('.');
# fullscreen removes the border of the window but does not actually make it
# fullscreen (maybe because we donât have a real window manager... which also
# means that we donât have a border anyway).
$wnd->g_wm_attribute(-fullscreen => 1, -topmost => 1);
$wnd->g_wm_resizable(0, 0);
$wnd->configure(-cursor => 'none');
$wnd->g_wm_geometry("${screen_x}x${screen_y}");
my $media_control_frame = $wnd->new_ttk__frame(-borderwidth => 5); # The border is here only to debug
$media_control_frame->g_grid(-column => 0, -row => 0, -sticky => 'nswe');
$wnd->g_grid_columnconfigure(0, -weight => 1);
$wnd->g_grid_rowconfigure(0, -weight => 1);
# The default font does not have the media control glyphs. So letâs create a
# style using Unifont that has almost all glyphs.
# Useful link: https://en.wikipedia.org/wiki/Media_control_symbols
( run in 0.912 second using v1.01-cache-2.11-cpan-4d50c553e7e )