diff --git a/README.md b/README.md index b2b2f87..d679b0d 100644 --- a/README.md +++ b/README.md @@ -19,9 +19,9 @@ This is basically per user! ```bash $ sudo pacman -Syu git -$ git clone --depth 1 https://gitea.nevaforget.de/dom/monarchos ~/.monarchos +$ git clone --depth 1 https://gitea.moonarch.de/nevaforget/hyprmoonarch ~/.monarchos $ cd ~/.monarchos -$ ./setup.sh +$ ./stower.sh ``` ## Installation Stages diff --git a/stower.sh b/stower.sh index c51db4f..450f2ea 100755 --- a/stower.sh +++ b/stower.sh @@ -103,6 +103,7 @@ function inst_pkgs { if [[ $confirm_basics == "Y" ]]; then + declare -a pkg_list=(wayland stow jq network-manager-applet alarm-clock-applet xarchiver man-db hardinfo networkmanager-openvpn udisks2 plocate vim alacritty gettext-hostname lsd alsa-utils ponymix btop polkit polkit-gnome timeshift timeshift-autosnap flatery-icon-theme-git waterfox fzf unzip hyprland hypridle hyprlock hyprcursor hyprkeys hyprpicker swww waypaper xdg-desktop-portal-hyprland wdisplays waybar-cava-git nwg-look cliphist wlogout hyprlock waybar-module-pacman-updates ufw zsh oh-my-zsh noise-suppression-for-voice grim satty-bin slurp dunst sweet-cursor-theme-git sweet-cursors-hyprcursor-git catppuccin-gtk-theme-mocha rofi-lbonn-wayland-git cmake meson cpio pkg-config ttf-ubuntu-nerd ttf-jetbrains-mono-nerd hyprsysteminfo qt5-styleplugins qt6gtk2 qt5gtk2) for key in "${pkg_list[@]}" diff --git a/usr/local/bin/btnote b/usr/local/bin/btnote index fe9ce5f..0a1e527 100755 --- a/usr/local/bin/btnote +++ b/usr/local/bin/btnote @@ -4,7 +4,7 @@ ## date 2024-08-16 ## loop battery devices and send notification on low percentage -NOTIFY_AT_PERCENTAGE=70 +NOTIFY_AT_PERCENTAGE=20 ICON="/usr/share/icons/Tela-purple-dark/symbolic/status/battery-empty-symbolic.svg" diff --git a/usr/local/bin/set-cursor b/usr/local/bin/set-cursor new file mode 100755 index 0000000..eedbbf7 --- /dev/null +++ b/usr/local/bin/set-cursor @@ -0,0 +1,63 @@ +#!/bin/bash + +if [ $# -eq 0 ]; then + echo usage: $(basename $0) icon-name + exit 0 +fi + +THEME=${1} +SIZE=24 + +echo Setting for GNOME ... + +gsettings set org.gnome.desktop.interface cursor-theme "${THEME}" +gsettings set org.gnome.desktop.interface cursor-size ${SIZE} + +## Only for Deepin Linux +cat /etc/lsb-release | grep -i Deepin 2>/dev/null 1>&2 +if [ $? -eq 0 ]; then + gsettings set com.deepin.wrap.gnome.desktop.interface cursor-size ${SIZE} + gsettings set com.deepin.xsettings gtk-cursor-theme-size ${SIZE} + + gsettings set com.deepin.wrap.gnome.desktop.interface cursor-theme ${THEME} + gsettings set com.deepin.xsettings gtk-cursor-theme-name ${THEME} + gsettings set com.deepin.dde.appearance cursor-theme ${THEME} +fi + +if [ -f ~/.icons/default/index.theme ]; then + rm ~/.icons/default/index.theme +fi + +if [ ! -d ~/.icons/default ]; then + mkdir -p ~/.icons/default +fi + +echo \[icon theme\] >> ~/.icons/default/index.theme +echo Inherits=${THEME} >> ~/.icons/default/index.theme + +echo Setting for GTK-3.0 ... +if [ -f ~/.config/gtk-3.0/settings.ini ]; then + rm ~/.config/gtk-3.0/settings.ini +fi + +if [ ! -d ~/.config/gtk-3.0 ]; then + mkdir ~/.config/gtk-3.0 +fi + +echo \[Settings\] >> ~/.config/gtk-3.0/settings.ini +echo gtk-cursor-theme-name=${THEME} >> ~/.config/gtk-3.0/settings.ini + +echo Setting for Legacy X ... +if [ -f ~/.xinitrc ]; then + sed -i '/.*XCURSOR_THEME.*/Id' ~/.xinitrc + sed -i '/.*XCURSOR_SIZE.*/Id' ~/.xinitrc +fi +echo XCURSOR_SIZE=${SIZE} >> ~/.xinitrc +echo XCURSOR_THEME=${THEME} >> ~/.xinitrc + +if [ -f ~/.Xresources ]; then + sed -i '/.*xcursor.size.*/Id' ~/.Xresources + sed -i '/.*xcursor.theme.*/Id' ~/.Xresources +fi +echo Xcursor.size=${SIZE} >> ~/.Xresources +echo Xcursor.theme=${THEME} >> ~/.Xresources \ No newline at end of file