Skip to content

Commit

Permalink
kitty, rofi setup script nixos support
Browse files Browse the repository at this point in the history
  • Loading branch information
guruswarupa committed Jul 15, 2024
1 parent 1a05d87 commit 071c10f
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
7 changes: 5 additions & 2 deletions src/commands/kitty-setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ checkEnv() {
done

## Check Package Handler
PACKAGEMANAGER='apt-get dnf pacman zypper'
PACKAGEMANAGER='apt-get dnf pacman zypper nix-env'
for pgm in ${PACKAGEMANAGER}; do
if command_exists ${pgm}; then
PACKAGER=${pgm}
Expand Down Expand Up @@ -64,6 +64,9 @@ setupKitty() {
pacman)
sudo ${PACKAGER} -S --noconfirm kitty
;;
nix-env)
sudo ${PACKAGER} -iA nixos.kitty
;;
*)
sudo ${PACKAGER} install -y kitty
;;
Expand All @@ -81,4 +84,4 @@ setupKitty() {
}

checkEnv
setupKitty
setupKitty
7 changes: 5 additions & 2 deletions src/commands/rofi-setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ checkEnv() {
done

## Check Package Handler
PACKAGEMANAGER='apt-get dnf pacman zypper'
PACKAGEMANAGER='apt-get dnf pacman zypper nix-env'
for pgm in $PACKAGEMANAGER; do
if command_exists "$pgm"; then
PACKAGER="$pgm"
Expand Down Expand Up @@ -64,6 +64,9 @@ setupRofi() {
pacman)
sudo "$PACKAGER" -S --noconfirm rofi
;;
nix-env)
sudo "$PACKAGER" -iA nixos.rofi
;;
*)
sudo "$PACKAGER" install -y rofi
;;
Expand All @@ -86,4 +89,4 @@ setupRofi() {
}

checkEnv
setupRofi
setupRofi

0 comments on commit 071c10f

Please sign in to comment.