Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Christopher League
nixvm
Commits
a5894e87
Commit
a5894e87
authored
Dec 22, 2018
by
Christopher League
Browse files
better script for liucs-desktop-reset
parent
d204081e
Changes
1
Hide whitespace changes
Inline
Side-by-side
skel.nix
View file @
a5894e87
...
...
@@ -8,9 +8,27 @@ let
in
{
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
echo 'Press enter to proceed or control-C to cancel.'
read answer
rsync
${
rsync-args
}
echo
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
done
xfce4-session-logout --logout
''
)];
home
.
activation
.
copySkelConfigs
=
{
before
=
[];
after
=
[];
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment