项目介绍

ariafatah0711/zebar-glazewm 是一个托管在 GitHub 上的开源项目,主要使用 JavaScript 编写,目前获得 52 个 Star、1 次 Fork。

仓库全名
ariafatah0711/zebar-glazewm
Star 数
52
Fork 数
1

README 摘要

My Config by Aria 🎯 Dotfiles Windows by me ✨ Features Active app highlight Taskbar preview Preview Settings Quiet Velvet 🌸 Quiet Velvet is a custom taskbar built using Zebar. ⬇️ Join the community ⬇️ If you need assistance, please send me a message on Discord. My ID is 0h37. Installation 📂 Navigate to your /.glzr/zebar/ directory and clone this repository: Navigate to the repository and install the dependencies…

完整内容见 GitHub 原始 README 或本页 。

常见问题

zebar-glazewm 用什么语言开发?

主要使用 JavaScript 编写,目前有 52 个 Star。

如何获取 zebar-glazewm 的源码?

可以直接克隆仓库:git clone https://github.com/ariafatah0711/zebar-glazewm.git,默认分支为 main;安装与运行步骤见仓库 README。

zebar-glazewm 最近还在维护吗?

仓库最近一次更新为 2025年4月27日,当前没有未关闭的 Issue;Star 数为 52,可作为社区活跃度的参考。

关于

my setup zebar theme for glazewm, source: LeoBessin/quiet-velvet

描述取自 GitHub 官方 API,中文内容由 GitRead 中文社区 编辑团队整理。

简要分析

热度分
56
价值分
31
活跃状态
活跃

语言占比

CSS
HTML
JavaScript

贡献者

README

My Config by Aria


✨ Features

  • Active app highlight
  • Taskbar preview

Preview

Preview

Settings

Settings


Quiet Velvet 🌸

Quiet Velvet is a custom taskbar built using Zebar. ⬇️ Join the community ⬇️

Discord invite

If you need assistance, please send me a message on Discord. My ID is 0h37.

demo-quiet-velvet

Installation 📂

Navigate to your ~/.glzr/zebar/ directory and clone this repository:

  • git clone https://github.com/ariafatah0711/zebar-glazewm

Navigate to the repository and install the dependencies:

  • cd ./zebar-glazewm/

  • npm install

  • Create a config.js file in the ./src/ folder. You can configure it later using the configuration section.

Build the project using the following command:

  • npm run build

After completing these steps, you need to reload Zebar’s configuration.

You should see zebar-glazewm/main in the Widget configurations!

zebar-update

Configuration ⚙️

You need to create a config.js file in the zebar-glazewm/src/ directory. Enter the following key/value pairs in the file. These keys are not required for the build, so you can leave them as shown in the example.

Instructions for obtaining the Spotify tokens are provided in the Spotify section.

export default {
    spotifyClientId: '<YOUR-SPOTIFY-CLIENT-ID>',
    spotifyClientSecret: '<YOUR-SPOTIFY-CLIENT-SECRET>',
    spotifyRefreshToken: '<YOUR-SPOTIFY-REFRESH-TOKEN>',
    explorerPath: '<YOUR-EXPLORER-PATH>',
    powershellPath: '<YOUR-POWERSHELL-PATH>'
}

Customization 💅

You can customize the style by modifying the following values in the styles.css file:

  • Main color: --main-color
  • Font color: --font-color
  • Background color: --background-color

If you use GlazeWM, you can rename your workspaces in the ~/.glzr/glazewm/config.yaml file:

workspaces:
  - name: "1"
    display_name: "[discord-logo] Other"
    ...
  - name: '2'
    display_name: "[code-logo] Work"
    ...
  - name: '3'
    display_name: "[search-logo] Search"
    ...
...

Visit the Nerd Fonts Cheat Sheet, search for the desired icon, hover over it, and click the Icon text to copy it to your clipboard. Then, replace [xxx-logo] with the copied icon.

nerd-fonts-icon

Widgets 📦

Currently, Quiet Velvet includes four widgets.

Spotify

quiet-velvet-spotify

This widget displays your currently playing Spotify song.

On hover, you will have access to previous, play/pause, and skip song controls.

On click, it will open the Spotify app.

Note: You need a Spotify Premium account to be able to skip, pause, and play songs using this widget.

To use this widget, follow these steps:

  1. Go to your Spotify developer dashboard.
  2. Create an app with any name and description, and add this URI in the Redirect URIs section: https://alecchen.dev/spotify-refresh-token. Choose the Web API option.
  3. Open your new app settings and fill in the spotifyClientId and spotifyClientSecret values in the src/config.js file.
  4. Go to https://alecchen.dev/spotify-refresh-token/, enter your client ID and client secret, and select the following options: user-read-currently-playing, user-modify-playback-state, and streaming.
  5. Click submit and fill in the spotifyRefreshToken value in the src/config.js file.

The widget will automatically generate a Spotify access token, store it in local storage, and generate a new one if the previous one expires.

quiet-velvet-google-search

This widget allows you to quickly search for any information on Google.

When the Enter key is pressed, it will focus on the GlazeWM workspace 3 and open your explorer.

To use this widget, you only need to set the explorerPath value in src/config.js.

You can modify or remove the workspace focus in the onSubmit function of the src/components/GoogleSearch.jsx file.

Shortcut

quiet-velvet-shorcuts

This widget allows you to execute shortcuts, such as opening an application or a website.

On click, it will execute the specified shortcut.

To create a shorcut follow this example :

<Shortcut commandRunner={output.glazewm.runCommand}
          commands={[
              'focus --workspace 2',
              `shell-exec ${config.powershellPath}`
          ]}
          iconClass="nf-cod-terminal_powershell" name="Powershell"
/>

You can add a key/value pair in the src/config.js file and use it here, as shown with the powershellPath.

To change the icon, choose one from Nerd Fonts Cheat Sheet and paste the class in the iconClass property.

Settings

quiet-velvet-settings

This widget allows you to toggle the visibility of all your widgets and saves your preferences in local storage.

To add another widget, follow this example:

function App() {
    const [showXWidget, setShowXWidget] = useState(true);
    const [showYWidget, setShowYWidget] = useState(true);
    ...
    return (
        <>
            ...
            {showXWidget ? <XWidget/> : null}
            ...
            {showYWidget ? <YWidget/> : null}
            ...
            {<Settings widgetObj={[
                { name: 'XWidget', changeState: setShowXWidget },
                { name: 'YWidget', changeState: setShowYWidget }
            ]}/>}
            ...
        </>
    )
}

Click on the gear icon to change the state of the widget.

Tips 🎁

  • Open the task manager by clicking on the memory or CPU icon.
  • Change the date format by hovering over it.

评论

暂无评论