Certainly! Below is a complete QuickShell topbar configuration tailored for Arch Linux + Hyprland that replicates the GNOME topbar style and functionality as closely as possible.
QuickShell GNOME-style Topbar for Hyprland
Overview
- Visuals: Black translucent background, subtle shadow, rounded corners
- Layout: Left (workspaces), center (clock), right (system tray + user menu)
- Functionality: Workspace switching, clock with calendar popup, system tray with network/audio/battery, media controls, notifications
- Tech: Uses QuickShell (a hypothetical or custom shell config system), integrates with Hyprland via
hyprctl, uses system utilities for status info
1. Installation & Dependencies
Make sure you have these installed:
sudo pacman -S jq wl-clipboard playerctl pamixer networkmanager nmcli acpi brightnessctl swaybg polkit-gnome
yay -S nerd-fonts-complete # For icons
jq for JSON parsing
playerctl for media controls
pamixer for audio volume
nmcli for network status
acpi for battery info
brightnessctl for brightness control
polkit-gnome for system menu auth
- Nerd Fonts for icons
2. Directory Structure
~/.config/quick-shell/
├── config.json
├── widgets/
│ ├── workspaces.js
│ ├── clock.js
│ ├── systemTray.js
│ ├── mediaControls.js
│ ├── userMenu.js
│ └── weather.js (optional)
├── styles.css
└── scripts/
├── workspaceListener.sh
├── networkStatus.sh
├── batteryStatus.sh
├── audioStatus.sh
└── mediaStatus.sh
3. Main Configuration (config.json)
{
"bar": {
"height": 36,
"background": "rgba(0,0,0,0.85)",
"borderRadius": 6,
"boxShadow": "0 2px 6px rgba(0,0,0,0.5)",
"fontFamily": "Inter, 'SF Pro Text', sans-serif",
"fontWeight": "500",
"fontSize": 14,
"layout": "horizontal",
"padding": "0 12px",
"sections": {
"left": ["workspaces"],
"center": ["clock"],
"right": ["systemTray", "mediaControls", "userMenu"]
}
}
}
4. Widgets
4.1 Workspaces Widget (widgets/workspaces.js)
const { execSync } = require('child_process');
function getWorkspaces() {
const wsJson = execSync('hyprctl workspaces -j').toString();
return JSON.parse(wsJson);
}
function getActiveWorkspace() {
const activeJson = execSync('hyprctl activeworkspace -j').toString();
return JSON.parse(activeJson).id;
}
function renderWorkspaces() {
const workspaces = getWorkspaces();
const activeId = getActiveWorkspace();
return workspaces.map(ws => {
const isActive = ws.id === activeId;
return `
<button
class="workspace ${isActive ? 'active' : ''}"
onclick="exec('hyprctl dispatch workspace ${ws.id}')"
onmouseover="this.style.backgroundColor='rgba(255,255,255,0.1)'"
onmouseout="this.style.backgroundColor='transparent'"
aria-label="Switch to workspace ${ws.id}"
>
${ws.name || ws.id}
</button>
`;
}).join('');
}
module.exports = {
render: () => `<div class="workspaces">${renderWorkspaces()}</div>`
};