Skip to content

About

No description, website, or topics provided.

Resources

Stars

1 star

Watchers

0 watching

Forks

Latest commit

 

History

106 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Taskbar Widgets

Three small widgets for the Windows 11 taskbar, in the style of the Windows weather widget. Each one is a Windhawk mod that puts its widget into the taskbar's own layout, which makes room for it: next to the notification area, the system icons or the clock, or at the left end, as its Position setting says. There are standalone apps too, for running them without Windhawk (version 2.1 of the widgets, below).

Widget What it does App
Taskbar Audio Flipper Switches between your speakers, headsets and microphones with a click, and turns a webcam on and off AudioFlipper.exe
Taskbar RDP Launcher Starts Remote Desktop full screen on the number of displays you pick RDPLauncher.exe
Taskbar Snipper Print Screen selects part of the screen to mark up and copy or save; Win+Shift+R records it as a video to trim and copy or save TaskbarSnipper.exe

Taskbar Snipper, Taskbar Audio Flipper and Taskbar RDP Launcher side by side on the taskbar

Widgets in the same position sit side by side: right-click one and choose Move left or Move right to change their order. Change icons… in the same menu gives any of the widgets' icons another glyph from the Windows icon font.

Taskbar Audio Flipper

The widget on the taskbar, with its Output, Input and Webcam sections

  • Output and Input show the device in use, with its volume. Click to switch to the next one, scroll to change the volume, middle-click to mute, and hover for a volume flyout like Windows' own, with a volume mixer for the apps using the output.
  • Webcam shows the chosen webcam and whether it's on. Click its camera to turn it on or off.
  • Right-click for each section's settings: which devices take turns, a device to pick directly, and the links to Windows' settings.

Taskbar RDP Launcher

The widget on the taskbar, with a computer and buttons for 1, 2 and 3 displays

  • Click 1, 2 or 3 to connect full screen on that many displays. Hover a number for a map of your displays, and click them to choose which ones that button uses.
  • Click the computer (or scroll over it) for the next of your computers. Add them by name, from a saved .rdp file, or from Remote Desktop Connection's recent list, in the right-click menu.

Taskbar Snipper

The screenshot and record buttons on the taskbar

  • Print Screen, or the screenshot button, freezes the screen to select an area or a window. A toolbox above it draws with a pencil, lines, arrows, boxes and text in any color and thickness; anything drawn can be dragged, restyled or deleted. Click outside the selection to copy the screenshot, save it, or both.
  • Win+Shift+R, or the record button, records an area as an MP4 video. When you stop, a window plays it back to trim its start and end, then copies or saves it.
  • Settings: which buttons show, in which order and where, the folders to save in (or choose them from the right-click menu), and whether Win+Shift+R is taken over from the Snipping Tool.

Each mod's full description is its readme, at the top of its file in mods.

Getting them

As Windhawk mods

The three are in Windhawk's mod catalog: in Windhawk, search for them under Explore. The files here can be newer than the catalog's. To install one from here: in Windhawk, click Create a new mod, replace the example with the file from mods, and click Compile mod, then Exit editing mode.

The mods need Windows 11: the first time one starts, Windhawk downloads Microsoft's symbols for the taskbar, to find its way into the taskbar's layout.

As apps

Download the apps from Releases, or build them (below). There's nothing to install: run one, and its widget appears on the taskbar. Its icon in the notification area has Settings… (Taskbar Snipper), Start with Windows and Exit.

The apps are version 2.1 of the widgets: a widget can only go into the taskbar's layout from inside Explorer, which is where Windhawk loads the mods, so an app's widget floats over the taskbar instead, and you drag it to move it. They don't have what the mods have gained since, such as the Position setting and the volume mixer.

  • An app keeps its settings in %APPDATA%\TaskbarWidgets\<app> and the rest in the registry, under HKEY_CURRENT_USER\Software\TaskbarWidgets\<app>. Start it with --log to keep a log in %LOCALAPPDATA%\TaskbarWidgets\<app>.
  • Use the app or the mod, not both.
  • Coming from the old AudioFlipper or RDPLauncher app (the C# one): exit it, then run the new one. It takes on the old app's settings the first time it runs, and Start with Windows in its menu takes the old app's place at startup.

Building

The apps build with Python 3 and LLVM MinGW's Clang: Windhawk's own, found where Windhawk installs it, or any other given with --compiler.

python tools/build.py

The apps come out in build. To build one: python tools/build.py taskbar-snipper.

How it's put together

  • mods: the three Windhawk mods, each one C++ file. They're the only code for each widget.
  • standalone: the apps. standalone/mods has the widgets as they were at version 2.1, which ran in a process of their own, and host.cpp runs one as an app: windhawk_api.h stands in for Windhawk's API, and the host provides it (settings from the app's settings file, with a settings window made from the mod's settings block, values in the registry, and a log), and starts and stops the mod as Windhawk does.
  • tools: build.py, which also writes each app's icon, manifest and version into it, and the scripts that drew the icons in icons.

The code the three mods share (getting into the taskbar's layout, the positions, the widget's parts, menus and flyouts, and storage) is in each mod, since Windhawk mods are one file each: a change there belongs in all three.

License

MIT.

About

No description, website, or topics provided.

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages