WIP - Refactor media menu
This commit is contained in:
@@ -11,6 +11,7 @@ const Controls = () => {
|
||||
expand: true,
|
||||
children: [
|
||||
Widget.Button({
|
||||
tooltip_text: "Toggle Wifi",
|
||||
expand: true,
|
||||
setup: (self) => {
|
||||
self.hook(network, () => {
|
||||
@@ -27,6 +28,7 @@ const Controls = () => {
|
||||
}),
|
||||
}),
|
||||
Widget.Button({
|
||||
tooltip_text: "Toggle Bluetooth",
|
||||
expand: true,
|
||||
class_name: bluetooth
|
||||
.bind("enabled")
|
||||
@@ -39,6 +41,7 @@ const Controls = () => {
|
||||
}),
|
||||
}),
|
||||
Widget.Button({
|
||||
tooltip_text: "Toggle Notifications",
|
||||
expand: true,
|
||||
class_name: notifications
|
||||
.bind("dnd")
|
||||
@@ -51,6 +54,7 @@ const Controls = () => {
|
||||
}),
|
||||
}),
|
||||
Widget.Button({
|
||||
tooltip_text: "Toggle Mute (Playback)",
|
||||
expand: true,
|
||||
on_primary_click: () =>
|
||||
(audio.speaker.is_muted = !audio.speaker.is_muted),
|
||||
@@ -68,6 +72,7 @@ const Controls = () => {
|
||||
}),
|
||||
}),
|
||||
Widget.Button({
|
||||
tooltip_text: "Toggle Mute (Microphone)",
|
||||
expand: true,
|
||||
on_primary_click: () =>
|
||||
(audio.microphone.is_muted = !audio.microphone.is_muted),
|
||||
|
||||
@@ -80,6 +80,7 @@ const Shortcuts = () => {
|
||||
hexpand: true,
|
||||
children: [
|
||||
Widget.Button({
|
||||
tooltip_text: "Microsoft Edge",
|
||||
class_name: "dashboard-button edge top-button",
|
||||
on_primary_click: () => handleClick("microsoft-edge-stable"),
|
||||
child: Widget.Label({
|
||||
@@ -88,6 +89,7 @@ const Shortcuts = () => {
|
||||
}),
|
||||
}),
|
||||
Widget.Button({
|
||||
tooltip_text: "Spotify",
|
||||
class_name: "dashboard-button spotify",
|
||||
on_primary_click: () => handleClick("spotify-launcher"),
|
||||
child: Widget.Label({
|
||||
@@ -102,6 +104,7 @@ const Shortcuts = () => {
|
||||
hexpand: true,
|
||||
children: [
|
||||
Widget.Button({
|
||||
tooltip_text: "Discord",
|
||||
class_name: "dashboard-button discord top-button",
|
||||
on_primary_click: () => handleClick("discord"),
|
||||
child: Widget.Label({
|
||||
@@ -110,6 +113,7 @@ const Shortcuts = () => {
|
||||
}),
|
||||
}),
|
||||
Widget.Button({
|
||||
tooltip_text: "Search Apps",
|
||||
class_name: "dashboard-button search",
|
||||
on_primary_click: () => handleClick("rofi -show drun"),
|
||||
child: Widget.Label({
|
||||
@@ -131,6 +135,7 @@ const Shortcuts = () => {
|
||||
hexpand: true,
|
||||
children: [
|
||||
Widget.Button({
|
||||
tooltip_text: "Color Picker",
|
||||
class_name: "dashboard-button colorpicker top-button",
|
||||
on_primary_click: () => handleClick("hyprpicker -a"),
|
||||
child: Widget.Label({
|
||||
@@ -139,6 +144,7 @@ const Shortcuts = () => {
|
||||
}),
|
||||
}),
|
||||
Widget.Button({
|
||||
tooltip_text: "Hyprland Settings",
|
||||
class_name: "dashboard-button settings",
|
||||
on_primary_click: () =>
|
||||
handleClick(
|
||||
@@ -156,6 +162,7 @@ const Shortcuts = () => {
|
||||
hexpand: true,
|
||||
children: [
|
||||
Widget.Button({
|
||||
tooltip_text: "Screenshot",
|
||||
class_name: "dashboard-button snapshot top-button",
|
||||
on_primary_click: () => {
|
||||
App.closeWindow("dashboardmenu");
|
||||
@@ -169,6 +176,7 @@ const Shortcuts = () => {
|
||||
}),
|
||||
}),
|
||||
Widget.Button({
|
||||
tooltip_text: "Record Screen",
|
||||
class_name: isRecording
|
||||
.bind("value")
|
||||
.as((v) => `dashboard-button record ${v ? "active" : ""}`),
|
||||
|
||||
Reference in New Issue
Block a user