Files
gh0stzk-dotfile/config/bspwm/scripts/OpenApps
T
2023-10-13 10:24:13 +05:45

92 lines
3.2 KiB
Bash
Executable File

#!/usr/bin/env bash
# █████╗ ██████╗ ██████╗ ███████╗ ██╗ █████╗ ██╗ ██╗███╗ ██╗ ██████╗██╗ ██╗███████╗██████╗
# ██╔══██╗██╔══██╗██╔══██╗██╔════╝ ██║ ██╔══██╗██║ ██║████╗ ██║██╔════╝██║ ██║██╔════╝██╔══██╗
# ███████║██████╔╝██████╔╝███████╗ ██║ ███████║██║ ██║██╔██╗ ██║██║ ███████║█████╗ ██████╔╝
# ██╔══██║██╔═══╝ ██╔═══╝ ╚════██║ ██║ ██╔══██║██║ ██║██║╚██╗██║██║ ██╔══██║██╔══╝ ██╔══██╗
# ██║ ██║██║ ██║ ███████║ ███████╗██║ ██║╚██████╔╝██║ ╚████║╚██████╗██║ ██║███████╗██║ ██║
# ╚═╝ ╚═╝╚═╝ ╚═╝ ╚══════╝ ╚══════╝╚═╝ ╚═╝ ╚═════╝ ╚═╝ ╚═══╝ ╚═════╝╚═╝ ╚═╝╚══════╝╚═╝ ╚═╝
WIDGET_DIR="$HOME/.config/bspwm/eww"
case "$1" in
--menu)
rofi -show drun \
-theme $HOME/.config/bspwm/karla/launcher.rasi;;
--terminal)
alacritty;;
--floating)
alacritty --class FloaTerm,Alacritty \
-o window.dimensions.lines=22 \
window.dimensions.columns=90;;
--update)
alacritty --hold --class FloaTerm,Alacritty \
-o window.dimensions.lines=22 \
window.dimensions.columns=90 \
-e Updates --update-system;;
--checkupdates)
alacritty --hold --class Updating,Alacritty \
-o window.dimensions.lines=22 \
window.dimensions.columns=47 \
-e Updates --print-updates;;
--ranger)
alacritty --class FloaTerm,Alacritty \
-o window.dimensions.lines=14 \
window.dimensions.columns=90 \
-e ranger;;
--nvim)
alacritty -e nvim;;
--music)
alacritty --class FloaTerm,Alacritty \
-o window.dimensions.lines=18 \
window.dimensions.columns=67 \
-e ncmpcpp;;
--fetch)
alacritty --hold --class FloaTerm,Alacritty \
-o window.dimensions.lines=26 \
window.dimensions.columns=40 \
-e ~/.local/bin/sysfetch;;
#Apps
--filemanager)
thunar;;
--browser)
firefox;;
--editor)
geany;;
--telegram)
telegram;;
--whats)
whatsapp-nativefier --disable-gpu;;
--soundcontrol)
pavucontrol;;
# Eww Widgets
--powermenu)
eww -c "$WIDGET_DIR" open --toggle powermenu
;;
--usercard)
eww -c "$WIDGET_DIR" open --toggle launchermenu
;;
--player)
eww -c "$WIDGET_DIR" open --toggle music
;;
--calendar)
eww -c "$WIDGET_DIR" open --toggle date
;;
*)
echo "Not Valid Option"
;;
esac