-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: vcyzteen <[email protected]>
- Loading branch information
vcyzteen
committed
Jul 1, 2021
1 parent
0bb72c6
commit eb67dcb
Showing
4 changed files
with
48 additions
and
43 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters