Files
gh0stzk-dotfile/config/bspwm/scripts/OpenApps
T
2023-10-16 15:38:40 +05:45

76 lines
3.2 KiB
Bash
Executable File

#!/usr/bin/env bash
# █████╗ ██████╗ ██████╗ ███████╗ ██╗ █████╗ ██╗ ██╗███╗ ██╗ ██████╗██╗ ██╗███████╗██████╗
# ██╔══██╗██╔══██╗██╔══██╗██╔════╝ ██║ ██╔══██╗██║ ██║████╗ ██║██╔════╝██║ ██║██╔════╝██╔══██╗
# ███████║██████╔╝██████╔╝███████╗ ██║ ███████║██║ ██║██╔██╗ ██║██║ ███████║█████╗ ██████╔╝
# ██╔══██║██╔═══╝ ██╔═══╝ ╚════██║ ██║ ██╔══██║██║ ██║██║╚██╗██║██║ ██╔══██║██╔══╝ ██╔══██╗
# ██║ ██║██║ ██║ ███████║ ███████╗██║ ██║╚██████╔╝██║ ╚████║╚██████╗██║ ██║███████╗██║ ██║
# ╚═╝ ╚═╝╚═╝ ╚═╝ ╚══════╝ ╚══════╝╚═╝ ╚═╝ ╚═════╝ ╚═╝ ╚═══╝ ╚═════╝╚═╝ ╚═╝╚══════╝╚═╝ ╚═╝
# Script to control prefered apps to launch for all themes
#
WIDGET_DIR="$HOME/.config/bspwm/eww"
case "$1" in
--menu)
rofi -show drun -theme $HOME/.config/bspwm/scripts/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-desktop
;;
--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