Skip to content

Instantly share code, notes, and snippets.

@bunkbail
Created December 4, 2022 21:48
Show Gist options
  • Select an option

  • Save bunkbail/910cc24db800a995db68b08c5a8deaec to your computer and use it in GitHub Desktop.

Select an option

Save bunkbail/910cc24db800a995db68b08c5a8deaec to your computer and use it in GitHub Desktop.
# KDE Plasma theme switch to default (user mode)
if pacman -Qq | grep -q plasma-desktop; then
/usr/lib/plasma-changeicons breeze-dark 2>/dev/null
lookandfeeltool --apply "org.kde.breezedark.desktop" 2>/dev/null
fi
[ -f $HOME/.config/i3/config ] && sed -i '/endeavouros-i3wm-setup/d' ~/.config/i3/config
printf "Would you like to reboot? (y/N)"
read -r reboot
#Thanks to YTG1234 for this line.
# If we're already using Bash (#!/usr/bin/env bash), why not make use of its neat features
[ "$(tr '[:upper:]' '[:lower:]' <<< "$reboot")" = "y" ] && reboot
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment