mirror of
https://github.com/szymon-jozef/superior_dotfiles.git
synced 2026-09-07 12:10:38 +02:00
very cool stuff
This commit is contained in:
43
private_dot_local/bin/executable_change_colors.sh
Normal file
43
private_dot_local/bin/executable_change_colors.sh
Normal file
@@ -0,0 +1,43 @@
|
||||
#!/bin/bash
|
||||
|
||||
declare -A blue
|
||||
blue[background]="rgba(36, 158, 202, 0.20)"
|
||||
blue[foreground]="rgba(36, 158, 202, 0.30)"
|
||||
blue[font-color]="#499DA9"
|
||||
|
||||
declare -A red
|
||||
red[background]="rgba(202, 36, 36, 0.20)"
|
||||
red[foreground]="rgba(202, 36, 36, 0.30)"
|
||||
red[font-color]="#A94949"
|
||||
|
||||
declare -A gray
|
||||
gray[background]="rgba(169, 169, 169, 0.20)"
|
||||
gray[foreground]="rgba(169, 169, 169, 0.30)"
|
||||
gray[font-color]="#A9A9A9"
|
||||
|
||||
|
||||
if [[ $1 == "blue" ]]; then
|
||||
waybar_colors="@define-color background ${blue[background]};\n@define-color foreground ${blue[foreground]};\n@define-color font-color ${blue[font-color]};"
|
||||
mako_colors="blue"
|
||||
wofi_colors="#249ECA\n#499DA9"
|
||||
elif [[ $1 == "red" ]]; then
|
||||
waybar_colors="@define-color background ${red[background]};\n@define-color foreground ${red[foreground]};\n@define-color font-color ${red[font-color]};"
|
||||
mako_colors="red"
|
||||
wofi_colors="#CA2424\n#A94949"
|
||||
elif [[ $1 == "gray" ]]; then
|
||||
waybar_colors="@define-color background ${gray[background]};\n@define-color foreground ${gray[foreground]};\n@define-color font-color ${gray[font-color]};"
|
||||
mako_colors="gray"
|
||||
wofi_colors="#A9A9A9\n#A9A9A9"
|
||||
else
|
||||
echo "Invalid color choice. Please use 'blue', 'red', or 'gray'."
|
||||
exit 1
|
||||
fi
|
||||
|
||||
|
||||
echo -e "$waybar_colors" > ~/.config/waybar/colors.css
|
||||
~/.local/bin/restart_waybar.sh &
|
||||
|
||||
killall mako
|
||||
mako --config ~/.config/mako/$mako_colors &
|
||||
|
||||
echo -e $wofi_colors > ~/.config/wofi/colors
|
||||
9
private_dot_local/bin/executable_check-if-muted.sh
Normal file
9
private_dot_local/bin/executable_check-if-muted.sh
Normal file
@@ -0,0 +1,9 @@
|
||||
#!/bin/bash
|
||||
|
||||
MUTED=$(wpctl get-volume @DEFAULT_AUDIO_SINK@ | grep -iq muted; echo $?)
|
||||
|
||||
if [[ $MUTED -eq 0 ]]; then
|
||||
notify-send "Audio muted" -a 'wp-vol' -t 1000
|
||||
else
|
||||
notify-send "Audio unmuted" -a 'wp-vol' -t 1000
|
||||
fi
|
||||
5
private_dot_local/bin/executable_restart_waybar.sh
Normal file
5
private_dot_local/bin/executable_restart_waybar.sh
Normal file
@@ -0,0 +1,5 @@
|
||||
killall -q waybar
|
||||
|
||||
while pgrep -x waybar >/dev/null; do sleep 1; done
|
||||
|
||||
waybar
|
||||
@@ -1,6 +1,6 @@
|
||||
#!/bin/bash
|
||||
set -e
|
||||
sudo pacman -Syu fish neovim uwsm python3 util-linux libnewt wofi kitty yazi playerctl tldr flatpak zen-browser-avx2-bin wl-clipboard hyprland hyprpaper hypridle hyprlock xdg-desktop-portal-hyprland xdg-desktop-portal-gtk scx-scheds pipewire wireplumber pavucontrol man-db fastfetch btop pipewire-audio pipewire-alsa pipewire-pulse mako libnotify feh slurp grim swappy cliphist file nerd-fonts ffmpeg 7zip jq poppler fd ripgrep fzf zoxide imagemagick bat eza npm bc vesktop mangohud goverlay steam gimp spotify-launcher obs-studio gamescope gamemode bluez bluez-utils blueman heroic-games-launcher chezmoi github-cli openssh --needed --noconfirm
|
||||
sudo pacman -Syu fish neovim uwsm python3 util-linux libnewt wofi kitty yazi playerctl tldr flatpak zen-browser-avx2-bin wl-clipboard hyprland hyprpaper hypridle hyprlock xdg-desktop-portal-hyprland xdg-desktop-portal-gtk scx-scheds pipewire wireplumber pavucontrol man-db fastfetch btop pipewire-audio pipewire-alsa pipewire-pulse mako libnotify feh slurp grim swappy cliphist file nerd-fonts ffmpeg 7zip jq poppler fd ripgrep fzf zoxide imagemagick bat eza npm bc vesktop mangohud goverlay steam gimp spotify-launcher obs-studio gamescope gamemode bluez bluez-utils blueman heroic-games-launcher chezmoi github-cli openssh socat otf-font-awesome greetd-regreet papirus-icon-theme hicolor-icon-theme noto-fonts-emoji batsignal waybar --needed --noconfirm
|
||||
|
||||
if ! groups "$USER" | grep -qw "gamemode"; then
|
||||
sudo usermod -aG gamemode "$USER"
|
||||
@@ -24,11 +24,11 @@ if ! pacman -Q yay &>/dev/null; then
|
||||
rm yay -rf
|
||||
else
|
||||
echo "Yay is installed..."
|
||||
yay -S hyprsunset hyprpolkitagent eww --needed
|
||||
yay -S hyprsunset hyprpolkitagent --needed
|
||||
fi
|
||||
|
||||
flatpak update --noninteractive
|
||||
flatpak install --noninteractive net.rpcs3.RPCS3
|
||||
|
||||
systemctl --user enable hypridle hyprpolkitagent pipewire-pulse hypridle
|
||||
sudo systemctl enable bluetooth
|
||||
systemctl --user enable hypridle hyprpolkitagent pipewire-pulse hypridle waybar
|
||||
sudo systemctl enable bluetooth greetd
|
||||
|
||||
Reference in New Issue
Block a user