From eae78d6aca1028a614583a538f73eb6164fbfc9e Mon Sep 17 00:00:00 2001 From: Philip Wittamore Date: Mon, 9 Jun 2025 18:07:30 +0200 Subject: update --- dmenu-audio | 17 +++++++++++------ dmenu-power | 2 +- dmenu-system | 10 ++++++++++ 3 files changed, 22 insertions(+), 7 deletions(-) create mode 100755 dmenu-system diff --git a/dmenu-audio b/dmenu-audio index 7600422..85bed40 100755 --- a/dmenu-audio +++ b/dmenu-audio @@ -1,12 +1,12 @@ #!/usr/bin/env bash -choices="󰂯 Connect BT headset\n󰂲 Disconnect BT headset\n Select Output\n Select Input\n󰝚 Play Music\n󰐎 Pause/Play Music\nExit" +choices=" Connect BT headset\n󰂲 Disconnect BT headset\n󰓃 Select Output\n󰍬 Select Input\n󰝚 Playlists\n󰐎 Pause/Play Music\n Radio\n✘ Exit" -result=$(echo -e $choices | dmenu -bw 4 -c -i -l 7 -p "Audio") +result=$(echo -e $choices | dmenu -bw 4 -c -i -l 8 -p "Audio") case $result in - "󰂯 Connect BT headset") + " Connect BT headset") headset="E8:07:BF:3C:5F:65" bluetoothctl connect $headset &> /dev/null ;; @@ -16,7 +16,7 @@ case $result in bluetoothctl disconnect $headset &> /dev/null ;; - " Select Input") + "󰍬 Select Input") choices=$(pactl list short sources | cut -f2) choices="$choices Exit" @@ -29,7 +29,7 @@ case $result in ;; - " Select Output") + "󰓃 Select Output") choices=$(pactl list short sinks | cut -f2) choices="$choices Exit" @@ -42,7 +42,7 @@ case $result in exit 0 ;; - "󰝚 Play Music") + "󰝚 Playlists") dmenu-playmusic exit 0 ;; @@ -51,6 +51,11 @@ case $result in playerctl play-pause exit 0 ;; + + " Radio") + st -e pyradio + exit 0 + ;; *) exit 0 diff --git a/dmenu-power b/dmenu-power index 0d17f60..0dbab39 100755 --- a/dmenu-power +++ b/dmenu-power @@ -1,6 +1,6 @@ #!/bin/sh -choice=$(echo -e " Shutdown\n Reboot\n Logout\n Lock\n Exit" | dmenu -bw 4 -c -l 5 -p "Power: ") +choice=$(echo -e " Shutdown\n Reboot\n Logout\n Lock\n Theme\n✘ Exit" | dmenu -bw 4 -c -l 6 -p "Power: ") case "$choice" in " Shutdown") shutdown -h now ;; " Reboot") reboot ;; diff --git a/dmenu-system b/dmenu-system new file mode 100755 index 0000000..f1b71ac --- /dev/null +++ b/dmenu-system @@ -0,0 +1,10 @@ +#!/bin/sh + +choice=$(echo -e " Theme\n Bluetooth\n Network\n✘ Exit" | dmenu -bw 4 -c -l 6 -p "System: ") +case "$choice" in + " Theme") choose-theme;; + " Bluetooth") bluetui;; + " Network") st -e nmtui;; + " Exit") exit 0 ;; + *) exit 1;; +esac -- cgit v1.2.3