Added battery, small fixes, idk
This commit is contained in:
@@ -4,41 +4,48 @@
|
||||
power="Power menu"
|
||||
ssh="SSH Connect"
|
||||
window="Window switcher"
|
||||
drun_actions="DRun with actions"
|
||||
kaomoji="Kaomoji"
|
||||
|
||||
# Rofi CMD
|
||||
rofi_cmd() {
|
||||
rofi -dmenu \
|
||||
-window-title "Launcher" \
|
||||
-i \
|
||||
-theme $HOME/.config/awesome/rofi/launcher_launcher.rasi \
|
||||
rofi -dmenu \
|
||||
-window-title "Launcher" \
|
||||
-i \
|
||||
-theme $HOME/.config/awesome/rofi/launcher_launcher.rasi \
|
||||
-theme-str 'listview {columns: 1;}'
|
||||
}
|
||||
|
||||
# Pass variables to rofi dmenu
|
||||
run_rofi() {
|
||||
echo -e "$power\n$ssh\n$window\n$kaomoji" | rofi_cmd
|
||||
echo -e "$power\n$ssh\n$window\n$drun_actions\n$kaomoji" | rofi_cmd
|
||||
}
|
||||
|
||||
# Actions
|
||||
chosen="$(run_rofi)"
|
||||
case ${chosen} in
|
||||
$power)
|
||||
$HOME/.config/awesome/rofi/powermenu.sh
|
||||
$HOME/.config/awesome/rofi/powermenu.sh
|
||||
;;
|
||||
$ssh)
|
||||
rofi \
|
||||
-show ssh \
|
||||
-theme $HOME/.config/awesome/rofi/launcher_launcher.rasi
|
||||
rofi \
|
||||
-show ssh \
|
||||
-theme $HOME/.config/awesome/rofi/launcher_launcher.rasi
|
||||
;;
|
||||
$window)
|
||||
rofi \
|
||||
-show window \
|
||||
-theme $HOME/.config/awesome/rofi/launcher_launcher.rasi \
|
||||
-theme-str 'listview {columns: 1; lines: 10;}'
|
||||
rofi \
|
||||
-show window \
|
||||
-theme $HOME/.config/awesome/rofi/launcher_launcher.rasi \
|
||||
-theme-str 'listview {columns: 1; lines: 10;}'
|
||||
;;
|
||||
$drun_actions)
|
||||
rofi \
|
||||
-show drun \
|
||||
-theme $HOME/.config/awesome/rofi/launcher.rasi \
|
||||
-drun-show-actions
|
||||
;;
|
||||
$kaomoji)
|
||||
$HOME/.config/awesome/rofi/kaomoji.sh \
|
||||
-theme $HOME/.config/awesome/rofi/launcher_launcher.rasi
|
||||
$HOME/.config/awesome/rofi/kaomoji.sh \
|
||||
-theme $HOME/.config/awesome/rofi/launcher_launcher.rasi
|
||||
;;
|
||||
esac
|
||||
|
||||
Reference in New Issue
Block a user