- hyprm-screenshot based on satty

- alacritty as default terminal
This commit is contained in:
nevaforget committed 2024-02-27 18:37:35 +01:00
1 parent 6b8894de3e
commit 1c1766da14
3 files changed
+160 -8

No files matched your search

+48 -8
View File
@@ -332,13 +332,13 @@ function inst_rofi {
function inst_code {
log "-"
log "Installing Visual Studio Code"
log "Installing Visual Studio Code (Codium)"
log "${BOLD}Continue?${NORMAL} (Y/N) "
read confirm_vscode
log "$confirm_vscode"
if [[ $confirm_vscode == "Y" ]];
then
declare -a pkg_list=(visual-studio-code-bin)
declare -a pkg_list=(vscodium-bin)
for key in "${pkg_list[@]}"
do
pkg_inst $key
@@ -346,10 +346,28 @@ function inst_code {
log "Installing VSCode Extensions"
code --install-extension catppuccin.catppuccin-vsc-pack | tee -a $LOG
code --install-extension Catppuccin.catppuccin-vsc-icons | tee -a $LOG
code --install-extension Catppuccin.catppuccin-vsc | tee -a $LOG
code --install-extension smcpeak.default-keys-windows | tee -a $LOG
codium --install-extension catppuccin.catppuccin-vsc-pack | tee -a $LOG
codium --install-extension Catppuccin.catppuccin-vsc-icons | tee -a $LOG
codium --install-extension Catppuccin.catppuccin-vsc | tee -a $LOG
codium --install-extension smcpeak.default-keys-windows | tee -a $LOG
fi
}
function inst_screenshot {
log "-"
log "Installing utilities to have a nice screenshot annoation tool"
log "${BOLD}Continue?${NORMAL} (Y/N) "
read confirm_screenshot
log "$confirm_screenshot"
if [[ $confirm_screenshot == "Y" ]];
then
declare -a pkg_list=(satty-bin grim slurp)
for key in "${pkg_list[@]}"
do
pkg_inst $key
done
cp -Rf $MOONARCH_DIR/usr/local/bin/hyprm-screenshot /usr/local/bin
fi
}
@@ -360,7 +378,7 @@ function inst_hypr {
read confirm_hypr
if [[ $confirm_hypr == "Y" ]];
then
declare -a pkg_list=(wayland xorg-xwayland hyprland swaybg waypaper-git xdg-desktop-portal-hyprland wdisplays waybar-cava nwg-look cliphist slurp grim hyprland-interactive-screenshot swappy swaylock-effects cava)
declare -a pkg_list=(wayland xorg-xwayland hyprland swaybg waypaper-git xdg-desktop-portal-hyprland wdisplays waybar-cava nwg-look cliphist slurp grim hyprland-interactive-screenshot satty-bin swappy swaylock-effects cava)
for key in "${pkg_list[@]}"
do
pkg_inst $key
@@ -457,6 +475,26 @@ function inst_sddm {
fi
}
function inst_nemo {
echo "-"
echo "Installing Nemo - Cinnamon File Manager"
echo -n "${BOLD}Continue?${NORMAL} (Y/N) "
read confirm_nemo
if [[ $confirm_nemo == "Y" ]];
then
declare -a pkg_list=(nemo nemo-fileroller nemo-mediainfo-tab nemo-audio-tab cinnamon-translations)
for key in "${pkg_list[@]}"
do
pkg_inst $key
done
xdg-mime default nemo.desktop inode/directory application/x-gnome-saved-search
gsettings set org.nemo.desktop show-desktop-icons false
gsettings set org.cinnamon.desktop.default-applications.terminal exec alacritty
gsettings set org.cinnamon.desktop.interface can-change-accels true
fi
}
function log () {
ts=$(date +"%H:%M:%S")
@@ -474,6 +512,7 @@ function init {
type paru >/dev/null 2>&1 || { echo >&2 "I require paru but it's not installed. Aborting."; exit 1; }
inst_basic_pkgs
inst_nemo
inst_zsh
inst_sddm
@@ -489,6 +528,7 @@ function init {
inst_configs
inst_bluet
inst_screenshot
inst_code
set_gui
@@ -496,7 +536,7 @@ function init {
}
printf "#####################################\n"
printf "$(tput setaf 2)Welcome to MonArch. Feel free.\n@version 1.0\n$(tput sgr0)"
printf "$(tput setaf 2)Welcome to MoonArch. Feel free.\n@version 1.0\n$(tput sgr0)"
printf "#####################################\n"
printf "\n"
printf "$(tput setaf 2)Don't run this script as ROOT!\n$(tput sgr0)"