Giter VIP home page Giter VIP logo

konstantintuev / pockv2 Goto Github PK

View Code? Open in Web Editor NEW

This project forked from pock/pock

92.0 6.0 8.0 4.13 MB

Display macOS Dock, Status, Music, remaining Battery and more in the Touch Bar

License: Other

Swift 88.68% Objective-C 9.95% Ruby 0.60% C 0.77%
touchbar touch-bar touch-bar-customization touch-bar-customization-app macos mac macbook-pro macbook pock pockv2 dock menubar music-widget battery-monitor

pockv2's Introduction

Display macOS Dock in Touch Bar.

It's free and open source, and it also brings some minimalistic widgets with it!

Want something implemented - open an issue/pull request

This is mostly a personal project which started with the purchase of a TouchBar MacBook. I am implementing everything I find beneficial or useful and yes I do like the TouchBar (despite not the default one).

Apple Silicon + Intel

PockV2 natively supports Apple Silicon but has only been tested on an Intel Mac.

Thank you!

I don't have a support page but I use this project everyday and I like working on it!

How To Enable

  1. Unzip
  2. Move Pock to your Applications folder
  3. Open Pock
  4. Accept
  5. If you don't see Pock in your Touch Bar, go to the Keyboard pane in System Preferences and select "Touch Bar shows App Controls."

Issue resolving

If some Control Center widgets (e.g. volume up/down) don't work, please remove the app from Accessability and Screen Recording in System Preferemces and add it again. If it still doesn't work, remove the app from Applications, reset all premissions by running sudo tccutil reset All in the Terminal, restart, add it again and grant the needed Accessability and Screen Recording permissions again.

Known issues

The brightness control doesn't work on M1 Macs. The way M1 Macs handle displays is non-standard and buggy. This issue for Monitor Control is one of the more active ones trying to resolve the issue, I will try monitoring it and implementing the fixes the people there might come up with.

Widgets

Includes five default widgets

Dock widget

Your macOS Dock inside your MacBook's TouchBar, the core widget. It comes with fully-functional badge support so you will not miss any notification. More features can be configured in widget settings along with other preferences. It now includes multi-window support! Enjoy your screen in full-size every time!

Now Playing widget

Media information at a glance with gestures for media controls included.

Gesture Action
tap toggle play/pause
swipe left previous song
swipe right next song
ESC widget

A handy ESC button is there, just in case, so you don't have to hide Pock to access the system one.

Status widget

Always keep an eye on system information, like what time is it, or maybe WiFi status or Battery status. Configure Status items from settings. Tap to switch keyboard input, open calendar, battery overview, long click the battery to switch between percentages and time remaining.

Control Center widget

Change screen brightness or system volume with easy controls. Long press or slide on control center item to invoke sliders.

More...

More widgets may be added, open an issue/pull request or wait for me to come up with something!

Preferences

You can adjust Pock and widgets settings to reflects your specific needs. You can access these panes from the Preferences menu item.

Customize

You can customize the widget position in TouchBar from the Customize menu item.

Special mentions

From Me:

From Pigigaldi:

Translated READMEs (mostly from Pigigaldi's Pock)

πŸ‡ΊπŸ‡Έ English πŸ‡¨πŸ‡³ δΈ­ζ–‡ πŸ‡―πŸ‡΅ ζ—₯本θͺž πŸ‡ΉπŸ‡· TΓΌrkΓ§e

* Some translations may be different or incomplete.

License

Under MIT license. See LICENSE file for further information.

pockv2's People

Contributors

chuanchan1116 avatar gee1k avatar konstantintuev avatar l1cardo avatar lcukerd avatar marcjulian avatar nilsolofsson avatar onuruzun avatar pigigaldi avatar rniedzwiecki avatar rodrigobdz avatar rogerluan avatar uetchy avatar vestigecounty avatar yosh1 avatar yusufozgul avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

pockv2's Issues

Extreme Battery Drain

On MBP 13" M1, Pock (ARM64 version) is reading an average of 20 in energy impact in Activity Monitor, numbers as high as 40. Average device battery life is noticeably decreased, 16% over a 12h period.

The app is so useful I am happy to take the hit, yet I thought I'd make a post here requesting changes to updating or animation behaviour to lessen the extreme battery impact, or ask if someone has an explanation for why this happens with a lot of touch bar applications.

Cheers.

How to Uninstall

tried installing on M1 Mac, got stuck when customizing the touch bar and nothing was showing, removed the app, followed your instructions, removed the app from accessibility and still I don't have volume or brightness, just emojis and keyboard suggestions.

I appreciate your effort in creating this, but I don't want to have a buggy app and I don't know how to remove it and restore default.

I tried resetting the Touch Bar from the activity monitor and it's same.

app is not installed

Is it possible to have a "traffic light" widget?

Well, I hope there is a "traffic light"(the buttons on top left for 'Close', 'Minimize' and 'Full screen') widget. Some people (like me) found it difficult to reach for cmd+W and cmd+M. Hope there is a feature like that that can enable us to use these on dock.

Crash at "Launch at login"

Describe the bug
A clear description of what the bug is.

Enabling "Launch on login" crashes the app.

How to reproduce
Steps to reproduce the behavior:

1. Go to '...'
2. Click on '....'
3. Scroll to '....'
4. See error

Start app
Go to preferences
Enable "Launch at login"
Crashes app

Expected behavior
A clear description of what you expected to happen.
Enable without crash

Screenshots
If applicable, add screenshots to help explain your problem.
To take a Touch Bar screenshot use the shortcut "shift + cmd + 6"

Crashlog
If applicable, add crashlog to help me investigate your problem.

1. Open the Console application located at "Application -> Utilities -> Console.app."
2. Click on "User Reports" in the left menu, then locate the latest Pock crash report. (You can filter reports by typging "pock" into the searchbar on the top)
3. "ctrl + click" on the latest Pock crash report and click on "Reveal in Finder" option, then attach the .crash file in this issue.

https://pastebin.com/QCSVpxEg

Versions:

  • macOS version: [e.g. 10.14.5 (*required)]
  • Pock version: [e.g. 0.5.2 (*required)]

Monterey 12.1
Latest Pockv2 edition

Additional context
Add any other context about the problem here.

Hi! Add Mouse to the Touch Bar, Thanks

I would love to see the mouse on the dock, the original pock project can do this but it does it in a primitive way.
Every Mac has different screen sizes but the Touch Bar size stays the same. The problem comes with the tracking area where the mouse should be registered. On a 16in MacBook Pro, the tracking area is too small. Having an adjustable tracking area or a measured preset, would be wonderful

[REQUEST] the ability to navigate folders in Finder

I really love your updated Pock version. but one thing missing is the ability to navigate folders in Finder like the original Pock. If possible, whenever I open Finder, all the other widget (dock, time, status) hidden temporarily. & I'm able to navigate to any folder freely using the Touch Bar.

also, the music widget still visible even after ''turning it off when not playing any music '' is set in the settings

20210524_115657
20210524_115226

Add screenshot button to control center widgets

Describe the feature you'd like to improve in Pock
I would appreciate, if you can add a screenshot button to the control center widget like it is in original MacOS Big Sur.

Describe alternatives you've considered
The alternative is currently to activate the option in PockV2 to not fully hide the Apple Touch Bar widgets, but would be even more nice, if we had this integrated in Pock!

Additional context
A click on this button should exactly open the following menu:

https://www.howtogeek.com/wp-content/uploads/2018/11/img_5bdb89af21834.png

Make the video scrubber useful?

I generally find the touch bar absolutely useless, however if I could effectively scrub any video that would change.

Apple's retardo default behavior makes the video scrubber is a simple 1:1 tap to set the play location which is absolutely useless for any video over a minute long. This would be like removing the ability to drag the scroll bar and instead only allowing the user to click it for a location. What the heck, Apple?

A sane video scrubber would allow you to fast forward or rewind smoothly just like when you scroll sideways in a video.

I'm not sure if this can be fixed, but if so the touch bar might actually be useful for once!

Pock icon in stock control strip has conflict with stock music control

Describe the bug

Pock button in control strip take a place where stock music control should be.

How to reproduce
Steps to reproduce the behavior:

1. Turn off 'Hide control strip'
2. Play any music in music, Yt music or safari. 
3. The Pock button in control strip disappears
4. Touch the "In playing" button(music control) in control strip 
5. The Pock button appears and works. (Thus, it works only in music control)

Expected behavior
The Pock button should be solely and separately with other button in control strip, as if it is in control strip without music control.

Screenshots
If applicable, add screenshots to help explain your problem.
To take a Touch Bar screenshot use the shortcut "shift + cmd + 6"

image
image
image

Versions:

  • macOS version: 11.2.3
  • Pock version: 0.8.4

Additional context
I have no idea about how touch bar works and how control strip manages buttons. I just feels that Pock button take a specific place where can be used for music control. Otherwise, a method of adding Pock button couldn't changes its position adaptively according to changing of stock control strip. If it is intended, it would be appreciated to inform user.

Brightness/Volume Toggle native like behavior

Describe the feature you'd like to have in Pock
When using the native Control strip toggles (draggable range slider), you can simply touch, keep your finger on the Touch Bar
and drag to change the value. It would be perfect if you could do the same with pock.

Describe alternatives you've considered
none

Additional context
none

Enhanced dock (off of original project)

Original Pock recently enhanced the dock with hold for options, as well as numbers in the notification bubbles. Original Pock is very buggy; this one is much more stable, so I would like these features in v2. I would modify it myself, but only have recently gotten started in comp sci.

Ability to hide touch bar

Describe the feature you'd like to have in Pock
Sometimes, I want to completely hide the touchbar so that I will not accidentally press on anything. Eg: when I using vscode, I usually touch on something else

Describe alternatives you've considered
Double press Option or Comand to hide the touchbar

Additional context
Add any other context or screenshots about the feature request here.

Feature: Show current Space on touchbar

I am using multiple Spaces. It is nice to show current Space on touchbar.
Such as "Space 1" "Space 2" ... or just β€œ1” or β€œ2” ...

I am using spacebar for now.

We can get current focused space in shell using yabai

yabai -m query --spaces --space | jq ".index"

Custom app icon in finder doesn't appear in dock widget.

Describe the bug
Custom Icon doesn't appear in dock widget.

How to reproduce
Steps to reproduce the behavior:

2. Run App
3. check which icon appear in touch bar. 

Expected behavior
Hope it shows same icon as in finder app.

Screenshots
If applicable, add screenshots to help explain your problem.
To take a Touch Bar screenshot use the shortcut "shift + cmd + 6"

image
image

Versions:

  • macOS version: 11.2.3
  • Pock version: 0.8.4

Additional context

Changing icon is quite useful for automator apps. I would be good to reflect.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.