diff --git a/.config/sxhkd/sxhkdrc b/.config/sxhkd/sxhkdrc index 1c712e4b..cb48e693 100755 --- a/.config/sxhkd/sxhkdrc +++ b/.config/sxhkd/sxhkdrc @@ -8,36 +8,12 @@ super + Return # set theme use rofi super + z - bash ${HOME}/.scripts/set-theme - -# set type compositor -super + c - bash ${HOME}/.scripts/set-compositor - -# powermenu -super + x - rofi -show p -modi p:${HOME}/.scripts/powermenu \ - -theme ${HOME}/.config/rofi/config.rasi \ - -font "mplus Nerd Font Mono 10" \ - -width 20 \ - -lines 2 - -# simple ss with rofi -super + r - rofi -show p -modi p:${HOME}/.scripts/rofiss \ - -theme ${HOME}/.config/rofi/config.rasi \ - -font "mplus Nerd Font Mono 10" \ - -width 20 \ - -lines 3 + bash ${HOME}/.scripts/get-all # program launcher super + @space rofi -show drun -# network -super + n - bash ${HOME}/.scripts/network - # mpd rofi super + m bash ${HOME}/.scripts/mpd diff --git a/.scripts/get-all b/.scripts/get-all new file mode 100755 index 00000000..8b3d6e79 --- /dev/null +++ b/.scripts/get-all @@ -0,0 +1,41 @@ +#!/usr/bin/env bash + +rofi_command="rofi -lines 5 -theme $HOME/.config/rofi/config.rasi" + +# option +theme="☱ : Theme" +network="❋ : Network" +model="❒ : Compositor" +power="⏻ : Powermenu" +screenshot="⎚ : Screenshots" + +# Variable passed to rofi +options="$theme\n$network\n$model\n$power\n$screenshot" + +# Spawn menu +chosen="$(echo -e "$options" | $rofi_command -p "Menu" -dmenu)" +case $chosen in + $network) + bash ${HOME}/.scripts/network + ;; + $theme) + bash ${HOME}/.scripts/set-theme + ;; + $model) + bash ${HOME}/.scripts/set-compositor + ;; + $power) + rofi -show p -modi p:${HOME}/.scripts/powermenu \ + -theme ${HOME}/.config/rofi/config.rasi \ + -font "mplus Nerd Font Mono 10" \ + -width 20 \ + -lines 2 + ;; + $screenshot) + rofi -show p -modi p:${HOME}/.scripts/rofiss \ + -theme ${HOME}/.config/rofi/config.rasi \ + -font "mplus Nerd Font Mono 10" \ + -width 20 \ + -lines 3 + ;; +esac diff --git a/.scripts/mpd b/.scripts/mpd index 922ea18a..5bae36a3 100755 --- a/.scripts/mpd +++ b/.scripts/mpd @@ -6,18 +6,17 @@ rofi_command="rofi -theme $HOME/.config/rofi/config.rasi" status="$(mpc status)" # Defines the Play / Pause option content if [[ $status == *"[playing]"* ]]; then - play_pause=" Pause" + play_pause="◼ Pause" else - play_pause=" Play" + play_pause="▶ Play" fi active="" urgent="" -stop=" Stop" -next=" Next" -previous=" Previous" +next="❯ Next" +previous="❮ Previous" # Variable passed to rofi -options="$previous\n$play_pause\n$stop\n$next" +options="$previous\n$play_pause\n$next" # Get the current playing song current=$(mpc -f "%artist% - %title%" current) @@ -35,9 +34,6 @@ case $chosen in $play_pause) mpc -q toggle && notify-send -u low -t 1800 " $(mpc current)" ;; - $stop) - mpc -q stop - ;; $next) mpc -q next && notify-send -u low -t 1800 " $(mpc current)" ;; diff --git a/readme.md b/readme.md index a93612bb..b1a753d3 100644 --- a/readme.md +++ b/readme.md @@ -117,15 +117,7 @@ $ fc-cache -rv |-------------------------|------------------------| | Reload sxhkd | Super + Escape | |-------------------------|------------------------| -| Switch Theme | Super + Z | -|-------------------------|------------------------| -| Power Menu | Super + X | -|-------------------------|------------------------| -| Switch Model Compositor | Super + C | -|-------------------------|------------------------| -| Simple Ss WIth Rofi | Super + R | -|-------------------------|------------------------| -| Network Configuration | Super + N | +| Get all Menu XD | Super + Z | |-------------------------|------------------------| | Mpd With Rofi | Super + M | |-------------------------|------------------------|