Shorten openapp
This commit is contained in:
@@ -1,34 +1,37 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
# Originally created by - https://github.com/gh0stzk
|
# Originally created by - https://github.com/gh0stzk
|
||||||
|
|
||||||
|
term="alacritty"
|
||||||
|
lines="window.dimensions.lines"
|
||||||
|
columns="window.dimensions.columns"
|
||||||
|
|
||||||
case "$1" in
|
case "$1" in
|
||||||
--menu)
|
--menu)
|
||||||
rofi -show drun -theme $HOME/.config/rofi/launcher.rasi
|
rofi -show drun -theme $HOME/.config/rofi/launcher.rasi
|
||||||
;;
|
;;
|
||||||
--terminal)
|
--terminal)
|
||||||
alacritty
|
term
|
||||||
;;
|
;;
|
||||||
--floating)
|
--floating)
|
||||||
alacritty --class floaterm,alacritty -o window.dimensions.lines=22 window.dimensions.columns=90
|
term --class floaterm,term -o lines=22 columns=90
|
||||||
;;
|
;;
|
||||||
--update)
|
--update)
|
||||||
alacritty --hold --class floaterm,alacritty -o window.dimensions.lines=22 window.dimensions.columns=90 -e updates --update-system
|
term --hold --class floaterm,term -o lines=22 columns=90 -e updates --update-system
|
||||||
;;
|
;;
|
||||||
--checkupdates)
|
--checkupdates)
|
||||||
alacritty --hold --class updating,alacritty -o window.dimensions.lines=22 window.dimensions.columns=47 -e updates --print-updates
|
term --hold --class updating,term -o lines=22 columns=47 -e updates --print-updates
|
||||||
;;
|
;;
|
||||||
--ranger)
|
--ranger)
|
||||||
alacritty --class alacritty -e ranger
|
term --class term -e ranger
|
||||||
;;
|
;;
|
||||||
--nvim)
|
--nvim)
|
||||||
alacritty -e nvim
|
term -e nvim
|
||||||
;;
|
;;
|
||||||
--music)
|
--music)
|
||||||
alacritty --class floaterm,alacritty -o window.dimensions.lines=18 window.dimensions.columns=67 -e ncmpcpp
|
term --class floaterm,term -o lines=18 columns=67 -e ncmpcpp
|
||||||
;;
|
;;
|
||||||
--fetch)
|
--fetch)
|
||||||
alacritty --hold --class floaterm,alacritty -o window.dimensions.lines=21 window.dimensions.columns=90 -e neofetch
|
term --hold --class floaterm,term -o lines=21 columns=90 -e neofetch
|
||||||
;;
|
;;
|
||||||
--browser)
|
--browser)
|
||||||
brave
|
brave
|
||||||
|
Reference in New Issue
Block a user