From b089cc6ed9ae82bf7d94d2b6f02aa01e21d43793 Mon Sep 17 00:00:00 2001 From: Polesznyák Márk Date: Tue, 23 Sep 2025 17:05:25 +0200 Subject: feat: switch from neofetch to Cryobs/fetcha --- install.sh | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) (limited to 'install.sh') diff --git a/install.sh b/install.sh index c266121..5b071b5 100755 --- a/install.sh +++ b/install.sh @@ -1,5 +1,5 @@ #!/bin/sh -programs="dwm dmenu slstatus st" +programs="dwm dmenu slstatus st fetcha" command_exists() { command -v "$1" >/dev/null 2>&1 @@ -13,20 +13,23 @@ for program in $programs; do has_root_perms && (cd "$program" && echo "starting $program installation" && make clean install && echo "$program installation complete") || echo "Can't install $program: you must run the script as root or with sudo." done +if command_exists picom; then + if ! has_root_perms; then + echo "Can't install picom configuration: you must run the script as root or with sudo." + exit 1 + fi + + cp picom.conf /etc/xdg/picom.conf + echo "picom &" >>~/.xinitrc +fi + if command_exists feh; then feh --bg-fill wallpaper.jpg echo "~/.fehbg &" >>~/.xinitrc fi -if command_exists picom; then - has_root_perms && cp picom.conf /etc/xdg/picom.conf || echo "Can't install picom configuration: you must run the script as root or with sudo." - echo "picom &" >>~/.xinitrc -fi - command_exists flameshot && echo "flameshot &" >>~/.xinitrc -command_exists neofetch && cp neofetch -r ~/.config/ - command_exists vis && cp vis -r ~/.config/ if command_exists tmux; then -- cgit v1.2.3