Commit a5894e87 authored by Christopher League's avatar Christopher League
Browse files

better script for liucs-desktop-reset

parent d204081e
......@@ -8,9 +8,27 @@ let
home-manager.users.student = {
programs.bash.shellAliases = {
liucs-desktop-reset = "rsync ${rsync-args} && xfce4-session-logout -l";
home.packages = [(
pkgs.writeShellScriptBin "liucs-desktop-reset" ''
echo 'This script will restore some of your desktop'
echo 'settings to their original (or prescribed) state.'
echo 'In particular, it affects the desktop panels,'
echo 'background, the Atom editor, and Firefox.'
echo 'Press enter to proceed or control-C to cancel.'
read answer
rsync ${rsync-args}
echo 'Configuration files reset, we will now log out'
echo 'and back in for changes to take effect.'
echo '(Or press control-C to cancel log out)'
for ((i=5; i>0; i--)); do
echo -n "$i... "
sleep 1
xfce4-session-logout --logout
home.activation.copySkelConfigs = {
before = [];
after = [];
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment