- hyprm-screenshot based on satty
- alacritty as default terminal
This commit is contained in:
parent
2fb62acda6
commit
fe06256876
109
home/config/alacritty/alacritty.toml
Normal file
109
home/config/alacritty/alacritty.toml
Normal file
@ -0,0 +1,109 @@
|
||||
[window]
|
||||
decorations = "None"
|
||||
dynamic_padding = false
|
||||
opacity = 0.8
|
||||
startup_mode = "Windowed"
|
||||
|
||||
[font]
|
||||
size = 11.0
|
||||
|
||||
[font.bold]
|
||||
family = "Hack Nerd Font"
|
||||
style = "Bold"
|
||||
|
||||
[font.bold_italic]
|
||||
family = "Hack Nerd Font"
|
||||
style = "Bold Italic"
|
||||
|
||||
[font.italic]
|
||||
family = "Hack Nerd Font"
|
||||
style = "Italic"
|
||||
|
||||
[font.normal]
|
||||
family = "Hack Nerd Font"
|
||||
style = "Regular"
|
||||
|
||||
[keyboard]
|
||||
bindings = [
|
||||
{ key = "Return", mods = "Control|Shift", action = "SpawnNewInstance" } #ctrl + shift + enter = open new instance in same dir
|
||||
]
|
||||
|
||||
|
||||
# Theme
|
||||
# catppuccin_mocha
|
||||
# https://github.com/alacritty/alacritty-theme
|
||||
[colors.primary]
|
||||
background = '#1E1E2E' # base
|
||||
foreground = '#CDD6F4' # text
|
||||
# Bright and dim foreground colors
|
||||
dim_foreground = '#CDD6F4' # text
|
||||
bright_foreground = '#CDD6F4' # text
|
||||
|
||||
# Cursor colors
|
||||
[colors.cursor]
|
||||
text = '#1E1E2E' # base
|
||||
cursor = '#F5E0DC' # rosewater
|
||||
|
||||
[colors.vi_mode_cursor]
|
||||
text = '#1E1E2E' # base
|
||||
cursor = '#B4BEFE' # lavender
|
||||
|
||||
# Search colors
|
||||
[colors.search.matches]
|
||||
foreground = '#1E1E2E' # base
|
||||
background = '#A6ADC8' # subtext0
|
||||
|
||||
[colors.search.focused_match]
|
||||
foreground = '#1E1E2E' # base
|
||||
background = '#A6E3A1' # green
|
||||
|
||||
[colors.footer_bar]
|
||||
foreground = '#1E1E2E' # base
|
||||
background = '#A6ADC8' # subtext0
|
||||
|
||||
# Keyboard regex hints
|
||||
[colors.hints.start]
|
||||
foreground = '#1E1E2E' # base
|
||||
background = '#F9E2AF' # yellow
|
||||
|
||||
[colors.hints.end]
|
||||
foreground = '#1E1E2E' # base
|
||||
background = '#A6ADC8' # subtext0
|
||||
|
||||
# Selection colors
|
||||
[colors.selection]
|
||||
text = '#1E1E2E' # base
|
||||
background = '#F5E0DC' # rosewater
|
||||
|
||||
# Normal colors
|
||||
[colors.normal]
|
||||
black = '#45475A' # surface1
|
||||
red = '#F38BA8' # red
|
||||
green = '#A6E3A1' # green
|
||||
yellow = '#F9E2AF' # yellow
|
||||
blue = '#89B4FA' # blue
|
||||
magenta = '#F5C2E7' # pink
|
||||
cyan = '#94E2D5' # teal
|
||||
white = '#BAC2DE' # subtext1
|
||||
|
||||
# Bright colors
|
||||
[colors.bright]
|
||||
black = '#585B70' # surface2
|
||||
red = '#F38BA8' # red
|
||||
green = '#A6E3A1' # green
|
||||
yellow = '#F9E2AF' # yellow
|
||||
blue = '#89B4FA' # blue
|
||||
magenta = '#F5C2E7' # pink
|
||||
cyan = '#94E2D5' # teal
|
||||
white = '#A6ADC8' # subtext0
|
||||
|
||||
# Dim colors
|
||||
[colors.dim]
|
||||
black = '#45475A' # surface1
|
||||
red = '#F38BA8' # red
|
||||
green = '#A6E3A1' # green
|
||||
yellow = '#F9E2AF' # yellow
|
||||
blue = '#89B4FA' # blue
|
||||
magenta = '#F5C2E7' # pink
|
||||
cyan = '#94E2D5' # teal
|
||||
white = '#BAC2DE' # subtext1<
|
||||
56
setup.sh
56
setup.sh
@ -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)"
|
||||
|
||||
3
usr/local/bin/hyprm-screenshot
Executable file
3
usr/local/bin/hyprm-screenshot
Executable file
@ -0,0 +1,3 @@
|
||||
#!/bin/bash
|
||||
|
||||
grim -g "$(slurp -o -r -c '#ff0000ff')" - | satty --fullscreen --filename - --output-filename ~/Pictures/Screenshots/$(date '+%Y%m%d-%H:%M:%S').png
|
||||
Loading…
x
Reference in New Issue
Block a user